Citrix XenApp

Your Journey towards cloud.

Virtualization Picking up Speed

Are your Skills keeping up? Skill up. Be Relevant

Are you a System Admin

Learn Citrix XenApp, Its future.

Citrix XenApp

Industry-leading virtualization platform for building cloud.

Cloud Computing in Demand

Learn how to build cloud on Citrix XenApp.

Thursday, 22 December 2011

How to Disable "Remember folder location" and start always in the root

Web Interface "remembers" (in a cookie) the folder location by default where users exit Web Interface and at the next login starts automatically in that folder. To overwrite the default of remembering folders and starting always in the root, two things need to be changed.
  1. Start always in the root

    Edit applist.cs in site/serverscripts

    -- find --
    currentFolder = userPrefs.getCurrentFolder();

    -- change to --
    currentFolder = "";
  2. Remove or Disable option from the presentation settings

    Edit presentationSettings.inc in site/include

    -- find --
    value="<%=VAL_ON%>" <%=viewControl.getRememberFolderCheckedStr()%>>

    -- change to --
    value="<%=VAL_ON%>" <%=viewControl.getRememberFolderCheckedStr()%>" disabled>

    before Image after

    To remove the option from the presentation settings

    Edit presentationSettings.cs in site/serverscripts

    -- find --
    bool bCustomizeRememberFolderOption = true;

    -- change to --
    bool bCustomizeRememberFolderOption = false;

    before Image after

Monday, 19 December 2011

How to create a simple website in Citrix

Sometimes a simple website is needed to launch a Publish Application. The option to create an html file with a linked ica file has been in the CMC since day one.

Open CMC | Applications | Application property | Create html file
create html file

Sunday, 18 December 2011

How to set per Application settings in Citrix

edit the default.ica file loacted by default in /Citrix/MetaFrame/Conf

In the [wfclient] section add the AppDN of your Publish Application, like [notepad] but remember the value is case sensitive to what you have used in the CMC!
Now add any Application specific setting you like. For instance adding TWIMode=Off will result in a none seamless session for the Publish Application notepad
default.ica

Saturday, 17 December 2011

How to use the multilanguage footer function in citrix

Close any Access Suite Console (ASC) that might be open and enabled the footer manually through the webinterface.conf file that is located by default in /Citrix/MetaFrame/Conf

Change the following lines
# FooterTextDefaultLocale=[language code]
# FooterText_<lang-code>=[Customized footer text in the specified language]

to something like

FooterTextDefaultLocale=en
FooterText_en=This is a example.
FooterText_de=Dies ist ein Beispiel.
FooterText_fr=Cela est un exemple.

Friday, 16 December 2011

How to speed-up Web Interface logins in Citrix

When somebody tries to open the Web Interface login page early in the morning, then it might take some time before the page is loaded. Additional requests are fast and is due to the fact that in the background the worker processes needed to be started. If they are idle for 20min, then they get closed and new logins will again take some time. Now this behaviour can be disabled.

This can be done with the Internet Information Server (IIS) that comes with Windows 2003. Open the IIS Manager | Application Pools | Disable idle timeout for “worker processes”  for CitrixWebInterface4.xAppPool.


worker processes

Thursday, 15 December 2011

Citrix XenApp failed to connect to the Data Store

We had an issue with one of the Citrix servers in our farm after a reboot. The server came up fine, however, the IMA service would not start. The following errors showed up in the event log in succession every time we tried starting the service.
  1. Citrix XenApp failed to connect to the Data Store. ODBC error while connecting to the database: S1000 -> [Microsoft][ODBC Microsoft Access Driver] Cannot open database ‘(unknown)’.  It may not be a database that your application recognizes, or the file may be corrupt.
  2. Failed to load plugin C:\Program Files\Citrix\System32\Citrix\IMA\SubSystems\ImaPsSs.dll with error IMA_RESULT_FAILURE
  3. Failed to load plugin C:\Program Files\Citrix\System32\Citrix\IMA\SubSystems\ImaRuntimeSS.dll with error IMA_RESULT_FAILURE
  4. Failed to load initial plugins with error IMA_RESULT_FAILURE
  5. The Citrix Independent Management Architecture service terminated with service-specific error 2147483649 (0×80000001).

The reason why the IMA service would not start was due to an issue with the Local Host Cache database. The Local Host Cache database is used in a Citrix farm to allow a Citrix server to function even if it loses temporary access to the data store. It is an MS Access database named lmalhc.mdb and is stored by default in <ProgramFiles>\Citrix\Independent Management Architecture\ folder.
The solution for this issue was to recreate the LHC database using the dsmaint command. Before you run the dsmaint command, double check and ensure the following is true:
  1. The Citrix IMA Service isnt running (duh!)
  2. The datastore is available.
Once you have checked both the above, run the following command to recreate the LHC database.

dsmaint recreatelhc

This command performs the following:
  1. Renames the existing LHC database.
  2. Creates a new database.
  3. Modifies the following registry key HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\IMA\Runtime\PSRequired key to 1. Setting the value PSRequired to 1 forces the server to establish communication with the data store in order to populate the Local Host Cache database. When the IMA service is restarted, the LHC is recreated with the current data from the data store.
Once the command has been run, restart the IMA service and it should start normally now.

Wednesday, 14 December 2011

The qfarm /load Command Displays the Server Load Level Value as 20000

Symptoms

When you run the qfarm /load command from the command prompt to verify the load of a server, the value of the load that is displayed is 20000.
The following is the sample output of the qfarm /app command for your reference:
The following is the sample output of the qfarm /load command for your reference:

Resolution

The following are the causes for the error in the value of the server load and the probable resolutions for the error:
  • Cause: A MetaFrame Presentation Server 3.0 server, Standard Edition does not contain the Load Balancing functionality. Load balancing is only available with the Advanced and Enterprise Editions. Therefore, when you run the qfarm /load command from the command prompt of a Standard Edition server, the expected server load is 20000.


    Resolution: A server load value of 20000 indicates that a Load Balancing license is not available. This is as expected for a Standard Edition server.


  • Cause: There might be an error in the server load value if the Citrix Management Console contains an incorrect product code, a Product License mismatch, or an incorrect value for both the product code and the product license.
  • A server load value of 20000 indicates a Load Balancing license is not available. Therefore, this is expected on a Standard edition server.
    Resolution: Remove the product code from a server and run the qfarm /load command


  • Cause: The MetaFrame XP Product License might not have an unlimited server count.
  • Resolution: Contact the Citrix Technical Support team and provide details of the License Sets, as shown in the following screen shot:

Posted in Citrix

Load Manager values
  • 0 to 9998: This is the normal range for Load Manager.
  • 99999: No load evaluator is configured.
  • 10000: Load is at 100 percent (full load).
  • 20000: The Presentation Server Console contains an incorrect server edition or a license mismatch.
  • 99990: Results when a custom administrator with restricted rights runs the following QFARM commands:

    QFARM SERVER /APP
    QFARM /APP
    QFARM /APP <appname>
    QFARM /ZONEAPP

    Note
    : The QFARM command may not return any results when a custom administrator runs the following queries:

    QFARM /DISC
    QFARM /LOAD
    QFARM /ZONELOAD
The following are explanatio
ns of the load levels:

9999 = No load balancing installed

0 to 9998 = "normal" load level

10000! = Applicatio
n is disabled for this server

10000 = Load is at 100%

10001 = Out of licenses

10002 = Indicates that no ICA connection
s are available on that server. A
few other conditions
also cause this code to be returned:
If logons have been disabled on the server

If the server is out of swap space

If the applicatio
n is disabled