Administer > Configure Incidents > Configure SNMP Trap Incidents > SNMP Trap Configuration Form > Configure Actions for an SNMP Trap Incident > Valid Parameters for Configuring Incident Actions (SNMP Trap Incidents)

Valid Parameters for Configuring Incident Actions (SNMP Trap Incident)

When configuring incident actions, consider using incident information as part of the action. NNMi provides the following parameter values. Use these parameters as variables in your Jython or executable files.

Tip See the Using the Incident Form for more information about the parameter values.

Note NNMi stores varbind values as custom incident attributes (CIAs).

Tip If a value is not stored for a parameter, it is returned as “null”.

See Lifecycle Transition Action Form for more information about configuring incident actions.

Valid Parameters Visible From an Incident's Form
Parameter Value Description
$category, $cat Value of the Category attribute in the Incident form.
$count, $cnt Value representing the number of Custom Incident Attributes that appear in the Incident form.
$family, $fam Value from the Family attribute in the Incident form.
$firstOccurrenceTime, $fot Value from the First Occurrence Time attribute in the incident form.
$lastOccurrenceTime, $lot Value from the Last Occurrence Time attribute in the incident form.
$lifecycleState, $lcs Value from the Lifecycle State attribute in the Incident form.
$name Value of the Name attribute from the incident configuration.
$nature, $nat Value from the Nature attribute in the Incident form.
$origin, $ori Value from the Origin attribute in the Incident form.
$originOccurrenceTime, $oot Value from the Origin Occurrence Time attribute in the incident form.
$priority, $pri Value from the Priority attribute in the Incident form.
$severity, $sev Value of the Severity attribute of the Incident form.
Valid Parameters Visible from a Node Form
Parameter Value Description
$managementAddress, $mga Value from the Management Address attribute of the incident's source Node's form or SNMP Agent form.
$otherSideOfConnectionManagementAddress, $oma If the incident's Source Node is part of a Layer 2 Connection, this attribute is the value of the Management Address of a node on the other side of the Layer 2 Connection.
$sourceNodeLongName, $sln The fully-qualified DNS name as displayed in the Hostname attribute of the incident's source Node's form.
$sourceNodeName, $snn Value from the Name attribute of the incident's source Node's form.
$sysContact, $sct Value from the System Contact attribute of the incident's source Node form: General tab.
$sysLocation, $slc Value from the System Location attribute of the incident's source Node form: General tab.
Valid Parameters Visible from an Interface Form
Parameter Value Description
$ifAlias, $ifa Value from the IfAlias attribute for the interface that is the incident's source object.
$ifConfigDupSetting, $icd Configured Duplex Setting on the port associated with the interface that is the incident's source object.
$ifDesc, $idc Value from the ifDesc attribute for the interface that is the incident's source object.
$ifIndex, $idx Value from the ifIndex attribute for the interface that is the incident's source object.
$ifIpAddr, $iia IP Address values associated with the interface that is the incident's source object. If multiple IPaddresses are associated with the interface, this parameter returns a comma-separated list.
$ifName, $ifn Value from the ifName attribute for the interface that is the incident's source object.
$ifPhysAddr, $ipa Value from the Physical Address attribute for the interface that is the incident's source object.
$ifSpeed, $isp Value from the ifSpeed attribute for the interface that is the incident's souce object.
$ifType, $itp Value from the ifType attribute for the interface that is the incident's souce object.
Valid Parameters Visible from a Layer 2 Connection Form
Parameter Value Description
$otherSideOfConnectionConfigDupSetting, $ocd If the incident's source Node is part of a Layer 2 Connection, this parameter contains the Configured Duplex Setting on the port associated with the interface on the other side of the connection.
$otherSideOfConnectionIfAlias, $oia If the incident's Source Node is part of a Layer 2 Connection, this parameter is the value of the ifAlias of one of the interfaces on the other side of the Layer 2 Connection.
$otherSideOfConnectionIfDesc, $odc If the incident's Source Node is part of a Layer 2 Connection, this parameter contains the ifDescr attribute value for the interface on the other side of the Layer 2 Connection.
$otherSideOfConnectionIfIndex, $odx If the incident's Source Node is part of a Layer 2 Connection, this parameter contains the ifIndex attribute value for the interface on the other side of the connection.
$otherSideOfConnectionIfName, $ofn If the incident's Source Node is part of a Layer 2 Connection, this parameter contains the ifName attribute value for the interface on the other side of the connection.
Valid Parameters Visible from a VLAN Form
Parameter Value Description
$impVlanIds, $ivi Value from the VLAN Id attribute associated with the interface that is the incident's source object. To access this information from an interface form, navigate to the VLAN Port tab and open the form for the VLAN of interest. If the interface is part of more than one VLAN, this parameter returns a comma-separated list.
$impVlanNames, $ivn Value from the Global VLAN Name attribute associated with the interface that is the incident's source object. To access this information from a Node form or Interface form, navigate to the VLAN Ports tab. If the node or interface is part of more than one VLAN, this parameter returns a comma-separated list.
Valid Parameters Not Visible From a Form
Parameter Value Description
$id Unique Object Identifier attribute value for the incident (unique across the entire NNMi Database).
$firstOccurrenceTimeMs, $fms Value from the First Occurrence Time attribute in the incident form, converted to millseconds (measured since January 1, 1970, 00:00:00 GMT - Greenwich Mean Time).
$lastOccurrenceTimeMs, $lms Value from the Last Occurrence Time attribute in the incident form, converted to millseconds (measured since January 1, 1970, 00:00:00 GMT - Greenwich Mean Time).
$messageFormat, $msg Valid for Incident actions only. Message text displayed for an incident when this parameter is included as an argument to an incident action.
$oid Value of the unique object identifier (oid) for the incident configuration that originated from either an SNMP Trap, Syslog Message or Management Event.
$otherSideOfConnection, $osc

