jerancid for ERX's with "service manual-commit"?
Williamson, Todd
TWilliam at Covad.COM
Fri Sep 3 19:04:50 UTC 2004
Hi there,
Does anyone have experience with using jerancid (under rancid v2.3.1) on
Juniper ERX devices with the "service manual-commit" feature? Use of
this feature on JunOSe 5-1-1 effectively makes the command "show
configuration" non-functional, instead replacing it with "show
running-configuration".
I altered bin/jerancid to issue "show running-configuration exclude
interface atm" instead of "show configuration". I also tried it without
the "exclude interface atm" piece and with a 1200 second timeout (there
are *a lot* of pre-provisioned atm sub-interfaces in our configs).
clogin to the devices works just fine, even with the command set that
jerancid is attempting to run, a la:
*****************
clogin -t 90 -c "show version;show redundancy;show boot;show environment
all;dir;show hardware;show run e i a" somesite-erx1
somesite-erx1
spawn telnet somesite-erx1
[blah blah output blah]
somesite-erx1>exit
Logging out.
Connection closed by foreign host.
*****************
but jerancid's debug output always indicates the following:
*****************
jerancid -d somesite-erx1
executing clogin -t 90 -c"show version;show redundancy;show boot;show
environment all;dir;show hardware;show run e i a" somesite-erx1
PROMPT MATCH: somesite-erx1#
HIT COMMAND:somesite-erx1#show version
In ShowVersion: somesite-erx1#show version
HIT COMMAND:somesite-erx1#show redundancy
In ShowRedundancy: somesite-erx1#show redundancy
HIT COMMAND:somesite-erx1#show boot
In ShowBoot: somesite-erx1#show boot
HIT COMMAND:somesite-erx1#show environment all
In ShowEnv: somesite-erx1#show environment all
HIT COMMAND:somesite-erx1#dir
In DirSlotN: somesite-erx1#dir
somesite-erx1: missed cmd(s): show run e i a,show hardware
somesite-erx1: missed cmd(s): show run e i a,show hardware
somesite-erx1: End of run not found
somesite-erx1: End of run not found
!
*****************
I've googled and searched the mailing list archives, but haven't found a
whole lot related to the ERX support in rancid. I'm a fair newbie to
both Tcl/Tk (brand new) and Perl (not quite so new), so I'm hoping that
someone might be able to point me in the right direction.
Thanks in Advance,
Todd Williamson
More information about the Rancid-discuss
mailing list