![]() |
If data buffering is enabled, console output from managed devices is sent to the syslog daemon but is not stored. This section describes how the root user can manually configure the storage of buffered data either in a directory mounted from an NFS file server or in a PC Flash memory card.
If using an NFS-mounted directory for storage, modify the /etc/fstab file to define the NFS mount point.NOTE: This file does not need to be edited for mounting a compact Flash PCMCIA card, because a compact Flash card is detected and automatically mounted under the /mnt directory when the OnBoard appliance is rebooted after card installation. Device data received by the OnBoard appliance is sent to the syslog-ng daemon, which uses this file. This file can be modified to configure buffered data from all devices to be stored in a single file. See To store buffered data in multiple files, one for each connected device:. Determines what is inserted into the conserver.cf file when a new device is added. This file can be modified to configure buffered data from each device to be stored in a separate file. See To store buffered data in multiple files, one for each connected device:.NOTE: The /usr/sbin/ directory is mounted read-only by default. The procedure describes how you can mount the /usr/sbin/ directory in read-write mode before you can edit the cyc-conserver file. Determines where data buffer files are stored. Because direct user modifications to conserver.cf are lost whenever a new device is added, the cyc.conserver file is modified instead.The example entries configure data buffer storage in an NFS-mounted /mnt/nfs_server/log/device.log file.
3. Put the syslog-ng.conf file changes into effect by stopping and restarting syslog-ng, as shown in the following command line.$ killall -hup syslog-ngThe configuration changes are saved to the appliance’s resident Flash memory if the appliance is booted from a local image.
2. Use the cat command to display the contents of the /proc/cmdline file to find out which boot image is currently running.[root@OnBoard /]# cat /proc/cmdline$ mount -t ext2 -o rw,remount /dev/hda5$ mount -t ext2 -o rw,remount /dev/hda6$ cd /usr/sbin$ vi cyc-conserver
5. NOTE: This example configuration stores the buffered data in separate files according to each device’s alias. Adding devices automatically results in their data being buffered to a device-specific logfile.