clear security alarms
Syntax
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:
|
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:
|
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
- clear security alarms alarm-id <alarm-id>
- clear security alarms alarm-type authentication
- clear security alarms newer-than <time>
- show security alarms older-than <time>
- show security alarms process <process>
- show security alarms severity <severity>
clear security alarms all
[3 SECURITY ALARMS] user@router> clear security alarms all 3 security alarms cleared
clear security alarms alarm-id <alarm-id>
[3 SECURITY ALARMS] user@router> clear security alarms alarm-id 1 1 security alarm cleared
clear security alarms alarm-type authentication
[3 SECURITY ALARMS] user@router> clear security alarms alarm-type authentication 3 security alarms cleared
clear security alarms newer-than <time>
[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>
[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>
[3 SECURITY ALARMS] user@router> clear security alarms process sshd 3 security alarms cleared
show security alarms severity <severity>
[3 SECURITY ALARMS] user@router> clear security alarms severity notice 3 security alarms cleared
Release Information
Command introduced in Junos OS Release 11.2.