IMA service starting very slow

IMA Service taking 10 to 15 minutes to start on remote servers.
Common troubleshooting steps:
1. Ran Dscheck /full (servers, applications, folders, groups)
2. Checked the VPN settings (ping times, and so on)Average Ping time = 68ms latency
We checked which IMA module we were currently waiting on while IMA was in a starting state by looking in the registry at the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\IMA\RuntimeValue: CurrentlyLoadingPlugin
While IMA was starting, we monitored this key for a value that remained there for most of the time that IMA was in the starting state. We needed to refresh the registry periodically by pressing F5 or choosing refresh from the View menu.
In this particular case, IMA was waiting on the MFSrvSs.dll module. This meant that the IMA Service was waiting on the Servers Subsystem
1. Stop the IMA service.
2. Delete the MSLicensing key in HKLM\Software\Citrix on 32 bit server and HKLM\Software\Wow6432Node\Citrix
3. Recreate the Local Host Cache (LHC) and restart IMA.

Posted in Citrix XenApp | Tagged , , | Leave a comment

History of Citrix XenApp

Citrix started its life as Citrix MultiUser and then WinView for OS2. Then Microsoft came up in the world and WinFrame was born. Winframe grew until it became Citrix Metaframe 1.8.
Metaframe 1.8 became Metaframe XP. One of the big improvements in Metaframe XP was the consolidation of all the Metaframe 1.8 consoles into the sing Citrix Management Console (CMC). The CMC is what we would (2007 / 2008) refer to as the Presentation Server Console.

Metaframe XP had its additions in the form of Feature Releases (FR) – Metaframe XP FR1, Metaframe XP FR2 and Metaframe XP FR3. MetaFrame FR3 has the Program Neighborhood Agent Admin Tool feature with no more manual editing of XML files.
Metaframe XP then made way for Citrix Presentation Server 3.0. Presentation Server 3.0 saw the birth of the all new and improved licensing strategy and Access Suite Console.

After Presentation Server 3.0 came Citrix Presentation Server 4.0 with the new Isolation Environments features. It was around this time the Citrix decided to brand many of their other products to the version 4.0 convention.
Presentation Server 4.0 Password Manger 4.0 Access Gateway 4.0

Presentation Server 4.5 followed next with Application Streaming, Configuration Logging, Health Monitoring and Recovery and the newly named Access Management Console. Presentation Server 4.5 saw the introduction of Feature Pack 1 with Smart Auditing, as well as Platinum licensing etc. Once again Citrix standardised the naming of many products to 4.5 at this time.

The big name change…
As of April 11, 2008 the nomenclature of Presentation Server 4.5 courses, exams and related certifications have been updated to include the Citrix XenApp name. This name change brings Presentation Server into line with other Citrix Products such as XenServer and XenDesktop. Citrix acquired XEN Source in 2007 for $500 million. XenApp 5.0 which was released late 2008. It has many improvements and fully supported for Windows Server 2008 and most noticeably the sexy black Web Interface 5.0. Then came the true XenApp with its version Xenapp 6.0

Posted in Citrix XenApp | Tagged | Leave a comment

Application Installation procedure in XenApp server or Terminal Server?

Before installation change the server mode to install. c:\>change user /install
After installation change the server mode to execute. c:\>change user /execute
While restarting the server reboots in execute mode. So if the application reboots in the middle of the process (Mid-Install process) then we have to plan according to that.
The application writes in Run or Run Once in Machine or User registry keys. So remove the keys from the registry before restarting. After booting the server continue the installation after changing the terminal server to install mode.
TS Application Analyzer Microsoft tool used to analyze the application whether it is compatible with the Terminal Server.
It checks Device Redirection, Performance Issues, Concurrent Resource Use, Installation Issues etc

Posted in Citrix XenApp | Tagged | Leave a comment

What are the Ports does Citrix commonly use?

