ESXCLI Commands

ESXCLI Commands

esxcli network Commands

Command Description Options Help
network diag ping Send ICMP echo requests to network hosts.
--count | -c
Specify the number of packets to send.
--debug | -D
VMKPing debug mode.
--df | -d
Set DF bit on IPv4 packets.
--host | -H
Specify the host to send packets to. This parameter is required when not executing ping in debug mode (-D)
--interface | -I
Specify the outgoing interface.
--interval | -i
Set the interval for sending packets in seconds.
--ipv4
Ping with ICMPv4 echo requests.
--ipv6
Ping with ICMPv6 echo requests.
--netstack
Specify the TCP/IP netstack which the interface resides on
--nexthop | -N
Override the system's default route selection, in dotted quad notation. (IPv4 only. Requires interface option)
--size | -s
Set the payload size of the packets to send.
--ttl | -t
Set IPv4 Time To Live or IPv6 Hop Limit
--wait | -W
Set the timeout to wait if no responses are received in seconds.
--help
Show the help message.
network ens lcore add Create ENS context.
--lcore-id | -l
ENS context id to be created. (required)
--help
Show the help message.
network ens lcore list List ENS contexts.
--help
Show the help message.
network ens lcore remove Destroy ENS context.
--lcore-id | -l
ENS context id to be destroyed. (required)
--help
Show the help message.
network ens lcore affinity get Get the affinity for given ENS context.
--lcore-id | -l
ENS context id. (required)
--help
Show the help message.
network ens lcore affinity set Set affinity for given ENS context.
--affinity | -a
Numa node affinity. (required)
--lcore-id | -l
ENS context id. (required)
--help
Show the help message.
network ens lcore switch add Associate given ENS context with given switch.
--lcore-id | -l
ENS context id. (required)
--switch | -s
Switch name. (required)
--help
Show the help message.
network ens lcore switch get Get the switch associated with given ENS context.
--lcore-id | -l
ENS context id. (required)
--help
Show the help message.
network ens lcore switch remove Disassociate given ENS context from virtual switch.
--lcore-id | -l
ENS context id. (required)
--help
Show the help message.
network ens maxLcores get Get the maximum number of ENS contexts (lcores).
--help
Show the help message.
network ens maxLcores set Set the maximum number of ENS contexts.
--maxlcores | -n
Number of maximum ENS contexts to be assigned. (required)
--help
Show the help message.
network firewall get Get the firewall status.
--help
Show the help message.
network firewall load Load firewall module and rulesets configuration.
--help
Show the help message.
network firewall refresh Load ruleset configuration for firewall.
--help
Show the help message.
network firewall set Set firewall enabled status and default action.
--default-action | -d
Set to true to set defaultaction PASS, set to false to DROP.
--enabled | -e
Set to true to enable the firewall, set to false to disable the firewall.
--help
Show the help message.
network firewall unload Allow unload firewall module.
--help
Show the help message.
network firewall ruleset list List the rulesets in firewall.
--ruleset-id | -r
List configuration for specfic ruleset
--help
Show the help message.
network firewall ruleset set Set firewall ruleset status (allowedAll flag and enabled status).
--allowed-all | -a
Set to true to allowed all ip, set to false to use allowed ip list.
--enabled | -e
Set to true to enable ruleset, set to false to disable it.
--ruleset-id | -r
The label of the ruleset. (required)
--help
Show the help message.
network firewall ruleset allowedip add Add allowed ip address/range to the ruleset ruleset.
--ip-address | -i
Allowed ip address/range for the ruleset. (required)
--ruleset-id | -r
The label of the ruleset. (required)
--help
Show the help message.
network firewall ruleset allowedip list list allowed ip addresses for rulesets.
--ruleset-id | -r
The label of the ruleset.
--help
Show the help message.
network firewall ruleset allowedip remove Remove allowed ip address/range from the ruleset.
--ip-address | -i
Allowed ip address/range for the ruleset. (required)
--ruleset-id | -r
The label of the ruleset. (required)
--help
Show the help message.
network firewall ruleset client add Add a new client to a firewall ruleset. This enables the firewall ruleset and increments the number of clients using the ruleset.
--ruleset-id | -r
The label of the ruleset. (required)
--help
Show the help message.
network firewall ruleset client get Show the number of clients using a firewall ruleset.
--ruleset-id | -r
The label of the ruleset. (required)
--help
Show the help message.
network firewall ruleset client remove Remove a client from a firewall ruleset. This decrements the number of clients using the ruleset and if the number reaches zero the ruleset is disabled.
--ruleset-id | -r
The label of the ruleset. (required)
--help
Show the help message.
network firewall ruleset rule list List the rules of each ruleset in firewall.
--ruleset-id | -r
List rules for specfic ruleset
--help
Show the help message.
network ip get Get global IP settings
--help
Show the help message.
network ip set Update global IP settings
--ipv6-enabled | -e
Enable or disable IPv6 (Reboot Required)
--help
Show the help message.
network ip connection list List active TCP/IP connections
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--type | -t
Connection type: [ip, tcp, udp, all]
--help
Show the help message.
network ip dns search add Add a search domain to the list of domains to be searched when trying to resolve an host name on the ESXi host.
--domain | -d
The string name of a domain to add to the list of search domains. (required)
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--help
Show the help message.
network ip dns search list List the search domains currently configured on the ESXi host in the order in which they will be used when searching.
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--help
Show the help message.
network ip dns search remove Remove a search domain from the list of domains to be searched when trying to resolve an host name on the ESXi host.
--domain | -d
The string name of a domain to remove from the list of search domains. (required)
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--help
Show the help message.
network ip dns server add Add a new DNS server to the end of the list of DNS servers to use for this ESXi host.
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--server | -s
The IP address (v4 or v6) of the DNS server to add to the DNS server list. (required)
--help
Show the help message.
network ip dns server list Print a list of the DNS server currently configured on the system in the order in which they will be used.
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--help
Show the help message.
network ip dns server remove Remove a DNS server from the list of DNS servers to use for this ESXi host.
--all | -a
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--server | -s
--help
Show the help message.
network ip interface add Add a new VMkernel network interface.
--dvport-id | -P
DVPort ID of the connection point. This requires --dvs-name to be given in the same command
--dvs-name | -s
DVSwitch name of the connection point. This requires --dvport-id to be given in the same command
--interface-name | -i
The name of the VMkernel network interface to create. This name must be in the form vmkX, where X is a number 0-255
--mac-address | -M
Set the MAC address for the newly created VMkernel network interface.
--mtu | -m
Set the MTU setting for a given VMkernel network interface on creation
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--num-rxqueue | -R
Set the number of RX dispatch queues for a given VMkernel network interface on creation
--portgroup-name | -p
The name of the vswitch port group to add this VMkernel network interface to.
--help
Show the help message.
network ip interface list This command will list the VMkernel network interfaces currently known to the system.
--netstack | -N
The network stack instance; if unspecified, consider all netstack instances
--help
Show the help message.
network ip interface remove Remove a VMkernel network interface from the ESXi host. A VMKernel network interface can be uniquely specified by --interface-name or --portgroup-name or --dvs-name/--dvport-id. i.e. Providing its name or its connection point are two ways to uniquely specify a VMKernel network interface.
--dvport-id | -P
DVPort ID of the connection point. This requires --dvs-name to be given in the same command
--dvs-name | -s
DVSwitch name of the connection point. This requires --dvport-id to be given in the same command
--interface-name | -i
The name of the VMkernel network interface to remove. This name must be in the form vmkX, where X is a number 0-255
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--portgroup-name | -p
The name of the vswitch port group to delete this VMkernel network interface from.
--help
Show the help message.
network ip interface set This command sets the enabled status and MTU size of a given IP interface
--enabled | -e
Set to true to enable the interface, set to false to disable it.
--interface-name | -i
The name of the interface to apply the configurations. (required)
--mtu | -m
The MTU size of the IP interface.
--help
Show the help message.
network ip interface ipv4 get List the IPv4 addresses assigned to VMkernel network interfaces.
--interface-name | -i
The name of the VMkernel network interface to limit the output of this command to.
--netstack | -N
The network stack instance; if unspecified, consider all netstack instances
--help
Show the help message.
network ip interface ipv4 set Configure IPv4 setting for a given VMkernel network interface.
--gateway | -g
The default gateway for this interface. The value must be a valid IPv4 address. Gateway would be reset if not provided
--interface-name | -i
The name of the VMkernel network interface to set IPv4 settings for. This name must be an interface listed in the interface list command. (required)
--ipv4 | -I
The static IPv4 address for this interface.
--netmask | -N
The static IPv4 netmask for this interface.
--peer-dns | -P
A boolean value to indicate if the system should use the DNS settings published via DHCPv4 for this interface.
--type | -t
IPv4 Address type: dhcp: Use DHCP to aquire IPv4 setting for this interface. none: Remove IPv4 settings form this interface. static: Set Static IPv4 information for this interface. Requires --ipv4 and --netmask options.
--help
Show the help message.
network ip interface ipv4 address list List the IPv4 addresses assigned to VMkernel network interfaces.
--interface-name | -i
The name of the VMkernel network interface to limit the output of this command to.
--netstack | -N
The network stack instance; if unspecified, consider all netstack instances
--help
Show the help message.
network ip interface ipv6 get Get IPv6 settings for VMkernel network interfaces. This does not include the IPv6 addresses which can be found in the "address list" command.
--interface-name | -n
The name of the VMkernel network interface to limit the output of this command to.
--netstack | -N
The network stack instance; if unspecified, consider all netstack instances
--help
Show the help message.
network ip interface ipv6 set Configure IPv6 settings for a given VMkernel network interface.
--enable-dhcpv6 | -d
Setting this value to true will enable DHCPv6 on this interface and attempt to aquire an IPv6 address from the network
--enable-ipv6 | -e
Setting this value to true enables IPv6 on thisinterface while setting it to false disables IPv6 on this interface.
--enable-router-adv | -r
Setting this value to true will enable IPv6 Router Advertised IPv6 addresses to be added to this interface from any routers broadcasting on the local network.
--gateway | -g
A default gateway for this interface. The value must be a valid IPv6 address.
--interface-name | -i
The name of the VMkernel network interface to set IPv6 settings for. This name must be an interface listed in the interface list command. (required)
--peer-dns | -P
A boolean value to indicate if the system should use the DNS settings published via DHCPv6 for this interface.
--help
Show the help message.
network ip interface ipv6 address add Add a static IPv6 address to a given VMkernel network interface.
--interface-name | -i
The name of the VMkernel network interface to add a static IPv6 address to. This name must be an interface listed in the interface list command. (required)
--ipv6 | -I
The IPv6 address to add to the given VMkernel network interface. This must be in X:X:X::/X format (required)
--help
Show the help message.
network ip interface ipv6 address list This command will list all of the IPv6 addresses currently assigned to the system
--interface-name | -i
The name of the VMkernel network interface to limit the output of this command to.
--help
Show the help message.
network ip interface ipv6 address remove Remove an IPv6 address from a given VMkernel network interface.
--interface-name | -i
The name of the VMkernel network interface to remove an IPv6 address from. This name must be an interface listed in the interface list command. (required)
--ipv6 | -I
The IPv6 address to remove from the given VMkernel network interface. This must be in X:X:X::/X format (required)
--help
Show the help message.
network ip interface tag add Adds a tag on a given VMkernel network interface. Supported tags are: Management, VMotion, faultToleranceLogging, vSphereReplication, vSphereReplicationNFC, vSphereProvisioning, VSAN, VSANWitness, vSphereBackupNFC, PrecisionTimeProtocol, VSANReplication
--interface-name | -i
The name of the VMkernel network interface on which tags should be set. This name must be an interface listed in the interface list command. (required)
--tagname | -t
Tag name to assign to the interface (required)
--help
Show the help message.
network ip interface tag get Gets the tags set on the given VMkernel network interface.
--interface-name | -i
Name of vmknic whose tags are to be read (required)
--help
Show the help message.
network ip interface tag remove Removes a tag on a given VMkernel network interface.
--interface-name | -i
The name of the VMkernel network interface from which tags should be removed. This name must be an interface listed in the interface list command. (required)
--tagname | -t
Tag name to assign to the interface (required)
--help
Show the help message.
network ip ipsec sa add Add a Security Association.
--encryption-algorithm | -e
Encryption algorithm for the Security Association. Should be one in set [null, 3des-cbc, aes128-cbc]. (required)
--encryption-key | -k
Encryption key(ASCII or hex). Length of hex key is dependent upon algorithm used. Required when a encryption algorithm has been specified.
--integrity-algorithm | -i
Integrity algorithm for the Security Association. Should be one in set [hmac-sha1, hmac-sha2-256]. (required)
--integrity-key | -K
Integrity key(ASCII or hex). Length of hex key is dependent upon algorithm used. (required)
--sa-destination | -d
Ipv6 address of Security Association destination. Can be specified as 'any' or a correct IPv6 address. (required)
--sa-mode | -m
Security Association mode. Should be one in set [transport, tunnel].
--sa-name | -n
Name for the Security Association to be added. (required)
--sa-source | -s
Ipv6 address of Security Association source. Can be specified as 'any' or a correct IPv6 address. (required)
--sa-spi | -p
SPI value for the Security Association(hex). (required)
--help
Show the help message.
network ip ipsec sa list List configured Security Associations
--help
Show the help message.
network ip ipsec sa remove Operation to remove Security Association(s)
--remove-all | -a
Set to remove all Security Associations.
--sa-destination | -d
Ipv6 address of Security Association destination. This option needs to be specified when removing an auto SA.
--sa-name | -n
Name for the Security Association to be removed. Specify 'auto' to remove an auto SA.
--sa-source | -s
Ipv6 address of Security Association source. This option needs to be specified when removing an auto SA.
--sa-spi | -p
SPI value for the Security Association (hex). This option needs to be specified when removing an auto SA
--help
Show the help message.
network ip ipsec sp add Add a Security Policy.
--action | -A
Action for Security Policy. Should be one in set [none, discard, ipsec].
--destination-port | -P
Destination Port for Security Policy. '0' stands for 'any' (required)
--flow-direction | -w
Flow direction for Security Policy. Should be one in set [in, out].
--sa-name | -a
Name for the Security Association. Not being Specified lets vmkernel automatically choose an Security Association. If no applicable Security Association exists, then vmkernel may request one using IKE.
--source-port | -p
Source Port for Security Policy. '0' stands for 'any' (required)
--sp-destination | -d
Ipv6 address and prefix length of Security Policy destination. Can be specified as 'any' or a correct Ipv6 network address. (required)
--sp-mode | -m
Security Policy mode. Should be one in set [transport, tunnel].
--sp-name | -n
Name for the Security Policy to be added. (required)
--sp-source | -s
Ipv6 address and prefix length of Security Policy source. Can be specified as 'any' or a correct IPv6 network address. (required)
--upper-layer-protocol | -u
Upper layer protocol for Security Policy, Should be one in set [any, tcp, udp, icmp6].
--help
Show the help message.
network ip ipsec sp list List configured Security Policys
--help
Show the help message.
network ip ipsec sp remove Operation to remove Security Policy
--remove-all | -a
Set to remove all Security Policys
--sp-name | -n
Name for the Security Policy to be removed.
--help
Show the help message.
network ip neighbor list List ARP table entries
--interface-name | -i
The name of the VMkernel network interface to limit the output of this command to; if unspecified, list neighbors on all interfaces.
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--version | -v
IP version: [4, 6, all]
--help
Show the help message.
network ip neighbor remove Remove ARP table entries
--interface-name | -i
The name of the VMkernel network interface to remove the neighbor entry from. If not specified, neighbor will be removed from all interfaces
--neighbor-addr | -a
The IPv4/IPv6 address of the neighbor. (required)
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--version | -v
IP version: [4, 6] (required)
--help
Show the help message.
network ip netstack add Add a new Netstack Instance.
--disabled | -d
Create the netstack instance only in config i.e. in disabled state. Does not create in kernel.
--netstack | -N
The network stack instance (required)
--help
Show the help message.
network ip netstack get Get runtime/configuration settings for a given Netstack Instance.
--netstack | -N
The network stack instance (required)
--help
Show the help message.
network ip netstack list This command will list the VMkernel Netstack instances currently known to the system.
--help
Show the help message.
network ip netstack remove Remove a new Netstack Instance.
--netstack | -N
The network stack instance (required)
--help
Show the help message.
network ip netstack set Configure settings for a given Netstack Instance.
--ccalgo | -c
The TCP Congestion Contol Algorithm for this netstack instance (not applied to existing connections).: cubic: Set cubic as the algorithm dctcp: Set dctcp as the algorithm newreno: Set newreno as the algorithm
--ecn
The status of ECN (Explicit Congestion Notification). disabled: Completely disable ECN functionality echo-only: Only echoing ECN, won't initiate enabled: Fully enable ECN functionality
--enable | -e
Enable the netstack instance (create in kernel)
--ipv6enabled | -i
To enable IPv6 for this netstack instance (aplied only during netstack creation).
--maxconn | -m
The maximum number of connections for this netstack instance (applied only during netstack creation).
--name | -n
The name for this netstack instance.
--netstack | -N
The network stack instance. This name must be an interface listed in the netstack list command. (required)
--help
Show the help message.
network ip route ipv4 add Add IPv4 route to the VMkernel.
--gateway | -g
The Ipv4 address of the gateway through which a route to be added. (required)
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--network | -n
The Ipv4 address and prefix length of the network to add the route to. Specify 'default' to indicate the default network. (required)
--help
Show the help message.
network ip route ipv4 list List configured IPv4 routes
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--help
Show the help message.
network ip route ipv4 remove Remove IPv4 route
--gateway | -g
The Ipv4 address of the gateway through which a route to be removed (required)
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--network | -n
The Ipv4 address and prefix length of the network to remove the route from. Specify 'default' to indicate the default network. (required)
--help
Show the help message.
network ip route ipv6 add Add IPv6 route to the VMkernel.
--gateway | -g
The Ipv6 address of the gateway through which a route to be added. (required)
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--network | -n
The Ipv6 address and prefix length of the network to add the route to. Specify 'default' to indicate the default network. (required)
--help
Show the help message.
network ip route ipv6 list List configured IPv6 routes
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--help
Show the help message.
network ip route ipv6 remove Remove IPv6 route from the VMkernel
--gateway | -g
The Ipv6 address of the gateway through which a route to be removed (required)
--netstack | -N
The network stack instance; if unspecified, use the default netstack instance
--network | -n
The Ipv6 address and prefix length of the network to remove the route from. Specify 'default' to indicate the default network. (required)
--help
Show the help message.
network multicast group list List all the multicast group members.
--help
Show the help message.
network nic down Bring down the specified network device.
--nic-name | -n
The name of the NIC to configured. This must be one of the cards listed in the nic list command. (required)
--help
Show the help message.
network nic get Get the generic configuration of a network device
--nic-name | -n
The name of the NIC to configured. This must be one of the cards listed in the nic list command. (required)
--help
Show the help message.
network nic list This command will list the Physical NICs currently installed and loaded on the system.
--help
Show the help message.
network nic set Set the general options for the specified ethernet device.
--auto | -a
Set the speed and duplexity settings to autonegotiate.
--duplex | -D
The duplex to set this NIC to. Acceptable values are: [full, half]
--message-level | -l
Sets the driver message level. Meaning differ per driver.
--nic-name | -n
The name of the NIC to configured. This must be one of the cards listed in the nic list command. (required)
--phy-address | -P
Set the PHY address of the device
--port | -p
Selects device port. Available device ports are aui: Select AUI (Attachment Unit Interface) as the device port backplane: Select Backplane as the device port bnc: Select BNC (Bayonet Neill-Concelman) as the device port da: Select DA (Direct Attach copper) as the device port fibre: Select fibre as the device port mii: Select MII (Media Independent Interface) as the device port tp: Select TP (Twisted Pair) as the device port
--speed | -S
The speed to set this NIC to, in Mbps. Acceptable values are: [10, 100, 1000, 2500, 5000, 10000, 20000, 25000, 40000, 50000, 56000, 100000, 200000, 400000]
--transceiver-type | -t
Selects transeiver type. Currently only internal and external can be specified, in the future future types might be added. Available transeiver types are external: Set the transceiver type to external internal: Set the transceiver type to internal
--virtual-address | -V
Set the virtual address of the device
--wake-on-lan | -w
Sets Wake-on-LAN options. Not all devices support this. The argument to this option is a string of characters specifying which options to enable. p Wake on phy activity u Wake on unicast messages m Wake on multicast messages b Wake on broadcast messages a Wake on ARP g Wake on MagicPacket(tm) s Enable SecureOn(tm) password for MagicPacket(tm)
--help
Show the help message.
network nic up Bring up the specified network device.
--nic-name | -n
The name of the NIC to configured. This must be one of the cards listed in the nic list command. (required)
--help
Show the help message.
network nic attachment add Attach one uplink as a branch to a trunk uplink with specified VLAN ID.
--branch | -b
The name of the NIC to be attached as branch uplink. (required)
--trunk | -t
The name of the NIC to be configured as trunk uplink. (required)
--vlan-id | -v
The vlan ID for the branch uplink. Valid values: integer in the range 1-4094 (required)
--help
Show the help message.
network nic attachment list Show uplink attachment information.
--trunk | -t
Show information only for the specified NIC.
--help
Show the help message.
network nic attachment remove Detach a branch uplink from its trunk.
--branch | -b
The name of the branch uplink. (required)
--trunk | -t
The name of the trunk uplink. (required)
--help
Show the help message.
network nic coalesce get Get coalesce parameters
--vmnic | -n
The name of pnic to get coalesce parameters
--help
Show the help message.
network nic coalesce set Set coalesce parameters on a nic
--adaptive-rx | -a
enable or disable adaptive RX algorithm in driver.
--adaptive-tx | -A
enable or disable adaptive TX algorithm in driver.
--rx-max-frames | -R
Maximum number of RX frames driver to process before interrupting.
--rx-usecs | -r
Number of microseconds driver to wait for RX before interrupting.
--sample-interval | -i
Packet rate sampling internal in seconds for the adaptive coalescing algorithm in driver.
--tx-max-frames | -T
Maximum number of completed TX frames driver to process before interrupting.
--tx-usecs | -t
Number of microseconds driver to wait for completed TX before interrupting.
--vmnic | -n
Name of vmnic to set coalesce parameters. (required)
--help
Show the help message.
network nic coalesce high get Get information about the behavior of a NIC when it sends or receives packets at high packet rate.
--vmnic | -n
The name of the pnic for which information should be retrieved. (required)
--help
Show the help message.
network nic coalesce high set Set parameters to control the behavior of a NIC when it sends or receives packets at high packet rate.
--pkt-rate | -p
The high packet rate measured in number of packets per second. When packet rate is above this parameter, the RX/TX coalescing parameters configured by this command are used.
--rx-max-frames | -R
The maximum number of RX packets to delay an RX interrupt after they arrive under high packet rate conditions.
--rx-usecs | -r
The number of microseconds to delay an RX interrupt after a packet arrives under high packet rate conditions.
--tx-max-frames | -T
The maximum number of TX packets to delay an TX interrupt after they are sent under high packet rate conditions.
--tx-usecs | -t
The number of microseconds to delay a TX interrupt after a packet is sent under high packet rate conditions.
--vmnic | -n
Name of the vmnic for which parameters should be set. (required)
--help
Show the help message.
network nic coalesce low get Get information about the behavior of a NIC when it sends or receives packets at low packet rate.
--vmnic | -n
The name of the pnic for which information should be retrieved. (required)
--help
Show the help message.
network nic coalesce low set Set parameters to control the behavior of a NIC when it sends or receives packets at low packet rate.
--pkt-rate | -p
The low packet rate measured in number of packets per second. When packet rate is below this parameter, the RX/TX coalescing parameters configured by this command are used.
--rx-max-frames | -R
The maximum number of RX packets to delay an RX interrupt after they arrive under low packet rate conditions.
--rx-usecs | -r
The number of microseconds to delay an RX interrupt after a packet arrives under low packet rate conditions.
--tx-max-frames | -T
The maximum number of TX packets to delay an TX interrupt after they are sent under low packet rate conditions.
--tx-usecs | -t
The number of microseconds to delay a TX interrupt after a packet is sent under low packet rate conditions.
--vmnic | -n
Name of the vmnic for which parameters should be set. (required)
--help
Show the help message.
network nic cso get Get checksum offload settings
--vmnic | -n
The name of pnic to get CSO settings
--help
Show the help message.
network nic cso set Set checksum offload settings on a nic
--enable | -e
RX/TX checksum offload (required)
--vmnic | -n
Name of vmnic to set offload settings. (required)
--help
Show the help message.
network nic dcb status get Get the DCB information for a NIC.
--nic-name | -n
The name of the NIC for which you need the info. See "nic list" command. (required)
--help
Show the help message.
network nic eeprom change Change EEPROM on a nic
--file | -f
File name of new EEPROM content
--magic | -m
Magic key of EEPROM (required)
--offset | -o
Offset of EEPROM to change
--value | -v
New EEPROM value in double word
--vmnic | -n
Name of vmnic to change EEPROM. (required)
--help
Show the help message.
network nic eeprom dump Dump device EEPROM
--length | -l
Bytes of EEPROM to dump
--offset | -o
Offset of EEPROM starting to dump
--vmnic | -n
The name of pnic to dump EEPROM (required)
--help
Show the help message.
network nic hwCap activated list List activated hardware capabilities of physical NICs.
--vmnic | -n
Limit the output to only the physical NICS with the specified names.
--help
Show the help message.
network nic hwCap supported list List supported hardware capabilities of physical NICs.
--vmnic | -n
Limit the output to only the physical NICS with the specified names.
--help
Show the help message.
network nic negotiate restart Restart N-Way negotiation on a nic
--vmnic | -n
Name of vmnic to restart negotiation (required)
--help
Show the help message.
network nic pauseParams list List pause parameters of all NICs
--nic-name | -n
The name of the NIC whose pause parameters should be retrieved.
--help
Show the help message.
network nic pauseParams set Set pause parameters for a NIC
--auto | -a
Enable/disable auto negotiation.
--nic-name | -n
Name of NIC whose pause parameters should be set. (required)
--rx | -r
Enable/disable pause RX flow control.
--tx | -t
Enable/disable pause TX flow control.
--help
Show the help message.
network nic queue count get Get netqueue count on a nic
--vmnic | -n
The name of pnic to get netqueue count
--help
Show the help message.
network nic queue count set Set number of netqueues on a nic
--num | -q
Number of queues to set. (required)
--rx | -r
Rx netqueue to set count.
--tx | -t
Tx netqueue to set count.
--vmnic | -n
Name of vmnic to set netqueue count. (required)
--help
Show the help message.
network nic queue filterclass list List the netqueue supported filterclass of all physical NICs currently installed and loaded on the system.
--help
Show the help message.
network nic queue loadbalancer list List the load balancer settings of all the installed and loaded physical NICs. (S:supported, U:unsupported, N:not-applicable, A:allowed, D:disallowed).
--help
Show the help message.
network nic queue loadbalancer set Enable/disable netqueue load balancer setting on a NIC.
--dynpoollb
Configure Dynamic queue pool at netqueue load balancer.
--geneveoamlb
Configure Geneve OAM at netqueue load balancer.
--lrolb
Configure Large Receive Offload at netqueue load balancer.
--maclearnlb
Configure Mac learn load balancing at netqueue load balancer.
--rsslb
Configure Receive Side Scaling at netqueue load balancer.
--rsslrolb
Configure Receive Side Scaling with Large Receive Offload at netqueue load balancer.
--rxdynlb
Configure RX dynamic load balancing at netqueue load balancer.
--rxqlatency
Configure Rx queue latency at netqueue load balancer.
--rxqnofeat
Configure Rx queue no feature at netqueue load balancer.
--rxqpair
Configure Rx queue pair at netqueue load balancer.
--rxqpreempt
Configure pre-emptible queue at netqueue load balancer.
--vmnic | -n
Name of vmnic to update netqueue load balancer setting. (required)
--help
Show the help message.
network nic queue loadbalancer plugin list Details of netqueue balancer plugins on all physical NICs currently installed and loaded on the system
--vmnic | -n
The name of pnic to get netqueue plugin details
--help
Show the help message.
network nic queue loadbalancer plugin set Enable/disable netqueue balancer plugin on a NIC
--enable | -e
Netqueue balancer plugin state (required)
--module | -m
Name of netqueue balancer module (required)
--plugin | -p
Name of netqueue balancer plugin (required)
--vmnic | -n
Name of vmnic to change netqueue balancer plugin state (required)
--help
Show the help message.
network nic queue loadbalancer state list Netqueue balancer state of all physical NICs currently installed and loaded on the system
--vmnic | -n
The name of pnic to get netqueue balancer state
--help
Show the help message.
network nic queue loadbalancer state set Enable/disable netqueue balancer on a NIC
--enable | -e
Netqueue balancer state (required)
--vmnic | -n
Name of vmnic to change netqueue balancer state (required)
--help
Show the help message.
network nic register dump Dump device registers
--vmnic | -n
The name of pnic to dump registers (required)
--help
Show the help message.
network nic ring current get Get current RX/TX ring buffer parameters of a NIC
--nic-name | -n
The name of the NIC whose current RX/TX ring buffer parameters should be retrieved. (required)
--help
Show the help message.
network nic ring current set Set current RX/TX ring buffer parameters of a NIC
--nic-name | -n
The name of the NIC whose current RX/TX ring buffer parameters should be set. (required)
--rx | -r
Number of ring entries for the RX ring.
--rx-jumbo | -j
Number of ring entries for the RX jumbo ring.
--rx-mini | -m
Number of ring entries for the RX mini ring.
--tx | -t
Number of ring entries for the TX ring.
--help
Show the help message.
network nic ring preset get Get preset maximums for RX/TX ring buffer parameters of a NIC.
--nic-name | -n
The name of the NIC whose preset maximums for RX/TX ring buffer parameters should be retrieved. (required)
--help
Show the help message.
network nic selftest run Run self test
--online | -o
Performing limited set of tests do not inetrrupt normal adapter operation, default is offline
--vmnic | -n
The name of pnic to dump EEPROM (required)
--help
Show the help message.
network nic sg get Get scatter-gather settings
--vmnic | -n
The name of pnic to get scatter-gather settings
--help
Show the help message.
network nic sg set Set scatter-gatter settings on a nic
--enable | -e
Enable/disable sacatter-gather (required)
--vmnic | -n
Name of vmnic to configure scatter-gather settings. (required)
--help
Show the help message.
network nic software list List software simulation settings of physical NICs currently installed and loaded on the system.
--vmnic | -n
Limit the output to only the physical NICS with the specified names.
--help
Show the help message.
network nic software set Enable and disable software simulation settings on a NIC.
--geneveoffload
Configure Geneve encapsulation offload software simulation.
--highdma
Configure high DMA software simulation.
--ipv4cso
Configure IPv4 checksum offload software simulation.
--ipv4tso
Configure IPv4 TCP segmentation offload software simulation.
--ipv6cso
Configure IPv6 checksum offload software simulation.
--ipv6csoext
Configure IPv6 extend header checksum offload software simulation.
--ipv6tso
Configure IPv6 TCP segmentation offload software simulation.
--ipv6tsoext
Configure IPv6 extend header TCP segmentation offload software simulation.
--obo
Configure offset based encapsulation offload software simulation.
--sg
Configure scatter gather software simulation.
--sgsp
Configure scatter gather span multiple pages software simulation.
--tagging
Configure TX VLAN tagging software simulation.
--untagging
Configure RX VLAN untagging software simulation.
--vmnic | -n
Name of the vmnic whose software similation settings should be updated. (required)
--vxlanencap
Configure VXLAN encapsulation offload software simulation.
--help
Show the help message.
network nic stats get Get NIC statistics for a given interface.
--nic-name | -n
Name of the NIC to get statistics from. (required)
--help
Show the help message.
network nic tso get Get TCP segmentation offload settings
--vmnic | -n
The name of pnic to get TSO settings
--help
Show the help message.
network nic tso set Set TCP segmentation offload settings on a nic
--enable | -e
TCP segmentation offload (required)
--vmnic | -n
Name of vmnic to set TSO settings. (required)
--help
Show the help message.
network nic vlan stats get List VLAN statistics for active VLAN's on the NIC.
--nic-name | -n
Name of the NIC to get statistics from. (required)
--help
Show the help message.
network nic vlan stats set Enable/disable VLAN statistics collection on the NIC.
--enabled | -e
Whether to enable or disable VLAN statistics (required)
--nic-name | -n
Name of the NIC to get statistics from. (required)
--help
Show the help message.
network port filter stats get Filter statistics for a given port.
--portid | -p
Port ID for the port to get filter statistics. (required)
--help
Show the help message.
network port stats get Packet statistics for a given port.
--portid | -p
Port ID for the port to get statistics. (required)
--help
Show the help message.
network sriovnic list This command will list the SRIOV Enabled NICs (PFs) currently installed and loaded on the system.
--help
Show the help message.
network sriovnic vf list Get the generic configuration of VFs for SRIOV NIC.
--nic-name | -n
The name of the SRIOV NIC to configured. This must be one of the cards listed in the sriovNic list command. (required)
--help
Show the help message.
network sriovnic vf stats Get statistics for given VF of a SRIOV NIC.
--nic-name | -n
The name of the SRIOV NIC. This must be one of the cards listed in the sriovNic list command. (required)
--vf-id | -v
The VF ID of the virtual function whose stats are to be collected. This must be one of the VF IDs listed in the sriovnic vf list command. (required)
--help
Show the help message.
network vm list List networking information for the VM's that have active ports.
--help
Show the help message.
network vm port list List of active ports for a given VM.
--world-id | -w
World ID of the VM for listing ports. (required)
--help
Show the help message.
network vswitch dvs vmware list List the VMware vSphere Distributed Switch currently configured on the ESXi host.
--vds-name | -v
Limit the output of this command to only vDS with the given name.
--help
Show the help message.
network vswitch dvs vmware lacp config get Get LACP configuration on DVS
--dvs | -s
The name of DVS to get configuration on
--help
Show the help message.
network vswitch dvs vmware lacp stats get Get LACP stats on DVS uplinks
--dvs | -s
The name of DVS to get configuration on
--help
Show the help message.
network vswitch dvs vmware lacp status get Get LACP status on DVS
--dvs | -s
The name of DVS to get configuration on
--help
Show the help message.
network vswitch dvs vmware lacp timeout set Set long/short timeout for vmnics in one LACP LAG
--lag-id | -l
The ID of LAG to be configured. (required)
--nic-name | -n
The nic name. If it is set, then only this vmnic in the lag will be configured.
--timeout | -t
Set long or short timeout: 1 for short timeout and 0 for long timeout. (required)
--vds | -s
The name of VDS. (required)
--help
Show the help message.
network vswitch standard add Add a new virtual switch to the ESXi networking system.
--ports | -P
The number of ports to to give this newly created virtual switch. Maximum ports per virtual switch is 4096. If no value is given the default value(128) is used. The number of ports is limited by the number of already allocated ports on the host. The system wide port count cannot be greater than 4608.
--vswitch-name | -v
The name of the virtual switch to create. (required)
--help
Show the help message.
network vswitch standard list List the virtual switches current on the ESXi host.
--vswitch-name | -v
Limit the output of this command to only virtual switches with the given name.
--help
Show the help message.
network vswitch standard remove Remove a virtual switch from the ESXi networking system.
--vswitch-name | -v
The name of the virtual switch to remove. (required)
--help
Show the help message.
network vswitch standard set This command sets the MTU size and CDP status of a given virtual switch.
--cdp-status | -c
The CDP status of the given virtual switch. It can be 'down', 'listen', 'advertise' or 'both'
--mtu | -m
The MTU size of the given virtual switch.
--vswitch-name | -v
The name of virtual switch to apply the configurations. (required)
--help
Show the help message.
network vswitch standard policy failover get Get the failover policy settings governing the given virtual switch
--vswitch-name | -v
The name of the virtual switch to use when fetching the switch failover policy. (required)
--help
Show the help message.
network vswitch standard policy failover set Configure the Failover policy for a virtual switch.
--active-uplinks | -a
Configure the list of active adapters and their failover order. This list must be a comma seperated list of values with the uplink name and no spaces. Example: --active-uplinks=vmnic0,vmnic3,vmnic7,vmnic1
--failback | -b
Configure whether a NIC will be used immediately when it comes back in service after a failover
--failure-detection | -f
Set the method of determining how a network outage is detected. beacon: Detect failures based on active beaconing to the vswitch link: Detect failures based on the NIC link state
--load-balancing | -l
Set the load balancing policy for this policy. This can be one of the following options: explicit: Always use the highest order uplink from the list of active adapters which pass failover criteria. iphash: Route based on hashing the src and destination IP addresses mac: Route based on the MAC address of the packet source. portid: Route based on the originating virtual port ID.
--notify-switches | -n
Indicate whether to send a notification to physical switches on failover
--standby-uplinks | -s
Configure the list of standby adapters and their failover order. This list must be a comma seperated list of values with the uplink name and no spaces. Example: --standby-uplinks=vmnic2,vmnic4,vmnic8,vmnic6,vmnic11
--vswitch-name | -v
The name of the virtual switch to use when configuring the switch failover policy. (required)
--help
Show the help message.
network vswitch standard policy security get Get the Security Policy governing the given virtual switch.
--vswitch-name | -v
The name of the virtual switch to use when fetching the network security policy. (required)
--help
Show the help message.
network vswitch standard policy security set Set the security policy for a given virtual switch
--allow-forged-transmits | -f
Allow ports on the virtual switch to send packets with forged source information.
--allow-mac-change | -m
Allow ports on the virtual switch to change their MAC address.
--allow-promiscuous | -p
Allow ports on the virtual switch to enter promiscuous mode.
--vswitch-name | -v
The name of the virtual switch to use when setting the switch security policy. (required)
--help
Show the help message.
network vswitch standard policy shaping get Get the shaping policy settings for the given virtual switch
--vswitch-name | -v
The name of the virtual switch to use when fetching the switch shaping policy. (required)
--help
Show the help message.
network vswitch standard policy shaping set Set the shaping policy settings for the given virtual switch
--avg-bandwidth | -b
The averge bandwidth allowed for this shaping policy. This value is in Kbps (1 Kbps = 1000 bits/s)
--burst-size | -t
The largest burst size allowed for this shaping policy. This value is in Kib (1 Kib = 1024 bits)
--enabled | -e
Indicate whether to enable traffic shaping on this policy. If this is true then the --avg-bandwidth, --peak-bandwidth and --burst-size options are required.
--peak-bandwidth | -k
The peak bandwidth allowed for this shaping policy. This value is in Kbps (1 Kbps = 1000 bits/s)
--vswitch-name | -v
The name of the virtual switch to use when setting the switch shaping policy. (required)
--help
Show the help message.
network vswitch standard portgroup add Allows the addition of a standard port group to a virtual switch.
--portgroup-name | -p
The name of the port group to add (required)
--vswitch-name | -v
The virtual switch to add the port group to. (required)
--help
Show the help message.
network vswitch standard portgroup list List all of the port groups currently on the system.
--help
Show the help message.
network vswitch standard portgroup remove Remove a port group from the given virtual switch
--portgroup-name | -p
(required)
--vswitch-name | -v
(required)
--help
Show the help message.
network vswitch standard portgroup set Set the vlan id for the given port group
--portgroup-name | -p
The name of the port group to set vlan id for. (required)
--vlan-id | -v
The vlan id for this port group. This value is in the range (0 - 4095)
--help
Show the help message.
network vswitch standard portgroup policy failover get Get the network failover policy settings governing the given port group
--portgroup-name | -p
The name of the port group to use when fetching the port group failover policy. (required)
--help
Show the help message.
network vswitch standard portgroup policy failover set Configure the Failover policy for a port group. These setting may potentially override virtual switch settings.
--active-uplinks | -a
Configure the list of active adapters and their failover order. This list must be a comma seperated list of values with the uplink name and no spaces. Example: --active-uplinks=vmnic0,vmnic3,vmnic7,vmnic1
--failback | -b
Configure whether a NIC will be used immediately when it comes back in service after a failover
--failure-detection | -f
Set the method of determining how a network outage is detected. beacon: Detect failures based on active beaconing to the vswitch link: Detect failures based on the NIC link state
--load-balancing | -l
Set the load balancing policy for this policy. This can be one of the following options: explicit: Always use the highest order uplink from the list of active adapters which pass failover criteria. iphash: Route based on hashing the src and destination IP addresses mac: Route based on the MAC address of the packet source. portid: Route based on the originating virtual port ID.
--notify-switches | -n
Indicate whether to send a notification to physical switches on failover
--portgroup-name | -p
The name of the port group to set failover policy for. (required)
--standby-uplinks | -s
Configure the list of standby adapters and their failover order. This list must be a comma seperated list of values with the uplink name and no spaces. Example: --standby-uplinks=vmnic2,vmnic4,vmnic8,vmnic6,vmnic11
--use-vswitch | -u
Reset all values for this policy to use parent virtual switch's settings instead of overriding the settings for the port group. Using this in conjunction with other settings will first reset all of the fields to use the virtual switch setting and then apply the other options after the reset.
--help
Show the help message.
network vswitch standard portgroup policy security get Get the Security Policy governing the given port group.
--portgroup-name | -p
The name of the port group to use when fetching the network security policy. (required)
--help
Show the help message.
network vswitch standard portgroup policy security set Set the security policy for a given port group
--allow-forged-transmits | -f
Allow ports on the virtual switch to send packets with forged source information.
--allow-mac-change | -m
Allow ports on the virtual switch to change their MAC address.
--allow-promiscuous | -o
Allow ports on the virtual switch to enter promiscuous mode.
--portgroup-name | -p
The name of the port group to set security policy for. (required)
--use-vswitch | -u
Reset all values for this policy to use parent virtual switch's settings instead of overriding the settings for the port group. Using this in conjunction with other settings will first reset all of the fields to use the virtual switch setting and then apply the other options after the reset.
--help
Show the help message.
network vswitch standard portgroup policy shaping get Get the network shaping policy settings governing the given port group
--portgroup-name | -p
The name of the port group to use when fetching the port group shaping policy. (required)
--help
Show the help message.
network vswitch standard portgroup policy shaping set Set the shaping policy settings for the given port group
--avg-bandwidth | -b
The averge bandwidth allowed for this shaping policy. This value is in Kbps (1 Kbps = 1000 bits/s)
--burst-size | -t
The largest burst size allowed for this shaping policy. This value is in Kib (1 Kib = 1024 bits)
--enabled | -e
Indicate whether to enable traffic shaping on this policy. If this is true then the --avg-bandwidth, --peak-bandwidth and --burst-size options are required.
--peak-bandwidth | -k
The peak bandwidth allowed for this shaping policy. This value is in Kbps (1 Kbps = 1000 bits/s)
--portgroup-name | -p
The name of the port group to set shaping policy for. (required)
--use-vswitch | -u
Reset all values for this policy to use parent virtual switch's settings instead of overriding the settings for the port group. Using this in conjunction with other settings will first reset all of the fields to use the virtual switch setting and then apply the other options after the reset.
--help
Show the help message.
network vswitch standard uplink add Add an uplink to the given virtual switch. Note if this virtual switch has a NIC teaming policy assigned to it then the policy must also be modified to enable use of this uplink on this virtual switch
--uplink-name | -u
The name of the uplink to add to the virtual switch. (required)
--vswitch-name | -v
The name of the virtual switch to add an uplink to. (required)
--help
Show the help message.
network vswitch standard uplink remove Remove an uplink from the given virtual switch. Note if this virtual switch has a NIC teaming policy assigned to it then the policy must also be modified to disable use of this uplink on this virtual switch
--uplink-name | -u
The name of the uplink to remove from the virtual switch. (required)
--vswitch-name | -v
The name of the virtual switch to remove an uplink from. (required)
--help
Show the help message.