Supported Platforms
Related Documentation
- J, LN, SRX Series
- Alarm Overview
- Monitoring Active Alarms on a Device
- Monitoring Alarms
Example: Configuring Interface Alarms
This example shows how to configure interface alarms.
Requirements
Before you begin:
- Establish basic connectivity. See the Getting Started Guide for your device.
- Configure network interfaces. See Junos OS Interfaces Library for Security Devices.
- Select the network interface on which to apply an alarm and the condition you want to trigger the alarm. See Alarm Overview.
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.
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:
- 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 reduser@host# set ethernet link–down red
- 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
- 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
- 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.
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.
Related Documentation
- J, LN, SRX Series
- Alarm Overview
- Monitoring Active Alarms on a Device
- Monitoring Alarms
Published: 2015-02-25
Supported Platforms
Related Documentation
- J, LN, SRX Series
- Alarm Overview
- Monitoring Active Alarms on a Device
- Monitoring Alarms