Document ID: 13479
Contents
Introduction
Prerequisites
Requirements
Components Used
Conventions
Procedure
On UNIX
On Windows NT or 2000
Verify
Troubleshoot
NetPro Discussion Forums - Featured Conversations
Related Information
Introduction
You can back up and clear your log files using the option discussed in this document. Log files can grow and fill up disk space. This script enables you to control this growth.
Files maintained by this script include the daemon manager, daemon process, JRUN, and web server log files.
Most log files are located in directories in the $PX_LOGDIR directory. On UNIX systems, the directory is /var/adm/CSCOpx/log. On Windows NT systems, it is C:\Program Files\CSCOpx\log.
Only JRUN files are not located here. On UNIX systems, JRUN files are located in $NMSROOT/objects/jrun/jsm-cw2000/logs. On Windows NT systems, they are located in C:\Program Files\CSCOpx\lib\jrun\jsm-cw2000\logs.
Note: Make sure the new location has sufficient disk space.
Caution: As part of the file back-up procedure, CiscoWorks2000 daemon manager
is shut down and restarted. To prevent loss of data, make sure you are not
running any critical tasks.
Prerequisites
Requirements
There are no specific requirements for this document.
Components Used
The information in this document is based on Resource Manager Essentials (RME) 3.1, 3.2, 3.3, 3.4, and 3.5.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
Conventions
For more information on document conventions, refer to the Cisco Technical Tips Conventions.
Procedure
On UNIX
Perform these steps on machines running a UNIX platform.
-
Log in as the superuser and enter the root password.
-
Stop all processes by issuing these commands:
-
On Solaris: /etc/init.d/dmgtd stop
-
On AIX: /etc/rc.dmgtd stop
-
On HP-UX: /sbin/init.d/dmgtd stop
-
-
Perform log maintenance by issuing these commands:
$NMSROOT/bin/perl $NMSROOT/cgi-bin/admin/logBackup.pl [-force] [-dir destination directory]
where:
-
$NMSROOT is the CiscoWorks2000 installation directory.
-
-force allows backup regardless of log file size. Without -force, only log files that reach 90 percent of their size limits are backed up and the original log file is emptied.
-
-dir specifies the full path of the backup destination directory.
Note: For RME 3.1 and 3.2, the target directory must be owned by user bin and group bin. For RME 3.3, 3.4 and 3.5, 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 terminates with an error message and the log files is not updated.
Without any options, the script backs up the log files to their default directory $PX_LOGDIR/backup.
-
-
Verify the procedure was successful by examining the contents of the log files in this location /var/adm/CSCOpx/log/*.log.
-
Restart the system by issuing these commands:
-
On Solaris: /etc/init.d/dmgtd start
-
On AIX: /etc/rc.dmgtd start
-
On HP-UX: /sbin/init.d/dmgtd start
-
On Windows NT or 2000
Perform these steps on machines running Windows NT or 2000 platforms.
-
Check for correct permissions at the command line.
-
Open an MSDOS Command Prompt window. Stop all processes by issuing the net stop crmdmgtd command.
Change to the directory where the perl script is located. If CiscoWorks2000 has been installed on the C: drive issue the C:\>cd\Program Files\CSCOpx\cgi-bin\admin command.
-
Perform log maintenance by issuing this command:
C:\Program Files\CSCOpx\cgi-bin\admin>perl logBackup.pl [-force][-dir destination directory]
Where:
-
-force allows backup regardless of log file size. Without -force, only log files that reach 90 percent of their size limits are backed up and the original log file is emptied.
-
-dir specifies the full path of the backup destination directory. Without -dir the default backup directory is C:\Program Files\CSCOpx\log\backup.
Note: If there is a problem, the program will terminate with an error message and the log files will not be updated.
-
-
Verify the procedure was successful by examining the contents of the log files in this location C:\Program Files\CSCOpx\log\*.log.
-
Restart the system by issuing the net start crmdmgtd command.
Verify
There is currently no verification procedure available for this configuration.
Troubleshoot
There is currently no specific troubleshooting information available for this configuration.
NetPro Discussion Forums - Featured Conversations
| NetPro Discussion Forums - Featured Conversations for Network Management |
| Network Infrastructure: Network Management |
| Virtual Private Networks: Network and Policy Management |
Related Information
| Updated: Jan 10, 2006 | Document ID: 13479 |
