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:
Another SNMP daemon is running and you want to keep using it. This could be to support high availability.
To isolate your production environment from your test environment.
You do not have root access. The standard SNMP port is privileged, requiring you to be root.
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. |
If 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.
Because you set global environment variables to configure the SNMP daemon on Windows NT, you can run only one daemon as an NT service.
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.
Set the environment variables before you run the SNMP daemon (snmpdm).
If you use the Bourne shell, use ims.setsrports.sh to set the two port environment variables, SR_SNMP_TEST_PORT and SR_TRAP_TEST_PORT. The ims.setsrports.sh script takes the two ports as command line arguments. For example, to use 5161 for the SNMP port and 5162 for the trap port, enter:
. ims.setsrports.sh 5161 5162
If you use the C shell, save the ims.setsrports.csh script to another name; for example, a name that matches the port values or matches the purpose for which the values are used. You can then modify the values that are set in the script to the values that you want to use.
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. |
![]() |