Chapter 3 Configuring the Server
Maintaining Log Files
3-80
User Guide for CiscoWorks Common Services
78-16571-01
Maintaining Log Files on Windows
To maintain log files on Windows:
Step 1
Make sure the new location has sufficient disk space.
Step 2
At the command line, make sure you have the correct permissions.
Step 3
Stop all processes by entering:
net stop crmdmgtd
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.
If there is a problem, the program will terminate with an error message, and the
log files will not be updated.
Step 5
Verify the procedure was successful by examining the contents of the log files in
the following location:
NMSROOT\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 by entering:
net start crmdmgtd
Step 7
Select Server > Reports > Log File Status to view your log changes.