ON THIS PAGE
Example: Configure Interface Alarms
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.
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:
Configure an alarm.
[edit] user@host# edit chassis alarm
Specify the interface alarms on a DS1 and an Ethernet link.
[edit chassis alarm] user@host# set ds1 ylw red user@host# set ethernet link–down red
Specify the interface alarms on a serial link.
[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
Specify the interface alarms on a T3 link.
[edit chassis alarm] user@host# set t3 ylw red user@host# set t3 exz yellow user@host# set t3 los red
Configure the system to display active system alarms.
[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.
[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.