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 also a perl(1) script that operates much like rancid, but is
generic and will eventually obsolete the rancid script. It uses the
device_type specified with the -t option to look-up a device
description that defines what it does to collect and process device
There are scripts complementary to rancid for other platforms and/or
manufacturers that are supported by rancid(1). Briefly, these are:
agmrancid Cisco Anomaly Guard Module (AGM)
arancid Alteon WebOS switches
arrancid Arista Networks devices
brancid Bay Networks (nortel)
cat5rancid Cisco catalyst switches
cssrancid Cisco content services switches
erancid ADC-kentrox EZ-T3 mux
f5rancid F5 BigIPs
fnrancid Fortinet Firewalls
rancid The generic rancid script; supporting Allied Telesis AW+
devices, Arbor Networks Appliances, Cisco IOS, Cisco
IOS-XR, Cisco WLC, Dell switches, Compass EOS, and
Juniper JUNOS. It uses the device O/S modules for
parsing routines. See rancid(3) for details.
hrancid HP Procurve Switches
htranicd Hitachi Routers
prancid Procket Networks
srancid SMC switch (some Dell OEMs)
trancid Netopia sDSL/T1 routers
tntrancid Lucent TNT
xirancid Xirrus arrays
xrancid Extreme switches
xrrancid Cisco IOS-XR boxes
zrancid Zebra routing software
The command-line options are as follows:
-C Prints the login command that would be used to collect data from
-V Prints package name and version strings.
-d Display debugging information.
-h Display a usage line and exit.
-l Display somewhat less debugging information.
-t Device type, of the given host or file, that is defined in
rancid.types.base or rancid.types.conf .
-f 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),
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:
Man(1) output converted with