<root
    
    /bin/net-dvs: unrecognized option '--help'
    Warning: This is an unsupported command. Use at your own risk.
    net-dvs -a [--className className] [ -P maxPorts] switch_name
                                                  add a new dvswitch
    net-dvs -d switch_name                        delete a dvswitch
    net-dvs [ -A | -D ] -p port switch_name       add/delete a port from a dvswitch
    net-dvs [ -s name=value | -u name ] -p port switch_name
                                                  set/unset key/value pair property for dvport
    net-dvs -r name -p port switch_name          get value for dvport property specified
    net-dvs -l [ switch_name ]                    list dvs information
    net-dvs -i                                    init database
    net-dvs [-S | -R | -G ]                       set vmkernel state from config file/reset 
                                                  vmkernel state/get dvs state from vmkernel 
                                                  to config file
    net-dvs -T                                    test dvsdata
    net-dvs -v "vlanID[;t|p[0-7][;min-max,min-max...]]
                                                  set vlan configuration
    net-dvs -V "primaryVID,secondaryVID,i|c|p;primaryVID,secondaryVID,i|c|p..."
                                                  set PVLAN global table contents
    net-dvs -m "v1*sid;dname;snaplen;encapvlan;flags;wildcardsIn,wildcardsOut;
                 dst;srcIn;srcOut;*sid2;dname2..."
                                                  set dvmirror configuration on VDS50
         or -m "v2*sid;dname;stype;snaplen;encapvlan;flags;samplerate;
                 dst;srcIn;srcOut;*sid2;dname2..."
                                                  set dvmirror configuration on VDS51
         or -m "v3*sid;dname;stype;encap-type;erspanID;erspanCOS;erspanGra;snaplen;encapvlan;flags;samplerate;
                 dst;srcIn;srcOut;*sid2;dname2..."
                                                  set dvmirror configuration on VDS51
    	sid:             session id
    	dname:           display name
    	snaplen:         mirrored packets are truncated to the length, the default and min value is 60
    	encapvlan:       encapsulation vlan (1-4094), mirrored packets are encapsulated by the vlan.
    	                 If a valid vlan is set, the "e" flag should also be set.
    	flags:           i:  disallow normal input
    	                 o:  disallow normal output
    	                 e:  encapsulate packets using encapvlan
    	                 v:  keep original vlan
    	                 l:  legacy promiscuous session
    	                 d:  disabled
    	wildcards:       v:  vm
    	                 p:  pnic
    	                 k:  tcpip (vmknic)
    	                 c:  cos (deprecated)
    	                 t:  test port
    	dst:             destination ports, separated by ','
    	srcIn:           ingress source ports, separated by ','
    	srcOut:          egress source ports, separated by ','
    	stype:           session type, it could be DVPORT, RMIRROR_SRC, RMIRROR_DST, ERMIRROR_SRC and MIXDST
    	encap-type:      encapsulation type, it could be GRE_ONLY, ERSPAN2 and ERSPAN3
    	erspanID:        identification associated with each ERSPAN session
    	erspanCOS:       class of service of the mirrored frame
    	erspanGra:       time unit to be supported for time-stamping, but only support ERSPAN3
    	samplerate:      sampling rate to capture packets, the default and min value is 1
    	Mixed dest session      srcIn:  non-uplink DVPort
    	                        srcOut: non-uplink DVPort
    	                        dst:    non-uplink DVPort or uplink DVPort
    	Local DVPort session    srcIn:  non-uplink DVPort
    	                        srcOut: non-uplink DVPort
    	                        dst:    non-uplink DVPort
    	RMirror src session     srcIn:  non-uplink DVPort
    	                        srcOut: non-uplink uplink
    	                        dst:    uplink name
    	RMirror dst session     srcIn:  vlan
    	                        srcOut: none
    	                        dst:    non-uplink DVPort
    	ERMirror src session    srcIn:  non-uplink DVPort
    	                        srcOut: non-uplink DVPort
    	                        dst:    IPv4 or IPv6
    net-dvs dvswitch -k "respool1_id;respool2_id;..."
                                                  list resource pool configuration
    net-dvs dvswitch -p dvport -K "respool1_:reservation:shares:limit:ptag;respool2_id:
                                              reservation:shares:limit:ptag;..."
                                                  set resource pool configuration
    net-dvs dvswitch -p dvport -z "respool_id"
                                                  set resource pool association for dvport
    net-dvs dvswitch -j [activate|deactivate]
                                                  activate/deactivate resource pool scheduling
    net-dvs -L uplink_name1[,uplink_name2,...] -t team_policy_type [-p port] switch_name
                                                  connect a set of uplinks with given teaming policy to a port or a switch
    net-dvs dvswitch -H "red|yellow|green:some message" switch_name
                                                  set host status for dvswitch
    net-dvs -o "depth,param|classname;depth,param|classname;... -p port|globalPropList switch_name
                                                  set overlay parameters for port
    net-dvs [ -y | -Y ] switch_name               associate/disassociate a dvswitch with its proxy portset
    net-dvs -U number switch_name                 create the specified number of uplink ports
    net-dvs -X -p port switch_name                delete the specified uplink port
    net-dvs --vlan vlanID -p dvport switch_name   set uplink vlan
    net-dvs --reset -p dvport switch_name         reset port state
    net-dvs --cap cap_value -p dvport switch_name
                                                  set uplink port capability
    net-dvs --states -p dvport switch_name        get uplink states
    net-dvs --miscInfo                            dump cpu/meminfo
    net-dvs --vmknicIp                    display IPv4 address on 
    net-dvs --teamchkDeploy interval switch_name
                                                  deploy teaming check, unit of interval is minute
    net-dvs --teamchkParam type switch_name
                                                  set 0(nonIPHASH) and 1(IPHASH) param for teaming check
    net-dvs --teamchkRemove switch_name           stop teaming policy check of switch
    net-dvs --vlanMTUChkDeploy interval switch_name
                                                  deploy VLAN and MTU check
    net-dvs --vlanMTUChkParam "range1Min-range1Max[,range2Min-range2Max...]" switch_name
                                                  set vlanRange param for VLAN and MTU check
    net-dvs --vlanMTUChkRemove switch_name        stop VLAN and MTU check of switch
    net-dvs --nsxtVLMChkDeploy interval switch_name
                                                  simulate deployment of VLAN and MTU check via NSX-T
    net-dvs --nsxtVLMChkParam "range1Min-range1Max[,range2Min-range2Max...]" switch_name
                                                  simulate setting vlanRange param for VLAN and MTU check via NSX-T
    net-dvs --nsxtVLMChkRemove switch_name        simulate stopping VLAN and MTU check of switch via NSX-T
    net-dvs --enableSink [0|1] -p dvport switch_name      disable|enable sink mode on a dvPort
    net-dvs --setLACP "v1*;;" switch_name
                                                  enable/disable LACPV1 on the dvswitch
    net-dvs --setLACP "v2*;;;;;*;;...." switch_name
                                                  enable/disable LACPV2 on the dvswitch
    net-dvs --persist                             persist DVS config to file immediately
    net-dvs --nopersist [true|false] switch_name    don't persist the dvs data for one specified dvs
    net-dvs -N global=ipfix_property_param switch_name
                                                  Set ipfix property on the dvswitch
    	ipfix_property_param:  enable|disable,idle_timeout,active_timeout,sample_rate,inter_flow_only,collector_ip:collector_port[,dvs_ip(only ipv4)][,obsDomainID]
    	Example:
    		net-dvs -N global=1,20,20,0,0,10.112.120.121:9660,10.112.120.140,101
    		net-dvs -N global=1,20,20,0,0,10.112.120.121:9660,10.112.120.140 
    		net-dvs -N global=1,20,20,0,0,10.112.120.121:9660,101 
    		net-dvs -N global=1,20,20,0,0,[fe80::1001]:9660,101 
    		net-dvs -N global=1,20,20,0,0,[fe80::1001]:9660 
    net-dvs -N port=1|0 -p dvport switch_name     enable/disable ipfix on the dvport
    net-dvs -B cdp_lldp_flags dvport switch_name  enable/disable cdp/lldp on the dvport
    	cdp_lldp_flags:     0x0           CDP down
    	                    0x1           CDP listen
    	                    0x2           CDP advertise
    	                    0x3           CDP both
    	                    0x10000       LLDP down
    	                    0x10001       LLDP listen
    	                    0x10002       LLDP advertise
    	                    0x10003       LLDP both
    
    



Designed by SanjuD(@ngineerbabu)