The sysutils/rancid port
rancid-3.13p0v0 – Really Awesome New Cisco confIg Differ (cvsweb github mirror)
Description
RANCID monitors a router's (or more generally a device's) configuration, including software and hardware (cards, serial numbers, etc) and uses CVS (Concurrent Version System) to maintain history of changes. RANCID does this by the very simple process summarized here: * login to each device in the router table (router.db) * run various commands to get the information that will be saved * cook the output; re-format, remove oscillating or incrementing data * email any differences (sample) from the previous collection to a mail list * and finally commit those changes to the revision control systemWWW: https://www.shrubbery.net/rancid/
Readme
+----------------------------------------------------------------------- | Running ${PKGSTEM} on OpenBSD +----------------------------------------------------------------------- On OpenBSD, RANCID lives and works in ${LOCALSTATEDIR}, with user id _rancid. Quick Installation Guide (an example): 1) Modify ${SYSCONFDIR}/rancid/rancid.conf. The variable LIST_OF_GROUPS is a space delimited list of router "groups". e.g.: LIST_OF_GROUPS="backbone aggregation switches" 2) Create ${LOCALSTATEDIR}/.cloginrc, with read/write permissions only for the _rancid user, e.g. 0600 or 0640. Review ${TRUEPREFIX}/share/examples/rancid/cloginrc.sample for examples and a good starting point. See also cloginrc(5). Test to make sure that you can login to every router. 3) Set up mail aliases, by modifing /etc/mail/aliases. Rancid sends the diffs and other administrative emails to rancid-and problems to rancid-admin- , where is the "GROUP" of routers. This way you can separate your backbone routers from your access routers or separate based upon network. 4) Initialize RANCID CVS repository with `rancid-cvs' as the _rancid user. This creates all of the necessary directories and config files for each of the groups in LIST_OF_GROUPS and imports them into CVS. This will also need to be run each time a new group is added. Do not create the directories or CVS repository manually, allow rancid-cvs do it. See also rancid-cvs(1). 5) For each "group", modify the router.db file in the group directory. The file is of the form "router;mfg;state", where "router" is the name (we use FQDN) of the router, mfg is the manufacturer from the set of (cat5|cisco|juniper), and "state" is either up or down. Each router listed as "up" will have the configuration grabbed. Note: manufacturer cat5 is intended only for cisco catalyst switches running catalyst (not IOS) code. See also router.db(5). 6) For first-time users or new installations, run `rancid-run' (with no arguments) as the user _rancid and check the resulting log file(s) (in ${LOCALSTATEDIR}/logs/*) for errors. Repeat until there are no errors. 7) Put `rancid-run' in _rancid's crontab to be called however often you want it to run for each group (rancid-run [ ]). If you run it less often than once/hour, check the setting of OLDTIME in ${SYSCONFDIR}/rancid/rancid.conf. Example: # run config differ hourly 1 * * * * ${TRUEPREFIX}/bin/rancid-run # clean out config differ logs 50 23 * * * /usr/bin/find ${LOCALSTATEDIR}/logs -type f -mtime +2 -exec rm {} \;
Maintainer
Pavel Korovin
Categories
Build dependencies
Run dependencies
Files
- /etc/rancid/
- /etc/rancid/rancid.conf
- /etc/rancid/rancid.types.base
- /usr/local/bin/a10login
- /usr/local/bin/agmrancid
- /usr/local/bin/alogin
- /usr/local/bin/anlogin
- /usr/local/bin/arancid
- /usr/local/bin/avologin
- /usr/local/bin/blogin
- /usr/local/bin/brancid
- /usr/local/bin/brlogin
- /usr/local/bin/cat5rancid
- /usr/local/bin/clogin
- /usr/local/bin/control_rancid
- /usr/local/bin/csblogin
- /usr/local/bin/cssrancid
- /usr/local/bin/dllogin
- /usr/local/bin/elogin
- /usr/local/bin/erancid
- /usr/local/bin/f5rancid
- /usr/local/bin/flogin
- /usr/local/bin/fnlogin
- /usr/local/bin/fxlogin
- /usr/local/bin/hlogin
- /usr/local/bin/hpuifilter
- /usr/local/bin/hrancid
- /usr/local/bin/htlogin
- /usr/local/bin/htrancid
- /usr/local/bin/jerancid
- /usr/local/bin/jlogin
- /usr/local/bin/mrancid
- /usr/local/bin/mrvlogin
- /usr/local/bin/mtlogin
- /usr/local/bin/nlogin
- /usr/local/bin/noklogin
- /usr/local/bin/nrancid
- /usr/local/bin/nslogin
- /usr/local/bin/nsrancid
- /usr/local/bin/panlogin
- /usr/local/bin/par
- /usr/local/bin/plogin
- /usr/local/bin/rancid
- /usr/local/bin/rancid-cvs
- /usr/local/bin/rancid-fe
- /usr/local/bin/rancid-run
- /usr/local/bin/rblogin
- /usr/local/bin/rivlogin
- /usr/local/bin/rivrancid
- /usr/local/bin/rrancid
- /usr/local/bin/rtftpcopy
- /usr/local/bin/tlogin
- /usr/local/bin/trancid
- /usr/local/bin/ulogin
- /usr/local/bin/wlogin
- /usr/local/bin/xilogin
- /usr/local/bin/xirancid
- /usr/local/bin/xlogin
- /usr/local/lib/rancid/
- /usr/local/lib/rancid/acos.pm
- /usr/local/lib/rancid/aeos.pm
- /usr/local/lib/rancid/arbor.pm
- /usr/local/lib/rancid/arcos.pm
- /usr/local/lib/rancid/avocent.pm
- /usr/local/lib/rancid/bigip.pm
- /usr/local/lib/rancid/ciscowlc.pm
- /usr/local/lib/rancid/dell.pm
- /usr/local/lib/rancid/dnos10.pm
- /usr/local/lib/rancid/dnos9.pm
- /usr/local/lib/rancid/edgemax.pm
- /usr/local/lib/rancid/edgerouter.pm
- /usr/local/lib/rancid/exos.pm
- /usr/local/lib/rancid/fortigate.pm
- /usr/local/lib/rancid/foundry.pm
- /usr/local/lib/rancid/frr.pm
- /usr/local/lib/rancid/fss2.pm
- /usr/local/lib/rancid/fxos.pm
- /usr/local/lib/rancid/ios.pm
- /usr/local/lib/rancid/iossb.pm
- /usr/local/lib/rancid/iosshtech.pm
- /usr/local/lib/rancid/iosxr.pm
- /usr/local/lib/rancid/junos.pm
- /usr/local/lib/rancid/mrv.pm
- /usr/local/lib/rancid/nxos.pm
- /usr/local/lib/rancid/panos.pm
- /usr/local/lib/rancid/rancid.pm
- /usr/local/lib/rancid/rbt.pm
- /usr/local/lib/rancid/routeros.pm
- /usr/local/lib/rancid/smc.pm
- /usr/local/lib/rancid/sros.pm
- /usr/local/lib/rancid/vrp.pm
- /usr/local/lib/rancid/wavesvros.pm
- /usr/local/man/man1/a10login.1
- /usr/local/man/man1/agmrancid.1
- /usr/local/man/man1/alogin.1
- /usr/local/man/man1/anlogin.1
- /usr/local/man/man1/arancid.1
- /usr/local/man/man1/avologin.1
- /usr/local/man/man1/blogin.1
- /usr/local/man/man1/brancid.1
- /usr/local/man/man1/brlogin.1
- /usr/local/man/man1/cat5rancid.1
- /usr/local/man/man1/clogin.1
- /usr/local/man/man1/control_rancid.1
- /usr/local/man/man1/csblogin.1
- /usr/local/man/man1/cssrancid.1
- /usr/local/man/man1/dllogin.1
- /usr/local/man/man1/elogin.1
- /usr/local/man/man1/erancid.1
- /usr/local/man/man1/f5rancid.1
- /usr/local/man/man1/flogin.1
- /usr/local/man/man1/fnlogin.1
- /usr/local/man/man1/fxlogin.1
- /usr/local/man/man1/hlogin.1
- /usr/local/man/man1/hrancid.1
- /usr/local/man/man1/htlogin.1
- /usr/local/man/man1/htrancid.1
- /usr/local/man/man1/jerancid.1
- /usr/local/man/man1/jlogin.1
- /usr/local/man/man1/mrancid.1
- /usr/local/man/man1/mrvlogin.1
- /usr/local/man/man1/mtlogin.1
- /usr/local/man/man1/nlogin.1
- /usr/local/man/man1/noklogin.1
- /usr/local/man/man1/nrancid.1
- /usr/local/man/man1/nslogin.1
- /usr/local/man/man1/nsrancid.1
- /usr/local/man/man1/panlogin.1
- /usr/local/man/man1/par.1
- /usr/local/man/man1/plogin.1
- /usr/local/man/man1/rancid-cvs.1
- /usr/local/man/man1/rancid-run.1
- /usr/local/man/man1/rancid.1
- /usr/local/man/man1/rblogin.1
- /usr/local/man/man1/rivlogin.1
- /usr/local/man/man1/rivrancid.1
- /usr/local/man/man1/rrancid.1
- /usr/local/man/man1/tlogin.1
- /usr/local/man/man1/trancid.1
- /usr/local/man/man1/ulogin.1
- /usr/local/man/man1/wlogin.1
- /usr/local/man/man1/xilogin.1
- /usr/local/man/man1/xirancid.1
- /usr/local/man/man1/xlogin.1
- /usr/local/man/man3/rancid.3
- /usr/local/man/man5/cloginrc.5
- /usr/local/man/man5/rancid.conf.5
- /usr/local/man/man5/rancid.types.conf.5
- /usr/local/man/man5/router.db.5
- /usr/local/man/man7/lg_intro.7
- /usr/local/man/man7/rancid_intro.7
- /usr/local/share/doc/pkg-readmes/rancid
- /usr/local/share/doc/rancid/
- /usr/local/share/doc/rancid/CHANGES
- /usr/local/share/doc/rancid/COPYING
- /usr/local/share/doc/rancid/FAQ
- /usr/local/share/doc/rancid/README
- /usr/local/share/doc/rancid/UPGRADING
- /usr/local/share/examples/rancid/
- /usr/local/share/examples/rancid/README.misc
- /usr/local/share/examples/rancid/cisco-load.exp
- /usr/local/share/examples/rancid/cisco-reload.exp
- /usr/local/share/examples/rancid/cloginrc.sample
- /usr/local/share/examples/rancid/downreport
- /usr/local/share/examples/rancid/getipacctg
- /usr/local/share/examples/rancid/rancid-cvspurge
- /usr/local/share/examples/rancid/rancid.conf.sample
- /usr/local/share/examples/rancid/rancid.types.base
- /usr/local/share/examples/rancid/rancid.types.conf
- /usr/local/share/examples/rancid/rtrfilter
- /var/rancid/
- @conflict par-*
- @newgroup _rancid:613
- @newuser _rancid:613:_rancid::Rancid user:/var/rancid:/bin/sh