NIC Configurations

C

Cosmic Cruizer

From a Windows box, I need to remotely look at the NICs of about 60 Windows
servers I have administrative accounts on.

I was going to try and use IO::Interface, but I cannot get the module
installed. I cannot find the PPD for IO-Interface-1.04 so I can use ppm.

Does anybody have a Perl solution for getting the NIC configurations on
remote Window servers? Is IO-Interface my best option?

Thanks,

Coz.
 
R

Ron Bergin

From a Windows box, I need to remotely look at the NICs of about 60 Windows
servers I have administrative accounts on.

I was going to try and use IO::Interface, but I cannot get the module
installed. I cannot find the PPD for IO-Interface-1.04 so I can use ppm.

Does anybody have a Perl solution for getting the NIC configurations on
remote Window servers? Is IO-Interface my best option?

Thanks,

Coz.

Have you looked into trying one of these modules?

Win32::IPConfig
http://search.cpan.org/~jmacfarla/Win32-IPConfig-0.09/lib/Win32/IPConfig.pm

Win32::IPConfig::Adapter
http://search.cpan.org/~jmacfarla/Win32-IPConfig-0.09/lib/Win32/IPConfig/Adapter.pm

Net::Address::Ethernet
http://search.cpan.org/~mthurn/Net-Address-Ethernet-1.111/lib/Net/Address/Ethernet.pm
 
T

Thomas Kratz

Cosmic said:
Thanks Ron. It looks like Win32::IPConfig will do what I need.

If you are interested in the special NIC configuration (such as media
speed etc.) you'll have to use WMI.

I can post a script if needed.

Thomas

--
$/=$,,$_=<DATA>,s,(.*),$1,see;__END__
s,^(.*\043),,mg,@_=map{[split'']}split;{#>J~.>_an~>>e~......>r~
$_=$_[$%][$"];y,<~>^,-++-,?{$/=--$|?'"':#..u.t.^.o.P.r.>ha~.e..
'%',s,(.),\$$/$1=1,,$;=$_}:/\w/?{y,_, ,,#..>s^~ht<._..._..c....
print}:y,.,,||last,,,,,,$_=$;;eval,redo}#.....>.e.r^.>l^..>k^.-
 
C

Cosmic Cruizer

If you are interested in the special NIC configuration (such as media
speed etc.) you'll have to use WMI.

I can post a script if needed.

Thomas

Thomas, I would really appriciate it if you could post your script. It's
not what I'm really try to grab, but I can use it for a learning
experience. (Besides, maybe it is what I need, but don't know it.)

What I need to capture is the Internet Protocol properties such as the IP
address, subnet mask, default gateway, and the preferred and alternate
DNS servers.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top