This document provides a summary of commands related to managing and configuring VMware ESX, including:
- esxcfg-Commands for configuring ESX server settings like networking, storage, firewall rules, and more.
- vm-Commands for managing virtual machines and VMFS filesystems.
- Other commands for tasks like monitoring performance with esxtop, updating ESX with esxupdate, and starting management services.
- Start-Scripts in /etc/init.d for starting daemons like vmware-hostd that handle vSphere client connections.
This document provides a summary of commands related to managing and configuring VMware ESX, including:
- esxcfg-Commands for configuring ESX server settings like networking, storage, firewall rules, and more.
- vm-Commands for managing virtual machines and VMFS filesystems.
- Other commands for tasks like monitoring performance with esxtop, updating ESX with esxupdate, and starting management services.
- Start-Scripts in /etc/init.d for starting daemons like vmware-hostd that handle vSphere client connections.
1 esxcfg-pciid Recreate PCI-device list vmware-Commands
Homepage: http://www.fejf.de /etc/vmware/{pci.ids, pcitable, vmware-authd for internal use only (authen- pcitable.linux, tication) Warning: The commands in italic should only be vmware-device.map} from vmware-cmd ⇒ see vmware-cmd section used if instructed by vmware-support (or if you the configuration files vmware-configcheck Check Virtual Machine con- know what you are doing...). /etc/vmware/pciid/*.xml figuration files (*.vmx) esxcfg-rescan Rescan a SCSI/FC/iSCSI vmware-config.pl Configure ESX-hostd port, adapter recompile/install VMware esxcfg-Commands esxcfg-resgrp Configure resource groups VmPerl Scripting API esxcfg-route Configure the VMKernel de- vmware-hostd Demon for VI Client con- fault route nections (should only be esxcfg-swiscsi Configure/Rescan software started by mgmt-vmware esxcfg-advcfg Set/Get Advanced Configu- iSCSI initiator start-script) ration Parameters (stored in esxcfg-upgrade Used for upgrades from vmware-hostd-support Creates /var/log/vmware/ /etc/vmware/esx.conf) ESX2.x to ESX3 hostd-support.tgz esxcfg-auth Configure authentication esxcfg-vmhbadevs Get information about at- vmware-mkinitrd Creates initrd (initial (ADS, NIS, Kerberos) tached LUNs with /dev/sdX ramdisk) esxcfg-boot Configure Boot-Options mappings vmware-vim-cmd ⇒ see vmware-vim-cmd sec- esxcfg-configcheck Checks format of esxcfg-vmknic Add/Remove/Configure tion /etc/vmware/esx.conf VMKernel NICs vmware-vimdump Get information about ESX- (e.g. used after esx-updates) esxcfg-vswif Add/Remove/Configure Ser- Server configuration and Vir- esxcfg-dumppart Configure partition for core- viceConsole NICs tual Machines dumps after PSOD esxcfg-vswitch Add/Remove/Configure Vir- vmware-vimsh Interactive shell - compara- esxcfg-firewall Configure ESX-Server fire- tual Switches ble to vmware-vim-cmd with wall additional commands esxcfg-hwiscsi Configure hardware iSCSI vmware-watchdog Watchdog-Demon to keep esx-Commands initiators vmware-hostd running esxcfg-info Get information about hard- (should only be started by ware, resources, storage, ... esxnet-support Diagnostic information about mgmt-vmware start-script) of the ESX-Server Console NICs (Gives Errors vmware-webAccess WebAccess-Demon for esxcfg-init Used internally on boot in ESX-3.5.0) browser based management esxcfg-linuxnet Setup/Remove linux network esxtop Live Statistics of Virtual Ma- (should only be started by devices (ethX ) chines (with VM-Names) vmware-webAccess start- esxcfg-module Enable/Disable/Add esxupdate Tool for updating ESX-3.x script) new/Query VMKernel mod- ules and set/get parameters for them esxcfg-mpath Configure multipathing for Fibre-Channel and iSCSI esxcfg-nas Configure NFS-datastores (”NFS-client”) esxcfg-nics Configure physical nics (vmnicX ) vm-Commands vmstat (this is a standard linux com- Running Processes mand - lists memory/disk ac- cess statistics) The commands in italic are standard Linux vm-support Creates /etc/init.d/ commands. vmfsqhtool Prints UUID of a device esx-<date>.tgz vmware internal use - can not be cimserver http: // www. dmtf. org/ header started manually standards/ cim/ vmfsqueuetool Formats all partitions in cimservera http: // www. dmtf. org/ vmfs queue Other Commands standards/ cim/ vmkchdev Manage PCI devices (give crond Schedule jobs at specific in- control over the device to vdf Show free disk space of tervals VMKernel or Service Con- mounted partitions (like df gpm Mouse support in the text sole) with vmfs-support) console vmkdump Manage VMKernel dump init First process which runs ev- partition Start-Scripts ery other process vmkerrcode Give description of VMKer- klogd Kernel log demon nel error codes base on deci- Scripts inside /etc/init.d/ logger Logs messages to /var/log mal or hex value sshd Provides secure shell access vmkfstools Create/Remove/Configure mgmt-vmware Start/Stop/Restart the de- syslogd Log/Filter demon with a re- VMFS-Filesystems and mon for the VI-Client con- mote logging ability Virtual Machine .vdsk files nections vmware-hostd Demon for VI Client connec- (Virtual Disk File) vmkhalt internal use - can not be tions vmkiscsid iSCSI demon started manually vmkload app Loads vmware applications vmkiscsi-device iSCSI device information vmware internal use - can not be (internal use only) vmkiscsi-ls List iSCSI devices started manually vmklogger Logs VMKernel messages to vmkiscsi-tool Configure software iSCSI ini- vmware-functions internal use - can not be /var/log/vmware tiator started manually wsmand Web Services Mangement vmkiscsi-util Get information about iSCSI vmware-late internal use - can not be vmware-vmkauthd Demon for user authentica- devices started manually tion vmkloader Load and unloads the VMK- vmware-vmkauthd internal use - can not be vmware-vmx Provides context for a Vir- ernel started manually tual Machine (internal use vmkload mod Load/Unload VMKernel vmware-vpxa Start/Stop/Restart the de- only) modules (e.g. device drivers) mon for the Virtual Center vmware-watchdog Checks if vmware processes vmklogger Create logmessages (like connections are running (no connection logger for VMKernel vmware-webAccess Start/Stop/Restart the de- test ⇒ does not restart hung messaes) mon for the Web-Interface processes) vmkpcidivy deprecated connections vpxa Virtual Center agent vmkping Ping on VMKernel network webAccess Web-Interface (TomCat- vmkuptime.pl Creates HTML Server) output with Up- xinetd Listen on network ports for time/Downtime/Availability other demons and start them vmres.pl deprecated on-demand vmsnap all Snapshot all Virtual Ma- chines on a ESX-Server VMware ESX QuickRef Card written by [email protected]
vmsnap.pl deprecated Date: July 27, 2008
vmware-cmd Commands vmware-vim-cmd Commands Log Files Commands for a Virtual Machines There are too many vmware-vim-cmd commands to (Logs are in /var/log/vmware/ if no other path is (vmware-cmd -h). list them all in this quickref. You can get an specified) overview of the commands by running vmware-vim-cmd without an option. The getconnectedusers List name and IP of con- /etc/syslog.conf Configure logging behaviour commands are divided in subfolders. To get help nected users (non-working esxcfg-boot.log Boot messages there run it with the subfolder name (e.g. with esx3.5.0?) esxcfg-firewall.log List of executed firewall com- vmware-vim-cmd hostsvc: getstate Show current state of VM mands and log messages (Off/On/...) esxcfg-linuxnet.log LinuxNet messages hostsvc/ ESX-Server commands esxupdate.log Debug messages for updates start Start a VM internalsvc/ ESX-Server internal com- hostd.log hostd messages stop Stop a VM mands vpx-iupgrade.log Logs for package in- reset Reset a VM proxysvc/ Web-SDK proxy commands stallations/removals by suspend Suspend a VM solo/ ??? Virtual Center (e.g. setconfig Set a variable in the vmx- vimsvc/ VirtualCenter commands output of rpm -hiv configuration-file vmsvc/ VM commands VMware-vpxa-2.5.0-64192. getconfig Get a variable from the vmx- file i386.rpm) setguestinfo Set guest info variable Config Files vpx/vpxa.log Virtual Center Agent mes- getguestinfo Get guest info variable sages getproductinfo Get various product info Normally you don’t need to edit the config files by vmfsqueuetool.log VMFSQueueTool messages connectdevice Connect a device hand. It’s better to use the tools which VMware webAccess Web-Access messages disconnectdevice Disconnect a device provides for these cases (e.g. network configuration /proc/vmware/log VMKernel messages getconfigfile Get path/filename of config with vmware-vswif changes ip of the Service /var/log/ storage- VMKernel storage monitor file Console, the necessary config files and Monitor messages getheartbeat Get current heartbeat vmware-advcfg changes settings in /var/log/ vmker- VMKernel messages (info gettoolslastactive Time since last notification /etc/vmware/esx.conf). nel messages only) from vmware-tools (in sec- /var/log/ VMKernel userworld proxy onds) /etc/vmware/* General VMware configura- vmkproxy messages getresource Get a VM resource tion files (ESX Server) /var/log/ vmk- VMKernel messages (notice setresource Set a VM resource /etc/opt/vmware/* General VMware configura- summary and higher) hassnapshot Determine if VM has a snap- tion files (VirtualCenter) /var/log/ vmk- VMKernel warning messages shot /opt/LGTOaam512/ VMware HA configuration warning createsnapshot Create a snapshot config/* VMware ESX QuickRef Card written by [email protected] revertsnapshot Revert to last snapshot /proc/vmware/* Get/Set VMKernel variables Date: July 27, 2008 removesnapshots Remove all snapshots directly answer Answer a question (if VM re- /usr/lib/vmware/ Default Web-Interface (with quires input) hostd/docroot link to Web-Access, VI- Client download etc) /usr/lib/vmware/ Web-Interface Configuration webAccess/tomcat/ (Apache Tomcat Server) apache-tomcat-5.5.17/ conf