21.6. Activation of the alarms for IOBOX devices

21.6.1. Activation of the alarms for the RVS/RIO

In case of Digital or Analog input/output variation is possible to activate alarms.

Example: send an e-mail if Digital Output 2 becomes ON on RVS device.

[19:06:49] ABILIS_CPX:d p alarm

RES:Alarm ---------------------------------------------------------------------
Run    DESCR:Alarms_manager
       LOG:NO        ACT:YES             fifo-size:100    
       -- Mail ----------------------------------------------------------------
       MAIL-FROM:AUTO (alarm@abilis_cpx)
       MAIL-TO:
       MAIL-TO-LIST:SYS (#)
       MAIL-BODY:STANDARD
       -- SMS -----------------------------------------------------------------
       SMS-SENDER:CP-PI                  SMS-CDO:#
       -- Disa Voice Call -----------------------------------------------------
       DISA-USER:#                       DISA-SERVICE:#
       DISA-CDO:#                        DISA-CGO:#                         
                             

[14:53:28] ABILIS_CPX:a alarm id:7 enabled:yes res:rvs-1 action:mail io:d-out-1 trigger:on mail-to:alarms@mydomain.com

COMMAND EXECUTED 

[14:53:35] ABILIS_CPX:d alarm id:7

- Not Saved (SAVE CONF), Not Refreshed (INIT) ---------------------------------
-------------------------------------------------------------------------------
ID: |[DESCR:]
    |ENABLED:|RES:              |IO:         |TRIGGER: |ACTION:
    |MAIL-TO:
    |MAIL-TO-LIST:
    |MAIL-BODY:
    |SMS-CDO:
    |DISA-USER:                 |DISA-SERVICE:
    |DISA-CDO:                  |DISA-CGO:
-------------------------------------------------------------------------------
7    YES      Rvs-1              D-OUT-1      ON        MAIL
     - Mail -------------------------------------------------------------------
     alarms@mydomain.com
     #
     SYS
------------------------------------------------------------------------------- 
[Note]Note

Initialize alarm rules and save the configuration with init alarm and save conf .

Corresponding command for RIO:

[14:56:56] ABILIS_CPX:a alarm id:7 enabled:yes res:rio-1 action:mail io:d-out-1 trigger:on mail-to:alarms@mydomain.com

COMMAND EXECUTED 

[14:57:05] ABILIS_CPX:d alarm id:7                                                                                      

- Not Saved (SAVE CONF), Not Refreshed (INIT) ---------------------------------
-------------------------------------------------------------------------------
ID: |[DESCR:]
    |ENABLED:|RES:              |IO:         |TRIGGER: |ACTION:
    |MAIL-TO:
    |MAIL-TO-LIST:
    |MAIL-BODY:
    |SMS-CDO:
    |DISA-USER:                 |DISA-SERVICE:
    |DISA-CDO:                  |DISA-CGO:
-------------------------------------------------------------------------------
7    YES      Rio-1              D-OUT-1      ON        MAIL
     - Mail -------------------------------------------------------------------
     alarms@mydomain.com
     #
     SYS 
[Note]Note

Initialize alarm rules and save the configuration with init alarm and save conf .

To see the help online use the following command:

[19:06:49] ABILIS_CPX:a alarm id:7 ? trigger: io: 

Alarm management rule parameter(s):

TRIGGER:   Alarm/event to be monitored [NONE, TRAP, ALARM-ON, ALARM-OFF,
           ALARM-*, ON, OFF, LOW, NORMAL, HIGH, *]
           TRAP : allowed only for ACTION not equal to DISA-CB.
           TRAP, ALARM-ON, ALARM-OFF : allowed only for IO equal to #.
           ON, OFF, * : allowed only for Digital lines.
           LOW, NORMAL, HIGH, * : allowed only for Analog lines.
IO:        Input/output line for which the alarm/event is monitored. # or 
           - for Rio : DI-* or DO-* or DI-n or DO-n, where 'n' can be [1..16] or
                       AI-* or AO-* or AI-n or AO-n, where 'n' can be [1..8]
           - for Rvs : DI-* or DO-* or DI-n or DO-n, where 'n' can be [1..4]
           - for Wio : DI-* or DO-* or DI-xxxx.n or DO-xxxx.n, where
                       'xxxx' is the wireless-slave number [1..1000] and
                       'n' can be [1..4] or
                       AI-* or AO-* or AI-xxxx.n or AO-xxxx.n, where
                       'xxxx' is the wireless-slave number [1..1000] and
                       'n' can be [1].
                                         <Only for Rio/Wio/Rvs resources>
[Tip]Tip

Other information about Alarm resource are available in the Section 42.1, “ALARM resource”.