|
NAMErancid-run - run rancid for each of the groupsSYNOPSISrancid-run [-V] [-c commit_msg] [-f rancid.conf] [-m mail_rcpt] [-r device_name] [group [group ...]]DESCRIPTIONrancid-run is a sh(1) script to run rancid(1) for a set of rancid group(s).rancid-run reads rancid.conf(5) to configure itself, then uses control_rancid(1) to run rancid(1) for each rancid group. The set of rancid groups can either be provided as command-line arguments or via the LIST_OF_GROUPS variable in rancid.conf(5), if the group argument is omitted. A lock file is maintained per-group to prevent simultaneous runs for a given group by rancid-run(1). The lock file will be named .<group>.run.lock and will be located in $TMPDIR (see below). A log file is produced under $LOGDIR/logs for each rancid group processed. The file name will be <group>.YYYYMMDD.HHMMSS (year month day . hour minute second). rancid-run is normally used to run rancid from cron(8). For example:
0 * * * * /usr/local/rancid/bin/rancid-run The command-line options are as follows:
ENVIRONMENTrancid-run utilizes the following environment variables from rancid.conf(5).
ERRORSIf rancid fails to run or collect a device's configuration, the particular group's log file (mentioned above) should be consulted. Any errors produced by the revision control system (CVS, Subversion, or git) or any of the rancid scripts should be included there, whether they be a botched cvs tree, login authentication failure, rancid configuration error, etc. If the log file produces no clues, the next debugging step should be run the commands manually. For example, can the user who runs rancid login to the device with 'clogin hostname', and so on.FILES
SEE ALSOcontrol_rancid(1), rancid.conf(5), router.db(5)CAVEATSDO NOT leave temporary files in the <group name>/configs directory, they WILL be removed by control_rancid(1).
Visit the GSP FreeBSD Man Page Interface. |