If the incident's Source Node is part of a Layer 2 Connection, this attribute is the following combination of values for the node and one of its interfaces on the other side of the Layer 2 Connection:

The fully-qualified DNS name of the node appended with the interface Name in the following format: <fully-qualified DNS name>[interface_name]

$originOccurrenceTimeMs, $oms Value from the Origin Occurrence Time attribute in the incident form, converted to millseconds (measured since January 1, 1970, 00:00:00 GMT - Greenwich Mean Time).
$sourceNodeUuid, $snu Universally Unique Object Identifier attribute value of the source node object for the incident (unique across all databases). This identifier distinguishes the source node object instance from all other node objects.
$sourceObjectClass, $soc Value of the object class for the object you want to include. Use this parameter to request more details of a class of objects through a web service. Examples of object classes include: com.hp.ov.nms.model.core.Interface and com.hp.ov.nms.model.snmp.SnmpAgent.
$sourceObjectName, $son Value from the Name attribute of the source object. For example, an interface object is named according to the MIB ifName. Each ifName varies according to the vendor's conventions. Using the name 4/1 as an example, 4 represents the board number and 1 represents the port number.
$sourceObjectUuid, $sou Universally Unique Object Identifier attribute value of the source object for the incident (unique across all databases). This identifier distinguishes the source object instance from all other similar object instances..
$uuid Universally Unique Object Identifier attribute value of the incident (unique across all databases). This identifier distinguishes the incident object instance from all other incident objects.
Valid Parameters Established in Custom Incident Attributes
Parameter Value Description
$<position_number>

Value of the custom incident attribute (CIA) position number for any CIA that originated from a varbind or was added by NNMi. For example, to indicate you want to use the varbind in position 1, enter: $1

NNMi stores varbind values as Custom Incident Attributes. If you know the varbind position number, use this parameter.

$<CIA_name>

Value of the name that is used for the custom incident attribute. For example, $mycompany.mycia. NNMi provides CIA values for configuring Management Events.

$<CIA_oid> Value of the object identifier for any custom incident attribute that originated as a varbind. For example, $.1.3.6.1.6.3.1.1.5.1. Use this parameter when you are not certain of a custom incident attribute (varbind) position number.
$* Used to indicate you want all of the custom incident attribute values originating as varbinds, to be passed to the action configuration. Each varbind is returned in the following format: $<CIA_name>:<CIA_value> in which the custom incident attribute name appears followed by the custom incident attribute value.

The function described in the following table replaces the specified numeric value with the associated text value stored in the CIA.

Note The associated MIB must have been loaded using the nnmloadmib.ovpl command.

Functions to Generate Values Within Incident Messages
Function Description
$text($<position_number>)

The <position_number> argument specifies the numeric value of the custom incident attribute (CIA) position number for any CIA that originated from a varbind or was added by NNMi. For example, to indicate you want to use the varbind in position 1, enter: $1.

After the function runs, NNMi replaces the numeric value with the text value stored in the CIA.

If a text value is not available, NNMi returns the numeric value.

$text($<CIA_oid>)

The <CIA_oid> argument specifies the object identifier for any custom incident attribute that originated as a varbind. For example, $.1.3.6.1.6.3.1.1.5.1. Use this argument to the $text function when you are not certain of a custom incident attribute (varbind) position number.

After the function runs, NNMi replaces the numeric value with the text value stored in the CIA.

If a text value is not available, NNMi returns the following message as the value:
<CIA <OID> with value <value> was not found within the mib cache