<div dir="ltr">hi Heasley,<div>I don't understand why you talk about alteon.</div><div><br></div><div><br><div>tried to add that in rancid.types.conf</div><div><br></div><div># HP Comware<br>h3c;alias;h3crancid<br>h3crancid;script;rancid -t h3crancid<br>h3crancid;login;h3clogin<br>h3crancid;module;h3crancid<br>h3crancid;inloop;h3crancid::inloop<br>h3crancid;command;h3crancid::DisplayCurrent;display current-configuration<br></div></div><div><br></div><div>but I get this error :</div><div>loadtype: undefined function in h3crancid: h3crancid::DisplayCurrent<br>Couldn't load device type spec for h3c<br></div><div><br></div><div>what I don't understand is why it works correctly wen calling : </div>PATH=$PATH:/usr/local/rancid/bin ./bin/h3crancid -d sw-hp-hits-stack -h<div><br></div><div><br></div><div>I found this too : <a href="https://sites.google.com/site/jrbinks/code/rancid/cmwrancid">https://sites.google.com/site/jrbinks/code/rancid/cmwrancid</a> but it's quite old (2015)</div><div>Regards</div><div>Cédric<br><div><br></div><div>Regards</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 6 déc. 2021 à 19:22, heasley <<a href="mailto:heas@shrubbery.net">heas@shrubbery.net</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Mon, Dec 06, 2021 at 10:46:39AM +0100, BASSAGET Cédric:<br>
> Hello,<br>
> I have a problem when trying to rancid h3c switches :<br>
> <br>
> rancid@jersey:~$ PATH=$PATH:/usr/local/rancid/bin ./bin/rancid -d -t h3c<br>
> sw-hp-hits-stack<br>
> loadtype: device type h3c<br>
> loadtype: found device type h3c at<br>
> /usr/local/rancid/etc/rancid.types.base:595<br>
> loadtype: found device type h3c aliased to h3crancid<br>
> loadtype: device type h3crancid<br>
> loadtype: found device type h3crancid at<br>
> /usr/local/rancid/etc/rancid.types.base:596<br>
> executing h3clogin -t 90 -c"" sw-hp-hits-stack<br>
> sw-hp-hits-stack: missed cmd(s): all commands<br>
> sw-hp-hits-stack: End of run not found<br>
> sw-hp-hits-stack: clean_run is false<br>
> sw-hp-hits-stack: found_end is false<br>
> <br>
> <br>
> I don't understand why the "-c" parameter is empty.<br>
<br>
An error in your rancid.types.conf file, I presume.  It should resemble<br>
the built-in alteon device type spec.  Maybe try one of the other built-in<br>
device types that most closely resemble your device?<br>
<br>
> when running directly h3crancid it works fine :<br>
> rancid@jersey:~$ PATH=$PATH:/usr/local/rancid/bin ./bin/h3crancid -d<br>
> sw-hp-hits-stack -h<br>
> executing h3clogin -t 20 -c"display version;display startup;dir /all<br>
> /all-filesystems;display device;display fan;display power;display<br>
> domain;display local-user;display ssh server status;display ntp-service<br>
> status;display current-configuration" sw-hp-hits-stack<br>
> PROMPT MATCH: <HP-HITS-stack><br>
> HIT COMMAND:<HP-HITS-stack>display version<br>
>     In CommentOutput: <HP-HITS-stack>display version<br>
> HIT COMMAND:<HP-HITS-stack>display startup<br>
>     In CommentOutput: <HP-HITS-stack>display startup<br>
> HIT COMMAND:<HP-HITS-stack>dir /all /all-filesystems<br>
>     In CommentOutput: <HP-HITS-stack>dir /all /all-filesystems<br>
> HIT COMMAND:<HP-HITS-stack>display device<br>
>     In CommentOutput: <HP-HITS-stack>display device<br>
> HIT COMMAND:<HP-HITS-stack>display fan<br>
>     In CommentOutput: <HP-HITS-stack>display fan<br>
> HIT COMMAND:<HP-HITS-stack>display power<br>
>     In CommentOutput: <HP-HITS-stack>display power<br>
> HIT COMMAND:<HP-HITS-stack>display domain<br>
>     In CommentOutput: <HP-HITS-stack>display domain<br>
> HIT COMMAND:<HP-HITS-stack>display local-user<br>
>     In CommentOutput: <HP-HITS-stack>display local-user<br>
> HIT COMMAND:<HP-HITS-stack>display ssh server status<br>
>     In CommentOutput: <HP-HITS-stack>display ssh server status<br>
> HIT COMMAND:<HP-HITS-stack>display ntp-service status<br>
>     In CommentOutput: <HP-HITS-stack>display ntp-service status<br>
> HIT COMMAND:<HP-HITS-stack>display current-configuration<br>
>     In DisplayCurrent: <HP-HITS-stack>display current-configuration<br>
> sw-hp-hits-stack: clean_run=1 found_end=1<br>
> <br>
> <br>
> can anybody telle me where I'm wrong please ?<br>
</blockquote></div>