Home > Citrix, Scripting > Exporting and Importing XenApp Load Evaluators

Exporting and Importing XenApp Load Evaluators

For such a simple idea this was strangely not covered on google,  so  I had set about to create an EXE for the support guys in house to move our production load evaluators to our test environments.

Load evaluator information for the most part was accessible easily through mfcom, everything from high to low water marks and schedules are well covered, but for some reason IP ranges are mysteriously excluded and not supported. Personally this didnt bother me all that much, as we dont use ip ranges, but without it, a “covers all” published EXE was pointless.

So instead of develop a half assed gui, I moved to Powershell instead. Powershell covers this task so easily. If you havent installed the xenapp powershell cmdlets in your citrix environment, go… NOW. They’re excellent.

Open “powershell with Xenapp commands (ctp3)”:

Exporting a load evaluator:

get-xaloadevaluator -loadevaluatorname InsertLoadEvaluatorname | export-CLIXml c:\path\filename.xml

Once you’ve exported your load evaluator data, move to the new farm and run the following:

Importing a new load evaluator:

import-CLIXml c:\path\filename.xml | new-xaloadevaluator

Note: if the load evaluator already exists, and you wish to update it, use:

Updating a current Load evaluator:

import-CLIXml c:\path\filename.xml | set-xaloadevaluator

And thats it!

  1. No comments yet.
  1. No trackbacks yet.

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

<span>%d</span> bloggers like this: