To configure the length of time before cleared fault messages are deleted, use the set retention-interval command.
set retention-interval { forever | days hours minutes seconds }
| forever |
Specifies that fault messages are never deleted. |
| days |
Specifies the number of days that fault messages are retained. The range is 0 to 65535 days. |
| hours |
Specifies the number of hours that fault messages are retained. The range is 0 to 23 hours; the default is 1 hour |
| minutes |
Specifies the number of minutes that fault messages are retained. The range is 0 to 59 minutes. |
| seconds |
Specifies the number of seconds that fault messages are retained. The range is 0 to 59 seconds. |
None
Fault-policy (/monitoring/fault-policy)
| Release | Modification |
|---|---|
|
1.0(2) |
This command was introduced. |
Use this command to set the retention period for fault messages when the set clear-action command is configured to retain messages.
This example shows how to set the fault message retention period to 30 days:
switch-A# scope monitoring switch-A /monitoring # scope fault policy switch-A /monitoring/fault-policy # set clear-action retain switch-A /monitoring/fault-policy* # set retention-interval 30 0 0 0 switch-A /monitoring/fault-policy* # commit-buffer switch-A /monitoring/fault-policy #
|
Command |
Description |
|
set clear-action |
|
|
show fault policy |
|