Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Automating Logins

Hi,

Wanting to automate logins to a series of Cisco 17xx and 16xx as well as two 36xx series routers so that we can drag some data off and/or create a backup of the config.

As I'm no script genius and can't see straight off how to do this, could someone share the magic incantations required? OS of the interrogating box is Windows 2K.

MTIA - Stuart

6 REPLIES
cwu
New Member

Re: Automating Logins

Depending on what data you want to capture there are several options:

1. Use SNMP to query the device. Unfortunately, unless you're using some sort of commercial package with all the nice GUIs (such as CiscoWorks) this requires a fair bit of work. Also some data available from the command line are not available via SNMP.

2. Use a general purpose telnet script (I've written one in perl) to capture the appropriate output. You then have to parse the output to get what you need. What I don't like about this option is that your login and enable passwords have to go over the network in the clear. I much prefer ...

3. If the IOS on the device supports it use the r commands (rsh and rcp). rcp is great for grabbing a copy of the running or startup configs, and rsh for issuing commands and capturing the output. (Not sure if rcp and rsh come with Win2k; you may need to find a commercial or shareware package.) Securitywise, you can configure the device so that only a specific user ID from a specific IP address is allowed to use the r-commands.

New Member

Re: Automating Logins

Thanks for that - option 3 looks enticing!

Blue

Re: Automating Logins

You can use RME in CW2000 to do Automated Config Archive/Update and Reterieval OR can use SNMP scripts to collects the configs as well. There are a few with examples at: http://www.cisco.com/warp/public/477/SNMP/index.html

New Member

Re: Automating Logins

Apologies - thought I'd replied to this.

Thank you.

awo
New Member

Re: Automating Logins

http://cosi-nms.sourceforge.net/config-progs.html

and look for CiscoConf

or other ones 8-)

New Member

Re: Automating Logins

Many thanks for that.

109
Views
0
Helpful
6
Replies
CreatePlease login to create content