Citrix: Difference between revisions

From Piszczynski
piszczynski>Aleks
piszczynski>Aleks
No edit summary
Line 40: Line 40:
$SID = "<enter SID here>" ;
$SID = "<enter SID here>" ;
Get-ADObject -Filter * -Properties * | where{$_.objectSid -eq $SID}
Get-ADObject -Filter * -Properties * | where{$_.objectSid -eq $SID}
== Citrix VDA Power State Unknown ==
Check this article:
http://knowcitrix.com/citrix-vdi-power-state-unknown/


== NetScaler ==
== NetScaler ==

Revision as of 17:45, 12 April 2021

Handy Citrix Tips

Stuck session - if session cannot be logged off and does not show on the server you can log off the session in powershell:

  • add-pssnapin *citrix*
  • Get-BrokerSession -username Domain\User | Set-BrokerSession -Hidden $true

Find location of the citrix database used by delivery controllers and netscaler:

  • Get-Brokerdbconnection


Remove citrix licence from account to free up for another user

On the citrix controller:

  • cd "<C:\Program Files (x86)\Citrix\Licensing\ls>"
  • Udadmin -list -times
  • udadmin -f XDT_ENT_UD -user <username@domain> -delete (example udadmin -f xdt_adv_ud -user <username@domain> -delete)

You might have to repalce the license type with

  • XDT_ADV_UD XenDesktop Advanced
  • XDT_PLT_UD Citrix Virtual Apps and Desktop Premium

Show settings for citrix motoring logging:

  • asnp Citrix.*
  • Get-MonitorConfiguration
  • Set-MonitorConfiguration -<setting name> <value>

Citrix Troubleshooting

If there are no apps available in the storefront check the citrix database for connection - look at the netscaler and see if there are any connection errors showing on console.


For errors when connecting from a new environment check that ports 8080, 1494, 80, 2598, 443 are open between client and all xenapp servers and netscaler.


Citrix RDP to VDA

To RDP to citrix VDA user needs to be admin or member of the remote desktop users group. They will also need to be a member of the Airect Access users which is determined by this registry value: HKLM\Software\Citrix\PortICA\DirectAccessUsers

This will give you an SID, use this to find the group it references in AD

$SID = "<enter SID here>" ; Get-ADObject -Filter * -Properties * | where{$_.objectSid -eq $SID}


Citrix VDA Power State Unknown

Check this article:

http://knowcitrix.com/citrix-vdi-power-state-unknown/

NetScaler

Command Description
show ns ip Shows configured Netscaler IP address (SNIP, VIP, MIP)
show version Shows the current Netscaler firmware version
show hardware Lists hardware details of appliance (including serial number)
sh license Displays licensed feature on appliance
sh running | more Shows the current running configuration (page per time)
sh ns fea Displays list of Netscaler features
en ns fea <acronym> Enables a Netscaler feature (Dependant on license)
dis ns fea <acronym> Disables Netscaler feature
sh ns mode Displays list of configured Netscaler modes
en ns mode <acronym> Enables Netscaler Mode
dis ns mode <acronym> Disables Netscaler mode
sh lb vserver | more Displays list of configured Load Balanced vServers
sh lb vserver <vserver name> Displays information relating to specified vserver
en lb vserver <vserver name> Enable LB vserver
dis lb vserver <vserver name> Disable LB vserver
sh service | more Displays list of configured Services (not service groups)
sh service <service name> Displays information relation to specified service
en service <service name> Enable Service
dis service <service name> <delay> Disable Service with a delay (in seconds)
sh servicegroup | more Displays list of configured Service Groups
sh servicegroup <servicegroup name> Displays information relating to specified servicegroup
en servicegroup <servicegroup name> Enable servicegroup
dis servicegroup <servicegroup name> –delay <#> Disables servicegroup with delay (in seconds)
sh server Displays a list of servers
en server <servername> Enables specified server
dis server <servername> <delay> Disables specified server with a delay (in seconds)
sh monitor Shows the list of configured Netscaler monitors
sh monitor <monitor name> Displays information relating to the specificed monitor
sh route Prints a list of defined routes
add route <network> <netmask> <gateway> Adds a static route on the appliance
rm route <network> <netmask> <gateway> Removes a static route on the appliance
sh int Displays information on all network interfaces
sh int <interface number> Displays information relating to specified network interface
en int <interface number> Enable Netscaler NIC
dis int <interface number> Disable Netscaler NIC
sh arp Displays information from ARP table (including iface used)
sh vlan Displays VLAN ID’s and assigned NIC’s
sh ha node Displays HA node status
force ha fail Forces HA Failover between nodes
nstrace –tcpdump enable Performs a packet capture (all NICs) with tcpdump enabled
shell Exits to shell command prompt (FreeBSD)
dmesg Displays system message log from shell (since reboot)
save c Saves current running config to file