Saturday, April 2, 2011

XenApp 6 QFarm /load of 20000 and Policy Information is Removed from the Registry

Symptoms

The XenApp 6 server is unable to contact the license server after a reboot.
The output of the Qfarm /load command indicates a server load of 20000.


Changing the license server name under policies to a bogus name and then changing back to the correct name (gpupdate /force and an IMA service restart might be needed) resolves the issue until the server is rebooted.
Citrix Policies created using the Delivery Services Console might not be applied.

Cause

If the IMAService is unable to contact the Data Store in a timely manner, Citrix Delivery Console Policies are deleted from the registry. 

Resolution

CTX126324 – LIMITED RELEASE - Hotfix XA600W2K8R2X64009 - For Citrix XenApp 6.0 for Windows Server 2008 R2 - English

“Restarting the IMA Service while the data store is unavailable results in the temporary deletion of certain farm policy settings from the server. This occurs because reading the settings from the local host cache - intended as a backup mechanism for retrieving farm policy settings in case the data store is down - does not work properly. Even without this fix, the issue is temporary: restarting the IMA Service as soon as the data store is available again repopulates the farm policy settings. This fix addresses the issue that prevents the proper reading of the farm policy settings from the local host cache in the first place.”
[From XA600W2K8R2X64009][#234694]

Workarounds

Caution! This procedure requires you to edit the registry. Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of the Registry Editor can be solved. Use the Registry Editor at your own risk. Back up the registry before you edit it.
  1. If the Citrix Licensing information (ServerName and Port) was added during the Farm creation and when subsequent servers were joined to the farm, investigate the following:

    Use dsview.exe from the Support\Debug folder within the XenApp 6 server media.
    Expand Server Neighborhoods > TheNameoftheFarm > MFServerFarm > Parameters
    - And -
    Expand Server Neighborhoods > TheNameoftheFarm > MFServers > EachIndividualServer

    For LSHostName and LSPortNumber

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix – values LSName and LSPort

    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix\Licensing – Note: This next screen shot would generally show license information contained in the data store and in the above screen shot. These values were deleted by Citrix support during analysis of the issue.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\License – Empty
Notes: If the information is accurate and located in the specific registry keys, a Citrix policy that includes licensing information is really not required. There might be other reasons for the 20000 server load. You might need to recreate the LocalHost Cache (run dsmaint recreatelhc from a command prompt with the IMA Service stopped and then restart the IMA Service). Removing the Citrix License information from the existing policy would sometimes recreate the non-Licensing related policy values. Do not attempt to add the above registry values if the values in the Data Store are empty. A new policy without licensing information might need to be created. Such policies appear to be retained on subsequent reboots.
  1. If the License Server information was chosen to be added later, the above Data Store and Registry values should be empty. You might want to remove all policies entries from the policies created in the Delivery Services Console and use gpedit.msc to create the policies with the desired license server information. The policy information from the registry should be retained on consistent reboots.

More Information
A policy registry key might contain ICAPolicies and IMA:


Then Licensing is added:

This information is also located in the Wow6432Node\Policies\Citrix Node.
Upon Reboot, all of the Policy information (ICAPolicies and IMA) is missing.

Tuesday, March 15, 2011

Xenapp Server Event ID : 9017 : This computer running Citrix Presentation Server will now stop accepting connections. This server is no longer in or could not enter a licensing grace period.

Problem :
You are getting 9017 event code on Citrix Xenapp server which states that "This computer running Citrix Presentation Server will now stop accepting connections. This server is no longer in or could not enter a licensing grace period."



Solution :   The best solution for this problem is reboot the server. But most of time we are unable to do so as we have lots of users load on that server . For immediate solution Open Citrix Access Management Console and point the victim server . Then go to it's property and point to License server tab. Then provide any arbitrary Server name which is not your Citrix Server and click on Apply and OK . Later again go to server property and provide the correct license server name . It will connect your license server immediately.


Enjoy :)

