Guest

CiscoWorks Resource Manager Essentials

Procedure for Handling Oversized RME 3.x Log Files

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 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.

  1. Log in as the superuser and enter the root password.

  2. 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

  3. 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.

  4. Verify the procedure was successful by examining the contents of the log files in this location /var/adm/CSCOpx/log/*.log.

  5. 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.

  1. Check for correct permissions at the command line.

  2. 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.

  3. 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.

  4. Verify the procedure was successful by examining the contents of the log files in this location C:\Program Files\CSCOpx\log\*.log.

  5. 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

Networking Professionals Connection is a forum for networking professionals to share questions, suggestions, and information about networking solutions, products, and technologies. The featured links are some of the most recent conversations available in this technology.
NetPro Discussion Forums - Featured Conversations for Network Management
Network Infrastructure: Network Management
Virtual Private Networks: Network and Policy Management

Related Information



Updated: Jan 10, 2006Document ID: 13479