VMware Consultancy
Posts tagged Script
VMware – vscsiStats
Jun 17th
vscsiStats can be used to perform storage performance analyses. vscsiStats collects and reports counters on storage activity. Its data is collected at the virtual SCSI device level in the kernel. This means that results are reported per VMDK (or RDM) irrespective of the underlying storage protocol.
How to start it up
Open a putty session to your ESX server
Get help on vscsiStats: /usr/lib/vmware/bin/vscsiStats -h
Start collecting statistics (collection stops after 30 minutes): /usr/lib/vmware/bin/vscsiStats -s -w <worldgroupID>
To find the worldgroupID of the Virtual Machine you want to monitor: /usr/lib/vmware/bin/vscsiStats -l
Display counters: /usr/lib/vmware/bin/vscsiStats -p <histotype> -c
histotypes can be one of the following: all, ioLength, seekDistance, outstandingIOs, latency, interarrival
the option -c will use a comma as delimiter
VMware – Powershell
Jun 6th
How te get started with Powershell.
- Download and install Powershell from http://www.microsoft.com/powershell
- Powershell 1.0: http://support.microsoft.com/kb/926139
- Powershell 2.0: http://support.microsoft.com/kb/968930
- Add Registry key HKLM\Software\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell\ExecutionPolicy and set to "RemoteSigned" (REG_SZ)
- Download and install VMware PowerCLI from http://www.vmware.com/go/powershell
- Download and install vEcoshell from http://thevesi.org/
- Download and install VMWare community Powerpack from http://powergui.org/entry.jspa?externalID=2551&categoryID=290
- References:
- Powershell Reference Card from Icomasoft at http://www.icomasoft.com/products/vi-powerscripter/powercli-reference-card.html
- VMWare VSphere PowerCLI cmdlets reference: http://www.vmware.com/support/developer/windowstoolkit/wintk40u1/html/index.html
- Mike Laverick's Powershell Whitepaper: http://www.rtfm-ed.co.uk/docs/vmwdocs/whitepaper-powershell.pdf
- http://www.van-lieshout.com/powercli/
- http://www.virtu-al.net/featured-scripts/vmware-powerpack/
- Example scripts can be found at http://www.virtu-al.net/script-list/
Virtu-al.net PowerPack from Alan Renouf on Vimeo.
VMware – esxtop
Apr 12th
A very good article about ESXTOP can be found at http://www.yellow-bricks.com/esxtop/
Reference card: http://www.vreference.com/public/vReference-esxtop1.2.pdf
Read also the VMware article http://communities.vmware.com/docs/DOC-9279
VMware P2V Converter Best Practices
Jan 8th
The best approach to converting a Windows operating system from a physical machine to a virtual machine is to perform a hot migration with VMware Converter installed locally on the source (physical machine) operating system. Below an overview of the different steps involved in a P2V (Physical to Virtual) conversion. Note that these steps only apply to Windows operating systems.