Thursday, March 10, 2011

Can I install oracle 10g on Windows 7 64-bit ?

LOL yes you can. You need to tweak the file oraparam.ini There are at least two lines you either need to add or change. The first is

Windows=5.0,5.1,5.2,6.0,6.1

I added the 6.1

Next is

[Windows-6.1-optional]

I added that below

[Windows-6.0-optional]

Setup will now run. During the install you will get a warning about the OS version but you can "OK" your way through it. Here is the entire contents of the file after changes

[Oracle]
DISTRIBUTION=TRUE
SOURCE=../stage/products.xml
LICENSE_LOCATION=
JRE_LOCATION=../stage/Components/oracle.swd.jre/1.5.0.11.0/1/DataFiles
JRE_MEMORY_OPTIONS=" -mx192m"
DEFAULT_HOME_LOCATION=oracle\product\10.2.0\db
DEFAULT_HOME_NAME=OraDb10g_home
NO_BROWSE=/net
NLS_ENABLED=TRUE
BOOTSTRAP=TRUE
OUI_VERSION=10.2.0.4.0
ADDITIONAL_COMPONENTS={"oracle.sysman.ccr:ALWAYS","oracle.rdbms.rat:ALWAYS","oracle.jdk:UPGRADE","oracle.swd.jre:UPGRADE"}
## JRE_VERSION is only for Windows. This is to copy accessbridge dlls
JRE_VERSION=1.5.0
#SHOW_HOSTNAME=ALWAYS_SHOW shows the hostname panel always
#SHOW_HOSTNAME=NEVER_SHOW does not the hostname panel
#SHOW_HOSTNAME=CONDITION_SHOW shows the hostname panel on condition
SHOW_HOSTNAME=NEVER_SHOW
#THIN_JDBC_FILENAME is optional and defaults to classes12.jar
#The value specified for this should be packaged with OUI, and should
#be relative to <OUI expanded stagedir>/jlib/
THIN_JDBC_FILENAME=classes12.jar
#RUN_OUICA specifies the batch script name that needs to be run
#The script is ouica.bat for win32, and ouica.sh for solaris.
#If the value is not specified, then the OUICA script is not run
RUN_OUICA=ouica.bat
CLUSTERWARE={"oracle.crs","10.1.0.2.0"}
SILENT_VARIABLE_VALIDATION=TRUE

[Certified Versions]
#You can customise error message shown for failure, provide value for CERTIFIED_VERSION_FAILURE_MESSAGE
Windows=5.0,5.1,5.2,6.0,6.1

#Windows 2000 use winver.exe to find version
[Windows-5.0-required]
#Minimum display colours for OUI to run
MIN_DISPLAY_COLORS=256
#Minimum CPU speed required for OUI
#CPU=300

[Windows-5.0-optional]

#Windows XP use winver.exe to find version
[Windows-5.1-required]
#Minimum display colours for OUI to run
MIN_DISPLAY_COLORS=256
#Minimum CPU speed required for OUI
#CPU=300

[Windows-5.1-optional]

#Windows .net use winver.exe to find version
[Windows-5.2-required]
#Minimum display colours for OUI to run
MIN_DISPLAY_COLORS=256
#Minimum CPU speed required for OUI
#CPU=300

[Windows-5.2-optional]

[Windows-6.0-required]
#Minimum display colours for OUI to run
MIN_DISPLAY_COLORS=256
#Minimum CPU speed required for OUI
#CPU=300

[Windows-6.0-optional]

[Windows-6.1-optional]

[IMAGES]
FILE1=images/rdbms_1.gif
FILE2=images/rdbms_2.gif
FILE3=images/rdbms_3.gif
FILE4=images/rdbms_4.gif
FILE5=images/rdbms_5.gif
FILE6=images/rdbms_6.gif
FILE7=images/rdbms_7.gif
FILE8=images/rdbms_8.gif

