NIC Configurations

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.
Cosmic Cruizer [ So, 30 März 2008 05:16 ] [ ID #1931981 ]

Re: NIC Configurations

On Mar 29, 7:16 pm, Cosmic Cruizer <XXjbhun... [at] white-star.com> wrote:
> 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/Wi n32/IPConfig.pm

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

Net::Address::Ethernet
http://search.cpan.org/~mthurn/Net-Address-Ethernet-1.111/li b/Net/Address/Ethernet.pm
Ron Bergin [ So, 30 März 2008 06:10 ] [ ID #1931983 ]

Re: NIC Configurations

Ron Bergin <rkb [at] i.frys.com> wrote in
news:0cee7074-36e1-4417-8fe1-ceefcdbfc824 [at] i7g2000prf.googleg roups.com:

> On Mar 29, 7:16 pm, Cosmic Cruizer <XXjbhun... [at] white-star.com> wrote:
>> 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/Wi n32/IPConfi
> g.pm
>
> Win32::IPConfig::Adapter
> http://search.cpan.org/~jmacfarla/Win32-IPConfig-0.09/lib/Wi n32/IPConfi
> g/Adapter.pm
>
> Net::Address::Ethernet
> http://search.cpan.org/~mthurn/Net-Address-Ethernet-1.111/li b/Net/Addre
> ss/Ethernet.pm
>

Thanks Ron. It looks like Win32::IPConfig will do what I need.
Cosmic Cruizer [ So, 30 März 2008 16:07 ] [ ID #1932001 ]

Re: NIC Configurations

Cosmic Cruizer wrote:

> 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, [at] _=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 ^.-
Thomas Kratz [ Mo, 31 März 2008 10:58 ] [ ID #1933273 ]

Re: NIC Configurations

Thomas Kratz <ThomasKratz [at] REMOVEwebCAPS.de> wrote in news:47f0a7a2$0$2601
$bb690d87 [at] news.main-rheiner.de:

> Cosmic Cruizer wrote:
>
>> 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
>

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.
Cosmic Cruizer [ Mi, 02 April 2008 04:13 ] [ ID #1934180 ]
Perl » comp.lang.perl.misc » NIC Configurations

Vorheriges Thema: TieRegistry with IPConfig
Nächstes Thema: Chop vs Chomp