Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 contemplating the Monastery: (7)
As of 2014-10-02 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (52 votes), past polls