rancid issue with 2/3 cat5's after upgrade

darren kruse darren at adam.com.au
Tue Sep 21 00:06:55 UTC 2004


I have three cat 5000's  - before I upgraded to the current version of 
rancid - 3/3 worked fine....  now only 1/3 works.
I upgraded using FreeBSD ports, I'm now running rancid ver 2.3.1

all 3 are configured the same ...
ferret# pwd
/usr/local/rancid/var/coreswitches
ferret# less router.db
#cat5k_sw.domain.com:cat5:up
c55k-1:cat5:up
c55k-2:cat5:up
c55k-3:cat5:up

that all have the same password in
ferret# cat /home/rancid/.cloginrc  
add password c55k-1  access-pwd  enable-pwd
add password c55k-2  access-pwd  enable-pwd
add password c55k-3  access-pwd  enable-pwd

clogin works , as long as I have set the prompt to be c55k-2>  , if I 
omit the > , then clogin stalls. (as documented :-)

these all work fine ..
%/usr/local/libexec/rancid/clogin -c"write term" c55k-1
%/usr/local/libexec/rancid/clogin -c"write term" c55k-2
%/usr/local/libexec/rancid/clogin -c"write term" c55k-3

Here's the log dump ..
%cat coreswitches.20040920.140100
starting: Mon Sep 20 14:01:00 CST 2004



Trying to get all of the configs.
c55k-2: missed cmd(s): write term
c55k-3: missed cmd(s): write term
=====================================
Getting missed routers: round 1.
c55k-2: missed cmd(s): write term
c55k-3: missed cmd(s): write term
=====================================
Getting missed routers: round 2.
write(spawn_id=3): I/O error
    while executing
"send "exit\r""
    invoked from within
"expect -nobrace -re {^[^
 *]*c55k-2> \(enable\)} {
                                                  # the Cisco CE and Jnx ERX
                                                  # return to 
non-enabled mode
                                                  # on exit in enabl..."
    invoked from within
"expect {
        -re "^\[^\n\r *]*$reprompt"             {
                                                  # the Cisco CE and Jnx ERX
                                                  # return to 
non-enabled mode
                                                  # on exit in enabled mode.
                ..."
    (procedure "run_commands" line 104)
    invoked from within
"run_commands $prompt $command"
    ("foreach" body line 144)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    send_user "$router\n"

    # Figure out prompt.
    # Since autoena..."
    (file "/usr/local/libexec/rancid/clogin" line 616)
c55k-2: missed cmd(s): write term
c55k-3: missed cmd(s): write term
=====================================
Getting missed routers: round 3.
write(spawn_id=3): I/O error
    while executing
"send "exit\r""
    invoked from within
"expect -nobrace -re {^[^
 *]*c55k-2> \(enable\)} {
                                                  # the Cisco CE and Jnx ERX
                                                  # return to 
non-enabled mode
                                                  # on exit in enabl..."
    invoked from within
"expect {
        -re "^\[^\n\r *]*$reprompt"             {
                                                  # the Cisco CE and Jnx ERX
                                                  # return to 
non-enabled mode
                                                  # on exit in enabled mode.
                ..."
    (procedure "run_commands" line 104)
    invoked from within
"run_commands $prompt $command"
    ("foreach" body line 144)
    invoked from within
"foreach router [lrange $argv $i end] {
    set router [string tolower $router]
    send_user "$router\n"

    # Figure out prompt.
    # Since autoena..."
    (file "/usr/local/libexec/rancid/clogin" line 616)
c55k-2: missed cmd(s): write term
c55k-3: missed cmd(s): write term
=====================================
Getting missed routers: round 4.
c55k-2: missed cmd(s): write term
c55k-3: missed cmd(s): write term

cvs diff: Diffing .
cvs diff: Diffing configs
cvs commit: Examining .
cvs commit: Examining configs
*Checking in configs/c55k-1;    <<- only one works ...
*/usr/local/rancid/var/CVS/coreswitches/configs/c55k-1,v  <--  c55k-1
new revision: 1.16; previous revision: 1.15
done

ending: Mon Sep 20 14:04:49 CST 2004
%                                                                                                             




-- 
Darren Kruse
Network Operations Centre
Adam Internet
mob 0404 034 773
ph (08) 8423 4000
fax(08) 8231 0223
Office Address: 117 King William St, Adelaide 5000 Postal Address:
G.P.O. Box 121, Adelaide 5001






More information about the Rancid-discuss mailing list