line

VMware ESX/ESXi command line reference on vDS Distributed Switch and vSwitch

Remove a PHY NIC from an UpLink in a vDS at the command line:

esxcfg-vswitch --list : Create a listing needed to get the reference for a vmnic's PortID#.

esxcfg-vswitch -V <vmnics PortID#> -Q <vmnic> <NAME of virtual Distributed Switch as it appears in vCenter inventory>

# esxcfg-vswitch -V 577 -Q vmnic1 NET2-N1K-VDS

Delete a Physical NIC from a standard virtual Switch on a Host:

System Center Agent Command line install

%WinDir%\System32\msiexec.exe /i path\Directory\MOMAgent.msi /qn USE_SETTINGS_FROM_AD={0|1} USE_MANUALLY_SPECIFIED_SETTINGS={0|1} MANAGEMENT_GROUP=MGname MANAGEMENT_SERVER_DNS=MSname MANAGEMENT_SERVER_AD_NAME =MSname SECURE_PORT=PortNumber ACTIONS_USE_COMPUTER_ACCOUNT={0|1} ACTIONSUSER=UserName ACTIONSDOMAIN=DomainName ACTIONSPASSWORD=Password AcceptEndUserLicenseAgreement=1

 

 

USE_SETTINGS_FROM_AD={0|1}

VMware ESX 4 console CLI/command line command reference

vmware-cmd -l

Sample:

[root@esxhost root]# vmware-cmd -l

 /vmfs/volumes/44ee9812-da790870-b7f7-00145e1b5242/cumuli/cumuli.vmx
/vmfs/volumes/44ebf538-51cc7998-2525-00145e1b556a/printer/printer.vmx

 

List path and names of .registered VM vmx files on the present host
Very important!
Use the path with the UUID (vmfslabel) where requested in vmware-cmd

Using the ESXi 5.0 esxcli command to power off or power on a virtual machine

How to stop a Guest VM from Command line: <SSH or ESXi Shell>

The esxcli command can be used locally or remotely to power off a virtual machine running on ESXi 5.0. For more information, see the esxcli vm Commands section of the vSphere Command-Line Interface Reference.

Subscribe to RSS - line