rancid(1)
π rancid(1) β Cisco configuration filter π
okay so hi bestie π this is the rancid(1) page from the General Commands Manual, and we're about to make it make sense. no cap.
πΈ NAME πΈ
rancid β Cisco configuration filter
π§ SYNOPSIS π§
rancid [-dlCV] [-t device_type] (-f filename | hostname)
rancid [-dhlCV] -t device_type (-f filename | hostname)
β¨ DESCRIPTION β¨
okay so rancid is a collection of perl(1) scripts which use 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 forth. rancid's product is a file with the name of its 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. it's giving generic-iconic, fr fr π¦
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 switchesbrancidβ Bay Networks (nortel)cat5rancidβ Cisco catalyst switchescssrancidβ Cisco content services switcheserancidβ ADC-kentrox EZ-T3 muxf5rancidβ F5 BigIPsrancidβ The genericrancidscript; supporting Allied Telesis AW+ devices, Arbor Networks Appliances, Arista EOS, Ciena Waverserver, Cisco IOS, Cisco IOS-XR, Cisco NX-OS, Cisco WLC, (some) Dell switches, Extreme switches, Fortinet firewalls, Force10 (aka Dell NOS9), Foundry (aka some Brocade) devices, FRR Routing S/W (formerly Quagga or Zebra), Juniper JunOS and JunOS EVO, Nokia (Alcatel-Lucent) SR OS, and UBNT Edgemax and EdgeRouter, and SMC (some Dell switches). It uses the device O/S modules for parsing routines as determined by therancid.types.conf(5)file(s). Also seerancid(3)for details.hrancidβ HP Procurve Switcheshtranicdβ Hitachi Routersjerancidβ Juniper Networks E-seriesmrancidβ MRTdnrancidβ Netscreen firewallsnsrancidβ Netscalerrivrancidβ Riverstonerrancidβ Redbacktrancidβ Netopia sDSL/T1 routersxirancidβ Xirrus arrays
If rancid is run for a device type whose script, as defined in rancid.types.base or rancid.types.conf, is not rancid, then that script will be exec(2)'d π
π οΈ OPTIONS π οΈ
okay so the command-line options are as follows, bestie:
-Cβ Prints the login command that would be used to collect data from the device.-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 inrancid.types.baseorrancid.types.conf.-fβrancidshould interpret the next argument as a filename which contains the output it would normally collect from the device (hostname) withclogin(1).
π¦ SEE ALSO π¦
go peek at these too, bestie: control_rancid(1), clogin(1), rancid.conf(5), rancid.types.conf(5), and rancid(3).
π CAVEATS π
okay, caveat time β listen up because these are important. 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. no cap, that regex is doing the most.
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.
xoxo π this rancid(1) page is dated 22 April 2020 β footer tea delivered, periodt β¨
π¦ where this page comes from
- alpine 3.24: rancid-doc 3.14-r0 Β· BSD-3-Clause-No-Nuclear-License-2014
- epel 9: rancid 3.13-7.el9 Β· BSD with advertising
- fedora 43: rancid 3.13-16.fc43 Β· BSD-3-Clause
- fedora 43: rancid 3.14-1.fc43 Β· BSD-3-Clause
- fedora 44: rancid 3.13-17.fc44 Β· BSD-3-Clause
- fedora 44: rancid 3.14-1.fc44 Β· BSD-3-Clause
- nixos 26.05: rancid 3.13
- nixpkgs unstable: rancid 3.13
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms