clearlog command

This command clears the management-module audit event log, the system event log, or both.

Table 1. clearlog (clear management-module event log) command
Function What it does Command Valid targets
Clear management-module event log Clears the management-module event log and displays a message confirming that the specified event log was cleared. clearlog
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis log management
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Clear advanced management-module audit or system event log Clears the management-module audit event log, the system event log, or both, and displays a message confirming that the specified event log was cleared.
Notes:
  • Audit log events are created by the actions of users.
  • If the log_type is not specified, this command will clear both logs.
  • Although system events and audit events are stored internally in separate log files, they are presented to the user as a single log that can be filtered.
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:
  • Supervisor
  • Chassis log management
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Example: To clear the management-module audit log, while management module 1 is set as the persistent command environment, at the system:mm[1]> prompt, type
                  clearlog -1 audit
               

The following example shows the information that is returned:

               system:mm[1]> clearlog -1 audit
OK
system:mm[1]>