Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Cisco router configuration?

by traveler (Parson)
on Aug 16, 2001 at 00:39 UTC ( [id://105177]=perlquestion: print w/replies, xml ) Need Help??

traveler has asked for the wisdom of the Perl Monks concerning the following question:

I'm looking for a tool to configure Cisco routers. I need to configure the router initially over the console port (possibly using Expect.pm and Device::SerialPort) because the current configuration will be unknown. I'll even have to do the password resetting magic by accessing the boot ROM. Then I can use Telnet possibly with Net::Telnet::Cisco or SNMP.

I know I can cobble something together, but if someone has something I can start with, I'd appreciate it.

Thanks! --traveler

Replies are listed 'Best First'.
Re: Cisco router configuration?
by LD2 (Curate) on Aug 16, 2001 at 01:12 UTC
    I think that Cisco::Conf would be an option - it allows you to configure Cisco routers via TFTP.
      Thanks. I should have mentioned that module in my post. I will do the remote config (via telnet, IIRC) and then use TFTP. It does not have the serial port config section, though.

      I was also unclear on how to enter a new configuration in the config file without downloading it from the router into the config file (with save). I have a library of configurations already and did not want to go to the trouble of loading each into a router then saving it into the config file of Cisco::Conf.

      If you've used this module, maybe you can tell me how to do that?

      Thanks! --traveler

Re: Cisco router configuration?
by Dragonfly (Priest) on Aug 16, 2001 at 02:28 UTC
    What model router is it that you're trying to configure? I had a couple Perl scripts that I used in the administration and configuration of the Cisco DSL routers, but they were the home models running the CBOS and not the standard Cisco IOS. However, they use Net::Telnet and seemed to invariably work without any problems, so maybe I can help you out.
      I have some 2500s and 2600s (Ethernet/WAN routers) using IOS. I really need the serial part (the Net::Telnet and/or SNMP portions should not be too hard :-)) so I can send a break on boot and access the ROM monitor...

Log In?
Username:
Password:

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

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

    No recent polls found