HP Network Direr Software Products manual 885

Models: Network Direr Software Products

1 924
Download 924 pages 60.07 Kb
Page 889
Image 889

885

All of the fields in a trap decode support the use of variables that are replaced in-line when an event is generated for the trap in the following manner:

{n} will be replaced with the nth varbind of the trap, where n is numbered from 0 upwards.

The Java ChoiceFormat specification is also supported for generating text based upon the nth varbind of the trap, where n is numbered from 0 upwards.

Some examples of this format are shown in the a3ComPsePortCurrentStatusTrap example below. For more details on the Java ChoiceFormat, please refer to the Sun Java technology website:

http://java.sun.com/

The following additional variables are also supported:

$n – A human-readable form of the nth trap varbind value, where n is numbered from 1 upwards.

$e – The trap's enterprise field, in dotted-decimal format. For example, 1.3.6.1.4.1.43

$G – The trap's generic field.

$S – The trap's specific field.

$# – The number of varbinds in the trap.

$+n – The nth varbind of the trap, in name:value format, where n is numbered from 1 upwards. For example, ifIndex.1:32

Lines beginning with a “;” character are considered to be comments and are ignored.

Page 889
Image 889
HP Network Direr Software Products manual 885