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

Re: Net::Telnet::Cisco Updating Configuration

by vladdrak (Monk)
on Aug 13, 2004 at 18:49 UTC ( #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? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2023-01-30 18:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?