SNMP Doc2
SNMP Doc2
SNMP Doc2
How to Verify the SNMP Trap Contents Being Sent by Grid Control? (Doc ID 469884.1)
In this Document
Goal
Fix
References
APPLIES TO:
Enterprise Manager Base Platform - Version 10.2.0.1 to 11.1.0.1 [Release 10.2 to 11.1]
Information in this document applies to any platform.
Information in this document applies to any platform.
GOAL
This document explains the steps to verify the contents of the SNMP Trap being sent by the EM Grid Control.
FIX
Note: here <myhost.mydomain> is the hostname of the linux box where you are running this command.
$ /usr/sbin/snmptrapd -f -P incq048ad:1162
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=1695x513et_53&id=469884.1 1/4
3/4/2018 Document 469884.1
Check the snmptrapd options for the version installed in the machine and use the appropriate one.
You get this error if you do not run the command as root:
1. Create a new file snmptrapd.conf in a directory of your choice (Example: /temp), with the content:
# snmptrapd.conf
#
# ignoreauthfailure: Ignore authentication failure traps
# arguments: (1|yes|true|0|no|false)
ignoreauthfailure yes
disableAuthorization yes
2. Set the environment variable SNMPCONFPATH to provide the location of the new file snmptrapd.conf to snmptrapd:
Example:
export SNMPCONFPATH=/temp
3. Run snmptrapd as specified above.
Step2: Connect to the grid console and configure the SNMP Trap notification method.
From Home page Click Setup > Notification Methods > select "SNMP Trap" in Add drop down and click Go
Name: testsnmp
SNMP trap Host Name: <myhost> ( hostname where snmptrapd command is running )
SNMP Trap Host Port: 1162
SNMP Community : public
When the Test Trap is being sent EM, running the snmptrapd comand will show the following output :
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=1695x513et_53&id=469884.1 2/4
3/4/2018 Document 469884.1
11.11.11.11) TRAP, SNMP v1, community public
0:00:00.01
Or
$/usr/sbin/snmptrapd -f -P abchost:1163
public
Uptime: 0:00:00.01
...
If this is received fine, click ok in the Grid Console, to create this snmp method "testsnmp".
Step3:
Re-run the snmptrapd command on the Linux machine to view the output of the trap sent.
The above steps help in verifying whether the OMS is able to send SNMP Traps correctly or not and in viewing the contents of the Trap.
REFERENCES
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=1695x513et_53&id=469884.1 3/4
3/4/2018 Document 469884.1
https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=1695x513et_53&id=469884.1 4/4