HP StorageWorks Command View XP Advanced Edition Device Manager Server Installation and Configuration Guide (December 2005)
Command View XP AE Device Manager Server Properties 128
You can customize the log output to log messages based on severity, by modifying the
customizedsnmptrap.customizelist property (see section
7-9-2 ). A customization definition for output
log consists of five items separated by a colon. You can omit some items, but may not omit the colon
delimiter. To specify more than one customization definition, use a comma as a delimiter, but make
sure not to enter a comma at the end of the last entry. To change the line in the middle of a
customization list, enter a back slash (\) at the end of that line. The line feed following the back slash
(\) is ignored.
Figure 7-1 illustrates the definition format for log customization.
–customizedsnmptrap.customizelist=\
–enterprise-ID-1:generic-trap-number-1:specific-trap-number-1:severity-1:message-1, \
–enterprise-ID-2:generic-trap-number-2:specific-trap-number-2:severity-2:message-2, \
–...
–enterprise-ID-n:generic-trap-number-n:specific-trap-number-n:severity-n:message-n
Figure 7-1 Log Customization Definition Format
Table 7-2 describes the required format of the customization specification.
Table 7-2 Format for Customization
Item Format Remarks
Enterprise ID Specify by using a dot (e.g., .1.3.6.1.4.116.3.11.1.2) Required
Generic trap number Numeric value, from 0 to 6 Required
Specific trap number Numeric value Required
Severity Information: -I
WARNING: -W
Error: -E
Critical:-E
Alert: -E
Null: no output
Not required. When this is omitted,
Null is used.
Message Use the following character strings (variable) to
specify message information to be output:
$a Agent address (dotted format)
$e Enterprise ID (dotted format)
$g Generic trap number
$s Specific trap number
$n (where n indicates an integer, which is 1 or
larger): The value of the nth variable is binding
Not required. When this is omitted,
$a$e$g$s is used.
Figure 7-2 is an example of customized log configurations.
–customizedsnmptrap.customizelist = \
–.1.2.3:6:1:Information:$a$e$g$s$1$2, \
–.1.3.6.1.4.1.2854:6:1:Warning:$e$a$s$3$2$1$g, \
–.1.3.6.1.4.1.116.3.11.4.1.1:6:1:ERROR:$a$s, \
–.1.3.6.1.4.1.116.3.11.4.1.1:6:100:Information:$a$s
Figure 7-2 Sample Log Customization (1)