ims.db script  Using cluster commands

Chapter 1: Command Line Utilities

SNMP

To run any of the SNMP commands distributed with e-Biz Impact, use the ims.sr wrapper script provided in the \Sybase\Impact-5_4\bin directory. This ensures that the environment is set correctly. To run commands, pass the command as an argument to the script. For example, to run the SNMP daemon, use the ims.sr snmpdm -tcpany command. To run the daemon in debug mode, run the ims.sr snmpdm -d -tcpany command. Running the daemon in debug mode is useful for debugging setup issues.


Wrappers and scripts

The following table lists and describes the SNMP scripts.

Script

Description

ims.sr

A general wrapper script for SNMP commands.

ims.setsrdir

Sets the SNMP directory.

ims.setsrports.sh

Sets port environment variables using UNIX Bourne shell.

ims.setsrports.csh

Sets port environment variables using UNIX C shell.


Starting SNMP

Windows

To install the daemon as a service, enter:

ims.sr snmpdm -install -tcpany

To start a Windows service, do one of the following:

UNIX

To start the daemon, enter the following on the command line:

ims.sr snmpdm -tcpany

To start the daemon in the foreground, specify the -d option on the command line:

ims.sr snmpdm -d -tcpany

Working with the Microsoft agent

To configure SNMP to run in conjunction with the Microsoft agent, complete these steps:

  1. Stop the Microsoft SNMP service using the Windows Services control panel (Start | Settings | Control Panel | Administrative Tools | Services).

  2. Go to C:\WINNT\system32\drivers\etc\. Open the services file in a text editor and change this line:

    snmp              161/udp              #SNMP
    

    to this:

    snmp              8161/udp             #SNMP
    
  3. Save the file and close the text editor.

  4. Use Start | Settings | Control Panel | Administrative Tools | Services to restart the Microsoft service.


Stopping SNMP

Windows

To stop a Windows service do one of the following:

UNIX

Find the SNMP process ID using the ps command, then use the kill command with the SIGKILL (9) signal.

For example:

kill -KILL <pid>

or

kill -9 <pid>

Where pid is the process ID that you identified from the ps command.


Other SNMP commands

To set up the standard port, enter:

ims.setsrdir 161

When installing a service, you must include the -tcpany option on the command line. For example, ims.sr snmpdm -install -tcpany.


Using alternate SNMP ports

Set the SNMP-related environment variables before you run the SNMP daemon, snmpdm.

NoteFor detailed instructions on using SNMP, see the e-Biz Impact Monitoring Guide.





Copyright © 2005. Sybase Inc. All rights reserved. Using cluster commands

View this book as PDF