ESX and ESXi commands usage

ESX Log localization
/var/log/
vmkernel.log – all messages from VMware kernel
vmkwarning.log – only error messages from kernel
messages – all info about server activity
/var/log/vmware
Esxcfg-boot – log from command esxcfg-boot
Esxcfg-firewall – log from command esxcfg-firewall
Esxupdate.log – log from updating server
Hostd.log – log from vmware-hostd process
/var/log/vmware/aam – folder with logs from cluster service
/var/log/vmware/vpx – folder with logs from vpx service
/var/log/vmware/webAccess – folder with logs from webAccess

ESX and ESXi Commands usage
Location: /usr/sbin/
esxcfg-mpath – Multipathing configuration
esxcfg-nas – Add, delete or manage NAS file systems
esxcfg-nics – Presents physical NIC information
esxcfg-rescan – Rescan LUN’s on SCSI device
esxcfg-resgrp – Create, delete and list resource groups
esxcfg-route – Enable or disable routing for vmknics
esxcfg-swscsi – Configures software iSCSIadapters
esxcfg-vmhbadevs – Maps COS device files to vmhbanames
esxcfg-vmknic – Create & configure VMkernel NICs
esxcfg-vswif – Create & configure vswifsfor the COS
esxcfg-advcfg – Sets advanced VMkernel options
esxcfg-auth – Authentication configuration
esxcfg-boot – Configure boot, including PCI allocation
esxcfg-dumppart – Set, activate, deactivate, list potential and current VMkernel dump partitions
esxcfg-firewall – Configure firewall options.
esxcfg-info – Prints information about the service console, the VMkernel, various subsystems in the virtual network and storage resource hardware
esxcfg-init – Perform initialization steps in the initrd
esxcfg-linuxnet – Converts vswif devices to eth when booting into Linux debugging mode
esxcfg-upgrade – Upgrade from ESX Server 2.X to 3.0 Commands
Below command is available in ESX version of hypervisor, up to vSphere 4.1.X
vmware-cmd – very useful command, located /usr/bin/ – using it you can start/stop/reset/ suspend/getstate of virtual machine, register or unregister Virtual Machine on ESX server and many other really useful stuff, especially when GUI interface fail. detailed command description with all parameters can be found VMware KB
vdf – will print vmfs datastore usage

How to check ESX version?
typing on CLI vmware -v

Restart Management network
ESXi
/etc/init.d/hostd restart
/etc/init.d/vpxa restart

ESX
service vmware-vpxa restart

This entry was posted in Topics. Bookmark the permalink.

Leave a comment