If you do the “NOPIPE” thing and run rancid with the -d flag, that will create two files: .new, and .raw. Examine the .raw file, which is the byte-for-byte capture of the CLI session. weylin
From: Kevin Morales <[email protected]> Date: Wednesday, July 3, 2019 at 1:24 PM To: john heasley <[email protected]> Cc: Nick Nauwelaerts <[email protected]>, Weylin Piegorsch <[email protected]>, "[email protected]" <[email protected]> Subject: Re: [rancid] Unable to figure out "end of run not found" ok, but rancid do not save the output of command., How I can fix this problem? On Wed, Jul 3, 2019 at 11:12 AM john heasley <[email protected]<mailto:[email protected]>> wrote: Wed, Jul 03, 2019 at 07:48:09AM -0600, Kevin Morales: > Hello!, > > How I can fix the problem when I run rancid for ZTE Router?. I get this > error: *End of run not found* > > the two file 172.17.1.6.new and 172.17.1.6.raw don't show any error!. > > NOPIPE=yes ./rancid -d -t cisco 172.17.1.6 > > loadtype: device type cisco > loadtype: found device type cisco in /usr/local/rancid/etc/rancid.types.base > executing clogin -t 90 -c"show version;show install active;show vlan;show > running-config" 172.17.1.6 > PROMPT MATCH: RT-ZTE# > HIT COMMAND: RT-ZTE #show version > In ShowVersion: RT-ZTE #show version > HIT COMMAND: RT-ZTE #show install active > In ShowInstallActive: RT-ZTE #show install active > HIT COMMAND: RT-ZTE #show vlan > In ShowVLAN: RT-ZTE #show vlan > HIT COMMAND: RT-ZTE #show running-config > In WriteTerm: RT-ZTE #show running-config > *172.17.1.6 <http://172.17.1.6>: End of run not found* > 172.17.1.6<http://172.17.1.6>: clean_run is false > 172.17.1.6<http://172.17.1.6>: found_end is false > !</isis> found end means that it found the end of the config; for type cisco, that means "^end". clean run means that it found the cli logout; for type cisco, that means "prompt[>#] exit$" -- Kevin Morales
_______________________________________________ Rancid-discuss mailing list [email protected] http://www.shrubbery.net/mailman/listinfo/rancid-discuss
