Stopping SNMP  Changing SNMP settings

Chapter 2: Configuring the Global Console

Configuring SNMP for non-standard port use

To specify non-standard ports for the daemon, use any available port to run the SNMP daemon.

WARNING! Custom SNMP ports for the Global Console work only on Windows 2000 or XP. Due to operating system limitations, Windows NT can use only the standard port.

You might want to use a non-standard port because:

For general configuration, do the following:

Set

To

SR_MGR_CONF_DIR

<NNSY_ROOT>/snmp/srconf/mgr on UNIX and

<NNSY_ROOT>\snmp\srconfmgr

on Windows, where <NNYSY_ROOT> is the e-Biz Impact server installation directory; for example, working/Sybase/ImpactServer-5_4/.

SR_AGT_CONF_DIR

<NNSY_ROOT>/snmp/srconf/agt or

<NNSY_ROOT>\snmp\srconfagt

SR_SNMP_TEST_PORT

The port number to use.

SR_TRAP_TEST_PORT

The port number used for traps.

NoteIf SR_TRAP_TEST_PORT is not set, it defaults to a value of one greater than the SNMP port number. For example, if SR_SNMP_TEST_PORT is set to 5000 and you do not set SR_TRAP_TEST_PORT, it defaults to 5001.


Setting environment variables

Windows NT

Because you set global environment variables to configure the SNMP daemon on Windows NT, you can run only one daemon as an NT service.

Windows 2000 and XP

You can set the SR_MGR_CONF_DIR, SR_AGT_CONF_DIR, SR_SNMP_TEST_PORT, and SR_TRAP_TEST_PORT environment variables on a per user basis and then configure the daemon to run as that user using the the Windows Services dialog box. When the daemon runs, it picks up its configuration from the user’s environment. Only one SNMP EMANATE Master Agent can be run on Windows as a service. You can run other agents from a command prompt, setting the environment for the appropriate ports.

To set environment variables, log in to the system as the user. Environment variables are set under System Properties, which are in the Advanced tab for Windows 2000.

After installing the SNMP daemon as a service, you must modify the properties of the services, using the Services applet, to specify the user to run as. On Windows 2000, this in on the Log On tab under Properties. From the Log On tab, specify the user and password.

UNIX

Set the environment variables before you run the SNMP daemon (snmpdm).

An .AgentSockets directory is created in /tmp that contains the socket devices that go with the UNIX domain sockets that are used by the master agent to communicate with subagents. If the daemon was started as root, it only has write permissions for root. Then you must open the permissions with the chmod command, for example: chmod 777 /tmp/.AgentSockets. If this is not acceptable, run the daemon as root to give the user access to the directory.

To run any of the SNMP commands distributed with e-Biz Impact, use the ims.sr shell script in the ../ImpactServer-5_4/bin directory to ensure that the environment is set up correctly.

To run commands, pass the command as an argument to the script.





Copyright © 2005. Sybase Inc. All rights reserved. Changing SNMP settings

View this book as PDF