set alarm

Examples

Set a GPIO alarm and send an email message or SNMP trap

 

This example shows how to set up a GPIO alarm to trigger when two GPIO

 

pins go high, and sending an email message when they do. It also shows

 

how to change from sending an email message when the alarm condition

 

occurs to issuing an SNMP trap.

 

Turn off alarms and set global email properties (this is done to avoid false

 

error conditions triggering alarms):

 

#> set alarm state=off mailserverip=10.0.0.1 from=myemail@digi.com

 

Set alarm #1 mode to GPIO mode:

 

#> set alarm range=1 mode=gpio

 

Set alarm #1 to designate which pins trigger alarm:

 

#> set alarm range=1 pin2=high pin3=high

 

#> set alarm range=1 highpins=2,3

 

Set alarm # 1 to send an email message when the alarm condition is met,

 

and enable alarm #1:

 

#> set alarm range=1 active=on type=email to=destination@digi.com

 

subject=”Alarm 1 triggered”

 

Change alarm #1 to send an snmp trap:

 

#> set alarm range=1 highpins=2,3 type=snmptrap

 

Enable alarms:

 

#> set alarm state=on

 

Set up signal-strength and cellular-traffic alarms and send them to

 

Connectware Manager

 

This example shows how to set up two alarm and have them be s to be

 

sent to the Connectware Manager server. It configures two alarms: Alarm

 

#6 for is based on a threshold signal strength value (rssi), and alarm #7 is

 

based on cellular data traffic (cell_data).

 

Disable alarms during configuration:

 

#> set alarm state=off

 

Set alarm #6 to trigger when average GSM rssi drops below -80 dB for at

 

least 20 minutes. Turn alarm #6 on.

 

#> set alarm range=6 active=on mode=rssi_gsm sig_strength_threshold=-80

 

time=20

 

Set alarm #7 to trigger when more than 10000 bytes are sent in a period of

 

5 minutes. Turn alarm #7 on.

 

#> set alarm range=7 active=on mode=cell_data cell_data=10000

 

cell_data_type=transmit time=5

 

Set alarm #8 to trigger when mobile radio temperature exceeds the default

 

thresholds. Turn alarm #8 on.

 

#> set alarm range=8 active=on mode=mobile_temp

 

Set alarm #9 to trigger when 1xEV-DO service is unavailable for a period of

 

3 minutes and also trigger when service becomes available again. Turn

 

alarm #9 on.

 

#> set alarm range=9 active=on mode=1xevdo_unavail time=3

 

optimal_alarms_enabled=yes

 

Set alarm #10 to trigger when the mobile configuration has been changed.

Chapter 2 Command Descriptions

79

Page 79
Image 79
Digi 90000566_H manual Occurs to issuing an Snmp trap, Error conditions triggering alarms, Set alarm #1 mode to Gpio mode