[rancid] lenovo switches

john heasley heas at shrubbery.net
Thu Feb 11 21:08:18 UTC 2021


Wed, Feb 10, 2021 at 10:59:21AM +0100, krashoverride at free.fr:
> Good morning list,
> 
> Has any of you successfully backed-up a Lenovo switch config ?
> I'm trying to figure out what's not working, starting from Cisco templates and adjusting here and there, however it does not work.
> Basically i've created my own "lenovo" manufacturer that only forces a terminal length, then show run commands
> I'm always stuck with this
> 
> Getting missed routers: round 2.
> IP: End of run not found
> end
> IP: End of run not found
> end
> 
> I've tried a lot of debugs things like manually starting my script i.e /usr/local/rancid/bin/ibmclogin -t 90 -c"show vlan;show running-config" IP
> The output shows the commands requested, but always finishes with an End of run not found (while my show run ends with an "end" marker)
> 
> So if anyone already has done a template for lenovo that works (or advices!) i'm interrested!

Section 4 of the rancid FAQ has some useful notes about adding support
for new platforms.

The specific error you have there means that the end of the config in the
output from the device was either not seen or the function that you are
using to process the config did not recognize it as the end of the config.
The IOS and IOS XR configs end with "^end<CR>" and you will find the
function matches on that.  I have no Lenovo switches to compare.



More information about the Rancid-discuss mailing list