I've got a server that is already collecting configs from Cisco switches and routers and I'd like to avoid using clogin (another list to manage when provisioning, plain text passwords, et cetera). As the configs are already there, I was hoping to just run rancid with the -f command against them and make magic happen.<div>
<br></div><div>Unfortunately, I seem to be missing something. Every time I run rancid with -f, I get "missed cmd(s)" with the full list of commands from the perl script, and "End of run not found." I've confirmed that the scripts themselves seem to work directly against the devices by temporarily setting up a clogin entry. However, even when trying to use the .new file generated by clogin rancid bails with the same errors.</div>
<div><br></div><div>Am I missing something entirely? I've spent the last 6-ish hours scouring google and the mailman archives for some clue, but it seems like I'm the only one having this issue or trying to do things this way. Any help appreciated.</div>
<div><br></div><div>Rancid 2.3.6</div><div>Expect 5.44.1.15</div><div>RHEL6.3</div><div><br></div><div>Full output from -d run:</div><div><br></div>[rancid@rhel ~]$ rancid -d -f switch-test<br>opening file switch-test<br>
switch-test: missed cmd(s): dir /all slavedisk2:,show rsp<br>chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr<br>chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all<br>sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show<br>
install active,show bootvar,dir /all slaveslot0:,dir /all<br>sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all<br>sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all<br>harddiskb:,show variables boot,show boot,show inventory raw,dir /all<br>
slavedisk1:,show env all,show module,show controllers,show diagbus,more<br>system:running-config,dir /all slavedisk0:,show debug,show idprom<br>backplane,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write<br>
term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all<br>harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all<br>slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all<br>nvram:,show version,show vlan-switch,show redundancy secondary,show<br>
running-config,show c7200,dir /all slot1:<br>switch-test: missed cmd(s): dir /all slavedisk2:,show rsp<br>chassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr<br>chassis,dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all<br>
sec-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show<br>install active,show bootvar,dir /all slaveslot0:,dir /all<br>sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all<br>sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all<br>
harddiskb:,show variables boot,show boot,show inventory raw,dir /all<br>slavedisk1:,show env all,show module,show controllers,show diagbus,more<br>system:running-config,dir /all slavedisk0:,show debug,show idprom<br>backplane,dir /all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write<br>
term,show vtp status,dir /all sup-bootflash:,dir /all slot2:,dir /all<br>harddisk:,dir /all slot0:,dir /all sup-microcode:,show vlan,dir /all<br>slavebootflash:,show controllers cbus,dir /all slaveslot1:,dir /all<br>nvram:,show version,show vlan-switch,show redundancy secondary,show<br>
running-config,show c7200,dir /all slot1:<br>switch-test: End of run not found<br>switch-test: End of run not found<br>!<br>[rancid@rhel ~]$