Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
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

clear security alarms

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
clear security alarms
<all>
<alarm-id id-number>
<alarm-type [ types ]>
<newer-than YYYY-MM-DD.HH:MM:SS>
<older-than YYYY-MM-DD.HH:MM:SS>
<process process>
<severity severity>

Description

Clear (acknowledge) the alarms that are active on the device.

Options

all

(Optional) Clear all active alarms.

alarm-id id-number

(Optional) Clear the specified alarm.

alarm-type [ types ]

(Optional) Clear the specified alarm type or a set of types.

You can specify one or more of the following alarm types:

  • authentication

  • cryptographic-self-test

  • decryption-failures

  • encryption-failures

  • ike-phase1-failures

  • ike-phase2-failures

  • key-generation-self-test

  • non-cryptographic-self-test

  • policy

  • replay-attacks

newer-than YYYY-MM-DD.HH:MM:SS

(Optional) Clear active alarms that were raised after the specified date and time.

older-than YYYY-MM-DD.HH:MM:SS

(Optional) Clear active alarms that were raised before the specified date and time.

process process

(Optional) Clear active alarms that were raised by the specified system process.

severity severity

(Optional) Clear active alarms of the specified severity.

You can specify the following severity levels:

  • alert

  • crit

  • debug

  • emerg

  • err

  • info

  • notice

  • warning

Required Privilege Level

security—To view this statement in the configuration.

Output Fields

This command produces no output, except a statement about the number of security alarms cleared.

Sample Output

clear security alarms all

content_copy zoom_out_map
[3 SECURITY ALARMS] user@router> clear security alarms all

3 security alarms cleared

clear security alarms alarm-id <alarm-id>

content_copy zoom_out_map
[3 SECURITY ALARMS] user@router> clear security alarms alarm-id 1

1 security alarm cleared

clear security alarms alarm-type authentication

content_copy zoom_out_map
[3 SECURITY ALARMS] user@router> clear security alarms alarm-type authentication

3 security alarms cleared

clear security alarms newer-than <time>

content_copy zoom_out_map
[3 SECURITY ALARMS] user@router> clear security alarms newer-than 2010-01-19.13:41:59

1 security alarm cleared

show security alarms older-than <time>

content_copy zoom_out_map
[3 SECURITY ALARMS] user@router> clear security alarms older-than 2010-01-19.13:41:59 

2 security alarms cleared

show security alarms process <process>

content_copy zoom_out_map
[3 SECURITY ALARMS] user@router> clear security alarms process sshd 

3 security alarms cleared

show security alarms severity <severity>

content_copy zoom_out_map
[3 SECURITY ALARMS] user@router> clear security alarms severity notice 

3 security alarms cleared

Release Information

Command introduced in Junos OS Release 11.2.

footer-navigation