Serge Leschinsky
2012-02-15 22:39:21 UTC
Hello,
I faced a problem while trying to use rancid with HP ProCurve 2900-24. Can you
please help me with the problem identification and fixing?
I used RHEL5/6 with rancid 2.3.5, 2.3.6, 2.3.8 (from the repo and built from
source).
The problem looks like inability to parse the output from HP, i.e.
===========================================================================
[***@rancid ~]$ hlogin -c 'show time' 10.3.0.254
10.3.0.254
spawn hpuifilter -- ssh -c 3des -x -l root 10.3.0.254
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
***@10.3.0.254's password:
ProCurve J9049A Switch 2900-24G
Software revision T.13.71
Copyright (C) 1991-2009 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
Press any key to continuesw-core#
Error: TIMEOUT reached
[***@rancid ~]$
============================================================================
If I try just to login and _then_ manually type 'show time' it looks more
interesting:
============================================================================
[***@rancid ~]$ hlogin 10.3.0.254
10.3.0.254
spawn hpuifilter -- ssh -c 3des -x -l root 10.3.0.254
We'd like to keep you up to date about:
..... skip the banner .....
Press any key to continuesw-core# show time
Error: TIMEOUT reached
[***@rancid ~]$ show time
-bash: show: command not found
============================================================================
So it looks like commands are not sent to the HP terminal. Is it a system
problem (expect) or rancid bug?
Thank you in advance,
Serge
I faced a problem while trying to use rancid with HP ProCurve 2900-24. Can you
please help me with the problem identification and fixing?
I used RHEL5/6 with rancid 2.3.5, 2.3.6, 2.3.8 (from the repo and built from
source).
The problem looks like inability to parse the output from HP, i.e.
===========================================================================
[***@rancid ~]$ hlogin -c 'show time' 10.3.0.254
10.3.0.254
spawn hpuifilter -- ssh -c 3des -x -l root 10.3.0.254
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
***@10.3.0.254's password:
ProCurve J9049A Switch 2900-24G
Software revision T.13.71
Copyright (C) 1991-2009 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
Press any key to continuesw-core#
Error: TIMEOUT reached
[***@rancid ~]$
============================================================================
If I try just to login and _then_ manually type 'show time' it looks more
interesting:
============================================================================
[***@rancid ~]$ hlogin 10.3.0.254
10.3.0.254
spawn hpuifilter -- ssh -c 3des -x -l root 10.3.0.254
We'd like to keep you up to date about:
..... skip the banner .....
Press any key to continuesw-core# show time
Error: TIMEOUT reached
[***@rancid ~]$ show time
-bash: show: command not found
============================================================================
So it looks like commands are not sent to the HP terminal. Is it a system
problem (expect) or rancid bug?
Thank you in advance,
Serge