[rancid] Adding JunOS Commands

Baird, Josh jbaird at follett.com
Mon Oct 5 15:32:10 UTC 2015

Thanks, I copied the following block from /etc/rancid/rancid.types.base to /etc/rancid/rancid.types.conf:

juniper;script;rancid -t juniper
juniper;command;junos::ShowChassisClocks;show chassis clocks
juniper;command;junos::ShowChassisEnvironment;show chassis environment
juniper;command;junos::ShowChassisFirmware;show chassis firmware
juniper;command;junos::ShowChassisFpcDetail;show chassis fpc detail
juniper;command;junos::ShowChassisHardware;show chassis hardware detail
juniper;command;junos::ShowChassisHardware;show chassis hardware models
juniper;command;junos::ShowChassisRoutingEngine;show chassis routing-engine
juniper;command;junos::ShowChassisSCB;show chassis scb
juniper;command;junos::ShowChassisSCB;show chassis sfm detail
juniper;command;junos::ShowChassisSCB;show chassis ssb
juniper;command;junos::ShowChassisSCB;show chassis feb detail
juniper;command;junos::ShowChassisSCB;show chassis feb
juniper;command;junos::ShowChassisSCB;show chassis cfeb
juniper;command;junos::ShowChassisAlarms;show chassis alarms
juniper;command;junos::ShowSystemLicense;show system license
juniper;command;junos::ShowSystemBootMessages;show system boot-messages
juniper;command;junos::ShowSystemCoreDumps;show system core-dumps
juniper;command;junos::ShowVersion;show version detail
juniper;command;junos::ShowConfiguration;show configuration

Then, I added the following line to the bottom of /etc/rancid/rancid.types.conf:

juniper;command;junos::ShowConfigurationOmit;show configuration | display omit

Does this look correct?  The new command is not being ran.



> -----Original Message-----
> From: heasley [mailto:heas at shrubbery.net]
> Sent: Monday, October 05, 2015 11:23 AM
> To: Baird, Josh
> Cc: rancid-discuss at shrubbery.net
> Subject: Re: [rancid] Adding JunOS Commands
> Mon, Oct 05, 2015 at 03:00:13PM +0000, Baird, Josh:
> > Hi,
> >
> > I use configuration groups in JunOS, so I would like to add 'show
> configuration | display inheritance no comments' to the list of commands
> that gets executed against Juniper devices.  Can someone point me in the
> right direction?
> use rancid 3.2, see rancid.type.conf(5).

More information about the Rancid-discuss mailing list