Tag Archive: script

vSphere VM vCPU to ESXi host pCPU core allocation

There has been quite a lot of discussion regarding resource utilization and resource allocation in vSphere environments lately. There are a lot of tools around doing analysis (some better than others) of your environment and gives suggestions if you need to e.g.: Add more resources (CPU, RAM, Disk, Network) to your vSphere cluster. Down size …

Continue reading »

ESXi host VMkernel.Boot.terminateVMOnPDL configuration using PowerCLI

I have already written a blog post about how you can configure the ESXi host  setting disk.terminateVMOnPDLDefault in vSphere version 5.1. You can find that blog post here. I have received a couple of questions about how to configure the setting, called VMkernel.Boot.terminateVMOnPDL, in ESXi 5.5 so i decided to put together a blog post about it. …

Continue reading »

Backup vSphere vNetwork Distributed Switches using PowerCLI

A few weeks ago a customer asked me how to automate the export of the vSphere vNetwork Distributed Switches (VDS) configuration. Their existing routine included to make a manual export of the VDS configuration whenever a VDS change was implemented including adding or removing a VDS port group. In the vSphere Web Client you can …

Continue reading »

Configure and report the ESXi host TSM-SSH service using PowerCLI

A customer contacted me the other day asking for a way to verify if the ESXi host TSM-SSH (SSH) service is running, and if so: Turn off the TSM-SSH service. Send an e-mail report including all ESXi hosts where the TSM-SSH service was stopped. The customer’s vSphere administrators sometimes enable the ESXi host TSM-SSH service …

Continue reading »

vSphere and vCloud Director database creation script

A customer called me yesterday asking for a script to create the necessary databases to run: vCenter Server vCenter Single Sign On vCenter Update Manager vCloud Director The customer was about to perform a clean install in their test environment and will be using vCenter Server 5.1 U1, ESXi 5.1 U1 and vCloud Director (vCD) …

Continue reading »

Schedule PowerCLI script in Windows task scheduler

I have received a couple of questions about how to add a PowerCLI scrip to Windows task scheduler after publishing my blog post vSphere Cluster Resource Pool Configuration Script Depending on the customer requirements there are several ways of doing this. Customer requirements for my implementation includes: An active directory based service account must be used …

Continue reading »

ESXi host disk.terminateVMOnPDLDefault configuration using PowerCLI

This section is updated since vSphere 5.5 was GA during VMworld 2013. From now on the configuration option has changed regarding two things: Name – It is now called VMkernel.Boot.terminateVMOnPDL and not Disk.terminateVMOnPDLDefault Configuration – It is now an advanced ESXi configuration parameter and not a text string in the ESXi host file /etc/vmware/settings Continue reading if …

Continue reading »

vSphere cluster resource pool configuration script

This blog will include the technical aspect (the script) which i mentioned in the blog post vCloud Director implementation for small businesses Input parameters: 4 vSphere cluster resource pools exists at the vSphere cluster root level SLA-Gold with priority value 10 SLA-Silver with priority value 5 SLA-Bronze with priority value 3 SLA-vCloud with priority value …

Continue reading »