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 clear the statistics for a Flexible NetFlow flow exporter, use the clear flow exporter command.
clear flow exporter { name exporter-name | exporter-name }
|
|
---|---|
You must have already enabled traffic monitoring with Flexible NetFlow using an exporter before you can use the clear flow exporter command.
This example clears the statistics for the flow exporter named NFC-DC-PHOENIX:
|
|
---|---|
To clears the contents of the log file, use the clear logging logfile command.
|
|
---|---|
This example shows how to clear the logging logfile:
|
|
---|---|
To clear the NVRAM logs, use the clear logging nvram command.
|
|
---|---|
This example shows how to clear 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 ]
(Optional) Clears the OBFL (boot-uptime/device-version/obfl-history). |
|
|
|
---|---|
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:
|
|
---|---|
To clear the current logging session, use the clear logging session command.
|
|
---|---|
This example shows how to clear the current logging session:
|
|
---|---|
To clear the Network Time Protocol (NTP) session, use the clear ntp session command.
|
|
---|---|
This example shows how to discard the NTP Cisco Fabric Services (CFS) distribution session in progress:
|
|
---|---|
To clear the Network Time Protocol (NTP) session, use the clear ntp statistics command.
clear ntp statistics { all-peers | io | local | memory }
|
|
---|---|
This example shows how to discard the NTP I/O statistics:
|
|
---|---|
To configure the flow sampler ID number as a nonkey field and collect their values for a Flexible NetFlow flow record, use the collect flow command. To disable the use of the flow direction or the flow sampler ID number as a nonkey field for a Flexible NetFlow flow record, use the no form of this command.
Configures the flow sampler ID as a nonkey field and collects the ID of the sampler that is assigned to the flow monitor. |
|
|
---|---|
The Flexible NetFlow commands that start with collect are used to configure nonkey fields for the flow monitor record and to enable capturing the values in the fields for the flow created with the record. The values in nonkey fields are added to flows to provide additional information about the traffic in the flows. A change in the value of a nonkey field does not create a new flow. In most cases, the values for nonkey fields are taken from only the first packet in the flow.
Use the collect flow sampler id command to collect the ID of the flow sampler that is used to monitor the flow. Use this command when more than one flow sampler is being used with different sampling rates. The option sampler-table command exports option records with mappings of the flow sampler ID to the sampling rate so that the collector can calculate the scaled counters for each flow.
This example shows how to configure an ID of the flow sampler that is assigned to the flow as a nonkey field and collects the ID of the flow sampler:
To commit the current configuration session, use the commit command.
|
|
---|---|
This example shows how to commit the current session:
|
|
---|---|
To enter a maintenance profile configuration session to create a custom maintenance mode profile or a custom normal mode profile, use the configure maintenance profile command. To delete the existing maintenance mode profile or normal mode profile, use the no form of this command. Starting with Cisco NX-OS Release 7.3(0)N1(1), we recommend not using the configure profile [ maintenance-mode | normal-mode ] type admin command and we strongly recommend using the configure maintenance profile [ maintenance-mode | normal-mode ] command.
configure maintenance profile [ maintenance-mod e | normal-mode ]
no configure maintenance profile [ maintenance-mode | normal-mode ]
Enters the maintenance profile configuration session for a maintenance mode profile. |
|
Enters the maintenance profile configuration session for a normal mode profile. |
Global configuration mode (config)
|
|
This example shows how to enter a maintenance profile configuration session for a maintenance mode profile:
This example shows how to enter a maintenance profile configuration session for a normal mode profile:
This example shows how to delete a maintenance profile: