Command descriptions
set alarm
ConnectPort® LTS Command Reference
51
Both an email alarm and SNMP trap are sent.
The default is “email.”
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 [email protected],
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
[email protected] subject="Email alarm" priority=high
match="kernel failure" port=16
Содержание ConnectPort LTS 16
Страница 1: ...ConnectPort LTS Command Reference ...
Страница 117: ...Command descriptions set service ConnectPort LTS Command Reference 117 See also n revert n set network n show ...
Страница 152: ...Command descriptions set usb ConnectPort LTS Command Reference 152 Example Format the USB memory set usb format id 1 ...