Hang on Please wait for Local Session Manager

Appliation Does not Launch. 

The winlogon notification subscriber <TermSrv> is taking long time to handle the notification event (Logon)

Change the following registry keys on the XenApp servers:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\wfshell\TWI

    ApplicationLaunchWaitTimeoutMS  - 180000

    LogoffCheckerStartupDelayInSeconds - 60

Grep NetScaler Logs

zcat /var/log/ns.log* | grep -i inter | more

sh connectiontable

https://support.citrix.com/article/CTX126853/how-to-determine-the-ip-addresses-of-active-connections-to-a-virtual-server-of-a-netscaler

show ns connectiontable  "CONNECTION.LB_VSERVER.NAME.CONTAINS(\"oc\")"

show ns connectiontable  "CONNECTION.LB_VSERVER.NAME.CONTAINS(\"epsi\")"

show ns connectiontable  "CONNECTION.LB_VSERVER.NAME.CONTAINS(\"ldap\")"

https://developer-docs.citrix.com/projects/netscaler-command-reference/en/12.0/ns/ns-connectiontable/ns-connectiontable/#ns-connectiontable

show persistentSessions

show persistentSessions | grep -i <ip-address>

* i put -i in so that if you put a name it finds it
** Must have a space around the pipe--otherwise, it doesn't know the commands are separate

NetScaler backup ns.conf

* Based on putting a cert for the account. Otherwise, you have to create a local account and pass creds in plain text
https://docs.netscaler.com/en-us/citrix-adc/current-release/system/authentication-and-authorization-for-system-user/ssh-key-based-authentication-for-system-users.html

Example:
scp nsroot@netscale1:/nsconfig/ns.conf /media/windowsshare/netscaler/ns-1/`date +%Y-%m-%d`_ns.conf_netscale1.txt

./BackupNS.sh

scp nsroot@netscale1:/nsconfig/ns.conf /media/windowsshare/netscaler/ns-1/`date +%Y-%m-%d`_ns.conf_netscale1.txt
scp nsroot@netscale2:/nsconfig/ns.conf /media/windowsshare/netscaler/ns-2/`date +%Y-%m-%d`_ns.conf_netscale2.txt
ssh nsroot@netscale1 "show run" | tee /media/windowsshare/netscaler/ns-1/`date +%Y-%m-%d`.show.run_netscale1.txt
ssh nsroot@netscale2 "show run" | tee /media/windowsshare/netscaler/ns-2/`date +%Y-%m-%d`.show.run_netscale2.txt

Morsels from the Citrix Article

I used ssh-keygen to create the key. Then copied the public key to both of our HA Scaler pairs