Varbind keywords and descriptions – HP Systems Insight Manager User Manual

Page 144

Advertising
background image

Table 16 Varbind keywords and descriptions

Comments

Description

Keyword

Label will reflect the value selected. This
will vary on a trap-to-trap basis.

Includes value for varbind and
descriptive text (in this case, Some
text#
)

$VnV#Some text#

Label will reflect the valve selected. This
will vary on a trap-to-trap basis.

Includes the varbind description that
is only available within Systems Insight
Manager

$VnD#Some text#

Text that could be added to add clarity
to output data. Used to form varbind
data into text sentences.

Used to add text or formatting to
headers

$Hdr#Some text#

Also, if the beginning keyword in the trap definition file is a $!, that tells the Systems Insight Manager
parser to disregard the global settings and to use only the trap definition file keywords. See example
below.

cpqDa5PhyDrvStatusChange TRAP-TYPE
ENTERPRISE compaq
VARIABLES { sysName, cpqHoTrapFlags, cpqDaPhyDrvStatus,
cpqDaPhyDrvCntlrIndex, cpqDaPhyDrvBusNumber,
cpqDaPhyDrvBay, cpqDaPhyDrvModel, cpqDaPhyDrvFWRev,
cpqDaPhyDrvSerialNum, cpqDaPhyDrvFailureCode }
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."  

--#TYPE "Physical Drive Status Change"  
--#SUMMARY "Physical Drive Status is now %d."  
--#ARGUMENTS {2}
--#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 Systems Insight Manager 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

144 Compiling and customizing MIBs

Advertising