Mailing List Archive

rancid 2.3.1 failure with all "cat5" devices (was working before 2.3rc1 -> 2.3.1 upgrade)
bash-2.05b$ /usr/local/libexec/rancid/cat5rancid -d cs02-nwc
executing clogin -t 300 -c"show version;show boot;show flash;dir
bootflash:;dir slot0:;dir slot1:;dir sup-bootflash:;dir
sup-microcode:;show module;show port ifindex;write term all;write term"
cs02-nwc
PROMPT MATCH: cs02-nwc>
HIT COMMAND:cs02-nwc> (enable) show version
In ShowVersion: cs02-nwc> (enable) show version
HIT COMMAND:cs02-nwc> (enable) show boot
In ShowBoot: cs02-nwc> (enable) show boot
HIT COMMAND:cs02-nwc> (enable) show flash
In ShowFlash: cs02-nwc> (enable) show flash
HIT COMMAND:cs02-nwc> (enable) dir bootflash:
In DirSlotN: cs02-nwc> (enable) dir bootflash:
HIT COMMAND:cs02-nwc> (enable) dir slot0:
In DirSlotN: cs02-nwc> (enable) dir slot0:
HIT COMMAND:cs02-nwc> (enable) dir slot1:
In DirSlotN: cs02-nwc> (enable) dir slot1:
HIT COMMAND:cs02-nwc> (enable) dir sup-bootflash:
In DirSlotN: cs02-nwc> (enable) dir sup-bootflash:
HIT COMMAND:cs02-nwc> (enable) dir sup-microcode:
In DirSlotN: cs02-nwc> (enable) dir sup-microcode:
HIT COMMAND:cs02-nwc> (enable) show module
In ShowModule: cs02-nwc> (enable) show module
HIT COMMAND:cs02-nwc> (enable) show port ifindex
In ShowPortIfindex: cs02-nwc> (enable) show port ifindex
HIT COMMAND:cs02-nwc> (enable) write term all
In WriteTerm: cs02-nwc> (enable) write term all
write(spawn_id=4): I/O error
while executing
"send "exit\r""
invoked from within
"expect -nobrace -re {^[^
*]*cs02-nwc> \(enable\)} {
# the Cisco CE and
Jnx ERX
# return to
non-enabled mode
# on exit in ena..."
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)
cs02-nwc: missed cmd(s): write term
cs02-nwc: missed cmd(s): write term

--
------------------------------------------------------------------------
Christopher E. Brown <chris.brown at acsalaska.net> desk (907) 273-6893
cell (907) 632-8492
IP Engineer III - ACS
------------------------------------------------------------------------
rancid 2.3.1 failure with all "cat5" devices (was working before 2.3rc1 -> 2.3.1 upgrade) [ In reply to ]
Mon, Sep 27, 2004 at 04:27:11PM -0800, Christopher E. Brown:
> bash-2.05b$ /usr/local/libexec/rancid/cat5rancid -d cs02-nwc
> executing clogin -t 300 -c"show version;show boot;show flash;dir
> bootflash:;dir slot0:;dir slot1:;dir sup-bootflash:;dir
> sup-microcode:;show module;show port ifindex;write term all;write term"
> cs02-nwc
> PROMPT MATCH: cs02-nwc>

