• XenApp 5 Documentation Script Updated October 9, 2011

    Fellow CTP Wilco van Bragt, e-mailed me and told me that in my XenApp 6.5 script the Health Monitoring & Recovery (HMR) policy setting was not formatted properly. While looking into this issue, I found that I had not even included the HMR settings in the XenApp 5 script. In XenApp 5, the HMR settings are part of the XenApp farm properties and in XenApp 6.x the settings are in the IMA farm policies.

    I also noticed that I had not included the settings for CPU Utilization Management or Memory Optimization. In XenApp 5 for Windows Server 2003, both of those are just checkboxes so they are either Enabled or Disabled. In XenApp 5 for Windows Server 2008, CPU Utilization Management has three settings available:

    • No CPU utilization management
    • Fair sharing of CPU between sessions
    • CPU sharing based on Resource Allotments

    XenApp 5 for Windows Server 2003 returns the same value of 255 whether the option is Enabled or Disabled! At this time, I am unable to report on what the setting is so I just report that “CPU Utilization Management: Cannot be determined for XenApp 5 on Windows Server 2003”.

    The XenApp 5 scripts have been updated and can be found via this article:

    https://carlwebster.com/where-to-get-copies-of-the-xenapp-farm-documentation-scripts/

    Here is the additional PowerShell code that goes in the Server Default section of the Farm settings:

    line 2 "Memory/CPU"
    line 3 "CPU Utilization Management: " -NoNewLine
    If($Farm.CpuManagementLevel.ToString() -eq "255")
    {
    	line 0 "Cannot be determined for XenApp 5 on Windows Server 2003"
    }
    Else
    {
    	line 0 "" $Farm.CpuManagementLevel
    }
    line 3 "Memory Optimization: " $Farm.MemoryOptimizationEnabled
    
    line 2 "Health Monitoring & Recovery"
    If($Farm.HmrEnabled)
    {
    	$HmrTests = Get-XAHmrTest -EA 0 | Sort-Object TestName
    	If($?)
    	{
    		ForEach($HmrTest in $HmrTests)
    		{
    			line 3 "Test Name: " $Hmrtest.TestName
    			line 3 "Interval: " $Hmrtest.Interval
    			line 3 "Threshold: " $Hmrtest.Threshold
    			line 3 "Time-out: " $Hmrtest.Timeout
    			line 3 "Test File Name: " $Hmrtest.FilePath
    			If($Hmrtest.Arguments)
    			{
    				line 4 "Arguments: " $Hmrtest.Arguments
    			}
    			line 3 "Recovery Action: " $Hmrtest.RecoveryAction
    			line 3 "Test Description: " $Hmrtest.Description
    			line 0 ""
    		}
    	}
    	Else
    	{
    		line 3 "Health Monitoring & Recovery Tests could not be retrieved"
    	}
    }
    Else
    {
    	line 3 "Health Monitoring & Recovery is not enabled"
    }
    

    NOTE: This script is continually updated.  You can always find the most current version by going to https://carlwebster.com/where-to-get-copies-of-the-documentation-scripts/

    ,

    About Carl Webster

    Webster is a Sr. Solutions Architect for Choice Solutions, LLC and specializes in Citrix, Active Directory and Technical Documentation. Webster has been working with Citrix products for many years starting with Multi-User OS/2 in 1990.

    View all posts by Carl Webster

    No comments yet.

    Leave a Reply