This is an old revision of the document!
[server:~] # pkg install ciscoconf
root@server:~# apt-get install rcs root@server:~# apt-get install libpstreams-dev libbsd-dev m4 root@server:~# wget http://downloads.sourceforge.net/project/cosi-nms/CiscoConf/ciscoconf%20ver%201.1/ciscoconf-1.1.tar.gz root@server:~# tar -xvf ciscoconf-1.1.tar.gz root@server:~# cd ciscoconf-1.1/ root@server:~/ciscoconf-1.1# rcsdiff Makefile
30c30 < GID=wheel --- > GID=root 33,34c33,34 < CFLAGS+=-DHAVE_SETPROCTITLE -DHAVE_SYSLOGFACILITYNAMES -DHAVE_VSYSLOG -DNEED_LIBUTIL < LIBS+=-lutil --- > #CFLAGS+=-DHAVE_SETPROCTITLE -DHAVE_SYSLOGFACILITYNAMES -DHAVE_VSYSLOG -DNEED_LIBUTIL > #LIBS+=-lutil 37c37 < #CFLAGS+=-DHAVE_SYSLOGFACILITYNAMES -DHAVE_VSYSLOG --- > CFLAGS+=-DHAVE_SYSLOGFACILITYNAMES -DHAVE_VSYSLOG
root@server:~/ciscoconf-1.1# rcsdiff ciscoconfd.c
147c147 < p->offset = (fpos_t) 0; --- > // p->offset = (fpos_t) 0; 152c152 < p->offset = (fpos_t) 0; --- > // p->offset = (fpos_t) 0; 275c275 < cfg.head.offset = (fpos_t) 0; --- > // cfg.head.offset = (fpos_t) 0; 390c390 < p->offset = (long) 0; --- > // p->offset = (long) 0;
root@server:~/ciscoconf-1.1# rcsdiff ciscoconfr.sh
5c5 < PATH=/usr/bin:/usr/local/bin --- > PATH=/bin:/usr/bin:/usr/local/bin
root@server:~/ciscoconf-1.1# mkdir /usr/local/man/man8 root@server:~/ciscoconf-1.1# make install
server# cat /etc/rc.local
... /usr/local/bin/ciscoconfd -t 20 -u root -r /usr/local/bin/ciscoconfr /var/log/cisco.log exit 0
server# /usr/local/bin/ciscoconfd -t 20 -u root -r /usr/local/bin/ciscoconfr /var/log/cisco.log server# tail -f /var/log/cisco.log server# rlog /usr/local/lib/cisco/router.confg или server# rlog /usr/local/share/cisco/router.confg
Примечание:
/usr/local/bin/ciscoconfd -p /var/run/ciscoconfd.pid -s local0 -t 20 -u root -r /usr/local/bin/ciscoconfr /var/log/cisco.log