Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2015-07-30 16:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls