Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: NET::OpenSSH to execute multiple commands

by hmb104 (Sexton)
on Aug 24, 2012 at 21:50 UTC ( [id://989643]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ($Core) = &connect( $Core, $user, $pass );
    @Output = $Core->capture( "show ip route $IPNumber" ) or
    ...
    @Subnet = split( /\./, $Subnet );
    $RouterIP = join( '.', $Subnet[0], $Subnet[1], $Subnet[2], '1' );
    print( " Router: [$Rname]\t  Router IP: [$RouterIP]\n" );
    
  2. or download this
    bash-3.00$./test.pl 10.10.10.16
     Router: []       Router IP: [10.10.10.1]
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (9)
As of 2024-04-23 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found