Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: MAC Address of An Interface

by JSchmitz (Canon)
on Sep 08, 2004 at 04:01 UTC ( #389272=note: print w/ replies, xml ) Need Help??


in reply to MAC Address of An Interface

did you say Solaris? try something like this:

#!/usr/bin/perl -w use Net::Telnet open(FH, "host_list_file") || die "Yikes $!"; while (<FH>) { $t = new Net::Telnet(Timeout => 2810, Prompt => '/%/', Host => 'ip address' ); $t->login( "user", "password" ); { $t->cmd( "ndd /dev/arp arp_cache_report" ); } $t->close;

happy hunting


Comment on Re: MAC Address of An Interface
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://389272]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2014-09-22 07:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (182 votes), past polls