set alarm

type={emailsnmptrapall}

Used to determine what kind of an alarm is sent: an e-mail alarm, an SNMP trap or both.

For SNMP traps to be sent, the IP address of the system to which traps are sent must be configured, by issuing a “set snmp” command with the “trapdestip” option. See "set snmp" on page 198.

email

An email alarm is sent.

snmptrap

An SNMP trap is sent. If snmptrap is specified, the “subject” text is sent with the alarm. The MIBs for these traps are DIGI-SERIAL-ALARM-TRAPS.mib, and DIGI-MOBILETRAPS.mib.

all

Both an email alarm and SNMP trap are sent.

The default is “email.”

GPIO pin state-based alarm options

In GPIO mode, alarms are triggered when there are transitions between states for GPIO pins. These options allow you set which GPIO pins’ transitions trigger alarms.

pins=list of pins

A list of GPIO pins that trigger alarms.

highpins=list of highpins

A list of GPIO pins that trigger alarms when a pin’s signal is high.

lowpins=list of lowpins

A list of GPIO pins that trigger alarms when a pin’s signal is low.

pin{n}={highlowignore}

An alternative way to specify the action of a given GPIO pin, where n is the pin number.

high

The pin will trigger an alarm when the pin’s signal is high.

low

The pin will trigger an alarm when the pin’s signal is low.

ignore

The pin will not trigger an alarm.

The default is “ignore.”

Chapter 2 Command Descriptions

75

Page 75
Image 75
Digi 90000566_H manual Pins=list of pins, Highpins=list of highpins, Lowpins=list of lowpins