Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

close
keyboard_arrow_left
Network Management and Monitoring Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Example: Configure Interface Alarms

date_range 28-Jul-23

This example shows how to configure interface alarms.

Requirements

Before you begin:

  • Establish basic connectivity.

  • Configure network interfaces. See Interfaces User Guide for Security Devices.

  • Select the network interface on which to apply an alarm and the condition you want to trigger the alarm.

Overview

In this example, you enable interface alarms by explicitly setting alarm conditions. You configure the system to generate a red interface alarm when a yellow alarm is detected on a DS1 link. You configure the system to generate a red interface alarm when a link-down failure is detected on an Ethernet link.

For a serial link, you set cts-absent and dcd-absent to yellow to signify either the CST or the DCD signal is not detected. You set loss-of-rx-clock and loss-of-tx-clock to red alarm to signify either the receiver clock signal or the transmission clock signal is not detected.

For a T3 link, you set the interface alarm to red when the remote endpoint is experiencing a failure. You set exz to yellow alarm when the upstream bit has more consecutive zeros than are permitted in a T3 interface. You then set a red alarm when there is loss-of-signal on the interface.

Finally, you configure the system to display active system alarms whenever a user with the login class admin logs in to the device.

Configuration

Procedure

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, copy and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.

content_copy zoom_out_map
set chassis alarm ds1 ylw red
set chassis alarm ethernet link-down red 
set chassis alarm serial cts-absent yellow dcd-absent yellow 
set chassis alarm serial loss-of-rx-clock red loss-of-tx-clock red
set chassis alarm t3 ylw red exz yellow los red 
set system login class admin login-alarms 

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode in the Junos OS CLI User Guide .

To configure interface alarms:

  1. Configure an alarm.

    content_copy zoom_out_map
    [edit]
    user@host# edit chassis alarm
    
  2. Specify the interface alarms on a DS1 and an Ethernet link.

    content_copy zoom_out_map
    [edit chassis alarm]
    user@host# set ds1 ylw red
    user@host# set ethernet link–down red 
    
  3. Specify the interface alarms on a serial link.

    content_copy zoom_out_map
    [edit chassis alarm]
    user@host# set serial cts-absent yellow
    user@host# set serial dcd-absent yellow
    user@host# set serial loss-of-rx-clock red
    user@host# set serial loss-of-tx-clock red
    
  4. Specify the interface alarms on a T3 link.

    content_copy zoom_out_map
    [edit chassis alarm]
    user@host# set t3 ylw red
    user@host# set t3 exz yellow
    user@host# set t3 los red
    
  5. Configure the system to display active system alarms.

    content_copy zoom_out_map
    [edit]
    user@host# edit system login
    user@host# set class admin login-alarms
    

Results

From configuration mode, confirm your configuration by entering the show chassis alarms and show system login commands. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

content_copy zoom_out_map
[edit]
    user@host# show chassis alarms
    t3 {
    exz yellow;
        los red;
    ylw red;
    }
    ds1 {
        ylw red;
    }
    ethernet {
        link-down red;
    }
    serial {
        loss-of-rx-clock red;
        loss-of-tx-clock red;
        dcd-absent yellow;
        cts-absent yellow;
    }
    [edit]
        user@host# show system login
        show system login
    show system login
}

If you are done configuring the device, enter commit from configuration mode.

Verification

Verifying the Alarm Configurations

Purpose

Confirm that the configuration is working properly.

Verify that the alarms are configured.

Action

From configuration mode, enter the show chassis alarms command. Verify that the output shows the intended configuration of the alarms.

external-footer-nav