[windows2000] Re: remotely get network settings on Win2k machines

  • From: "Chris Berry" <compjma@xxxxxxxxxxx>
  • To: windows2000@xxxxxxxxxxxxx
  • Date: Thu, 02 Oct 2003 19:11:31 -0700

> I'm not much of a scripter or a programmer (if you know C++,
> HELP!) but my thought was to have them all pipe to the same
> file, then you only have one file in the end rather than a
> file per computer.
> Of course with your way, it would only happen once per
> computer which would probably be easier in the end.
> Then you could just make anther script to run against the
> directory to make one big file
> Greg

I've done that before, but it seemed that even though I used >> to pipe,
the file would get overwritten when there were many people trying to
write to it at the same time.  So, I'd have a list of 100 computers and
two minutes later, there would be 25.

Ray at work

<insert obligatory religious rant at Ray for top posting, see archives for copy of text>

The problem is with file locking, which windows is notoriously bad at if you don't specifically code for it. (though not as bad as NFS *shaking head*) A good workaround I've found is to create all the individual files first then concatenate them together once all the data has been retrieved. It would be fairly simple to filter the results at this time as well, pulling only the DefaultGateway value into the main file. This is the way my network based software inventory system works. (see archives for previous posts about this)

Chris Berry
Systems Administrator
JM Associates

"We are successful when our bosses wonder what it is we do all day." -- Tim Mullen

Share your photos without swamping your Inbox. Get Hotmail Extra Storage today! http://join.msn.com/?PAGE=features/es

This Week's Sponsor - RTO Software / TScale
What's keeping you from getting more from your terminal servers? Did you know, in 
most cases, CPU Utilization IS NOT the single biggest constraint to scaling up?! 
Get this free white paper to understand the real constraints & how to overcome 
them. SAVE MONEY by scaling-up rather than buying more servers.
To Unsubscribe, set digest or vacation
mode or view archives use the below link.


Other related posts: