rancid man page
rancid — Cisco configuration filter
rancid [-dlCV] [-t device_type] (-f filename | hostname)
rancid [-dhlCV] -t device_type (-f filename | hostname)
rancid is a collection of perl(1) scripts which uses the login scripts (see clogin(1)) to login to a device, execute commands to display the configuration, etc, then filters the output for formatting, security, and so on. rancid's product is a file with the name of it's last argument plus the suffix .new. For example, hostname.new.
rancid is a perl(1) script that operates much like the vendor-specific rancid script of pre-3.0 releases, but is generic and will eventually obsolete the vendor-specific rancid scripts. It uses the device_type specified with the -t option to look-up a device description (see rancid.types.conf(5)) that defines what it does to collect and process device information.
There are scripts complementary to rancid for other platforms and/or manufacturers that are supported by rancid(1). Briefly, these are:
Cisco Anomaly Guard Module (AGM)
Alteon WebOS switches
Arista Networks devices
Bay Networks (nortel)
Cisco catalyst switches
Cisco content services switches
ADC-kentrox EZ-T3 mux
The generic rancid script; supporting Allied Telesis AW+ devices, Arbor Networks Appliances, Ciena Waverserver, Cisco IOS, Cisco IOS-XR, Cisco NX-OS, Cisco WLC, (some) Dell switches, Extreme switches, Foundry (aka some Brocade) devices, Compass EOS, Juniper JUNOS, and UBNT Edgemax and EdgeRouter. It uses the device O/S modules for parsing routines as determined by the rancid.types.conf(5) file(s). Also see rancid(3) for details.
HP Procurve Switches
Juniper Networks E-series
SMC switch (some Dell OEMs)
Netopia sDSL/T1 routers
Zebra routing software
The command-line options are as follows:
Prints the login command that would be used to collect data from the device.
Prints package name and version strings.
Display debugging information.
Display a usage line and exit.
Display somewhat less debugging information.
Device type, of the given host or file, that is defined in rancid.types.base or rancid.types.conf .
rancid should interpret the next argument as a filename which contains the output it would normally collect from the device ( hostname) with clogin(1).
control_rancid(1), clogin(1), rancid.conf(5), rancid.types.conf(5), rancid(3)
Cisco IOS offers a DHCP server that maintains a text database which can be stored remotely or on local storage. If stored locally, the file changes constantly and causes constant diffs from rancid. If this file's name ('ip dhcp database') matches the regex dhcp_[^[:space:].].txt, it will be filtered. For Catalyst switches running CatOS, type cat5, the prompt must end with '>'. clogin(1) looks for '>' to determine when a login is successful. For example:
cat5k> cat5k> enable Password: cat5k> (enable)
rancid works on Cisco Catalyst 1900 series switches that are running Enterprise Edition software. This software provides a menu at connection time that allows a command line interface to be used by entering 'K' at the prompt.
rancid(3), rancid.conf(5), rancid_intro(1), rancid-run(1), rancid.types.conf(5), router.db(5).
The man pages agmrancid(1), anrancid(1), arancid(1), arrancid(1), avorancid(1), brancid(1), cat5rancid(1), cssrancid(1), erancid(1), f10rancid(1), f5rancid(1), fnrancid(1), hrancid(1), htrancid(1), jerancid(1), mrancid(1), mtrancid(1), nrancid(1), nsrancid(1), nxrancid(1), prancid(1), rivrancid(1), rrancid(1), srancid(1), trancid(1), xirancid(1) and zrancid(1) are aliases of rancid(1).