Microsoft SCVMM and Citrix PVS, exporting retries to a CSV

SCVMM

While I’m still experimenting with the Microsoft SCVMM and Citrix PVS PowerShell cmdlets (read more about my first ramblings about this topic here) I figured it’s difficult to get an export of the vDisk usage to track down the number of retries on a vDisk for a particular host so I wrote a little script to make this easier.

 

As said, I’ve been looking for usecases to combine the both PowerShell cmdlets and see how PoSH can improve the manageability of both SCVMM and PVS. 

While I was fiddling around with the PVS console I was looking into usage of the infamous vDisk usage screen:

Screen Shot 2017-06-19 at 14.34.33

 

Although it will give you a lot of useful information it can be slow and there’s no way to export the information from this screen which makes cross referencing VMs with high retries with the hosts they’re running on impossible. 

Back to Powershell ISE with the following plan:

  • Import the right Cmdlets;
  • Connect to the Citrix PVS server and the SCVMM server;
  • Get all VMs in the PVS device collections and grab their names;
  • Loop through all PVS VMs based on the object names and fetch the Hyper-V hostinfo;
  • Combine the info into an easy to modify file format for troubleshooting.

Combining these steps resulted in the below script, it might not be a large and complex script but I guess some people will stilll find it useful:

Hopefully this will help you getting hosts that are not behaving well causing those pesky retries on the vDisk.

The following two tabs change content below.

Kees Baggerman

Kees Baggerman is a Staff Solutions Architect for End User Computing at Nutanix. Kees has driven numerous Microsoft and Citrix, and RES infrastructures functional/technical designs, migrations, implementations engagements over the years.

One comment

  1. […] week, another idea comes up to check if I could make it happen with Powershell. I wanted to write a script that checks my current machine catalog and puts VMs that are not in a […]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.