3-79
User Guide for CiscoWorks Common Services
78-16571-01
Chapter 3 Configuring the Server
Maintaining Log Files
Step 4
Perform log maintenance by entering:
$NMSROOT
/bin/perl
$NMSROOT
/cgi-bin/admin/logBackup.pl
[-force][-dir
destination directory
]
where $NMSROOT is the CiscoWorks installation directory,
[-force]
allows
backup regardless of log file size, and
[-dir
destination directory
]
specifies the
full path of the destination directory.
The target directory must be owned by user casuser and group casusers. The user
must have read, write, and execute permissions, and the group must have at least
read permission.
Otherwise, the program will terminate with an error message, and the log files
will not be updated.
Without any options, the script backs up the log files to the default directory,
PX_LOGDIR/backup.
Step 5
Verify the procedure was successful by examining the contents of the log files in
this location:
/var/adm/CSCOpx/log/*.log
Only log files that reach 90% of their size limits are backed up, and the original
log file is emptied.
Step 6
Restart the system, and enter
/etc/init.d/dmgtd start
Step 7
Select Server > Reports > Log File Status to view your log changes.