Martijn Lammerts
My own digital place with a little of everything

ESX 3.x Commands

3 July 2008

Commands that can be used at the Console:

esxcfg-* Command Types

Networking
- esxcfg-firewall (Configure firewallingoptions)
- esxcfg-route (Enable or disable routing for vmknics)
- esxcfg-vmknic (Create & configure VMkernel Nic's)
- esxcfg-vswif (Create & configure vswifs for the COS)
- esxcfg-vswitch (Create & configure virtual switches and port groups)
- esxcfg-nics (Presents physical NIC information)
- esxcfg-route (Enable or disable routing for vmknics)

Storage
- esxcfg-dumppart (Set, activate, deactivate, list potential and current VMkernel dump partition)
- esxcfg-mpath (Multipathingconfiguration)
- esxcfg-nas (Add, delete or manage NAS file systems)
- esxcfg-swiscsi (Configures software iSCSIadapter)
- esxcfg-vmhbadevs (Maps COS device files to vmhba names)
- esxcfg-rescan (Rescan LUNs on SCSI device)

Continue reading...

VMware Command Line Tools

3 July 2008

VMware Command Line Tools

vmkfstools:
Manage virtual disks at the service console command line.
 
The command -X can be used to extend the size of your virtual disk. Example: You have a 5GB virtual disk and wanted to expand it to 15GB, you use the following command.
The VM need to be powered off!

vmkfstools  -X 15GB /vmfs/volumes/storage/virtualmachine.vmdk
-X switch specifies the new size of the virtual disk and not how much you are extending it by.
 
vmware-cmd
Most used of this command is to register/un-register or power on/off/restart VMs from the console command line.

Continue reading...