Powershell and using the Wildcard Pattern Escape Method

I was recently parsing strings which contained a wildcard pattern in the string name, by using the ‘WildCardPattern.Escape’ method I was able to convert the string which contained the escaped characters to a string that contains the escape codes and then parse the output as expected. In the example, I was attempting to retrieve the datastore name of objects … More Powershell and using the Wildcard Pattern Escape Method

Monitoring multiple SSL certificates on a single host using Nagios XI

I was recently looking to monitor multiple SSL certificates on a host for multiple network services, to which Nagios appeared to have a limitation within the ‘check_xi_service_http_cert’ check command  to which it can only monitor a single SSL certificate per monitored host.  I therefore created a powershell script to allow for multiple certificates to be … More Monitoring multiple SSL certificates on a single host using Nagios XI

ChefConf 2014: PowerChef – Enhanced Powershell Integration For Chef Recipes

Below is a link to a presentation by Adam Edwards from the recent #chefconf,  for those that interested in integrating Powershell within their Chef recipes. The presentation highlights the use of guard to evaluate conditions during execution on the chef client, guard interpreters  to evaluate string commands and also the integration of Chef with PowerShell Desired State … More ChefConf 2014: PowerChef – Enhanced Powershell Integration For Chef Recipes

Generate system uptime report of VMs using PowerCLI

It is possible to return the system uptime of your VMs by retrieving the last statistical information for the metric ‘sys.uptime.latest’ in realtime using PowerCLI. For Example, to return the metric for the virtual machine ‘VM1’ we could run the following command: Get-Stat -Entity VM1 -Stat sys.uptime.latest -Realtime -MaxSamples 1 This will return the uptime … More Generate system uptime report of VMs using PowerCLI

Retrieve VM Memory and CPU Hot Add information from PowerCLI

I was recently looking to return VMs where the ‘Enable memory hot add information for this virtual machine’ was not configured. For a single VM, you can view this information from selecting ‘Edit Settings > Options > Memory/CPU Hotplug’  as below:                     From PowerCLI you can retrieve … More Retrieve VM Memory and CPU Hot Add information from PowerCLI