C H A P T E R  9

Traps

This chapter describes the properties and function of traps.


Overview

The SNMP agent provides traps to send asynchronous updates to management applications. The agent provides notifications for the following:

To configure the agent to send traps to a particular management application, see Chapter 2.

Feature Enhancement

The SNMP variable sunPlatNotificationAdditionalText is now included in the following traps:

In previous versions of the SUN-PLATFORM-MIB, these traps did not include the sunPlatNotificationAdditionalText. The conventional value of this SNMP variable is the NAC name (a formal, slash-delimited path, in ASCII, which describes the entity’s position in the entity tree). Having the NAC name in each of the AttributeChange or StateChange traps helps remote network management systems more directly identify the entity that is causing the trap to be sent.


Standard Trap Properties

The information communicated in traps generated by the agent is based on a common set of attributes. For clarity, the sunPlatNotification prefix has been omitted from the following attribute names:


Trap Types

This section describes the function and properties of trap types.

Sensor Traps

The SNMP agent determines whether an error or warning condition exists against an object based on any sensors related to that object or any subcomponents of that object. For example, a CPU can have an associated fan, and the fan can have an associated tachometer. All three components have an ability to report their operational status. If the tachometer reports that it has a failed operational status, this relates only to the health of the tachometer. Multiple thresholds can be set for all numeric sensors:

The precise semantics of these thresholds depends on the underlying component, and not all components use all the thresholds. When a component uses a threshold, the agent always creates a trap when the threshold is crossed. This means that if the current value reported by the sensor changes dramatically and crosses multiple thresholds at the same time, multiple traps are delivered.



Note - Even if multiple thresholds are crossed in one sample, when the problem is cleared, the resultant traps can occur over a period of time.



You can determine the threshold values assigned to a numeric sensor by reading the following properties:

These are all 32-bit integer values, the actual numeric threshold being determined by applying the exponent value provided by sunPlatNumericSensorExponent.

For binary sensors, a trap is sent when the value reported by sunPlatBinarySensorCurrent is not the same as that specified by sunPlatBinarySensorExpected. A trap indicating the problem has cleared is sent when sunPlatBinarySensorCurrent returns to the same value as sunPlatBinarySensorExpected.

For any binary sensor, you can determine the precise meanings of the reported values from the descriptions supplied by sunPlatBinarySensorInterpretTrue and sunPlatBinarySensorInterpretFalse.

Object Creation and Deletion Traps

The sunPlatObjectCreation trap is sent when an object is created within the agent to represent a new component. For example, a new component has been hot-plugged into the system. The agent sends object creation traps only for objects added once it has started, so traps are not generated during the initial phase of discovery when the agent first starts.

The sunPlatObjectDeletion trap is sent when an object is deleted as a result of a component being removed or unconfigured from the system.



Note - The sunPlatNotification prefix has been omitted from the following attribute names for clarity.



Object creation and deletion traps have the following properties:

Property Change Traps

The agent can deliver traps whenever a value in an object changes. The type of trap depends on the type of the object:



Note - The sunPlatNotification prefix has been omitted from the following attribute names for clarity.



Depending on the object type causing the trap, different attributes in the trap body are used to supply both before and after values of the changed attribute:

Environmental and Status Alarm Traps

The agent sends traps to report potential environmental problems and other warning or error conditions. The definition of an environmental, or other, condition depends on the component. Examples include the speed of a fan dropping below a predetermined threshold and the temperature of a component rising above a threshold.

Sensors, such as numeric sensors, have multiple thresholds defined to reflect warning, critical, and failure conditions. If a sensor value crosses multiple thresholds when sampled, traps are sent for all thresholds that have been crossed. Similarly, when the reading provided by the sensor returns to a value within an acceptable range, traps are sent to indicate that the warning or error condition has cleared.

The traps used by the agent are:

The trap used depends on the nature of the problem as defined by the generic network information model (ITU-T Recommendation M.3100).



Note - The prefix has been omitted from the following attribute names for clarity.



The attributes supplied by the traps are: