Category Archive: Script

Jun 13 2013

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 »

May 21 2013

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 »

May 06 2013

ESXi host advanced configuration using PowerCLI – parameter Net.BlockGuestBPDU

I was recently asked by one customer to verify the existing Bridge Protocol Data Unit (BPDU) Filter configuration for their 75+ ESXi hosts and if needed (not activated) change the default configuration from the value “0” to the value “1” to activate the feature. This blog post will focus on the PowerCLI configuration and not explaining …

Continue reading »

Apr 30 2013

vCloud Director cell firewall management

At present time, 2013-04-30, the Red Hat Enterprise Linux operating system (64 bit version of 5.4, 5.5, 5.6, 5.8, 6.1, 6.2 and 6.3) is the only one officially supported by VMware for vCloud Director (vCD) 5.1.2. Please see the vCD 5.1.2 release notes found here regarding the Red Hat Enterprise Linux 6.3 support since the the …

Continue reading »

Apr 17 2013

vCloud Director Management cluster disaster recovery

A while ago i needed to perform a vCloud Director (vCD) management cluster disaster recovery. There are four main sections in the blog post: Infrastructure – describes the infrastructure used by the vCloud Director Management cluster environment. Rollback reasons – describes why the HP LeftHand P4300 storage volume rollback was carried out. Rollback preparation – describes …

Continue reading »

Apr 15 2013

Change ESXi license using PowerCLI

A few days ago a new customer asked me to review the PowerCLI script used for the initial ESXi host configuration. The ESXi hosts are factory installed and the most recent batch of ESXi hosts were all configured with the “VMware vSphere Hypervisor 5 License” license. This means the initial ESXi host automatic PowerCLI configuration …

Continue reading »

Apr 08 2013

VM per datastore PowerCLI e-mail report

I have been asked to create a monitoring script to calculate the number of virtual machines per datastore. I know there are a lot of examples in the community doing the exact same thing. This particular case includes one requirement which i have not seen in the communities examples. My customer wants one e-mail to …

Continue reading »

Apr 03 2013

vCloud Director vApp Template IP Mode bug

2013-05-06  – I am happy to inform you that the vCloud Director version 5.1.2 does not contain the problem described in this blog post // Magnus Andersson I have been involved in several vCloud Director (vCD) implementations lately where the customer requires the following: One virtual machine per vApp and/or vApp Template. The vApp virtual …

Continue reading »

Mar 27 2013

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 »

Mar 21 2013

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 »

Mar 20 2013

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 »

» Newer posts