This section explains how to enter a custom port number and multiple IP addresses for SNMP trap publication.
On the Windows machine where the e-Biz Impact client is installed, go to C:\WINNT\system32\drivers\etc\ and open the services file in a text editor.
Find this line:
snmptrap 162/udp snmp-trap #SNMP trap
and change “162
” to
the number of the custom port used for the trap service.
Save the services file and close the text editor.
Restart the Windows machine.
Temporarily stop the SNMP EMANATE Master Agent service:
On Windows:
Select Start | Settings | Control Panel | Administrative Tasks | Services.
In the Services window, find the SNMP EMANATE Master Agent service in the right pane.
Right-click the service and select Stop. Leave the Services window open but minimized.
On UNIX:
Verify that the snmpdm process is stopped. In a terminal window, go to the directory where the e-Biz Impact server is installed and enter the following command:
$ps
You should see a list of processes output to the screen similar to this:
PID TTY TIME COMMAND
8347 rt021a0 0:03 ksh
8376 rt021a0 0:06 ps
If any process beginning with “snmpdm” is running, write down the process identification number (PID) for that process, then kill the process:
$kill -2 PID
where PID is the process identification number of the snmpdm process.
Create a backup copy of the snmpd.cnf configuration file, which is located in x:\Sybase\ImpactServer-5_4\snmp\srconf\agt on Windows and in ~/Sybase/ImpactServer-5_4/snmp/srconf/agt on UNIX (where “x” and “~” is the directory or system on which the e-Biz Impact Server is installed)
Open snmpd.cnf in a text editor.
Because of default file properties, on Windows the snmpd.cnf file may
display as a shortcut, may have a description of Speed Dial, and
may not display an extension. To open the file in a text editor,
right-click the file and select Open With, select a text editor,
then click OK.
To specify a custom port number:
Go to the section that begins with:
#Entry type: snmpTargetAddrEntry
In this section only, find each occurrence of:
snmpUDPDomain 127.0.0.1:0
Change each entry you find to:
snmpUDPDomain 127.0.0.1:<custom_port_number>
where <custom_port_number> is the custom port number you entered in the services file in step 3.
To publish traps to a different IP address:
Go to the section that begins with:
#Entry type: snmpTargetAddrEntry
In this section only, find each occurrence of:
snmpUDPDomain 127.0.0.1:0
Change each entry you find to:
snmpUDPDomain <Event_Monitor_host_IP>:0
where <Event_Monitor_host_IP> is the IP address of the host that runs the Event Monitor.
WARNING! Do not use the machine name or “localhost.” You must use the IP address.
To publish traps to multiple machines:
Go to the section that begins with:
#Entry type: snmpTargetAddrEntry
Copy entry 31:
snmpTargetAddrEntry 31 snmpUDPDomain 127.0.0.1:0 100 3 Console \
v1ExampleParams nonVolatile 255.255.255.255:0 2048
Paste the copied entry above entry 31.
Change “31
” to “30
” and
change 127.0.0.1
to the
additional IP address.
Repeat this process and create a new entry (29
, 28
,
and so on) for each additional machine on which you have an Event
Monitor installed.
Go to the section that begins with:
#Entry type: snmpNotifyEntry
Create an entry for each new entry you created in steps “a” through “e.” For example, if you created new entries 30, 29, and 28, you would create these entries in the #Entry type: snmpNotifyEntry section above entry 31:
snmpNotifyEntry 28 Console trap nonVolatile
snmpNotifyEntry 29 Console trap nonVolatile
snmpNotifyEntry 30 Console trap nonVolatile
WARNING! Creating too many new entries can have a significant impact on e-Biz Impact performance.
Save the snmpd.cnf file and close the text editor.
Restart the SNMP EMANATE Master Agent service on Windows or UNIX.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |