Using Logrot; Configuring Logrot - Cisco CISCOWORKS COMMON SERVICES 3.0 User Manual

Hide thumbs Also See for CISCOWORKS COMMON SERVICES 3.0:
Table of Contents

Advertisement

Chapter 3
Configuring the Server

Using Logrot

Configuring Logrot

Step 1
Step 2
Step 3
Step 4
78-16571-01
The logrot utility helps you manage the log files in a better fashion.
Logrot is a log rotation program that can:
Rotate log when CiscoWorks is running.
Optionally archive and compress rotated logs.
Rotate log only when it has reached a particular size.
Logrot helps you add new files easily. Logrot should be installed on the same
machine where you have installed Common Services.
To configure logrot:
Enter NMSROOT\
bin\perl.exe
Run
/opt/CSCOpx/bin/logrot.pl -c
The logrot configuration menu appears. You have the following options:
Edit variables.
1.
Edit log files.
2.
Quit and save changes.
3.
Quit without saving change.
4.
Select Edit variables option to set your Backup Directory.
If you do not set a backup directory, each log will be rotated in its current
directory.
Select Edit log files option to add log files you wish logrot to rotate.
You can specify log files using fully-qualified or relative paths. If a relative path
is specified, and the log file does not exist in that path, the default log file path for
your operating system will be added during rotation (for example,
/var/adm/CSCOpx/log on UNIX).
Specify the number of archive revisions. If you do not want to keep any archives,
enter
(the default) for this option.
0
NMSROOT
\bin\logrot.pl -c
(On UNIX)
User Guide for CiscoWorks Common Services
Maintaining Log Files
(On Windows)
3-81

Advertisement

Table of Contents
loading

Table of Contents