Vmware ESXi commands


To view VMware version

~ # vmware -vl
VMware ESXi 5.1.0 build-1900470
VMware ESXi 5.1.0 Update 2

To view Volumes
~ # cd /vmfs/volumes/
/vmfs/volumes # ls -lh
                                                                                                                                                 
drwxr-xr-t    1 root     root        7.0K Jan  9 16:12 539a0e50-28333c1d-676b-14                                                                                                                                                        
drwxr-xr-t    1 root     root        8.1K Jan  8 20:14 539a10b2-88ba47fd-a0d1-14feb54b5751                                                                                                                                                          
lrwxr-xr-x    1 root     root          35 Jan 11 11:51 6A_F5_BEVM_RSTR06 -> 539a                                                                                                                                                                                                          
lrwxr-xr-x    1 root     root          35 Jan 11 11:51 6C_F5_BEVM_RSTR06 -> 539a                                                                                                                                                                                                                                                                                                            lrwxr-xr-x    1 root     root          35 Jan 11 11:51 99 - Templates and ISOs -S5 - RSTR99 -> 50eb3cc7                                                                                                                                   
lrwxr-xr-x    1 root     root          35 Jan 11 11:51 BEVM_F5_DS1 -> 50ceadfb-5                                                                                                                                                           
lrwxr-xr-x    1 root     root          35 Jan 11 11:51 BEVM_F5_DS2 -> 50ceaf07-7                                                                                                                                                    1b4d2ea-b973-00221941cda8

To find details of a VM

/vmfs/volumes # find . -iname qa2-cdssii01
./50ceaf07-7c469eaf-21d9-00221941cda8/QA2-CDSSII01

/vmfs/volumes # cd 50ceaf07-7c469eaf-21d9-00221941cda8/QA2-CDSSII01

/vmfs/volumes/50ceaf07-7c469eaf-21d9-00221941cda8/QA2-CDSSII01 # ls -lh
-rw-------    1 root     root          13 Jan 11  2015 QA2-CDSSII01-aux.xml
-rw-r--r--    1 root     root          73 Apr 24  2015 QA2-CDSSII01-ba3c9617.hlo                                                                                                                                                             g
-rw-------    1 root     root        4.0G May 18  2015 QA2-CDSSII01-ba3c9617.vsw                                                                                                                                                             p
-rw-------    1 root     root        3.1M May 18  2015 QA2-CDSSII01-ctk.vmdk
-rw-------    1 root     root       50.0G Jan 11 11:52 QA2-CDSSII01-flat.vmdk
-rw-------    1 root     root        8.5K Jan 11 11:05 QA2-CDSSII01.nvram
-rw-------    1 root     root         613 May 18  2015 QA2-CDSSII01.vmdk
-rw-r--r--    1 root     root          43 Mar  4  2015 QA2-CDSSII01.vmsd
-rwxr-xr-x    1 root     root        4.0K May 27  2015 QA2-CDSSII01.vmx
-rw-------    1 root     root           0 May 18  2015 QA2-CDSSII01.vmx.lck
-rw-r--r--    1 root     root         267 May 27  2015 QA2-CDSSII01.vmxf
-rwxr-xr-x    1 root     root        4.0K May 27  2015 QA2-CDSSII01.vmx~
-rw-------    1 root     root      640.5K May 18  2015 QA2-CDSSII01_1-ctk.vmdk
-rw-------    1 root     root       10.0G Jan  6 06:36 QA2-CDSSII01_1-flat.vmdk
-rw-------    1 root     root         616 May 18  2015 QA2-CDSSII01_1.vmdk
-rw-------    1 root     root        4.8M May 18  2015 QA2-CDSSII01_2-ctk.vmdk
-rw-------    1 root     root        1.2T Jan 11 11:52 QA2-CDSSII01_2-flat.vmdk
-rw-------    1 root     root         620 May 18  2015 QA2-CDSSII01_2.vmdk
-rw-------    1 root     root       23.7M May 14  2015 vmmcores-1.gz
-rw-------    1 root     root        8.1M May 14  2015 vmmcores-2.gz
-rw-------    1 root     root       16.8M May 15  2015 vmmcores-3.gz
-rw-------    1 root     root       18.1M May 18  2015 vmmcores-4.gz
-rw-r--r--    1 root     root      586.4M May 12  2015 vmware-145.log
-rw-r--r--    1 root     root      206.6K May 14  2015 vmware-146.log
-rw-r--r--    1 root     root       49.7K May 14  2015 vmware-147.log
-rw-r--r--    1 root     root      209.1K May 14  2015 vmware-148.log
-rw-r--r--    1 root     root      204.1K May 15  2015 vmware-149.log
-rw-r--r--    1 root     root       11.8M May 18  2015 vmware-150.log
-rw-r--r--    1 root     root        7.1G Jan 11 11:52 vmware.log
-rw-------    1 root     root      108.0M May 18  2015 vmx-QA2-CDSSII01-31245327   
                                                                                                                                                         
/vmfs/volumes/50ceaf07-7c469eaf-21d9-00221941cda8/QA2-CDSSII01 # less vmware.log
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s