[rancid] h3crancid problem

heasley heas at shrubbery.net
Mon Dec 6 18:22:34 UTC 2021


Mon, Dec 06, 2021 at 10:46:39AM +0100, BASSAGET Cédric:
> Hello,
> I have a problem when trying to rancid h3c switches :
> 
> rancid at jersey:~$ PATH=$PATH:/usr/local/rancid/bin ./bin/rancid -d -t h3c
> sw-hp-hits-stack
> loadtype: device type h3c
> loadtype: found device type h3c at
> /usr/local/rancid/etc/rancid.types.base:595
> loadtype: found device type h3c aliased to h3crancid
> loadtype: device type h3crancid
> loadtype: found device type h3crancid at
> /usr/local/rancid/etc/rancid.types.base:596
> executing h3clogin -t 90 -c"" sw-hp-hits-stack
> sw-hp-hits-stack: missed cmd(s): all commands
> sw-hp-hits-stack: End of run not found
> sw-hp-hits-stack: clean_run is false
> sw-hp-hits-stack: found_end is false
> 
> 
> I don't understand why the "-c" parameter is empty.

An error in your rancid.types.conf file, I presume.  It should resemble
the built-in alteon device type spec.  Maybe try one of the other built-in
device types that most closely resemble your device?

> when running directly h3crancid it works fine :
> rancid at jersey:~$ PATH=$PATH:/usr/local/rancid/bin ./bin/h3crancid -d
> sw-hp-hits-stack -h
> executing h3clogin -t 20 -c"display version;display startup;dir /all
> /all-filesystems;display device;display fan;display power;display
> domain;display local-user;display ssh server status;display ntp-service
> status;display current-configuration" sw-hp-hits-stack
> PROMPT MATCH: <HP-HITS-stack>
> HIT COMMAND:<HP-HITS-stack>display version
>     In CommentOutput: <HP-HITS-stack>display version
> HIT COMMAND:<HP-HITS-stack>display startup
>     In CommentOutput: <HP-HITS-stack>display startup
> HIT COMMAND:<HP-HITS-stack>dir /all /all-filesystems
>     In CommentOutput: <HP-HITS-stack>dir /all /all-filesystems
> HIT COMMAND:<HP-HITS-stack>display device
>     In CommentOutput: <HP-HITS-stack>display device
> HIT COMMAND:<HP-HITS-stack>display fan
>     In CommentOutput: <HP-HITS-stack>display fan
> HIT COMMAND:<HP-HITS-stack>display power
>     In CommentOutput: <HP-HITS-stack>display power
> HIT COMMAND:<HP-HITS-stack>display domain
>     In CommentOutput: <HP-HITS-stack>display domain
> HIT COMMAND:<HP-HITS-stack>display local-user
>     In CommentOutput: <HP-HITS-stack>display local-user
> HIT COMMAND:<HP-HITS-stack>display ssh server status
>     In CommentOutput: <HP-HITS-stack>display ssh server status
> HIT COMMAND:<HP-HITS-stack>display ntp-service status
>     In CommentOutput: <HP-HITS-stack>display ntp-service status
> HIT COMMAND:<HP-HITS-stack>display current-configuration
>     In DisplayCurrent: <HP-HITS-stack>display current-configuration
> sw-hp-hits-stack: clean_run=1 found_end=1
> 
> 
> can anybody telle me where I'm wrong please ?



More information about the Rancid-discuss mailing list