NSX CLI Guide

Associated Commands:

CLI Description Command

Clear flow table for all fastpaths


Clear flow table for all fastpaths
clear ens flow-table

Show ENS device affinity list


Show the current device affinity of enhanced datapath.
get ens dev affinity list

Get flow stats for an ENS switch with switch ID


Show flow stats for an ENS switch with switch ID
get ens flow-stats <switch-id-arg>

Get flow stats for an ENS fastpath with switch ID and lcore ID


Show flow stats for an ENS fastpath with switch ID and lcore ID
get ens flow-stats <switch-id-arg> <lcore-ID-arg>

Dump Flow Table for all lcores of requested switch ID


Dump Flow Table for all lcores of requested switch ID
get ens flow-table dump <switch-id-arg>

Dump Flow Table for a specific lcore from specific switch


Dump Flow Table for a specific lcore from specific switch
get ens flow-table dump <switch-id-arg> <lcore-ID-arg>

Get flow table size


Get flow table size
get ens flow-table size

Get flow timeout in seconds


Get flow timeout in seconds
get ens flow-table timeout

Get global FPO configuration


Get global FPO configuration
get ens fpo

Get FPO stats for a datapath with switch ID and lcore ID


Get FPO stats for a datapath with switch ID and lcore ID
get ens fpo stats <switch-id-arg> <lcore-ID-arg>

Get FPO stats for a datapath with uplink name


Get FPO stats for a datapath with uplink name
get ens fpo stats <uplink-arg>

Get FPO status for an uplink


Get FPO status for an uplink
get ens fpo status <uplink-arg>

Get HW flow cache counters on smart NIC


Get HW flow cache counters on smart NIC
get ens hw-flow-stats

Get the lcore latency config data


Get the lcore latency config data
get ens latency lcore config <switch-id-arg>

Dump the lcore latency stats data


Dump the lcore latency stats data
get ens latency lcore dump <switch-id-arg>

Dump latency histos for all vmxnet3 vnics and all lcores of this switch


Dump latency histos for all vmxnet3 vnics and all lcores of this switch
get ens latency system dump <switch-id-arg>

Show ENS lcore assignment mode


Show the current mode of enhanced datapath lcore assignment.
get ens lcore-assignment-mode <hs-name-arg>

List all ports in all switches


List all ports in all switches
get ens port list

List all ports in a specified ENS switch


List all ports in a specified ENS switch
get ens port list <switch-id-arg>

Get the netq information for a port


Get the netq information for a port
get ens port netq <switch-id-arg> <ens-port-id-arg>

Get PRP config for a switch


Get PRP config for a switch
get ens prp config <switch-id-arg>

List all active PRP nodes


List all active PRP nodes
get ens prp node <switch-id-arg>

Get a PRP node information


Get a PRP node information
get ens prp node <switch-id-arg> <vLAN-id-arg> <mac-arg>

List PRP per lcore stats


List PRP per lcore stats
get ens prp stats lcore <switch-id-arg> <lcore-aggr-arg>

List all active PRP nodes stats


List all active PRP nodes stats
get ens prp stats node <switch-id-arg>

List vDAN stats


List vDAN stats
get ens prp stats vdan <switch-id-arg>

List active vDANs


List active vDANs
get ens prp vdan list <switch-id-arg>

List all ENS switches


List all ENS switches
get ens switch list

List latest Telemetry related infra-counters.


List latest Telemetry related infra-counters.
get ens telemetry-infra-counters

Dump thread load balancer statistics


Dump thread load balancer statistics
get ens tlb stats

Dump thread load balancer statistics for a specific switch


Dump thread load balancer statistics for a specific switch
get ens tlb stats <switch-id-arg>

Get the current thread load balancer status


Get the current thread load balancer status
get ens tlb status <hs-name-arg>

Get the RSS setting of an uplink


Get the RSS setting of an uplink
get ens uplink rss list <uplink-arg>

Get the stats and private stats of an uplink port


Get the stats and private stats of an uplink port
get ens uplink stats <uplink-arg>

Get MAC Table associated with a Team of a vswitch


Get MAC Table associated with a Team of a vswitch
get vswitch mac-table team <hs-name-arg>

Disable flow cache for all switches


Disable flow cache for all switches
set ens flow-table disable

Disable flow cache for a specific switch


Disable flow cache for a specific switch
set ens flow-table disable <switch-id-arg>

Enable flow cache for all switches


Enable flow cache for all switches
set ens flow-table enable

Enable flow cache for a specific switch


Enable flow cache for a specific switch
set ens flow-table enable <switch-id-arg>

Set flow table size per Lcore. Rounded up to nearest power of 2.


Set flow table size per Lcore. Rounded up to nearest power of 2.
set ens flow-table size <size-arg>

Enable/disable global FPO and configure FPO model


Enable/disable global FPO and configure FPO model
set ens fpo <fpo-config-arg>

Enable/disable per switch FPO and configure FPO model


Enable/disable per switch FPO and configure FPO model
set ens fpo <fpo-config-arg> <hs-name-arg>

Change ENS lcore assignment mode


Change mode of enhanced datapath lcore assignment.
set ens lcore-assignment-mode <hs-name-arg> <ens-lc-mode-arg>

Migrate port queue between lcores


Migrate port queue between lcores
set ens port migrate <switch-id-arg> <ens-port-id-arg> <queue-id-arg> <dir-arg> <lcore-ID-arg>

Disable usePerVnicQCb option of ENS switch


Disable usePerVnicQCb option of ENS switch
set ens switch use-per-vnic-qcb disable <hs-name-arg>

Enable usePerVnicQCb option of ENS switch


Enable usePerVnicQCb option of ENS switch
set ens switch use-per-vnic-qcb enable <hs-name-arg>

Disable automatic thread load balancing


Disable automatic thread load balancing
set ens tlb status disable <hs-name-arg>

Enable automatic thread load balancing


Enable automatic thread load balancing
set ens tlb status enable <hs-name-arg>

Enable automatic thread load balancing based on metric


Enable automatic thread load balancing based on metric
set ens tlb status enable <hs-name-arg> <metric-arg>

Set Tx and Rx ring size of an uplink


Set Tx and Rx ring size of an uplink
set ens uplink ring-size <uplink-arg> <tx-ring-size-arg> <rx-ring-size-arg>

Total commands: 50