in reply to Laziness and the Win32::Daemon

code aside, I would think this process would work:

add a line to your startup.bat files that says run this inventory.pl script found at \\server\where\script\lives

Then when the client computer runs the script it has said "Here!" and at that point have inventory.pl get the required info (either through a subroutine or have inventory.pl invoke YAS (yet another script.))

The disadvantages to this are (As Dave Roth has pointed out in WIN32 Perl Scripting :: Sys Admins) that at 8AM when your users login there will be some strain on your server as they all start hitting that script all at once.

Pie, like lunch is (sadly) never free

The flip side to this would be to have startup.bat INSTALL the inventory script and then your startup.bat file could if/then the next time it was run the inventory process.

--
lmoran@wtsgSPAM.com
print "\x{263a}"

Replies are listed 'Best First'.
Re: Re: Laziness and the Win32::Daemon
by Macphisto (Hermit) on Jun 20, 2001 at 20:17 UTC
    Those are good comments, and the only thing that keeps me from throwing it into startup.bat is that some of the computers don't get rebooted periodically. Some users just refuse to turn off their computer when their done at the end of the day ( /me believes Washington DC is headed towards California like rolling black outs ), so that script might not run often enough to represent a current inventory.
    Macphisto the I.T. Ninja

    Everyone has their demons....
      hmm... running a mix of 9X and NT or just 9X?

      if 9X then set up a machine as you Policy machine and force them off at say 11:45PM until 3:45AM (tell 'em it's for backups), plus if using DHCP shorten the leases.

      if 9X && NT then set up a 9X and a Server for Policy as the two are not even remotely compatible

      NT will do a whole bunch of neat stuff if you ask it to.

      OR are you running Mac Clients as your name suggests?

      In which case switch your clients to OS 9.02 and they'll crash so much they'll have to sign in all day! --
      lmoran@wtsgSPAM.com
      print "\x{263a}"
        It's all NT4 and NT5( aka Win2k ) for the network. Thanks for your comments. And the Mac in my name doesn't have anything to do with Macintosh, I personally dislike Macintosh products/computers.
        Macphisto the I.T. Ninja

        Everyone has their demons....