[rancid] Procurve hlogin "show lldp expect"
Regis A. Despres
rancid at junk.indolore.net
Tue Mar 3 16:14:34 UTC 2009
Hi,
I'm facing a strange behavior trying to get "show lldp info remote-device" from a procurve J4904A.
telnet and ssh hlogin expect script both hangs after giving those infos.
It appears to see an unwanted space just in front the hostname. I don't really have a clue if that is why that hangs.
If someone have a idea ... =)
i.e.:
###################################################################################
shell> hlogin -c "sh lld info rem" IP
[snip]
LLDP Remote Devices Information
LocalPort | ChassisId PortId PortDescr SysName
--------- + ------------------------- ------ --------- ----------------------
hostname01#
[hang]
###################################################################################
here is the debug output:
###################################################################################
[snip]
expect: does " --------- + ------------------------- ------ --------- ----------------------\r\n\r " (spawn_id exp4) match regular expression "^[^\n\r *]*hostname0([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*hostname0([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n\r"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) " --------- + ------------------------- ------ --------- ----------------------\r\n\r"
--------- + ------------------------- ------ --------- ----------------------
expect: continuing expect
expect: does " " (spawn_id exp4) match regular expression "^[^\n\r *]*hostname0([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*hostname0([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? no
"[^\r\n]*Press <SPACE> to cont[^\r\n]*"? no
"^<-+ More -+>[^\n\r]*"? no
"^-+ MORE -+[^\n\r]*"? no
"^-More-[^\n\r-]*"? no
"^--More--[^\n\r-]*"? no
"^---+More---+[^\n\r]*"? no
"\u0008+"? no
expect: does " 45 | 00 17 08 c7 25 80 48 48 BISWI55INL01 \r\n\r 46 | 00 16 35 21 56 80 47 47 BISWI58INLO1 \r\n\r hostname01# " (spawn_id exp4) match regular expression "^[^\n\r *]*hostname0([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*hostname0([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n\r"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) " 45 | 00 17 08 c7 25 80 48 48 BISWI55INL01 \r\n\r"
45 | 00 17 08 c7 25 80 48 48 BISWI55INL01
expect: continuing expect
expect: does " 46 | 00 16 35 21 56 80 47 47 BISWI58INLO1 \r\n\r hostname01# " (spawn_id exp4) match regular expression "^[^\n\r *]*hostname0([^#>\r\n]+)?[#>](\([^)\r\n]+\))?"? no
"^[^\n\r]*hostname0([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? yes
expect: set expect_out(0,string) "\r\n\r"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) " 46 | 00 16 35 21 56 80 47 47 BISWI58INLO1 \r\n\r"
46 | 00 16 35 21 56 80 47 47 BISWI58INLO1
expect: continuing expect
expect: does " hostname01# " (spawn_id exp4) match regular expression "^[^\n\r
"^[^\n\r]*hostname0([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? yes
expect: set expect_out(0,string) " hostname01# "
expect: set expect_out(1,string) "1"
expect: set expect_out(spawn_id) "exp4"
expect: set expect_out(buffer) " hostname01# "
hostname01# expect: continuing expect
expect: does "" (spawn_id exp4) match regular expression "^[^\n\r *]*hostname0
"^[^\n\r]*hostname0([^#>\r\n]+)?[#>](\([^)\r\n]+\))?."? no
"[\n\r]+"? no
"[^\r\n]*Press <SPACE> to cont[^\r\n]*"? no
"^<-+ More -+>[^\n\r]*"? no
"^-+ MORE -+[^\n\r]*"? no
"^-More-[^\n\r-]*"? no
"^--More--[^\n\r-]*"? no
"^---+More---+[^\n\r]*"? no
"\u0008+"? no
expect: timed out
Error: TIMEOUT reached
write() failed to write anything - will sleep(1) and retry...
[Killed]
###################################################################################
More information about the Rancid-discuss
mailing list