Checking VMware NTP configuration with Powershell
Thanks to the VMware VI Toolkit 1.5, checking the NTP settings on all your VMware ESX Servers is as easy as a oneliner: Get-VMHost | Sort Name | Select Name, @{N=”NTP”;E={Get-VMHostNtpServer $_}}
View ArticleTranslate Vml to LUN Path with Powershell
While checking the vmkernel logs on our VMware ESX Servers today, I ran into some errors referencing luns using a vml string. It looks something like this: vml.827149017315617. I would like to know...
View ArticleOneliner: Service Console IP with PowerCLI
Getting the Service Console IP addresses of your ESX servers with vSphere PowerCLI (formerly known as the VI Toolkit for Powershell): Get-VMHost | Select Name,...
View ArticleCreate a vSwitch Port Overview with Powershell
WARNING: VMware vmotion does not check wether there are sufficient ports available on the virtual switch on the destination host. Migrating a vm to a host with insufficient ports will cause the vmotion...
View ArticleSet VMware Snapshot Location with Powershell
Snapshots are m*th3rfcukers. If you’re not careful, they will mass-murder your vms. Yet they allow you to time-travel! You want to use them, but how to prevent a massacre? Here’s how: relocate the...
View ArticleSet vApp Guest Shutdown
Annoyed by the default setting for VM’s inside a vApp? I was, because when you power down the vApp, the VM’s are powered down instead of being shutdown cleanly. It can be a tedious task to check and...
View ArticleConfigure Syslog on Local Datastore with PowerCLI
Configuring a syslog folder is convenient for troubleshooting ESXi. But it’s a pain you-know-where to configure manually across all your ESXi servers. Luckily, PowerCLI can help out. This script...
View ArticleRemove vmware memory limits with Powershell
Using Memory Limits in vmware vSphere can cause severe performance issues. The guest operating system assumes it can use all of the allocated memory, but vSphere will make sure the vm cannot use more...
View ArticleCalculate vSphere 5 Licenses with Powershell (UPDATED)
VMware has announced the next generation of vSphere yesterday. Besides lots of new features, vSphere 5 also comes with a new licensing structure. For every licensed physical CPU, you get a certain...
View ArticlePoor Man’s Virtual Machine Backup with PowerCLI
Are you still performing old-school in-guest VM backups with a backup agent? Not ready to buy a backup product that does complete VM backups through the vStorage APIs? Then you will need to rebuild all...
View ArticleOneliner: Service Console IP with PowerCLI
Getting the Service Console IP addresses of your ESX servers with vSphere PowerCLI (formerly known as the VI Toolkit for Powershell): Get-VMHost | Select Name,...
View ArticleSet VMware Snapshot Location with Powershell
Snapshots are m*th3rfcukers. If you’re not careful, they will mass-murder your vms. Yet they allow you to time-travel! You want to use them, but how to prevent a massacre? Here’s how: relocate the...
View ArticleSet vApp Guest Shutdown
Annoyed by the default setting for VM’s inside a vApp? I was, because when you power down the vApp, the VM’s are powered down instead of being shutdown cleanly. It can be a tedious task to check and...
View ArticleConfigure Syslog on Local Datastore with PowerCLI
Configuring a syslog folder is convenient for troubleshooting ESXi. But it’s a pain you-know-where to configure manually across all your ESXi servers. Luckily, PowerCLI can help out. This script...
View ArticleCalculate vSphere 5 Licenses with Powershell (UPDATED)
VMware has announced the next generation of vSphere yesterday. Besides lots of new features, vSphere 5 also comes with a new licensing structure. For every licensed physical CPU, you get a certain...
View ArticlePoor Man’s Virtual Machine Backup with PowerCLI
Are you still performing old-school in-guest VM backups with a backup agent? Not ready to buy a backup product that does complete VM backups through the vStorage APIs? Then you will need to rebuild all...
View ArticleCheck VMware CPU oversubscription with a PowerCLI Oneliner
This PowerCLI oneliner will give you quick insight in the capacity of your VMware clusters by showing the oversubscription on CPU’s. The CPU Oversubscription is the ratio between the number of virtual...
View Article
More Pages to Explore .....