Cisco Nexus 6000 Series NX-OS System Management Command Reference
C Commands
Downloads: This chapterpdf (PDF - 104.0KB) The complete bookPDF (PDF - 1.17MB) | Feedback

C Commands

Table Of Contents

C Commands

clear logging logfile

clear logging nvram

clear logging onboard

clear logging session

clear ntp session

clear ntp statistics

commit (session)


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.

clear logging logfile

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification

6.0(2)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

show logging logfile

Displays the messages in the log file.


clear logging nvram

To clear the NVRAM logs, use the clear logging nvram command.

clear logging nvram

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.


Examples

This example shows how to clear the NVRAM logs:

switch# clear logging nvram 
 
   

Related Commands

Command
Description

show logging nvram

Displays the NVRAM logs.


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

environmental-history

(Optional) Clears the OBFL environmental history.

exception-log

(Optional) Clears the OBFL exception log entries.

obfl-log

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

stack-trace

(Optional) Clears the OBFL stack trace entries.


Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification

6.0(2)N1(1)

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

show logging onboard

Displays onboard failure logs.


clear logging session

To clear the current logging session, use the clear logging session command.

clear logging session

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.


Examples

This example shows how to clear the current logging session:

switch# clear logging session 
 
   

Related Commands

Command
Description

show logging session

Displays the logging session status.


clear ntp session

To clear the Network Time Protocol (NTP) session, use the clear ntp session command.

clear ntp session

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification

6.0(2)N1(1)

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

show ntp

Displays NTP information.


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

all-peers

Clears all peer transaction statistics.

io

Clears I/O statistics.

local

Clears local statistics.

memory

Clears memory statistics.


Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification

6.0(2)N1(1)

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

show ntp

Displays NTP information.


commit (session)

To commit the current configuration session, use the commit command.

commit

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes

Session configuration mode

Command History

Release
Modification

6.0(2)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

configure session

Creates a configuration session.

show configuration session

Displays the contents of the session.

verify

Verifies a session.