Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Example: Configuring Interface Alarms

This example shows how to configure interface alarms.

Requirements

Before you begin:

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 into the device.

Configuration

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, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

set chassis alarm ds1 ylw redset 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 redset 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.

To configure interface alarms:

  1. Configure an alarm.
    [edit]user@host# edit chassis alarm
  2. Specify the interface alarms on a DS1 and an Ethernet link.
    [edit chassis alarm]user@host# set ds1 ylw reduser@host# set ethernet link–down red
  3. Specify the interface alarms on a serial link.
    [edit chassis alarm]user@host# set serial cts-absent yellowuser@host# set serial dcd-absent yellowuser@host# set serial loss-of-rx-clock reduser@host# set serial loss-of-tx-clock red
  4. Specify the interface alarms on a T3 link.
    [edit chassis alarm]user@host# set t3 ylw reduser@host# set t3 exz yellowuser@host# set t3 los red
  5. Configure the system to display active system alarms.
    [edit]user@host# edit system loginuser@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.

[edit]user@host# show chassis alarmst3 {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 loginshow system loginshow 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.

Published: 2015-02-25