Cisco Catalyst SD-WAN Rugged Series Router Configuration Guide, Release 26.x and Later

PDF

Cisco Catalyst SD-WAN Rugged Series Router Configuration Guide, Release 26.x and Later

Enable Digital IO Using a CLI Template

Want to summarize with AI?

Log in

Configures digital IO contacts to trigger alarms or provide output current by using alarm contact CLI commands and contact-specific input or output parameters.


Procedure

  1. Enable digital IO, such as to trigger an alarm, on a contact. For contact-number , the range is 1 to 4.

    Example:

    
                            alarm contact
                            contact-number
                            enable
                        
  2. Configure the alarm severity value. The default is minor. For contact-number , the range is 1 to 4.

    Example:

    
                            alarm contact
                            contact-number
                            severity
                             {
                            none
                             | 
                            minor
                             | 
                            major
                             | 
                            critical
                            }
                        
  3. Configure the alarm threshold, in the range of 1,600 to 2,700 mV. The default is 1,600 mV. For contact-number , the range is 1 to 4.

    Example:

    
                            alarm contact
                            contact-number
                            threshold
                            threshold
                        
  4. Configure the alarm trigger mode. The default is closed, meaning that the digital input is triggered if the circuit connected to the contact is closed, providing current. This may be used to trigger an alarm. For contact-number , the range is 1 to 4.

    Example:

    
                            alarm contact
                            contact-number
                            trigger
                             {
                            open
                             | 
                            closed
                            }
                        
  5. For a particular contact, configure the router to provide power for an IO circuit (using the wet option) or not provide power (using the dry option). The default is dry . For contact-number , the range is 1 to 4.

    Example:

    
                            alarm contact
                            contact-number
                            application
                             {
                            dry
                             | 
                            wet
                            }
                        
  6. Configure a contact to be in output mode, and configure whether the router provides current on the contact. Use 1 for high (provide current) or 0 for low (do not provide current). The choice of high or low for a digital IO output depends on the digital IO circuitry that the router is communicating with, and is beyond the scope of this documentation. For contact-number , the range is 1 to 4.

    Example:

    
                            alarm contact
                            contact-number
                            output
                             {
                            0
                             | 
                            1
                            }
                        

    If you configure a contact to be in output mode, then for that contact, do not use any of the commands relevant only to input, such as severity , threshold , trigger , or application .

  7. Configure a description for the digital IO handled by a particular contact. The description string can be up to 80 alphanumeric characters long. The description is included in system messages that relate to the contact number. For contact-number , the range is 1 to 4.

    Example:

    
                            alarm contact
                            contact-number
                            description
                            descriptive-text
                        

Here is a complete configuration example that enables contact 1 in input mode and configures the input parameters:

alarm contact 1 enable
alarm contact 1 severity minor
alarm contact 1 threshold 1600
alarm contact 1 trigger closed
alarm contact 1 application dry
alarm contact 1 description "Sensor indicating enclosure open"

Here is a complete configuration example that enables contact 1 in output mode:

alarm contact 1 enable
alarm contact 1 output 1
alarm contact 1 description "Sensor indicating enclosure open"