Daily Farm Status reports for XenApp

21 Mar

This is a script that Alain Assaf created and based on his base i was able to modify it to work on following platforms:

XenApp 4.5

XenApp 6.0

XenApp 6.5

There were a couple of places where i needed to modify the code to compensate for the different versions of XenApp.  But once i was done i distributed a Scheduled task to one server in every farm (14 farms, 4.5, 6.0, 6.5) that would launch this script from one shared location (one script to report on all!).. What’s cool is i have just one place to send updates to the script.  What’s bad about that is i have to take into account all of the differences between what is availible in the powershell command set.

Since some wanted to see the whole code here it is.

(UPDATED:  1/14/14 – Here is the link to the minor revisions)

updated to include ZDC identification and Days since last reboot.  not important to everyone but something our team needed

Advertisements

5 Responses to “Daily Farm Status reports for XenApp”

  1. TK June 24, 2013 at 7:21 pm #

    No comments yet? This is an excellent resource. I would love to be able to sort the output on Server Name. What would it take to include that? Also not as important but on the wish list – Can the borders in the HTML table for the ACTIVE column be made to stand out, i.e., bolder line or a blue line? It’s the column my peers are most interested in. They want to see if any servers have zero connections.

    • cmichaelwoodward January 14, 2014 at 6:36 pm #

      TK,

      Thanks, but again this was something Alain Assaf originated, i just made some modifications to suit our needs. The environment we are in changes quite often (several farms almost 200 xenapp servers) I have not attempted any thing like that yet, but it would require building out the HTML section a little more. But in the mean time you could drop the results into an array then sort based on connections and highlight those with 0.

      I am updating this with some of the newer modifications (ZDC identification, Days since Last reboot) to assist with scripted reboots.

  2. Maarten January 15, 2014 at 10:58 am #

    Great script Michael. I got here through another forum from Alain.
    The only thing now to be added is cpu and ram and we have a total overview.
    Any links available to put me in the right way to sort this out ?

    Many thanks

    • cmichaelwoodward January 15, 2014 at 12:33 pm #

      hate to state the obvious, but Google is the best friend a scripter can have. I have learned that if i formulate my scripting questions like “Powershell cpu memory usage” i usually get right what i am looking for in the first couple of links. with that being said: Any reply from google results with stackoverflow.com as part of the link is a great place to start. here is an example of what i came up with on the first link:

      http://stackoverflow.com/questions/18090657/getting-the-cpu-memory-usage-and-free-disk-space-using-powershell

      We have no use to add this to our Daily Farm Reports, since our Citrix Boxes are all VM’s; CPU/Memory utilization are alerted on from the ESX environment and the VM team manages that. but using the link above, it will help point you in the right direction for gathering this info.

      • Maarten January 15, 2014 at 2:08 pm #

        Very true… my lazy side 🙂

        Thank you very much.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: