Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

SNMP Doc2

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

3/4/2018 Document 469884.

Copyright (c) 2018, Oracle. All rights reserved.

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

Most unix/linux platforms ship with a snmp library/binaries from


NET-SNMP http://net-snmp.sourceforge.net/. Even if EM is deployed
on a non-unix platform, you can use a linux host anywhere on the
network to run the trap daemon.

Do the following steps for snmp test:

Step 1: Run the following command on a Linux machine :

$ /usr/sbin/snmptrapd -f -Lo <myhost.mydomain>:1162

Note: here <myhost.mydomain> is the hostname of the linux box where you are running this command.

Depending on the snmptrapd version, the option could also be :

$ /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:

Warning: no access control information configured.


This receiver will *NOT* accept any incoming notifications.
NET-SNMP version 5.3.2.2
2012-08-28 12:31:24 NET-SNMP version 5.3.2.2 Stopped.
Stopping snmptrapdread_config_store open failure on /var/net-snmp/snmptrapd.conf
read_config_store open failure on /var/net-snmp/snmptrapd.conf
read_config_store open failure on /var/net-snmp/snmptrapd.conf
If you do not run the command as root, please follow the steps below:

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

Provide the following information on the console :

Name: testsnmp
SNMP trap Host Name: <myhost> ( hostname where snmptrapd command is running )
SNMP Trap Host Port: 1162
SNMP Community : public

Click on the test button to create a test trap.

When the Test Trap is being sent EM, running the snmptrapd comand will show the following output :

$ /usr/sbin/snmptrapd -f -Lo xyzhost:1162

2007-12-04 06:49:07 NET-SNMP version 5.1.2 Started.

2007-12-04 06:49:18 xyzhost [11.11.11.11] (via

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

SNMPv2-SMI::enterprises.111.15.2 Enterprise Specific Trap (1) Uptime:

0:00:00.01

SNMPv2-SMI::enterprises.111.15.1.1.1.10.1 = STRING: "This is a test

message from Oracle Enterprise Manager. Receiving this message indicates a

successful configuration of your SNMP Console in Enterprise Manager."

Or

$/usr/sbin/snmptrapd -f -P abchost:1163

2007-12-11 15:42:37 NET-SNMP version 5.0.9 Started.

2007-12-11 15:48:26 abchost [10.10.10.10] (via 10.10.10.10)

TRAP, SNMP v1, community

public

SNMPv2-SMI::enterprises.111.15.2 Enterprise Specific Trap (1)

Uptime: 0:00:00.01

SNMPv2-SMI::enterprises.111.15.1.1.1.10.1 = STRING: "This is a

test message from Oracle

Enterprise Manager. Receiving this message indicates a successful

configuration of your SNMP

Console in Enterprise Manager."

...

If this is received fine, click ok in the Grid Console, to create this snmp method "testsnmp".

Step3:

Now configure a notification rule with snmp notification method "testsnmp".


Trigger an alert for one of the metrics included in the notification rule.
Clicking on the 'Details' icon (eyeglass icon) in the Metric Alert's page will indicate whether the SNMP Trap has already been sent by the OMS.

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

NOTE:434886.1 - Configuring SNMP Trap Notification Method in EM - Steps and Troubleshooting


BUG:6471741 - TESTING A NEW NOTIFICATION SNMP TRAP PASSES EVEN WITH FALSE PORTS
Didn't find what you are looking for?

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=1695x513et_53&id=469884.1 4/4

You might also like