<div dir="ltr"><div><div><div>Hi,<br><br></div>I read through this thread ending with no solution<br><a href="http://www.shrubbery.net/pipermail/rancid-discuss/2013-November/007279.html">http://www.shrubbery.net/pipermail/rancid-discuss/2013-November/007279.html</a><br><br></div>Things I have tried:<br><br>Version rancid-3.1-4.el6.x86_64<br><br>0.<br>add to ~rancid/.cloginrc the supermicro-switch settings<br><br>add autoenable supermicro-switch 1<br>add user       supermicro-switch username<br>add password   supermicro-switch password password<br>add method     supermicro-switch ssh<br><br><br>1.<br>clogin shows errors out-of-the-box, this is expected<br><br>rancid $ clogin -c"show version" supermicro-switch<br>supermicro-switch<br>spawn ssh -c 3des -x -l username supermicro-switch<br>username@supermicro-switch's password: <br><br>         Supermicro Switch <br><br>supermicro-switch# <br>supermicro-switch# terminal length 0<br>% Invalid Command<br>supermicro-switch# terminal width 132<br>% Invalid Command<br>supermicro-switch#  show version<br>Switch ID  Hardware Version             Firmware Version  OS Version          <br>0          XXX-XXXX Rev. X   (XX-XX)    X.X.X-X           X.X.X<br>supermicro-switch#exit<br><br>2.<br>copy clogin to smlogin<br><br>root # cp /usr/libexec/rancid/clogin /usr/libexec/rancid/smlogin<br><br>and replace the offending<br>send "terminal length 0\r" and send "terminal width 132\r" with with send "\r"<br><br>After that this returns without errors:<br><br>rancid $ smlogin -c"show version" supermicro-switch<br><br>3. <br>rancid $ rancid -d supermicro-switch<br>loadtype(): device_type is empty<br>Couldn't load device type spec for <br><br>So I add to /etc/rancid/rancid.types.base:<br><br>supermicro;script;rancid -t supermicro<br>supermicro;login;smlogin<br>supermicro;inloop;supermicro::inloop<br>supermicro;command;supermicro::ShowVersion;show version<br>supermicro;command;supermicro::WriteTerm;show running-config<br><br>and then:<br><br>rancid $ rancid -d -t supermicro supermicro-switch<br>loadtype: device type supermicro<br>loadtype: found device type supermicro in /etc/rancid/rancid.types.base<br>executing smlogin -t 90 -c"show version;show running-config" supermicro-switch<br>supermicro-switch: missed cmd(s): all commands<br>supermicro-switch: End of run not found<br>supermicro-switch: End of run not found<br><br>but as we know executing directly on the command line works: smlogin -t 90 -c"show version;show running-config" supermicro-switch<br><br>To further debug I create `cp /usr/libexec/rancid/rancid /usr/libexec/rancid/smrancid` and point to it with<br>supermicro;script;smrancid -t supermicro<br>but my guess is wrong: some other script than /usr/libexec/rancid/smrancid is executed during `rancid -d -t supermicro supermicro-switch`<br><br>How to debug this further?<br><br></div><div>Regards,<br></div><div><br></div>Marcin<br></div>