LICENSE_LOCATION=license.txt

Friday, March 4, 2011

Analyze Center for Web Interface

It's a awesome tool by Thomas . It helps to get the connection details of Citrix Webinterface . It works on 5.x too. For details follow http://www.thomaskoetzing.de


Download the toll for various versions of Webinterface from below links.



Friday, February 11, 2011

Windows 2003 Server out of the network due to IPSEC error ID : 4292

Error Screenshot :



Solution:  To resolve this issue, follow these steps:
  1. Delete the local policy registry subkey. To do this, follow these steps:
    1. Click Start, click Run, type regedit in the Open box, and then click OK.
    2. In Registry Editor, locate and then click the following subkey:
      HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\IPSec\Policy\Local
    3. On the Edit menu, click Delete.
    4. Click Yes to confirm that you want to delete the subkey.
    5. Quit Registry Editor
  2. Rebuild a new local policy store. To do this, Click Start, click Run, type regsvr32 polstore.dll in the Open box, and then click OK.
  3. Verify that the IPSEC Services component is set to automatic, and then restart the domain controller.

Thursday, February 10, 2011

Set Citrix services recovery options to "Restart the Service"

We can set Citrix importent Services Recovery Option to "Restart the services" by a batch script.

Please save the below codes to a notepad and name it anything.bat

"@echo off
echo Citrix Active Sync
reg add hklm\system\currentcontrolset\services\CtxActiveSync /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000530065000100000060EA00000100000060EA00000100000060EA0000

echo Client-network
reg add hklm\system\currentcontrolset\services\CdmService /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000530065000100000060EA00000100000060EA00000100000060EA0000

echo client-dg
reg add hklm\system\currentcontrolset\services\CdfSvc /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000200043000100000060EA00000100000060EA00000100000060EA0000

echo Client Encryption Service
reg add "HKEY_LOCAL_MACHINE\system\currentcontrolset\services\Citrix Encryption Service" /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000200043000100000060EA00000100000060EA00000100000060EA0000

echo citrix health mon
reg add hklm\system\currentcontrolset\services\CitrixHealthMon /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000530065000100000060EA00000100000060EA00000100000060EA0000

echo citrix imaservice`
reg add hklm\system\currentcontrolset\services\imaservice /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000200043000100000060EA00000100000060EA00000100000060EA0000

echo Citrix MFCOM
reg add hklm\system\currentcontrolset\services\MFCom /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000530065000100000060EA00000200000060EA00000100000060EA0000

echo print
reg add hklm\system\currentcontrolset\services\cpsvc /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000630074000100000060EA00000100000060EA00000100000060EA0000

echo IMAAdvanceSrv
reg add hklm\system\currentcontrolset\services\IMAAdvanceSrv /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000530065000100000060EA00000200000060EA00000100000060EA0000

echo SMA
reg add "HKEY_LOCAL_MACHINE\system\currentcontrolset\services\Citrix SMA Service" /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000530065000100000060EA00000100000060EA00000100000060EA0000

echo xml
reg add hklm\system\currentcontrolset\services\ctxhttp /v failureactions /t REG_BINARY /f /d 00000000000000000000000003000000530065000100000060EA00000100000060EA00000100000060EA0000

"

Few Importent PowerShell Syntex for Xenapp.

Publish a new application in your environment.

New-XAApplication -BrowserName “TEST” -ApplicationType “ServerInstalled” -DisplayName “TEST” -FolderPath “Applications/Testing” -CommandLineExecutable “c:\windows\system32\notepad.exe” -WorkingDirectory “c:\Windows\system32”-ClientFolder "Testing\Server Testing" -AddToClientStartMenu $false -WaitOnPrinterCreation $false -Description “TEST” -Accounts “Domain_Name\user name or group name” -ServerNames “your server_name”

Assign a Load Evaluator on a server

Set-XAServerLoadEvaluator "server_name" "LE name"