3-81
User Guide for CiscoWorks Common Services
78-16571-01
Chapter 3 Configuring the Server
Maintaining Log Files
Using Logrot
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.
Configuring Logrot
To configure logrot:
Step 1
Enter NMSROOT\
bin\perl.exe
NMSROOT
\bin\logrot.pl -c
(On Windows)
Run
/opt/CSCOpx/bin/logrot.pl -c
(On UNIX)
The logrot configuration menu appears. You have the following options:
1.
Edit variables.
2.
Edit log files.
3.
Quit and save changes.
4.
Quit without saving change.
Step 2
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.
Step 3
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).
Step 4
Specify the number of archive revisions. If you do not want to keep any archives,
enter
0
(the default) for this option.
Содержание CISCOWORKS COMMON SERVICES 3.0
Страница 216: ...Chapter 6 Using Device Center Performing Management Tasks 6 16 User Guide for CiscoWorks Common Services 78 16571 01 ...
Страница 226: ...Chapter 7 Working With Software Center Viewing Activity Logs 7 10 User Guide for CiscoWorks Common Services 78 16571 01 ...
Страница 274: ...Appendix A Understanding CiscoWorks Security Server Security A 12 User Guide for CiscoWorks Common Services 78 16571 01 ...