C Commands
This chapter describes the system management commands that begin with C.
clear logging logfile
To clears the contents of the log file, use the clear logging logfile command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to clear the logging logfile:
Related Commands
|
|
---|---|
clear logging nvram
To clear the NVRAM logs, use the clear logging nvram command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to clear the NVRAM logs:
Related Commands
|
|
---|---|
clear logging onboard
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 ]
Syntax Description
(Optional) Clears the OBFL (boot-uptime/device-version/obfl-history). |
|
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to clear the OBFL environmental history entries:
This example shows how to clear the OBFL exception-log entries:
This example shows how to clear the OBFL (boot-uptime/device-version/obfl-history) entries:
This example shows how to clear the OBFL stack trace entries:
Related Commands
|
|
---|---|
clear logging session
To clear the current logging session, use the clear logging session command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to clear the current logging session:
Related Commands
|
|
---|---|
clear ntp session
To clear the Network Time Protocol (NTP) session, use the clear ntp session command.
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to discard the NTP Cisco Fabric Services (CFS) distribution session in progress:
Related Commands
|
|
---|---|
clear ntp statistics
To clear the Network Time Protocol (NTP) session, use the clear ntp statistics command.
clear ntp statistics { all-peers | io | local | memory }
Syntax Description
Command Default
Command Modes
Command History
|
|
Examples
This example shows how to discard the NTP I/O statistics:
Related Commands
|
|
---|---|
commit (session)
To commit the current configuration session, use the commit command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Examples
This example shows how to commit the current session:
Related Commands
|
|
---|---|