Cisco Headend Digital Broadband Delivery System Guida Utente
Chapter 14 Preserve Log Files with the preserveLog Utility
122
4020694 Rev B
Place the preserveLog Utility Into cron
This section describes how to place an entry for the preserveLog utility into the
crontab file of the DNCS, commonly referred to as the "cron" file. When run from
cron, the utility executes automatically at a pre-defined interval, without user
intervention.
crontab file of the DNCS, commonly referred to as the "cron" file. When run from
cron, the utility executes automatically at a pre-defined interval, without user
intervention.
Tip: The log files for the drm, dsm, qamManager, and xod processes of the DBDS
are especially susceptible to "rolling over" before anyone has had an opportunity to
review the contents of the files. The log files for these processes are especially suited
for having a cron entry for the preserveLog process save their contents.
are especially susceptible to "rolling over" before anyone has had an opportunity to
review the contents of the files. The log files for these processes are especially suited
for having a cron entry for the preserveLog process save their contents.
Placing the preserveLog Utility Into cron
An entry for the preserveLog utility can be placed into cron in order to run the utility
on a regular basis, without user intervention.
on a regular basis, without user intervention.
Note: Log files for the dsm, drm, qamManager, and xod processes tend to roll over
rapidly. It may make sense for system operators to create a cron entry that saves the
log files for these processes.
rapidly. It may make sense for system operators to create a cron entry that saves the
log files for these processes.
Important: Do not attempt to edit the crontab file on the DNCS unless you are a
skilled user of the UNIX vi text editor and are familiar with how cron entries are
structured.
1 If necessary, open an xterm window on the DNCS.
2 Type export EDITOR=vi and then press Enter.
3 Type crontab -e and then press Enter. The crontab file opens for editing using
skilled user of the UNIX vi text editor and are familiar with how cron entries are
structured.
1 If necessary, open an xterm window on the DNCS.
2 Type export EDITOR=vi and then press Enter.
3 Type crontab -e and then press Enter. The crontab file opens for editing using
the UNIX vi text editor.
4 Append an entry in the crontab file similar to the following example for the
preserveLog utility:
00,10,20,30,40,50 * * * *
/dvs/dncs/bin/preserveLog.ksh < logname > < logname > < logname > 2>&1
Example: A cron entry that preserves the log files of the dsm, drm, qamManager,
and xod processes every 10 minutes would be structured similarly to:
00,10,20,30,40,50 * * * *
/dvs/dncs/bin/preserveLog.ksh dsm drm qamManager xod 2>&1
00,10,20,30,40,50 * * * *
/dvs/dncs/bin/preserveLog.ksh < logname > < logname > < logname > 2>&1
Example: A cron entry that preserves the log files of the dsm, drm, qamManager,
and xod processes every 10 minutes would be structured similarly to:
00,10,20,30,40,50 * * * *
/dvs/dncs/bin/preserveLog.ksh dsm drm qamManager xod 2>&1
5 Save the crontab file and close the UNIX vi editor.