> HIT COMMAND:cs02-nwc> (enable) write term all
> In WriteTerm: cs02-nwc> (enable) write term all
> write(spawn_id=4): I/O error
> while executing
> "send "exit\r""
> invoked from within
> "expect -nobrace -re {^[^
> *]*cs02-nwc> \(enable\)} {

Does this occur all the time or transient? does write term all complete
with disconnect of the terminal session?
rancid 2.3.1 failure with all "cat5" devices (was working before 2.3rc1 -> 2.3.1 upgrade) [ In reply to ]
john heasley wrote:
> Mon, Sep 27, 2004 at 04:27:11PM -0800, Christopher E. Brown:
>
>>bash-2.05b$ /usr/local/libexec/rancid/cat5rancid -d cs02-nwc
>>executing clogin -t 300 -c"show version;show boot;show flash;dir
>>bootflash:;dir slot0:;dir slot1:;dir sup-bootflash:;dir
>>sup-microcode:;show module;show port ifindex;write term all;write term"
>>cs02-nwc
>>PROMPT MATCH: cs02-nwc>
>
>
>>HIT COMMAND:cs02-nwc> (enable) write term all
>> In WriteTerm: cs02-nwc> (enable) write term all
>>write(spawn_id=4): I/O error
>> while executing
>>"send "exit\r""
>> invoked from within
>>"expect -nobrace -re {^[^
>> *]*cs02-nwc> \(enable\)} {
>
>
> Does this occur all the time or transient? does write term all complete
> with disconnect of the terminal session?

The device poll fails *every time*, and every time I have run things
manualls I got the same error as above.

It looks like the error happens when the switch is sent "exit\r" and
drops the session. All the commands complete.

--
------------------------------------------------------------------------
Christopher E. Brown <chris.brown at acsalaska.net> desk (907) 273-6893
cell (907) 632-8492
IP Engineer III - ACS
------------------------------------------------------------------------
rancid 2.3.1 failure with all "cat5" devices (was working before 2.3rc1 -> 2.3.1 upgrade) [ In reply to ]
john heasley wrote:
> Mon, Sep 27, 2004 at 04:27:11PM -0800, Christopher E. Brown:
>
>>bash-2.05b$ /usr/local/libexec/rancid/cat5rancid -d cs02-nwc
>>executing clogin -t 300 -c"show version;show boot;show flash;dir
>>bootflash:;dir slot0:;dir slot1:;dir sup-bootflash:;dir
>>sup-microcode:;show module;show port ifindex;write term all;write term"
>>cs02-nwc
>>PROMPT MATCH: cs02-nwc>
>
>
>>HIT COMMAND:cs02-nwc> (enable) write term all
>> In WriteTerm: cs02-nwc> (enable) write term all
>>write(spawn_id=4): I/O error
>> while executing
>>"send "exit\r""
>> invoked from within
>>"expect -nobrace -re {^[^
>> *]*cs02-nwc> \(enable\)} {
>
>
> Does this occur all the time or transient? does write term all complete
> with disconnect of the terminal session?



#authorization
set authorization exec enable tacacs+ none console
set authorization exec enable tacacs+ none telnet
set authorization enable enable tacacs+ none console
set authorization enable enable tacacs+ none telnet
set authorization commands enable all tacacs+ none console
set authorization commands enable all tacacs+ none telnet
end
cs01_nwc> (enable)This command shows non-default configurations only.
Use 'write terminal all' to show both default and non-default
configurations.
.........
..................


..................

...............

....................
....................


Interesting, this is the end of write term all, and the start of write
term from the .raw file

Notice the lost echoback, we see the prompt, but not where "write term"
is entered.



--
------------------------------------------------------------------------
Christopher E. Brown <chris.brown at acsalaska.net> desk (907) 273-6893
cell (907) 632-8492
IP Engineer III - ACS
------------------------------------------------------------------------
rancid 2.3.1 failure with all "cat5" devices (was working before 2.3rc1 -> 2.3.1 upgrade) [ In reply to ]
I have no idea why, but

--- clogin.sav Tue Sep 28 11:28:44 2004
+++ clogin Tue Sep 28 12:15:39 2004
@@ -499,7 +499,7 @@
send "set length 0\r"
# This is ugly, but reduces code duplication, allowing the
# subsequent expects to handle everything as normal.
- set command "set logging session disable\r;$command"
+ #set command "set logging session disable\r;$command"
} else {
send "term length 0\r"
}

seems to fix things.

At least, the

cs01_nwc> (enable)This command shows non-default configurations only.
Use 'write terminal all' to show both default and non-default
configurations.

in the .raw file becomes

cs01_nwc> (enable)write term
This command shows non-default configurations only.
Use 'write terminal all' to show both default and non-default
configurations.



Christopher E. Brown wrote:
> john heasley wrote:
>
>> Mon, Sep 27, 2004 at 04:27:11PM -0800, Christopher E. Brown:
>>
>>> bash-2.05b$ /usr/local/libexec/rancid/cat5rancid -d cs02-nwc
>>> executing clogin -t 300 -c"show version;show boot;show flash;dir
>>> bootflash:;dir slot0:;dir slot1:;dir sup-bootflash:;dir
>>> sup-microcode:;show module;show port ifindex;write term all;write
>>> term" cs02-nwc
>>> PROMPT MATCH: cs02-nwc>
>>
>>
>>
>>> HIT COMMAND:cs02-nwc> (enable) write term all
>>> In WriteTerm: cs02-nwc> (enable) write term all
>>> write(spawn_id=4): I/O error
>>> while executing
>>> "send "exit\r""
>>> invoked from within
>>> "expect -nobrace -re {^[^
>>> *]*cs02-nwc> \(enable\)} {
>>
>>
>>
>> Does this occur all the time or transient? does write term all complete
>> with disconnect of the terminal session?
>
>
>
>
> #authorization
> set authorization exec enable tacacs+ none console
> set authorization exec enable tacacs+ none telnet
> set authorization enable enable tacacs+ none console
> set authorization enable enable tacacs+ none telnet
> set authorization commands enable all tacacs+ none console
> set authorization commands enable all tacacs+ none telnet
> end
> cs01_nwc> (enable)This command shows non-default configurations only.
> Use 'write terminal all' to show both default and non-default
> configurations.
> .........
> ..................
>
>
> ..................
>
> ...............
>
> ....................
> ....................
>
>
> Interesting, this is the end of write term all, and the start of write
> term from the .raw file
>
> Notice the lost echoback, we see the prompt, but not where "write term"
> is entered.
>
>
>


--
------------------------------------------------------------------------
Christopher E. Brown <chris.brown at acsalaska.net> desk (907) 273-6893
cell (907) 632-8492
IP Engineer III - ACS
------------------------------------------------------------------------