Posts Tagged ‘Scripts’

Tweet
I’ve been troubleshooting some vCenter alarms lately, which involved a lot of editing, removing and adding of alarms. After the troubleshooting I wanted to reset everything back to default and ran into VMware KB article 2009166, explaining how to restore the default vCenter Server alarms.
To restore the default vCenter Server alarms you first have to [...]

Tweet
One of the core features of VMware vSphere is the Distributed Resource Scheduler (DRS). VMware DRS is vSphere’s workload load balancer and relies on VMware vMotion technology to live-migrate workloads from one ESX host to another.
You can constrain the VMware DRS decisions by defining DRS Rules. As of vSphere 4.1 there are 2 type of [...]

Tweet
Now that our PowerCLI Book Raffle has ended and the lucky winner is published, I want to give you a full disclosure of the drawing process. Because our PowerCLI Book is about PowerCLI, what other tool than PowerShell could we use to perform the drawing process?
Twitter Fun
So first we need to retrieve all the twitter messages that [...]

Tweet
It has been quite a journey, but it has finally arrived. Today our book: “VMware vSphere PowerCLI Reference: Automating vSphere Administration” will be released by Sybex. The journey started about a year ago when Alan Renouf and Luc Dekens decided to write a PowerCLI book that should have a practical approach to vSphere administration. Later [...]

Tweet
While preparing some disaster recovery (DR) tests, I had to add and remove a couple of LUNS from several ESX hosts in different clusters. Doing so, I had to rescan a lot of host bus adapters (HBA) several times. As I hate doing repetitive tasks in a graphical user interface (GUI), I always find myself [...]

Tweet
As you might know, I was asked to co-author a PowerCLI book. Now that the book is nearly finished we posted an update on our book’s website at www.powerclibook.com. If you’re interested in what will be covered in the upcoming book called “VMware vSphere PowerCLI Reference: Automating vSphere Administration” (Yes, I know it’s a mouth [...]

Tweet
As a security recommendation you should always disable Tech Support Mode (TSM) on your ESXi servers, but sometimes it’s helpful if you’re able to connect to your ESXi server using Secure Shell (SSH). When you want to enable TSM, you have 3 options:

Use the Direct Console User Interface (DCUI)
Use the vSphere Client
Script it (using PowerCLI [...]

Tweet
When trying to perform a Round Robin (RR) test on my vSphere 4.1 environment, I needed to know the number of paths available to the luns of the test servers. I also needed to change the Path Selection Policy (PSP) for the luns to Round Robin (VMW_PSP_RR). I could have done this easily using the [...]

Tweet
As you may have noticed, PowerCLI 4.1 has some cool new features for accessing the underlying SDK objects from within the PowerCLI objects. Before PowerCLI 4.1 your only door to the SDK objects was using the Get-View cmdlet, but you can use the .ExtensionData property now. This makes it much easier and requires less code [...]

Disclaimer

The views and opinions expressed anywhere on this site are strictly mine and do not reflect the opinions and views of VMware, or any other party unless otherwise stated. Information is provided as-is without warranty of any kind.