C Commands

This chapter describes the system management commands that begin with C.

clear logging logfile

command.

 
Syntax Description

This command has no arguments or keywords.

 
Command Default

None

 
Command Modes

EXEC mode

 
Command History

Release
Modification

4.0(0)N1(1)

This command was introduced.

Examples

This example shows how to clear the logging logfile:

switch# clear logging logfile
switch#
 

 
Related Commands

Command
Description

Displays the messages in the log file.

clear logging nvram

command.

 
Syntax Description

This command has no arguments or keywords.

 
Command Default

None

 
Command Modes

EXEC mode

 
Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.

Examples

This example shows how to clear the NVRAM logs:

switch# clear logging nvram
 

 
Related Commands

Command
Description

Displays the NVRAM logs.

clear logging onboard

command.

 
Syntax Description

(Optional) Clears the OBFL environmental history.

(Optional) Clears the OBFL exception log entries.

(Optional) Clears the OBFL (boot-uptime/device-version/obfl-history).

(Optional) Clears the OBFL stack trace entries.

 
Command Default

None

 
Command Modes

EXEC mode

 
Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.

Examples

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
 

 
Related Commands

Command
Description

Displays onboard failure logs.

clear logging session

command.

 
Syntax Description

This command has no arguments or keywords.

 
Command Default

None

 
Command Modes

EXEC mode

 
Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.

Examples

This example shows how to clear the current logging session:

switch# clear logging session
 

 
Related Commands

Command
Description

Displays the logging session status.

clear ntp session

command.

 
Syntax Description

This command has no arguments or keywords.

 
Command Default

None

 
Command Modes

EXEC mode

 
Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.

Examples

This example shows how to discard the NTP Cisco Fabric Services (CFS) distribution session in progress:

switch# clear ntp session
 

 
Related Commands

Command
Description

Displays NTP information.

clear ntp statistics

command.

 
Syntax Description

Clears all peer transaction statistics.

Clears I/O statistics.

Clears local statistics.

Clears memory statistics.

 
Command Default

None

 
Command Modes

EXEC mode

 
Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.

Examples

This example shows how to discard the NTP I/O statistics:

switch# clear ntp statistics io
 

 
Related Commands

Command
Description

Displays NTP information.

commit (session)

command.

 
Syntax Description

This command has no arguments or keywords.

 
Command Default

None

 
Command Modes

Session configuration mode

 
Command History

Release
Modification

4.0(0)N1(1)

This command was introduced.

Examples

This example shows how to commit the current session:

switch(config-s)# commit
switch(config-s)#
 

 
Related Commands

Command
Description

Creates a configuration session.

Displays the contents of the session.

Verifies a session.