[rancid] Re: Weird Log Entries
john heasley
heas at shrubbery.net
Wed Sep 13 19:43:00 UTC 2006
Wed, Sep 13, 2006 at 06:21:12PM +0300, Shlomo Dubrowin:
> Rancid Gurus,
^smelling
> .cloginrc:
> # Router Passwrods
> add user r* username
> add userpassword r* password
> add method r* telnet
> add autoenable r* 1
> 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 --
> "$expect_out(buffer)"
> } -re {..."
> invoked from within
> "expect {
> -re "\b+" { exp_continue }
> -re "^\[^\n\r *]*$reprompt" { send_user -- "$expect_out(buffer)"
> }
> -re "^\[^\n\r]*$reprompt." { send..."
This indicates to me that the pty closed, which it should not. That'd mean
that rancid (the perl script) would have exitted, assuming that you do not
have NOPIPE=YES in rancid.conf.
Does it work from the command line? rancid hostname
Does a simple multi-command clogin work?
clogin -c 'dir /all nvram;dir /all bootflash:" hostname
> "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:
More information about the Rancid-discuss
mailing list