\documentclass[8pt,a4paper,landsacpe]{article}

\usepackage[landscape]{geometry}
\usepackage{url}
\usepackage{multicol}
\usepackage[usenames]{xcolor}

\textwidth=26cm
\textheight=18.5cm
\oddsidemargin=-1.5cm
\evensidemargin=-1.5cm
\topmargin=-2cm
\pagestyle{empty}
\parindent=0pt

\newcommand{\HeA}[1]{{\usefont{T1}{phv}{b}{n}\fontsize{14}{10}\selectfont #1}}
\newcommand{\HeB}[1]{{\usefont{T1}{phv}{b}{n}\fontsize{10}{10}\selectfont #1}}
\newcommand{\DOTS}{}


\begin{document}

% \setlength{\columnseprule}{1pt}
\setlength{\columnsep}{28pt}

\begin{multicols*}{3}

\medskip
\begin{center}
\HeA{VMware ESX QuickRef Card v0.1}
\medskip
Homepage: \url{http://www.fejf.de} \\
\medskip
\textbf{Warning:} The commands in \textit{italic} should only be used if instructed by vmware-support (or if you know what you are doing...).
\end{center}

\begin{center}
\HeB{\colorbox{lightgray}{esxcfg-Commands}} \\
\end{center}
\medskip
\begin{tabular*}{\textwidth}{p{0.13\textwidth} p{0.17\textwidth}}
	\bf esxcfg-advcfg	& Set/Get Advanced Configuration Parameters (stored in \texttt{/etc/vmware/esx.conf})
 \\
	\bf esxcfg-auth		& Configure authentication (ADS, NIS, Kerberos) \\
	\bf \textit{esxcfg-boot}& \textit{Configure Boot-Options} \\
	\bf esxcfg-configcheck	& Checks format of \texttt{/etc/vmware/esx.conf} (e.g. used after esx-updates) \\
	\bf esxcfg-dumppart	& Configure partition for core-dumps after PSOD \\
	\bf esxcfg-firewall	& Configure ESX-Server firewall \\
	\bf esxcfg-hwiscsi	& Configure hardware iSCSI initiators\\
	\bf esxcfg-info		& Get information about hardware, resources, storage, ... of the ESX-Server \\
	\bf \textit{esxcfg-init}& \textit{Used internally on boot} \\
	\bf esxcfg-linuxnet	& Setup/Remove linux network devices (\texttt{eth\textit{X}}) \\
	\bf esxcfg-module	& Enable/Disable/Add new/Query VMKernel modules and set/get parameters for them \\
	\bf esxcfg-mpath	& Configure multipathing for Fibre-Channel and iSCSI \\
	\bf esxcfg-nas		& Configure NFS-datastores (''NFS-client'') \\
	\bf esxcfg-nics		& Configure physical nics (\texttt{vmnic\textit{X}}) \\
\end{tabular*}
\begin{tabular*}{\textwidth}{p{0.13\textwidth} p{0.17\textwidth}}
	\bf esxcfg-pciid	& Recreate PCI-device list \texttt{/etc/vmware/\{pci.ids, pcitable, pcitable.linux, vmware-device.map\}} from the configuration files \texttt{/etc/vmware/pciid/*.xml} \\
	\bf esxcfg-rescan	& Rescan a SCSI/FC/iSCSI adapter \\
	\bf esxcfg-resgrp	& Configure resource groups \\
	\bf esxcfg-route	& Configure the VMKernel default route \\
	\bf esxcfg-swiscsi	& Configure/Rescan software iSCSI initiator \\
	\bf \textit{esxcfg-upgrade}& \textit{Used for upgrades from ESX2.x to ESX3} \\
	\bf esxcfg-vmhbadevs	& Get information about attached LUNs with \texttt{/dev/sd\textit{X}} mappings \\
	\bf esxcfg-vmknic	& Add/Remove/Configure VMKernel NICs \\
	\bf esxcfg-vswif	& Add/Remove/Configure ServiceConsole NICs \\
	\bf esxcfg-vswitch	& Add/Remove/Configure Virtual Switches \\
\end{tabular*}

\medskip
\begin{center}
\HeB{\colorbox{lightgray}{esx-Commands}}
\end{center}
\medskip
\begin{tabular*}{\textwidth}{p{0.13\textwidth} p{0.17\textwidth}}
	\bf \textit{esxnet-support} & \textit{Diagnostic information about Console NICs (Gives Errors in ESX-3.5.0)} \\
	\bf esxtop		& Live Statistics of Virtual Machines (with VM-Names) \\
	\bf esxupdate		& Tool for updating ESX-3.x \\
				& \\
				& \\
				& \\
				& \\
				& \\
				& \\
				& \\
				& \\
\end{tabular*}

\medskip
\begin{center}
\HeB{\colorbox{lightgray}{vmware-Commands}}
\end{center}
\medskip
\begin{tabular*}{\textwidth}{p{0.13\textwidth} p{0.17\textwidth}}
	\bf \textit{vmware-authd}	& \textit{for internal use only (authentication)} \\
	\bf vmware-cmd			& $\Rightarrow$ see vmware-cmd section \\
	\bf \hbox{vmware-configcheck}	& Check Virtual Machine configuration files (*.vmx) \\
	\bf \textit{vmware-config.pl}	& \textit{Configure ESX-hostd port, recompile/install VMware VmPerl Scripting API} \\
	\bf \textit{vmware-hostd}	& \textit{Demon for VI Client connections (should only be started by mgmt-vmware start-script)} \\
	\bf \hbox{vmware-hostd-support}	& \textit{Creates \texttt{/var/log/vmware/ hostd-support.tgz}} \\
	\bf \textit{vmware-mkinitrd}	& \textit{Creates initrd (initial ramdisk)} \\
	\bf vmware-vim-cmd		& $\Rightarrow$ see vmware-vim-cmd section \\
	\bf vmware-vimdump		& Get information about ESX-Server configuration and Virtual Machines \\
	\bf vmware-vimsh		& Interactive shell - comparable to \texttt{vmware-vim-cmd} with additional commands \\
	\bf \textit{vmware-watchdog}	& \textit{Watchdog-Demon to keep \texttt{vmware-hostd} running (should only be started by mgmt-vmware start-script)} \\
	\bf \textit{vmware-webAccess}	& \textit{WebAccess-Demon for browser based management (should only be started by \texttt{vmware-webAccess} start-script)} \\
					& \\
					& \\
					& \\
					& \\
					& \\
					& \\
					& \\
					& \\
\end{tabular*}

\medskip
\begin{center}
\HeB{\colorbox{lightgray}{vm-Commands}}
\end{center}
\medskip
\begin{tabular*}{\textwidth}{p{0.13\textwidth} p{0.17\textwidth}}
	\bf vmfsqhtool			& Prints UUID of a device header \\
	\bf \textit{vmfsqueuetool}	& \textit{Formats all partitions in vmfs queue} \\
	\bf vmkchdev			& Manage PCI devices (give control over the device to VMKernel or Service Console) \\
	\bf vmkdump			& Manage VMKernel dump partition \\
	\bf vmkerrcode			& Give description of VMKernel error codes base on decimal or hex value \\
	\bf \textit{vmkfstools}		& \textit{Create/Remove/Configure VMFS-Filesystems and Virtual Machine \texttt{.vdsk} files (Virtual Disk File)}\\
	\bf vmkiscsid			& iSCSI demon \\
	\bf vmkiscsi-device		& iSCSI device information \\
	\bf vmkiscsi-ls			& List iSCSI devices \\
	\bf vmkiscsi-tool		& Configure software iSCSI initiator \\
	\bf vmkiscsi-util		& Get information about iSCSI devices \\
	\bf \textit{vmkloader}		& Load and unloads the VMKernel \\
	\bf vmkload\_mod		& Load/Unload VMKernel modules (e.g. device drivers) \\
	\bf vmklogger			& Create logmessages (like \texttt{logger} for VMKernel messaes) \\
	\bf \textit{vmkpcidivy}		& \textit{deprecated} \\
	\bf vmkping			& Ping on VMKernel network \\
	\bf vmkuptime.pl		& Creates HTML output with Uptime/Downtime/Availability \\
	\bf \textit{vmres.pl}		& \textit{deprecated} \\
	\bf vmsnap\_all			& Snapshot all Virtual Machines on a ESX-Server \\
	\bf \textit{vmsnap.pl}		& \textit{deprecated} \\
\end{tabular*}
\begin{tabular*}{\textwidth}{p{0.13\textwidth} p{0.17\textwidth}}
	\bf \textit{vmstat}		& \textit{(this is a standard linux command - lists memory/disk access statistics)} \\
	\bf vm-support			& Creates \texttt{/etc/init.d/ esx-\textit{<date>}.tgz} \\
	\bf \textit{vmware}		& \textit{internal use - can not be started manually} \\
\end{tabular*}

\medskip
\begin{center}
\HeB{\colorbox{lightgray}{Other Commands}}
\end{center}
\medskip
\begin{tabular*}{\textwidth}{p{0.13\textwidth} p{0.17\textwidth}}
	\bf vdf			& Show free disk space of mounted partitions (like \texttt{df} with vmfs-support) \\
\end{tabular*}

\medskip
\begin{center}
\HeB{\colorbox{lightgray}{Start-Scripts}} \\
\medskip
Scripts inside \tt /etc/init.d/
\end{center}
\medskip
\begin{tabular*}{\textwidth}{p{0.13\textwidth} p{0.17\textwidth}}
	\bf mgmt-vmware			& Start/Stop/Restart the demon for the VI-Client connections \\
	\bf \textit{vmkhalt}		& \textit{internal use - can not be started manually} \\
	\bf \textit{vmware}		& \textit{internal use - can not be started manually} \\
	\bf \textit{vmware-functions}	& \textit{internal use - can not be started manually} \\
	\bf \textit{vmware-late}	& \textit{internal use - can not be started manually} \\
	\bf \textit{vmware-vmkauthd}	& \textit{internal use - can not be started manually} \\
	\bf vmware-vpxa			& Start/Stop/Restart the demon for the Virtual Center connections \\
	\bf vmware-webAccess		& Start/Stop/Restart the demon for the Web-Interface connections \\
	\bf 			&  \\
	\bf 			&  \\
	\bf 			&  \\
	\bf 			&  \\
	\bf 			&  \\
	\bf 			&  \\
	\bf 			&  \\
	\bf 			&  \\
\end{tabular*}

\medskip
\begin{center}
\HeB{\colorbox{lightgray}{Running Processes}} \\
\medskip
The commands in \textit{italic} are standard Linux commands.
\end{center}
\medskip
\begin{tabular*}{\textwidth}{p{0.13\textwidth} p{0.17\textwidth}}
	\bf \textit{cimserver}	& \textit{\url{http://www.dmtf.org/standards/cim/}} \\
	\bf \textit{cimservera}	& \textit{\url{http://www.dmtf.org/standards/cim/}} \\
	\bf \textit{crond}	& \textit{Schedule jobs at specific intervals} \\
	\bf \textit{gpm}	& \textit{Mouse support in the text console} \\
	\bf \textit{init}	& \textit{First process which runs every other process} \\
	\bf \textit{klogd}	& \textit{Kernel log demon} \\
	\bf \textit{logger}	& \textit{Logs messages to \texttt{/var/log}} \\
	\bf \textit{sshd}	& \textit{Provides secure shell access} \\
	\bf \textit{syslogd}	& \textit{Log/Filter demon with a remote logging ability} \\
	\bf vmware-hostd	& Demon for VI Client connections  \\
	\bf vmkload\_app	& Loads vmware applications \textit{(internal use only)} \\
	\bf vmklogger		& Logs VMKernel messages to \texttt{/var/log/vmware} \\
	\bf \textit{wsmand}	& \textit{Web Services Mangement} \\
	\bf vmware-vmkauthd	& Demon for user authentication \\
	\bf vmware-vmx		& Provides context for a Virtual Machine \textit{(internal use only)} \\
	\bf vmware-watchdog	& Checks if vmware processes are running (no connection test $\Rightarrow$ does not restart hung processes)  \\
	\bf vpxa		& Virtual Center agent \\
	\bf webAccess		& Web-Interface (TomCat-Server)\\
	\bf \textit{xinetd}	& \textit{Listen on network ports for other demons and start them on-demand} \\
\end{tabular*}


\begin{center}
	{\tiny
		VMware ESX QuickRef Card written by fejf@fejf.de\\
		Date: \today
	}
\end{center}


\bigskip


\medskip
\begin{center}
\HeB{\colorbox{lightgray}{vmware-cmd Commands}} \\
\medskip
Commands for a Virtual Machines \\
(\texttt{vmware-cmd -h}).
\end{center}
\medskip
\begin{tabular*}{\textwidth}{p{0.13\textwidth} p{0.17\textwidth}}
	\bf getconnectedusers	& List name and IP of connected users (non-working with esx3.5.0?) \\
	\bf getstate		& Show current state of VM (Off/On/...) \\
	\bf start		& Start a VM \\
	\bf stop		& Stop a VM \\
	\bf reset		& Reset a VM \\
	\bf suspend		& Suspend a VM \\
	\bf setconfig		& Set a variable in the vmx-configuration-file \\
	\bf getconfig		& Get a variable from the vmx-file \\
	\bf setguestinfo	& Set guest info variable \\
	\bf getguestinfo	& Get guest info variable \\
	\bf getproductinfo	& Get various product info \\
	\bf connectdevice	& Connect a device \\
	\bf disconnectdevice	& Disconnect a device \\
	\bf getconfigfile	& Get path/filename of config file \\
	\bf getheartbeat	& Get current heartbeat \\
	\bf gettoolslastactive	& Time since last notification from vmware-tools (in seconds) \\
	\bf getresource		& Get a VM resource \\
	\bf setresource		& Set a VM resource \\
	\bf hassnapshot		& Determine if VM has a snapshot \\
	\bf createsnapshot	& Create a snapshot \\
	\bf revertsnapshot	& Revert to last snapshot \\
	\bf removesnapshots	& Remove all snapshots \\
	\bf answer		& Answer a question (if VM requires input) \\
	\bf 			&  \\
	\bf 			&  \\
	\bf 			&  \\
	\bf 			&  \\
	\bf 			&  \\
\end{tabular*}

\medskip
\begin{center}
\HeB{\colorbox{lightgray}{vmware-vim-cmd Commands}} \\
\medskip
There are too many \texttt{vmware-vim-cmd} commands to list them all in this quickref. You can get an overview of the commands by running \texttt{vmware-vim-cmd} without an option. The commands are divided in subfolders. To get help there run it with the subfolder name (e.g. \texttt{vmware-vim-cmd hostsvc}:
\end{center}
\medskip
\begin{tabular*}{\textwidth}{p{0.13\textwidth} p{0.17\textwidth}}
	\bf hostsvc/		& ESX-Server commands \\
	\bf internalsvc/	& ESX-Server internal commands \\
	\bf proxysvc/		& Web-SDK proxy commands \\
	\bf solo/		& ??? \\
	\bf vimsvc/		& VirtualCenter commands \\
	\bf vmsvc/		& VM commands \\
\end{tabular*}

\medskip
\begin{center}
\HeB{\colorbox{lightgray}{Config Files}} \\
\medskip
Normally you don't need to edit the config files by hand. It's better to use the tools which VMware provides for these cases (e.g. network configuration with \texttt{vmware-vswif} changes ip of the Service Console, the necessary config files and \texttt{vmware-advcfg} changes settings in \texttt{/etc/vmware/esx.conf}).
\end{center}
\medskip
\begin{tabular*}{\textwidth}{p{0.13\textwidth} p{0.17\textwidth}}
	\bf /etc/vmware/*		& General VMware configuration files (ESX Server) \\
	\bf /etc/opt/vmware/*		& General VMware configuration files (VirtualCenter) \\
	\bf /opt/LGTOaam512/ config/*	& VMware HA configuration \\
	\bf /proc/vmware/*		& Get/Set VMKernel variables directly \\
	\bf /usr/lib/vmware/ hostd/docroot				& Default Web-Interface (with link to Web-Access, VI-Client download etc) \\
	\bf /usr/lib/vmware/ \hbox{webAccess}/tomcat/ \hbox{apache-tomcat-5.5.17/} conf	&  Web-Interface Configuration (Apache Tomcat Server) \\
\end{tabular*}

\medskip
\begin{center}
\HeB{\colorbox{lightgray}{Log Files}} \\
\medskip
(Logs are in \texttt{/var/log/vmware/} if no other path is specified)
\end{center}
\medskip
\begin{tabular*}{\textwidth}{p{0.13\textwidth} p{0.17\textwidth}}
	\bf /etc/syslog.conf		& Configure logging behaviour \\
	\bf esxcfg-boot.log		& Boot messages \\
	\bf esxcfg-firewall.log		& List of executed firewall commands and log messages \\
	\bf esxcfg-linuxnet.log		& LinuxNet messages \\
	\bf esxupdate.log		& Debug messages for updates\\
	\bf hostd.log			& hostd messages \\
	\bf vpx-iupgrade.log		& Logs for package installations/removals by Virtual Center (e.g. output of \texttt{rpm -hiv VMware-vpxa-2.5.0-64192. i386.rpm}) \\
	\bf vpx/vpxa.log		& Virtual Center Agent messages \\
	\bf vmfsqueuetool.log		& VMFSQueueTool messages \\
	\bf webAccess			& Web-Access messages \\
	\bf /proc/vmware/log		& VMKernel messages \\
	\bf /var/log/ storageMonitor	& VMKernel storage monitor messages \\
	\bf /var/log/ vmkernel		& VMKernel messages (info messages only) \\
	\bf /var/log/ vmkproxy		& VMKernel userworld proxy messages \\
	\bf /var/log/ vmksummary	& VMKernel messages (notice and higher) \\
	\bf /var/log/ vmkwarning	& VMKernel warning messages \\
\end{tabular*}


\begin{center}
	{\tiny
		VMware ESX QuickRef Card written by fejf@fejf.de\\
		Date: \today
	}
\end{center}


\end{multicols*}

\end{document}

