Installation guide
54
Data pattern matching-based alarm options
In data pattern match mode, an alarm will be triggered when a pattern is found
in the stream of serial data. These options are used for setting alarms in data
pattern match mode:
port=1-16
The serial ports to which the data pattern match alarm applies.
match=string
A string that triggers an alarm if the data pattern is found in the incoming
serial stream. The maximum length of this string is 32 characters, including
escape sequences for special characters. For more details on the escape
sequences, see "Entering Special Characters in String Values". The
maximum parsed length of this string is 10 characters. That is, this string
must reduce down to a 10-character string when the escape sequences are
processed.
Examples Set alarms based on data pattern matching
This command turns on alarm 10, and sends the alarm via snmptrap. The
snmptrap is sent if the pattern “failure” is seen on port 5. The trap title will
display as “failure alarm.”
#> set alarm range=10 active=on type=snmptrap
match="failure" subject="failure alarm" port=5
This command turns on alarm 11, and sends the alarm via email. The email is
sent to fred@digi.com , with “Email alarm” on the subject line with a high
priority. An alarm is sent if port 16 shows “kernel failure” pattern.
#> set alarm range=11 active=on type=email
to=fred@digi.com subject="Email alarm" priority=high
match="kernel failure" port=16