The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the system management commands that begin with C.
To clears the contents of the log file, use the clear logging logfile command.
clear logging logfile
This command has no arguments or keywords.
None
EXEC mode
|
|
---|---|
5.2(1)N1(1) |
This command was introduced. |
This example shows how to clear the logging logfile:
switch# clear logging logfile
switch#
|
|
---|---|
show logging logfile |
Displays the messages in the log file. |
To clear the NVRAM logs, use the clear logging nvram command.
clear logging nvram
This command has no arguments or keywords.
None
EXEC mode
|
|
5.2(1)N1(1) |
This command was introduced. |
This example shows how to clear the NVRAM logs:
switch# clear logging nvram
|
|
---|---|
show logging nvram |
Displays the NVRAM logs. |
To clear the onboard failure logging (OBFL) entries in the persistent log, use the clear logging onboard command.
clear logging onboard [environmental-history] [exception-log] [obfl-log] [stack-trace]
None
EXEC mode
|
|
---|---|
5.2(1)N1(1) |
This command was introduced. |
This example shows how to clear the OBFL environmental history entries:
switch# clear logging onboard environmental-history
This example shows how to clear the OBFL exception-log entries:
switch# clear logging onboard exception-log
This example shows how to clear the OBFL (boot-uptime/device-version/obfl-history) entries:
switch# clear logging onboard obfl-log
This example shows how to clear the OBFL stack trace entries:
switch# clear logging onboard stack-trace
|
|
---|---|
show logging onboard |
Displays onboard failure logs. |
To clear the current logging session, use the clear logging session command.
clear logging session
This command has no arguments or keywords.
None
EXEC mode
|
|
5.2(1)N1(1) |
This command was introduced. |
This example shows how to clear the current logging session:
switch# clear logging session
|
|
---|---|
show logging session |
Displays the logging session status. |
To clear the Network Time Protocol (NTP) session, use the clear ntp session command.
clear ntp session
This command has no arguments or keywords.
None
EXEC mode
|
|
5.2(1)N1(1) |
This command was introduced. |
This example shows how to discard the NTP Cisco Fabric Services (CFS) distribution session in progress:
switch# clear ntp session
|
|
---|---|
show ntp |
Displays NTP information. |
To clear the Network Time Protocol (NTP) session, use the clear ntp statistics command.
clear ntp statistics {all-peers | io | local | memory}
all-peers |
Clears all peer transaction statistics. |
io |
Clears I/O statistics. |
local |
Clears local statistics. |
memory |
Clears memory statistics. |
None
EXEC mode
|
|
5.2(1)N1(1) |
This command was introduced. |
This example shows how to discard the NTP I/O statistics:
switch# clear ntp statistics io
|
|
---|---|
show ntp |
Displays NTP information. |
To commit the current configuration session, use the commit command.
commit
This command has no arguments or keywords.
None
Session configuration mode
|
|
---|---|
5.2(1)N1(1) |
This command was introduced. |
This example shows how to commit the current session:
switch(config-s)# commit
switch(config-s)#
|
|
---|---|
configure session |
Creates a configuration session. |
show configuration session |
Displays the contents of the session. |
verify |
Verifies a session. |