Archives For Powershell

As I have mentioned numerous times I am a big fan of The VESI and Alan Renouf’s powershell blog, well now Alan has released his powerpack for The VESI which means every VMware admin can have the power of Alan Renouf in their toolkit. Alan has taken his scripts and incorporated them in the VESI powerpack which means they can now be ran simply through the VESI GUI, saving you even more time. Due to current work commitments I haven’t had a lot of time to have a play with the powerpack yet but from the little I have seen it’s fantastic!

image

More information on The VESI can be found here

http://www.thevesi.org

and Alan’s powerpack can be found here

http://www.virtu-al.net/2009/11/02/virtu-al-vesi-powergui-powerpack/

If you like what you see and it starts saving you time consider a donation to Alan’s home test environment that will help us all in the long run!

http://www.virtu-al.net/likemyscripts/

OK all I seem to go on about at the moment is Virtualization Eco Shell and powershell, being a bit of a newbie to Powershell I have been amazed by just what I can do with it and have been eager to learn more. Whilst I have been learning and modifying code I have found on the internet, I have also started using Virtualization Eco Shell since its release.

The Virtualization Eco Shell is now the first tool I open when I get to site, I find it quicker and easier to get the information I need about an enviroment than using the VI / vSphere client.

A few examples of how I have recently used it

Reporting number of CPU’s and RAM in all the VM’s in an enviroment, using the advanced reporting pack that can be downloaded here >> http://thevesi.org/downloads.jspa within seconds I was able to produce a customised report similar to that below for a system with well over a hundred VM’s.

vmsummary2

Upon discovering a large amount of VMs we not time syncing with the host through VMware tools you would usually have to change the setting on each guest. After posting a question on the www.thevesi.org forum Scott has now added this functionality to the Virtualization Eco Shell >> http://thevesi.org/message.jspa?messageID=29595#29595

I am now able to set all my VM’s to sync at the click of a button

synctimewithhost

As for the vDiagrams they are fantastic, having previously used Veeam reporter to draw diagrams for infrastructures the vDiagrams option does it miles better and for free. Although I haven’t used the latest version of Veeams Reporter so this may have improved significantly. I just want the option to be able to diagram my network now as well! Maybe thats asking a bit much for a free product.

vmdiagram

For the latest information keep an eye on www.thevesi.org and also be sure to check out their blog here >> http://blog.thevesi.org/

Taken from here >> http://communities.vmware.com/message/1005498

Connect-VIServer cw-vc
Get-VM | % { Get-View $_.ID} | `
% {
$spec = new-object VMware.Vim.VirtualMachineConfigSpec
$spec.tools = New-Object VMware.Vim.ToolsConfigInfo
$spec.tools.syncTimeWithHost = $true
Get-View($_.ReconfigVM_Task($spec))
}

For anyone looking to learn more about PowerCLI or VI Toolkit I can highly recommend watching the PowerCLI – What is new in PowerCLI by Carter Shanklin on VMware’s coffee talk webinars page here >>http://is.gd/Op6J 

For me this session was fantastic it really opened my eyes to some of the more advanced methods of getting data using PowerCLI, there are a number of commands that will assist you in day to day troubleshooting techniques.

I blogged a while ago about downloading the Virtualisation Eco Shell (VESI), since then I haven’t stopped using it. It now forms one of my tools that is opened as soon as I am dealing with VMware. VESI puts a graphical user interface over the top of the VI Toolkit / PowerCLI and powershell. Allowing you to run queries and get information out of a environment in a matter of seconds. Below is a short list of some of the ways I have used it recently. I plan on doing a more detailed blog post shortly depicting how usefull this free tool is. Big thanks must go to Scott Herold who runs the project, he has been extremly helpful  and accommodating with assistance and feature requests.

  • Quickly shutdown all VM’s when doing SAN maintainance
  • Documentation / Infrastructure Diagrams
  • Checking host log files
  • Checking for snapshots
  • Using the script editior to write, test and debug powershell scripts
  • Checking Windows service status / restarting / starting services
  • Checking Windows event logs for VMs

Plus lots more.

For more information please visit the website www.thevesi.org

For all of that are unable to make the official VMware VMUG’s or just can’t get enough of VMware Alan Renouf from http://www.virtu-al.net/ is aranging the first unofficial online VMUG.

The Agenda at the moment is as follows:

  • Introduction
  • Presentation and Demonstration of The Virtualization EcoShell Initiative by Scott Herold
  • Virtual Coffee break (bring your own coffee)
  • Overview and Demonstration of vSphere new features by a VMware Employee
  • Finish and details of next Unofficial Online VMUG

For all the information and the links to register please visit Al’s blog here

For anyone that has not yet seen the Virtualisation Eco Shell this will be worth watching, this product is a must have tool for all VI admins! This is a fantastic idea and will mean that a lot more of the VMware community can get involved in VMUG’s. Hopefully I may be able to make the next one in London in person.

 

Barry

Alan Renouf, powershell guru has a brilliant quick reference guide that is a brilliant resource for VI Toolkit users.

http://www.virtu-al.net/2009/02/23/vi-toolkit-quick-reference-guide/

Alan’s site is also full of usefull VI Toolkit references, guides and much more

http://www.virtu-al.net/