How To Monitor Farm Health Using Medevac All About Citrix




  1. How To Monitor Farm Health Using Medevac All About Citrix Client
  2. How To Monitor Farm Health Using Medevac All About Citrix Access
  3. How To Monitor Farm Health Using Medevac All About Citrix Cloud

Jun 17, 2020 On the Farm Configuration dialog, select the Join Existing Farm radio button to add this provisioning server to an existing farm, then click Next. Use the Browse button to browse for the appropriate SQL database and instance within the network. Select the farm name that displays by default, or scroll to select the farm to join.

  1. # PVS health check script. Check his excellent XenApp Health Check @ techblog.deptive.co.nz. # - Martin Hartmann to share his PowerShell KnowHow with me. # # Description: This script checks Citrix Provisioning Server, Farm, vDisk & Target devices. # # Prerequisite: Script must run on a PVS server, where MCLI snap-in is registered.
  2. Jul 02, 2014 Jason Poyner made a great script to monitor the XenApp server Farm health on a regular basis. This last couple of months we build on a Windows 2012 R2 Remote Desktop Services environment that has several Session Hosts in multiple Collections.
Citrix Medevac is a fantastic tool but does not work fine with xenapp 6.5.
If you need check your XML Servicers healthy, you can use Perl to launch a script, it is the same used by Netscaler to monitoring the XML service, or very similar.
This script is tested with Perl Strawberry 5.x and works fine.
Only you need publish a app in the XML servers and you must launch the script to the specific servers and asking by this app. You can use a Batch file to run the script to the all brokers servers.
If you have xenapp 5, you can use this script to test all xenapp servers in the farm.
Ok, it is true. you can use third parties monitoring to acomplish this task, but come on..a lot off times this agents are not working. or maybe, if some 'monkey' of monitoring department call you at 3 A.M. you need a simple script to test really the healthy of all entire citrix farm.

If you have a txt file with all XML servers, you can create a batch script like thius to launch the perl script:
FOR /F 'eol=; tokens=1 delims=; ' %%i in (xmlbroker.txt) do (
CitrixTestXMLService_v02.pl %%i 8080 'notepad-xml-service' %historic_file% %Log_file%

And this is the Perl Script:
How to monitor farm health using medevac all about citrix employee
# This script can be run at the command line on a laptop or server
# to verify functionality of the Citrix XML Service
# perl test_xml_service.pl <ipaddress> <xml_port> [ appname ] #

use IO::Socket;
my $now_string = localtime;
if ($#ARGV < 1) {
print 'nUsage: perl test_xml_service.pl <ipaddress> <xml_port> [app name]n';
}
my $xml_port = $ARGV[1];
How to monitor farm health using medevac all about citrix app
my $app = $ARGV[2] || 'notepad';
How to monitor farm health using medevac all about citrix cloud
chop($hostname);
open(LOGFILE, '>>', $ARGV[3]);

my $xml_request = '<?xml version='1.0' encoding='UTF-8'?>n' .
'<!DOCTYPE NFuseProtocol SYSTEM 'NFuse.dtd'>n' .
'<RequestAddress>n' .
'<Name>n' .
'</Name>n' .
'</NFuseProtocol>n';
my $header = 'POST /scripts/wpnbr.dll HTTP/1.1rn' .
'Content-Length: $content_lengthrn' .
'rn';
print 'Header:n';
print 'XML Request:n';
print '-------nn';
my $socket1 = IO::Socket::INET->new(PeerAddr => $ip_address,PeerPort => $xml_port,
Proto => 'tcp') || die $ARGV[0] . ':' . $ARGV[1] . ' -> $@ ' . $now_string . ' ;n';
my @output;
if (m/</NFuseProtocol>/) {
last;
else {
}
push @output, $_;
my $output;
{
print LOGFILE $ARGV[0] . ' ' . $ARGV[1] . ' ' . ' -> exit 0 - ' . $now_string . 'n';
}
@output = 'null';
print STDERR $ARGV[0] . ':' . $ARGV[1] . ' -> exit 1 ' . $now_string . ' ;n';
print LOGFILE $ARGV[0] . ':' . $ARGV[1] . ' -> exit 1 - ' . $now_string . ' ;n';

downloadWhy can't I download this file?How To Monitor Farm Health Using Medevac All About Citrix Client
It is important to understand the following policy precedence and implementation because Citrix policies can take precedence with Windows Group Policies.

The Policy Processing and Precedence is shown in the following figure:

Notes:

  • By default the policy refresh interval is 90 minutes for AD GPOs. Download outlook.

  • Force a policy update with the gpupdate /force command.

  • By default both users and computer configuration settings are updated.

  • IMA policies are subject to the same AD policy refresh cycle for computer configurations. However, User configuration settings within IMA-based policies are applied immediately.

Instructions

To create a HMR policy, complete the following procedure:

  1. Logon to the XenApp server AppCenter console and select Policies.

  1. Select the Computer tab because the policy should be applied to a server.

  2. Click New and in the New Policy window, enter HMR as the policy name and select Next.

  1. If the policy is to be applied for all versions of XenApp (XenApp 6.0 and 6.5), ensure that the XenApp (All Versions) is selected.

  2. Select Health Monitoring and Recovery, as shown in the following screen shot:

  1. Note the available options for HMR as shown in the following screen shot. HMR is enabled by default in the first policy. But, you can change or add policies in the Health monitoring tests option by selecting the Add link:

  1. Note the policies, interval, threshold, and recovery action to take when a test fails. Edit each value accordingly and select OK.

  1. Select Next in the New Policy window.

  2. If you want to apply this policy, select an Organizational Unit (OU) in Active Directory or a Worker Group on the XenApp farm.

  3. Select Create to create the policy.

  4. Select Enable this policy if you want it applied at the next screen shot:

    The policy HMR is displayed in the policies that will be applied to the XenApp servers.

How To Monitor Farm Health Using Medevac All About Citrix Access

Additional Resources

How To Monitor Farm Health Using Medevac All About Citrix Cloud

  • Refer to the Citrix eDocs for information on how HMR works.

  • Refer to Citrix eDocs - Monitoring Server Performance with Health Monitoring & Recovery