[rancid] backup issue while taking backup for BTI switch

Usman Ahmad usman.hfd at gmail.com
Tue Jan 3 07:10:14 UTC 2017


*Dear RANCID Members, *

I have switches from the vendor i.e BTI which isn't supported by default in
rancid tool but i did modify the juniper scripts (jlogin & jrancid -->
btilogin & btirancid) to make it done. But i am having some issues. Please
review and support.

*btilogin *script is working absolutely fine and it gives the all given
commands output

/var/lib/rancid/bin/btilogin -t 90 -c"show environment;show clock;show
running-config" bti-switch-01

it logins to the switch and close session properly without and error. but
when i am running it through rancid-run, it stucks and create file with
bti-switch-01.new with following content only.

$ cat 10.255.255.232.new
# RANCID-CONTENT-TYPE: BTI
#

later on i had set environment variable export NOPIPE=YES and run
`/var/lib/rancid/bin/jrancid -d bti-switch-01` and it create two files.
bti-switch-01.new & bti-switch-01.raw.
.new was is having the same content as given above and .raw file was having
the all commands output without any error.

Then i had tried to run rancid-run command keeping the NOPIPE=YES and this
time found the following contents in bti-switch-01.raw & same one line in
.new file.

*spawn ssh -c 3des -x -l rancid bti-switch-01*
*rancid at bti-switch-01's password:*
*No entry for terminal type "network";*
*using dumb terminal settings.*

*No entry for terminal type "network";*
*using dumb terminal settings.*

may be i need to set some terminal setting in the scripts. please do
support that how can i solve this issue.

*--*
*Regards,*
Usman Ahmad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20170103/0893608d/attachment.html>


More information about the Rancid-discuss mailing list