Carl Stalhood

Friday 26 December 2014

Cpsvc.exe is unable to start because of logon failure Citrix Presentation Server 4.5/XenApp 5.0 on Windows 2003 servers

As per the snapshot below Cpsvc.exe is unable to start because of logon failure. Either we need to put the password again or reset the password for this account.
Important Note: You can only run this tool on servers running Citrix Presentation Server 4.5/XenApp 5.0 on Windows 2003 servers. It does not work on earlier or later versions of Citrix Presentation Servers or on Windows 2008 and Windows Vista or later.

The Citrix Print Manager service is configured to run with a local user account called Ctx_CpsvcUser, which is created during the Presentation Server 4.5 installation. If this user account is deleted or corrupted, client printing does not function properly and printer autocreation might fail.
CtxCpsvc10.exe is a command line tool that re-creates (if deleted) the Ctx_CpsvcUser account and checks and assigns all required access permissions.

The tool actually implements the exact same procedure described in CTX113555 – Permissions and Rights Required for Ctx_CpsvcUser Account. Refer to this article for detailed information to understand how it works.

It also adds some new features, such as supporting renamed or re-created ICA-TCP listeners.
CtxCpsvc10.exe is a platform language-independent tool; it can be run on any language or Multilingual User Interface (MUI) package installed on servers running Windows Server 2003.
 

Sunday 21 December 2014

To upgrade NetScaler software of the 9.3 to 10.1


To upgrade software of the secondary appliance, complete the following procedure:
** Before below steps download upgrade from Citrix site and put it in /var/nsinstall using STP software.

Upgrading Software of the Secondary Appliance

1.            Log on to the secondary NetScaler appliance using an SSH utility, such as PuTTY. Use the nsroot credentials to logon to the appliance.
2.            Switch to the shell prompt.
3.            Run the following command to change to the default installation directory.
# cd /var/nsinstall
4.            Change to the 10.1-129 directory. build-10.1-129.11_nc
5.            The installation package is already uploaded to both the Netscalers “build-10.1-129.11_nc.tgz”, to the directory that is created. The installer extracts these files and places them on the appliance.
6.            Run the following command to install the software you have downloaded.
# ./installns
7.            After the installation process is complete, the process prompts to restart the appliance. Press y to restart the appliance.
8.            Log on to the appliance using the nsroot credentials.
9.            Run the following command to display the state of the NetScaler appliance.
> show ha node
The output of the preceding command should indicate that the appliance is a secondary node and synchronization is disabled.
10.          Ensure that the configuration is complete and as expected.
11.          Run the following command to perform a force failover and takeover as primary appliance.
> force failover


Upgrading Software of the Primary Appliance

Note: After completing the Upgrading Software of the Secondary Appliance procedure, the original primary appliance is now a secondary appliance.


1.            Log on to the secondary NetScaler appliance using an SSH utility, such as PuTTY. Use the nsroot credentials to logon to the appliance.
2.            Switch to the shell prompt.
3.            Run the following command to change to the default installation directory.
# cd /var/nsinstall
4.            Run the following command to create a temporary subdirectory of the nsinstall directory.
# mkdir x.xnsinstall
5.            Change to the x.xnsinstall directory.
6.            The installation package is already uploaded to both the Netscalers “build-10.1-129.11_nc.tgz”, to the directory that is created.
7.            Run the following command to install the software you have downloaded:
# ./installns
Note: If the appliance does not have sufficient disk space to install the new kernel files, the installation process performs an automatic cleanup of the flash drive.
8.            After the installation process is complete, the process prompts to restart the appliance. Press y to restart the appliance.
9.            Log on to the appliance using the nsroot credentials.
10.          Run the following command to display the state of the NetScaler appliance.
> show ha node
The output of the preceding command should indicate that the appliance is a primary node and the status of the node state is marked as UP.
11.          If the appliance is not a primary appliance, run the following command to perform a force failover to ensure that the appliance is a primary appliance.
> force failover
12.          Verify that the appliance is a primary appliance.

Enabling Synchronization on the Secondary Appliance
 
To enable synchronization on the secondary appliance, complete the following procedure:

1.            Run the following command to verify that the appliance is a secondary appliance.
> show node
2.            Run the following command to enable synchronization on the appliance.
> set node -hasync enable
3.            Run the following command to verify that the configuration of the secondary appliance is synchronized with that of the primary appliance.
> show ns runningconfig

SMA/WMI - Unable to start Error 1068 - Citrix xenapp 4.5

Error : With IMA

When a domain or local user is configured, the IMA Service fails to start and the following error message appears:
“Windows could not start the Independent Management Architecture on Local Computer... Refer to service-specific error code –2147483647.”

Error : With SMA/WMI


For 4.5:
CTX_CpsvcUser Re-creation Tool for 32-bit and 64-bit Versions of Presentation Server 4.5
 
For 4.0:
CTX_SmaUser Re-creation Tool
 
Change registry value 1 to 0