Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Net::Telnet::Cisco Updating Configuration

by vladdrak (Monk)
on Aug 13, 2004 at 18:49 UTC ( [id://382795]=note: print w/replies, xml ) Need Help??


in reply to Net::Telnet::Cisco Updating Configuration

You can just use 'exit' instead of of a CTRL-Z.
sub update_router_config { if( $cisco->enable("$enable_password")){ $cisco->cmd("config t"); # enter new configuration $cisco->put("$conf"); # send new data for config $cisco->cmd("exit"); # end new data $cisco->cmd("copy run start"); # enable new config } }
-Vlad

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-24 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found