Previous Topic: dpmvc-removevmvdisk Command--Remove Virtual Disk (Funclet)Next Topic: dpmvc-setresources Command--Set VM Resources (Funclet)


dpmvc-removevmvnic Command--Remove Virtual NIC (Funclet)

The dpmvc-removevmvnic command removes a virtual NIC from a VM.

This command has the following format:

dpmvc removevmvnic
[-datacenter_name datacentername]
-vm_name vmname
-vc_server vcservername
-device_key devicekey
-datacenter_name datacentername

(Optional) Specifies the data center where the VM is located.

-vm_name vmname

Specifies the VM.

-vc_server vcservername

Specifies the vCenter Server to access when you have multiple vCenter Servers. Optional for single vCenter Server environments.

-device_key devicekey

Integer that specifies the device key of the network interface, for example, 3000.

Example: Remove a vNIC

This example removes a vNIC from a VM.

dpmvc-removevmvnic -vm_name myvm -vc_server myvcserver -device_key 3000