[rancid] Weird Log Entries

Shlomo Dubrowin shlomo at dubrowin.org
Wed Sep 13 15:21:12 UTC 2006

Rancid Gurus,

I have been using rancid for about a year now and have finally
convinced my bosses to let me expand rancid to cover more than just
access switches.  I am now attempting to cover routers and devices
that are using TACACS with autoenable.  However, I have run into a
problem, I can log in using clogin to a router, but when rancid-run
goes to try to back it up, it fails.  It appears to my untrained eye
to be an autoenable problem, can you confirm and point me in the right
direction to getting this to work.  Rancid is running on Red Hat
Enterprise Linux.  Thank you.


Files Snippets, we'll be using r2.isr1.igi as the sample router:

(this router is in DNS properly)

# Router Passwrods
add user                r*      username
add userpassword        r*      password
add method              r*      telnet
add autoenable          r*      1
add noenable            r*      1
(I tried this with and without the noenable and received the same errors)

The Log errors:
write(spawn_id=1): broken pipe
    while executing
"send_user -- "$expect_out(buffer)""
    invoked from within
"expect -nobrace -re + { exp_continue } -re {^[^

 *]*r2.isr1.igi([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} { send_user --
						} -re {..."
    invoked from within
"expect {
		-re "\b+"			{ exp_continue }
		-re "^\[^\n\r *]*$reprompt"	{ send_user -- "$expect_out(buffer)"
		-re "^\[^\n\r]*$reprompt."	{ send..."
    invoked from within
"if [ string match "*\;*" "$command" ] {
	set commands [split $command \;]
	set num_commands [llength $commands]
	# the pager can not be turned off on ..."
    (procedure "run_commands" line 34)
    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 "/rancid/bin/clogin" line 616)
r2.isr1.igi: missed cmd(s): dir /all slavedisk2:,dir /all
sec-slot2:,show diag,dir /all disk1:,dir /all sec-nvram:,dir /all
disk2:,dir /all sec-bootflash:,show spe version,dir /all
slaveslot2:,dir /all disk0:,dir /all slaveslot0:,dir /all
sec-slot1:,dir /all harddiska:,dir /all slavenvram:,dir /all
sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all
harddiskb:,dir /all slavedisk1:,show module,show controllers,show
diagbus,dir /all slavedisk0:,dir /all bootflash:,dir /all
sec-slot0:,dir /all sec-disk1:,write term,show vtp status,dir /all
sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all slot0:,dir
/all sup-microcode:,dir /all slavebootflash:,show controllers cbus,dir
/all slaveslot1:,show running-config,show c7200,dir /all slot1:
r2.isr1.igi: End of run not found

  ,-~~-.___.    ._.
 / |  '     \   | |"""""""""|           Shlomo Dubrowin
(  )         0  | |         |             (Sheldon)
 \_/-, ,----'   | |         |
    ====        !_!--v---v--"
    /  \-'~;      |""""""""|            shlomo at dubrowin.org
   /  __/~| ._-""||        |          http://www.dubrowin.org
 =(  _____|_|____||________|

More information about the Rancid-discuss mailing list