Netscaler two arm deployment (multiple network interfaces)

Collection of useful information
NS-LogicalView
ref > https://www.citrix.com/content/dam/citrix/en_us/documents/products-solutions/citrix-netscaler-and-citrix-xendesktop-7-deployment-guide.pdf
 

  1. http://www.carlstalhood.com/netscaler-11-system-configuration/#twoarm
  2. http://discussions.citrix.com/topic/334929-add-2nd-nic-to-netscaler-101-vpx-for-external/
  3. Binding-Multiple-IP-Addresses-to-an-Interface-of-a-NetScaler-Appliance
    http://support.citrix.com/article/CTX117345
  4. http://www.citrixguru.com/2015/09/08/lab-part-5-netscaler-11-architecture-and-installation/

 

XenApp 6x – Export Application list with Published Servers

Add-PSSnapin *citrix*
Get-XAApplicationReport *  | Select BrowserName, {($_.ServerNames | Sort) -join ", "} | Export-csv c:\tmp\XA65-AppReport.csv


Making report more pretty:
open csv with excel and perform replace CTRL + H, Find “, ” Replace with hold the ALT key down and then press 010 on the number pad.
ref – http://www.exceldashboardtemplates.com/how-to-find-and-replace-a-hard-return-in-an-excel-spreadsheet/

Powershell Format Operator (-f)

Padding Prefix
PS C:\Users\User> 1..10 | % { “{0:d2}” -f $_}
01
02
03
04
05
06
07
08
09
10
Space Padding

PS C:\Users\User> 1..10 | % { "{0,5}" -f $_}
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10

Number of decimal places
PS C:\Users\User> 1..10 | % { “{0:n2}” -f $_}
1.00
2.00
3.00
4.00
5.00
6.00
7.00
8.00
9.00
10.00
Percentage
PS C:\Users\User> 1..10 | % { “{0:p2}” -f ($_/4)}
25.00 %
50.00 %
75.00 %
100.00 %
125.00 %
150.00 %
175.00 %
200.00 %
225.00 %
250.00 %
Ref – https://blogs.technet.microsoft.com/pstips/2014/10/18/powershells-format-operator/

Installing Applications on RDS/XenApp

Install Mode

  • Admin token CMD >  change user /install

Execute Mode

  • Admin token CMD >  change user /execute

Notes:

  1. change user /query provides the current mode state.
  2. when the machine reboots it resets to execute mode.
  3. install mode facilitates the capture of user application settings (registry etc..) during the install and apply’s them to multi-user  sessions in execute mode.
  4. Applications like Antivirus, VDA, PVS Target device etc… do not require install mode.
  5. General rule, use install mode for all the applications that you intended to publish.

Citrix FMA Maintenance Mode difference between Server OS and Desktop OS

User connectivity is affected as follows when in maintenance mode:
With Server OS machines, users can connect to existing sessions but cannot start new sessions.
With Desktop OS and Remote PC Access machines, users cannot connect or reconnect once the machine is in maintenance mode. If they are already connected, then they stay connected until they next disconnect or log off.
Machines are available for user connections when you take them out of maintenance mode.
 
ref: http://docs.citrix.com/en-us/xenapp-and-xendesktop/7-5/cds-manage-delivery-groups-wrapper/cds-put-desktop-into-maintenance-mode-rho.html

Things to consider when decommissioning Citrix XenApp/XenDesktop Site(Controllers)

  1. Make sure those controllers are not used as Secure Ticket Authority (STA) in the Netscaler Access gateway; if so replace those IPs with the new controller IPs. same goes with Web Interface gateway configuration.  – This is very important else you will break remote access.
  2. shutdown and remove the Virtual Machines from Citrix Studio.
  3. uninstall Director that is pointed to this site.
  4. clean up configuration of these controllers from web interface or store front.
  5. generate usage reports if need through OData API
  6. shutdown the controllers.
  7. take the database offline.

Netscaler: Block Outlook Anywhere for external users

Responder Policy

Action: Reset
Expression: http.req.url.path.CONTAINS(“rpc”) && client.IP.SRC.IN_SUBNET(10.200.0.0/16).NOT
Bind it to exchange load balance vServer. This will block access to Exchange IIS “Rpc” virtual directory (Outlook Anywhere) for devices outside 10.200.0.0/16.
You can also go little beyond and create a pattern set and include

  1. owa
  2. rpc

and use the pattern set in the Responder Expression.
http.req.url.path.CONTAINS_ANY(“exch_ps”) && client.IP.SRC.IN_SUBNET(10.200.0.0/16).NOT

Install VMware Tools on CentOS 7 to enable host shared folder access

make sure to install all updates for vmware workstation; (for instance 10.4 has buggy tools; fixed in 10.7)

yum install gcc make perl "kernel-devel-uname-r == $(uname -r)"
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cp VMwareTools-9.6.5-2700074.tar.gz /tmp
cd /tmp
tar -xvzf VMwareTools-9.6.5-2700074.tar.gz
cd vmware-tools-distrib/
./vmware-install.pl

shared folders get mounted under /mnt/hgfs