Ugo Bellavance
2010-10-22 17:54:49 UTC
Hi,
We've been using Rancid for our Cisco and Procurve switches, and since we
bought a pair of H3C s5800, I'd like to use rancid for them as well.
I followed the instructions here
http://sites.google.com/site/jrbinks/code/rancid/h3c (thanks Jethro) and
then I edited h3clogin to make sure the shebang pointed to the right
location of expect. But I can't get it to work yet.
Here is what I get for the h3clogin command:
[***@rancid bin]$ h3clogin -autoenable -t 5 -c "dis device" switch1
atq-irf-1.atqlan.agri-tracabilite.qc.ca
spawn ssh -c 3des -x -l manager switch1
***@switch1's password:
******************************************************************************
* Copyright (c) 2004-2010 Hangzhou H3C Tech. Co., Ltd. All rights reserved.
*
* Without the owner's prior written consent,
*
* no decompiling or reverse-engineering shall be allowed.
*
******************************************************************************
<SWITCH1>undo terminal monitor
Info: Current terminal monitor is off.
<SWITCH1>
<SWITCH1>
Error: TIMEOUT reached
===================
Any help would be appreciated.
Thanks,
Ugo
We've been using Rancid for our Cisco and Procurve switches, and since we
bought a pair of H3C s5800, I'd like to use rancid for them as well.
I followed the instructions here
http://sites.google.com/site/jrbinks/code/rancid/h3c (thanks Jethro) and
then I edited h3clogin to make sure the shebang pointed to the right
location of expect. But I can't get it to work yet.
Here is what I get for the h3clogin command:
[***@rancid bin]$ h3clogin -autoenable -t 5 -c "dis device" switch1
atq-irf-1.atqlan.agri-tracabilite.qc.ca
spawn ssh -c 3des -x -l manager switch1
***@switch1's password:
******************************************************************************
* Copyright (c) 2004-2010 Hangzhou H3C Tech. Co., Ltd. All rights reserved.
*
* Without the owner's prior written consent,
*
* no decompiling or reverse-engineering shall be allowed.
*
******************************************************************************
<SWITCH1>undo terminal monitor
Info: Current terminal monitor is off.
<SWITCH1>
<SWITCH1>
Error: TIMEOUT reached
===================
Any help would be appreciated.
Thanks,
Ugo