clearlog command
This command clears the CMM audit event log, the system event log, or both.
If command syntax is not correctly entered, or if a command fails to run, an error message is returned. See Common errors for a list of error messages that apply to all commands or clearlog command errors for a list of error messages that are specific to the clearlog command.
Function | What it does | Command | Target (see paths in Command targets) |
---|---|---|---|
Clear CMM event log | Clears the both the CMM audit event log and the CMM system event log, displaying a message confirming that both event logs were cleared. Note
| clearlog This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Clear CMM audit or system event log | Clears the CMM audit event log, the system event log, or both, and displays a message confirming that the specified event log was cleared. Note
| clearlog -l log_type where log_type is audit or system . This command can only be run by users who have one or more of the following command authorities:
| Primary CMM:
|
Example: To clear both the CMM audit log and the CMM system event log, while the primary CMM in bay 1 is set as the persistent command environment, at the system:mm[1]> prompt, type
clearlog
To clear the CMM audit log, while the primary CMM in bay 1 is set as the persistent command environment, at the system:mm[1]> prompt, type
clearlog -1 audit
To clear the CMM system event log, while the primary CMM in bay 1 is set as the persistent command environment, at the system:mm[1]> prompt, type
clearlog -1 system
The following examples shows the information that is returned from these commands:
system:mm[1]> clearlog -1 audit
OK
I Audit (CMM 02) The Audit log has been cleared by user ID USERID from SSH at address 9.42.104.88.
I SERVPROC (CMM 02) The Event log has been cleared by user ID USERID from SSH at address 9.42.104.88.
system:mm[1]>clearlog -1 audit
OK
I Audit (CMM 02) The Audit log has been cleared by user ID USERID from SSH at address 9.42.104.88.
clearlog -1 system
OK
I SERVPROC (CMM 02) The Event log has been cleared by user ID USERID from SSH at address 9.42.104.88.
Give documentation feedback