#199141 - 2010-07-2811:29 PMRe: Who is Static who is DHCP?
[Re: Tesdall]
Glenn BarnasGlenn Barnas KiX Supporter
Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
NicInfo returns an Array of Arrays.. takes a bit of getting used to. Here's what I put together as an exercise
It outputs a CSV file directly readable by Excel or other applications. I used a single output file - the first field is the hostname, second is the NIC Index, and remaining fields are the data from NicInfo.
When an error occurs, Field 2 is "ERROR", followed by the error code and error message in fields 3 & 4.
Only the base code is shown - it uses Ping(), NicInfo(), FileIO(), and CSV() UDFs. You will need the latest version of CSV - available after 8pm today on my web site.
_________________________ Actually I am a Rocket Scientist!