Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1949039.1
Update Date:2018-03-23
Keywords:

Solution Type  Technical Instruction Sure

Solution  1949039.1 :   How To Simulate ILOM Events to Get an SNMP Trap  


Related Items
  • Sun Netra X4270 Server
  •  
Related Categories
  • PLA-Support>Sun Systems>x86>Server>SN-x64: TELCO-NETRA
  •  




In this Document
Goal
Solution


Created from <SR 3-9827723827>

Applies to:

Sun Netra X4270 Server - Version All Versions and later
Information in this document applies to any platform.
Applies to all servers which using an ILOM

Goal

Simulate an event in ILOM to get a snmp trap for monitoring in an external tool
 

Solution

Additional information available in:

Oracle Server Management Agents User's Guide

How to Inject a Simulated Fault

http://docs.oracle.com/cd/E20451_01/html/E25305/gjiko.html#scrolltoc

The ILOM have to be enabled to send snmp traps. An example configuration looks like:

  /SP/alertmgmt/rules/5
    Properties:
        type = snmptrap
        level = minor
        destination = 10.64.2.228
        destination_port = 0
        community_or_username = public
        snmp_version = 2c
        testrule = (Cannot show property)

 

Additional information about ILOM configuration are available in:

Oracle Integrated Lights Out Manager (ILOM) User's Guide    
Oracle Integrated Lights Out Manager (ILOM) Configuration and Maintenance Guide 

This example is for a x4270 server, but work also for other server using an ILOM:

1. To get all available sensors from the server use the command:

ipmitool -H -U root -v sdr list


2. Example output from a x4270 for a Fan:

Sensor ID : FB0/FM2/F1/TACH (0xaf)
Entity ID : 29.5 (Fan Device)
Sensor Type (Analog) : Fan
Sensor Reading : 4100 (+/- 0) RPM
Status : ok
Lower non-recoverable : 2000.000
Lower critical : 2400.000
Lower non-critical : 2800.000
Positive Hysteresis : Unspecified
Negative Hysteresis : Unspecified
Minimum sensor range : Unspecified
Maximum sensor range : Unspecified
Event Message Control : Per-threshold
Readable Thresholds : lnr lcr lnc
Settable Thresholds :
Threshold Read Mask : lnr lcr lnc
Assertions Enabled : lnc- lcr- lnr-
Deassertions Enabled : lnc+ lcr+ lnr+


3. With the command:

ipmitool -H -U root event 'FB0/FM2/F1/TACH' list
Password:
Finding sensor FB0/FM2/F1/TACH... ok
Sensor States:
 lnr : Lower Non-Recoverable
 lcr : Lower Critical
 lnc : Lower Non-Critical
 unc : Upper Non-Critical
 ucr : Upper Critical
 unr : Upper Non-Recoverable

Getting the sensor states for the e.g. sensor FB0/FM2/F1/TACH

4. Now simulating an events for this sensor:

ipmitool -H -U root event 'FB0/FM2/F1/TACH' unc assert

output from the command


Password:
Finding sensor FB0/FM2/F1/TACH... ok
  0 | Pre-Init Time-stamp | Fan #0xaf | Upper Non-critical going high

Messages in the ILOM

87b | 11/05/2014 | 11:14:44 | Fan #0xaf | Upper Non-critical going high


5. A memory fault can also simulated via ipmitool. Using the following command:

ipmitool -H -U root event 3


event 3 is a pre-defined event for a Memory Correctable Error

more information, please see keyword "event":

http://sourceforge.net/p/ipmitool/source/ci/IPMITOOL_1_8_12/tree/ipmitool/

In the ILOM sel logs an entry like:

87c | 11/05/2014 | 11:22:54 | Memory #0x53 | Correctable Error | Asserted

 

An example output for a snmp trap looks like (different server type):

Mar 12 11:03:07 localhost snmptrapd[30729]: 2014-03-12 11:03:07 [UDP: [10.163.211.127]:34387->[10.163.211.127]]:#012DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (5812354) 16:08:43.54#011SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-SMI::enterprises.42.2.175.103.2.0.23#011SNMPv2-SMI::enterprises.42.2.175.103.2.1.1.0 = ""#011SNMPv2-SMI::enterprises.42.2.175.103.2.1.14.0 = STRING: "1215XXXXXX"#011SNMPv2-SMI::enterprises.42.2.175.103.2.1.15.0 = STRING: "SUN FIRE X4170 M3"#011SNMPv2-SMI::enterprises.42.2.175.103.2.1.2.0 = STRING: "/SYS/MB/FM1/F2/TACH"#011SNMPv2-SMI::enterprises.42.2.175.103.2.1.3.0 = INTEGER: 2#011SNMPv2-SMI::enterprises.42.2.175.103.2.1.4.0 = ""#011SNMPv2-SMI::enterprises.42.2.175.103.2.1.5.0 = ""#011SNMPv2-SMI::enterprises.42.2.175.103.2.1.9.0 = STRING: "Lower Non-critical going low"#011SNMPv2-SMI::enterprises.42.2.175.103.2.1.10.0 = OID: SNMPv2-SMI::enterprises.42.2.2.6.1.1.7.5.1.1.3.73#011SNMPv2-SMI::enterprises.42.2.175.103.2.1.13.0 = INTEGER: 4

 


 


Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback