IBM Support

confirmation if SNMP probe is working well

Question & Answer


Question

How can we confirm if SNMP trap is working well?

Cause

Though SNMP probe is running, how can we confirm if the probe can receive a TRAP.

Answer

snmptrap command (AIX command) is available for "V1 (version 1)"

After installing the probe following steps are available to confirm the probe.

1. install SNMP probe

2. configure it using the default implementation.

3. specify ObjectServer and MessageLevel: debug in the props file

4. start the SNMP probe

5. confirm PORT status using commands below


# netstat -Aan | grep 4100 <-- session for ObjectServer
f1000e000793dbb8 tcp4 0 0 9.188.123.156.4506 9.188.123.156.4100 ESTABLISHED
# rmsock f1000e000793dbb8 tcpcb <-- sessionby SNMP probe and ObjectServer
The socket 0xf1000e000793d808 is being held by proccess 10092596 (nco_p_mttrapd).

# netstat -Aan | grep 162 <-- PORT for SNMP tRAP
f1000e00027c7800 udp4 0 0 *.162 *.*
# rmsock f1000e00027c7800 inpcb <-- waiting PORT by SNMP probe for TRAP
The socket 0xf1000e0008201008 is being held by proccess 10092596 (nco_p_mttrapd).

6. generate V1 (version 1) TRAP using "snmptrap" command below
#snmptrap -h yoda -c public -m Hello_SNMP_probe

7 log file shows below ($OMNIHOME/log/mttrapd.log)
2015-06-10T01:08:12: Debug: D-P_M-105-000: 1 trap in queue
2015-06-10T01:08:12: Debug: D-P_M-105-000: V1 trap received
2015-06-10T01:08:12: Information: I-P_M-104-000: Number of items in the trap queue is 0
2015-06-10T01:08:12: Debug: D-UNK-000-000: In var_to_text: buf=Hello_SNMP_probe

2015-06-10T01:08:12: Debug: D-UNK-000-000: In var_to_text: buflen=17

2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] ReqId: 0
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] enterprise: .1.3.6.1.4.1.2
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] generic-trap: 6
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] specific-trap: 1
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] UpTime: 1165439300
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] Uptime: 134 days, 21:19:53.00
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] community: public
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] IPaddress: 9.188.123.156
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] PeerIPaddress: 9.188.123.156
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] ReceivedPort: 162
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] ReceivedTime: 1433916492
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] Protocol: UDP
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] SNMP_Version: 1
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] OID1: .1.3.6.1.4.1.2.6.191.1.6.1
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] 1: Hello_SNMP_probe
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] 1_raw: Hello_SNMP_probe
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] 1_text: Hello_SNMP_probe
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] 1_hex: 48 65 6c 6c 6f 5f 53 4e 4d 50 5f 70 72 6f
62 65 20
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] .1.3.6.1.4.1.2.6.191.1.6.1: Hello_SNMP_probe
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] Node: yoda.makuhari.japan.ibm.com
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] PeerAddress: yoda.makuhari.japan.ibm.com
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] EventCount: 1
2015-06-10T01:08:12: Debug: D-UNK-000-000: [Event Processor] Processing alert {0 remaining}
2015-06-10T01:08:12: Debug: D-UNK-000-000: Rules file processing took 92 usec.
2015-06-10T01:08:12: Debug: D-UNK-000-000: Flushing events to object servers

[{"Product":{"code":"SSSHTQ","label":"Tivoli Netcool\/OMNIbus"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"SNMP Probe","Platform":[{"code":"PF002","label":"AIX"}],"Version":"All Versions;All","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 June 2018

UID

swg21959620