[rancid] Adding Junos show configuration | display set in rancid 3.5.1

Yuval Ben Ari ybenari at varonis.com
Sat Sep 17 15:36:40 UTC 2016


Thanks! It's working now.
Any chance to add this feature to next releases?

-----Original Message-----
From: heasley [mailto:heas at shrubbery.net]
Sent: 17 September 2016 18:12
To: Yuval Ben Ari <ybenari at varonis.com>
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Adding Junos show configuration | display set in rancid 3.5.1

Sat, Sep 17, 2016 at 03:05:52PM +0000, Yuval Ben Ari:
> I am trying to add Junos "show configuration | display set" to juniper devicetype in 3.5.1 like I had before.
> Based on suggestions here: http://www.shrubbery.net/pipermail/rancid-discuss/2009-October/004320.html
>
> But getting the following:
> $ ./bin/rancid -t myjuniper -d myswitch
> loadtype: device type myjuniper
> loadtype: found device type myjuniper in /usr/local/rancid/etc/rancid.types.conf
> executing jlogin -t 120 -c"show chassis environment;show chassis firmware;show chassis fpc detail;show chassis hardware detail;show chassis hardware models;show chassis routing-engine;show chassis alarms;show system license;show system core-dumps;show version detail;show version invoke-on other-routing-engine;show configuration;show configuration | display set" myswitch
> [...output trimmed...]
> HIT COMMAND:rancid at MYSWITCH> show configuration | display set
>     In ShowConfigurationDisplaySet: rancid@ MYSWITCH > show configuration | display set
> readline() on unopened filehandle INPUT at /usr/local/rancid/lib/rancid/myjunos.pm line 640.

$INPUT

> Use of uninitialized value $_ in pattern match (m//) at /usr/local/rancid/lib/rancid/myjunos.pm line 136.
> Use of uninitialized value $_ in pattern match (m//) at /usr/local/rancid/lib/rancid/myjunos.pm line 141.
>
> Can someone help?
________________________________
This email and any attachments thereto may contain private, confidential, and privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto.



More information about the Rancid-discuss mailing list