[rancid] Re: CISCO username problem

Sherrill, Justin jsherrill at currentcomm.net
Thu Jan 11 17:55:13 UTC 2007


My guess is that the # symbols in your login banner, along with
autoenable, are confusing Rancid.  It looks for those to indicate a
prompt in enable mode, so it thinks it's already at a prompt when it's
just the banner scrolling in, so it issues commands too early and waits
for them to return.  Try changing your banner to use some other
character for the border.

 

-----------------------------------------
Justin C. Sherrill - CURRENT Communications
220 Kenneth Drive
Rochester, New York 14623
P: 585.486.0549 F: 585.486.0030

________________________________

From: rancid-discuss-bounces at shrubbery.net
[mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Stephane Malo
Sent: Thursday, January 11, 2007 11:44 AM
To: rancid-discuss at shrubbery.net
Subject: [rancid] CISCO username problem

 

Hello all,

I`m new to RANCID and i was just assigned to work on it.

I've read some of the threads but due to my lack of knowledge i would
need an "idiot proof" explanation.

 

Problem is with CISCO CAT switches.

Q1 What is the difference that RANCID needs to know if its a CISCO CAT
IOS or if its a CISCO IOS?

 

When i try to do a clogin SW1 it gets stuck on the username

$ clogin sw1            
sw1
 Tryning with username : password : password : telnet : 3des :  
spawn telnet sw1
Destination sw1 found for customer XYZ.
 
Trying 10.x.x.x...
Connected to 10.x.x.x.
Escape character is '^]'.


Cisco Systems, Inc. Console



########################################################################
##########
#
#
#               You are about to access an Enterprise Network
# 
#
#
#     The programs and data stored on this system are licensed to or are
the     #
#     private property of the enterprise and are lawfully available only
to      # 
#     authorized users for approved purposes. Unauthorized access to any
#
#     program or data on this system is not permitted, and any
unauthorized      #
#     access beyond this point may lead to prosecution.
# 
#
#
#     This system may be monitored at any time for operational reasons.
#
#     Therefore, if you are not an authorized user, do not attempt to
log in.    # 
#
#
########################################################################
##########
#     Vous etes sur le point d'acceder au reseau de l'entreprise
# 
#
#
#     Les programmes et les donnees compris dans ce systeme sont regis
#
#     par une licence ou sont la propriete privee de l'entreprise et ils
ne      # 
#     sont accessibles legalement qu'aux usagers autorises a des fins
#
#     autorisees. Il est interdit d'y acceder sans autorisation et tout
acces    #
#     non autorise au-dela de ce point peut entrainer des poursuites.
# 
#
#
#     Le systeme peut en tout temps faire l'objet d'une surveillance. Si
vous    #
#     n'etes pas un usager autorise  n'essayez pas d'y acceder.
# 
#
v1.1 # 
########################################################################
##########
 


Username: 


Username:

 

 

My .cloginrc file looks like:

add password    sw1 password 
add user        sw1 username
add method      sw1 telnet
add autoenable  sw1 1

 

 

When i log manually into my CISCO the prompt look like:

SW1 (enable)

 

Q2. Do i need to change it? If yes then what command should i do on the
CISCO?

Q3. Should i put:

set prompt SW1#

 

Q4. Should autoenable be set to 0 or 1

 

In general i saw multiple threads with various loggin problems on the
CISCO cat switches.

Q5. Is there a permanent fix?

 

Thanks for your help

 


-- 
Best regards
Stephane Malo
514-963-6256
"Insanity is doing the same thing over and over, and expecting a
different result." 



***CONFIDENTIALITY NOTICE***
The information in this email may be confidential and/or privileged. This email is intended to be reviewed by only the individual or organization named above. If you are not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any review, dissemination or copying of this email and its attachments, if any, or the information contained herein is prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this message from your system. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20070111/e8f434ef/attachment.html 


More information about the Rancid-discuss mailing list