Click here to get back home

NIC Configurations

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
NIC Configurations Cosmic Cruizer 03-29-2008
Posted by Cosmic Cruizer on March 29, 2008, 10:16 pm
Please log in for more thread options
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.

Posted by Ron Bergin on March 30, 2008, 12:10 am
Please log in for more thread options
> 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

Posted by Cosmic Cruizer on March 30, 2008, 10:07 am
Please log in for more thread options

>> 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/IPConfi
> g.pm
>
> Win32::IPConfig::Adapter
> http://search.cpan.org/~jmacfarla/Win32-IPConfig-0.09/lib/Win32/IPConfi
> g/Adapter.pm
>
> Net::Address::Ethernet
> http://search.cpan.org/~mthurn/Net-Address-Ethernet-1.111/lib/Net/Addre
> ss/Ethernet.pm
>

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

Posted by Thomas Kratz on March 31, 2008, 4:58 am
Please log in for more thread options
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,^(.*3),,mg,@_=mapsplit;{#>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^.-

Posted by Cosmic Cruizer on April 1, 2008, 10:13 pm
Please log in for more thread options
$bb690d87@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.


Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap