This command is used to clear service statistics for a switch.

Syntax   service-stats-clear

service ftp-data|ftp-control|ssh|telnet|http|https|rpc|sql|imap|ldap|iSCSI|oracle-db|nfs|cifs|iSCSI-target|
lockd|openstack-nova|openstack-keystone|openstack-metering|openstack-neutron| openstack-glance|
openstack-cinder| and more

Specifies the name of the service associated with the well-known UDP or TCP port number. HDFS entries indicate Hadoop services.

Formatting Options

format fields-to-display

Display output using a specific parameter. Use all to display all possible output.

parsable-delim character

Display output formatted for machine parsing using a specified delimiter.


Display output in ascending order.


Display output in descending order.

show dups

Display duplicate entries in the output.

layout vertical|horizontal

Format the output in a vertical or horizontal layout.

show-interval seconds-interval

Repeat the show command at a specified interval.


Display column headers or not.

limit-output number

Limit the display output to a specific number of entries.


Display the number of entries in the output. This is useful with vRouter show commands.


Display full values in the output instead of scaled approximate values.


Display integer values instead of mapped values


Aggregate output by specific parameters. If sum-by fields are specified, records that have the same value in sum-by fields are combined and displayed as one aggregate record. NOTE: This option is only available for show commands that collect statistics such as connection-stats-show.

Defaults   None.

Access   CLI


Version 2.3

Command introduced.

Version 2.4.1

The parameters, port and bytes, deprecated.

Usage   Unless otherwise specified, aggregate statistics are displayed for all UDP and TCP services on the switch. Each switch maintains a set of standard flow-based statistics that are continuously tracked and updated by the switch. Use this command to clear traffic statistics for all UDP and TCP services on the switch.

Examples  To clear service statistics, use the following command:

CLI network-admin@switch > service-stats-clear

See Also