Oct 192015
 

Sacha Thomet who was one of my competitors for the “Geekovation” contest at Synergy (he won!) wrote a PVS documentation script (http://blog.appcloud.ch/citrix-pvs-healthcheck/).  He tweeted a revision, and after looking at the code I decided to try my hand at it.  I have to give credit to Remko Weijnen (http://www.remkoweijnen.nl/blog/2012/02/29/convert-mcli-output-into-powershell-objects/) for the code to change the mcli text output into arrays, and to Martin Pugh for the code to make a pretty web report (website and info in the comments of the function).

The script requires the mcli pssnapin (https://www.citrix.com/blogs/2011/01/11/pvs-powershell-mclipssnapin/)
Here is the script http://pastebin.com/p5qBAseZ 
Edit line 131 to set the path to the html output file.
Add “invoke-expression $htm” at the end if you want it to auto launch the html report.

Feel free to edit the script – the html output is kinda dirty but it works.

pvs report

  8 Responses to “PVS Documentation Script”

  1. Can you include replication status in there as well?

    • It is already in there… Disk Status will show Synced or Not Synced.

      • Great script, very clean and fast. Thanks for putting it together. I have another question, is there a way to find out which pvs server is not synced?

        • I don’t see the fields that tell me which server is in sync vs not. I just see “goodinventorystatus” and “access”
          goodinventorystatus = 1 = good, if 0 = bad
          access = 0 = shared mode, if 1 = read/write

        • PVS 7.7 is supposed to have more powershell built in, so maybe when I get my environment updated it can tell us more.

  2. Do you have any plans to move away from Pastebin or use another code sharing site? My work place won’t allow access to Pastebin.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)

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