License Manager Daemon TCP 27000 handles initial point of contact for license requests
License Management Console TCP 8082 Web-based administration console
Citrix Receiver TCP 80/443 Communication with Merchandising Server
ICA TCP 1494 Access to applications and virtual desktops
ICA with Session reliability TCP/2598
IMA TCP 2512 Independent Management Architecture (IMA)
Management Console TCP 2513 Citrix Management/XenApp Advance Consoles
Application / Desktop Request TCP 80/8080/443 XML Service
Database TCP 1433 Microsoft SQL Server
DNS TCP/UDP 53
TFTP UDP 69 Trivial File Transfer

Posted in Citrix XenApp | Tagged , , | Leave a comment

What is new in Citrix Presentation Server 4.5?

1. Health Monitoring and Recovery

HMR performs two functions:
a. It conducts tests against the servers in your farms.
b. If a particular test fails, it performs some action.
PS 4.5 has some preconfigured tests. You can use the SDK to write our own tests. It can perform tests such as performing a sample logon, making a request to the IMA service, requesting a Citrix XML ticket, or enumerating a list of terminal services sessions. You can configure these tests to run as often as you want. If any test fails, the system can perform a certain action. This action might be as simple as writing an item to the event
log. You can also configure actions that restart the Citrix IMA service, remove the server from load-balancing, or even reboot a server.

One of the cool things is that while you configure multiple tests on individual or groups of servers in your farm, you can also set a farm-wide “safety net” that specifies a certain maximum percentage of servers that can be automatically taken offline by HMR. (By
default this is 10 %.) This prevents one poorly-written test from accidentally
taken your entire farm offline.

2. Administrator Configuring Logging

You can configure a separate, stand-alone database that logs every single change that’s made to the data store by an administrator. This database hooks in at the IMA service level, so it picks up all changes—regardless of whether they were invoked via the Java console, the MMC, a CPSCOM (previously MFCOM) script, or a command-line tool. The reports will be in basic HTML form accessible via the MMC reports centre.

3. Application Isolation Environment engine

Citrix first introduced Application Isolation Environments (AIEs) in PS 4. This technology lets us to install multiple applications on a single server that ordinarily conflict with each other. In PS4, the overhead of using AIE was huge, and it really slowed things down when it was in use. AIE technology in PS 4.5 has been majorly overhauled

4. Application Streaming

A PS 4.5 server can also be a Citrix Streaming Server, meaning it can stream applications down to non-Presentation Server Windows workstations. A PS 4.5 server can be a Citrix Streaming Server client, meaning you can use another Citrix Streaming Server to stream applications to the Presentation Server instead of manually installing the applications or
using IM.

5. ICA Display Enhancements

PS4.5 has a couple of features that should make ICA perform a bit better in certain situations.

SpeedScreen Progressive Display: A sixth technology was added to the Speed Screen line-up for PS 4.5 called Progressive Display. When enabled, highly-complex graphical
items in motion can temporarily be sent to the client at a lower resolution so that they can be displayed in real time. Once the motion stops, the image will “snap” back up to the full resolution. This means that the user can get a good interactive experience while scrolling or moving an on-screen object.

Improved Tossing and Queuing Algorithm: In some situations, there would be more screen updates going from a Presentation Server to a client than the network could handle. In this case, the ICA protocol driver on the server would send as many packets as it could to the client, but when it got behind, it would randomly drop bits of the screen as it tried to keep up. The result was that screen motions looked choppy and weird. In PS 4.5, the ICA protocol driver on the server has an improved technique for deciding which graphical elements can be discarded (tossed) and which should be held and sent together to the client (queuing).

6. Logon Throttling

The logon process has always been very resource intensive for a Citrix Presentation Server. The server can hang just by more than a few users logging in at the exact same time. The new load evaluator rule in PS 4.5 lets us to specify the “resource cost” of a user logon. You can use this rule to temporarily show a server as “full” whenever the
logon rate exceeds a set level.

7. Component Updates

Along with PS4.5, Citrix is updating Web Interface to 4.5 and ICA clients to Version 10.

What didn’t change?

Printing (Same engine as PS 4, but of course with all the hotfixes “built in.)
Licensing
Policies (Several new policy items, but everything else is the same)
Resource Manager (You can apply templates to servers to make them easier to configure)
Installation Manager (You can install applications into Isolation Environments with IM)

Posted in Citrix XenApp | Tagged , , , , , | Leave a comment