LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cisco RANCID - enable not working (http://www.linuxquestions.org/questions/linux-software-2/cisco-rancid-enable-not-working-4175437441/)

eliufoo 11-16-2012 10:06 AM

Cisco RANCID - enable not working
 
Hi Guys,

I'm setting a RANCID server for backup my cicso CFG files on a weekly bases. I have complete all configuration successfully and using the below settings for my clogin file.

add user * elly
add password * {test} {enabletest}
add method * ssh telnet

When i run "bin/clogin 192.168.1.5"
PHP Code:

User Access Verification

Username
elly
Password


                                !!!
WARNING!!!
     
#####################################################################
     ##   ACCESS TO THIS SYSTEM IS STRICTLY RESTRICTED TO AUTHORIZED    ##
     ##   PERSONS ONLY.                                                 ##
     ##   UNAUTHORIZED ACCESS TO THIS SYSTEM IS NOT ALLOWED AND EVERY   ##
     ##   ACTIVITY IS MONITORED ON THIS SYSTEM.                         ##
     #####################################################################

switch1

Then i stops here. RANCID doesn't continue with enable login. Try to get some information on the net but was not succesfully. Any suggestions?

eliufoo 11-18-2012 10:26 AM

Hi,

managed to resolve this issue.

The problem was my my banners. RANCID gets confused if a banners contains '>' or '#'. See below Q&A from RANCID page.

http://www.shrubbery.net/rancid/FAQ

Q. Are there any characters in the banner that rancid has problems with OR
I changed the device's command prompt and now collection is failing?
A. The trickiest part about clogin (et al) is recognizing the prompt
correctly. clogin looks for '>' and '#' to figure out if it is logged
in or in enable mode. So if you have a '>' or '#' in your login banner
(or other motd), then clogin gets confused and will not be able to log
in correctly, and thus rancid will fail.


All times are GMT -5. The time now is 03:22 AM.