beautypg.com

Snmp trap settings page – HP Systems Insight Manager User Manual

Page 152

background image

--#SEVERITY CRITICAL
--#TIMEINDEX 99
--#MSG_FORMATTER "$V1V#Computer: # $V3V#Drive Status: # $V9V#Serial Number: #"
::= 3029

The e-mail or pager output would appear as:

Event Notice ID: 3029
Computer: CRONUS
Drive Status: FAILED
Serial Number: WS7000134715
Event Description: Physical Drive Status Change.
This trap signifies that the agent has detected a change in
the status of an HP Drive Array physical drive. The variable
cpaDaPhyDrvStatus indicates the current physical drive status.
User Action: If the physical drive status is failed(3) or
predictiveFailure(4), replace the drive.
Event Time: 01/09/2003 15:46: PM

Event Notice ID, Event Description and Event Time are inserted by HP SIM into all event notifications
and that Computer (V1, sysName), Drive Status (V3, cpqDaPhyDrvStatus) and Serial Number (V9,
cpaDaPhySerialNum) are customized to this specific trap.

Using the preceding example and adding the $!

--#MSG_FORMATTER "$! $V1V#System Name: # $V3V#Drive Status: # $V9V#Serial

Number: #"  

The e-mail or pager output would be:

System Name: CRONUS
Drive Status: FAILED
Serial Number: WS7000134715

Using the $Hdr keyword in conjunction with $! to further customize the display could be as follows:

--#MSG_FORMATTER "$! $Hdr#The # $V1V#system # $Hdr#had the following #

$V3V#Drive Status:# $Hdr#. The system Serial Number # $V9V#is #

$Hdr#.#"  

The e-mail or pager output would be:

The system Cronus had the following Drive Status: failed. The system

Serial Number is WS7000134715

IMPORTANT:

For the TYPE, CATEGORY, and MSG_FORMATTER keywords described above,

the value for these keywords must be encapsulated in quotes, such as xxx for the mxmib to
successfully register the MIB in question. Other keywords such as SEVERITY and ENABLE do not
require quoted values.

SNMP Trap Settings page

The SNMP Trap Settings page has the capability to modify the attributes of any trap that has been
registered with the HP SIM database. The attributes that are available for modification include the
short and long descriptions, severity, category, and the trap enable/disable flag. Use the interface
on this page to first select the registered MIB containing the trap in which you are interested, and
then select the specific trap you wish to modify.

152

Compiling and customizing MIBs