[rancid] HP switch garbled output results in Expect timeout

Gordon Stratton tsr2600 at gmail.com
Sun Jul 11 20:34:55 UTC 2010


Running stock RANCID version 2.3.3 on Debian Squeeze (not the Debian
package, this is installed from source):

expect                              5.44.1.15-1
tcl8.5                              8.5.8-2

It seems that some component is garbling output and causing Expect to
time out on all of my HP switches. Here is some sample output:

--- 8< ---

# HOME=/root ./hlogin -c 'show version' <MYSWITCH>
spawn hpuifilter -- telnet <MYSWITCH>
Trying 10.194.182.114...
Connected to <MYSWITCH>.
Escape character is '^]'.
ProC1HProCurve J4899B Switch 2650
Software revision H.10.74

Copyright (C) 1991-2008 Hewlett-Packard Co.  All Rights Reserved.

                           RESTRICTED RIGHTS LEGEND

 Use, duplication, or disclosure by the Government is subject to restrictions
 as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and
 Computer Software clause at 52.227-7013.

         HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303

We'd like to keep you up to date about:
  * Software feature updates
  * New product announcements
  * Special events

Please register your products now at:  www.ProCurve.com


Pr key to key to ctntieue

--- >8 ---

I noticed that the line:

ProC1HProCurve J4899B Switch 2650

has Pro repeated with an extraneous "C1H", and the last line (which is
the culprit, I think):

Pr key to key to ctntieue

should obviously be "Press any key to continue", which causes Expect to
hang.

Does anyone have any ideas about what could be causing this? I run
RANCID on a daily basis, and the next run after I upgraded some
packages, I noticed RANCID runs started timing out:

2010-06-14 08:24:44 upgrade libc6-dev 2.10.2-9 2.11.1-3
2010-06-14 08:24:45 upgrade libc-dev-bin 2.10.2-9 2.11.1-3
2010-06-14 08:24:45 upgrade locales 2.10.2-9 2.11.1-3
2010-06-14 08:24:46 upgrade libc-bin 2.10.2-9 2.11.1-3
2010-06-14 08:24:49 upgrade libc6 2.10.2-9 2.11.1-3
2010-06-14 08:25:30 upgrade udev 154-1 157-1
2010-06-14 08:25:31 upgrade binutils 2.20.1-9 2.20.1-10
2010-06-14 08:25:32 upgrade libgeoip1 1.4.7~beta3+dfsg-2 1.4.7~beta5+dfsg-1

I don't know if any of these could have caused the problems, but the
coincidence is enough to make me think there might be something to it.

Thanks for any ideas,

Gordon


More information about the Rancid-discuss mailing list