Command descriptions
set alarm
ConnectPort® LTS Command Reference
49
set alarm
Purpose
Configures device alarms and display current alarm settings. Device alarms are used to send emails or
SNMP traps when certain device events occur. These events include data patterns detected in the
serial stream.
To avoid false errors, configure alarms while alarms are disabled, by entering a “set alarm state=off”
command, then enable alarms after they are fully configured by entering “set alarm state=on”.
Required permissions
For products with two or more users, permissions must be set to “set permissions s-alarm=read” to
display current alarm settings, and to “set permissions s-alarm=rw” to display alarm settings and
configure alarms. See "set permissions" for details on setting user permissions for commands.
Syntax
Configure alarms with general options (applies to all alarms)
set alarm [state={on|off}]
Configure alarms for a range (set multiple alarms)
set alarm range={1-32}
[active={on|off}|to=
string|cc=string|subject=string
|priority={normal|high}|type= {email|snmptrap|all}]
Configure alarms based on data pattern matching
set alarm port=1-16
match=
string
Display current alarm settings
set alarm [range={1-32}]
Options
General alarm options
state= {on|off}
Enables or disables all alarms.
on
Enables all alarms.
off
Disables all alarms. To avoid false errors, it is recommended that you configure alarms
while alarms are disabled, and enable alarms after they are fully configured.