|
NAMEciscoconfdSYNOPSISciscoconfd [ -s facility ] [ -p pidfile ] [ -u user ] [ -g group ] [ -t seconds ] -r program logfile...AVAILABILITYThis program has been compiled successfully on FreeBSD 2.2.6-RELEASE, Linux RedHat 4.2, Solaris 2.5.1, IRIX 5.3 and HP/UX 10.20. Feedback regarding other platforms is welcome.DESCRIPTIONciscoconfd will tail a number of specified log files, which contain lines in syslog format originating from a Cisco router. Whenever a line containing the magic token `%SYS-5-CONFIG_I' is found, an external process is spawned to retrieve the configuration.ciscoconfd is very light on system resources, and spends the vast majority of its time sleeping. In between successive reads of log files, file descriptors are freed. Log rotation is dealt with in an elegant way. This external process is passed two parameters: the first indicates the name of the router which logged the configuration change, and the second is the entire log message containing the magic token. Options for ciscoconfd are as follows:
LOGGINGciscoconfd sends log messages to the specified syslog facility using the following levels:
EXAMPLESciscoconfd -s local6 -t 60 -r /usr/local/bin/ciscoconfr /var/log/cisco.logciscoconfd -s local3 -p /var/run/ciscoconfd.pid -t 60 -r /usr/local/bin/ciscoconfr /var/log/cisco*.log VERSION1.00 (6 Apr 1998)More recent versions may be available; check for details at http://www.patho.gen.nz/~jabley/ BUGSIf a router configuration has changed several times within the specified interval, it will only be fetched once. The log message passed to the retrieval program corresponds to the first "%SYS-5-CONFIG_I" entry found for a particular router.SEE ALSOciscoconfr(8), syslog.conf(5)AUTHORJoe Abley <jabley@automagic.org>
Visit the GSP FreeBSD Man Page Interface. |