RES Workspace Manager 2011 Administration Guide RES Automation Manager

Adding and removing Citrix XenApp Servers using command line parameters

Use command line parameters to add or remove Citrix XenApp servers to server groups without using the Management Console. This is typically used in an automated scenario where RES Automation Manager is used to re-install a Citrix XenApp Server with new software and remove old software. First, RES Automation Manager will remove this server from any Server Group. Then the new software will be installed and the old software will be removed. As a final step, RES Automation Manager will add this server to the right Server Group.

How to add a Citrix XenApp server to a server group

  • Enter pwrtech.exe /serveradd=<server name> /group=<server group> in the command line.

Example:

C:\Progra~1\Ressof~1\Worksp~1\pwrtech.exe /serveradd=CTX10 /group=CTXServerGroup

How to remove a Citrix XenApp server from a server group

  • Enter pwrtech.exe /serverremove=servernaam /group=servergroup in the command line.

Example:

C:\Progra~1\Ressof~1\Worksp~1\pwrtech.exe /serverremove=CTX10 /group=CTXServerGroup

How to remove a Citrix XenApp server from all server groups

  • Enter pwrtech.exe /serverremove=servernaam /group=* in the command line.

Example:

C:\Progra~1\Ressof~1\Worksp~1\pwrtech.exe /serverremove=CTX10 /group=*

Example

You can also use this for Citrix Ardence scenarios:

Suppose you have two Citrix Presentation Server silos (a Microsoft Office Silo and an SAP Silo):

CTXSRV001 Office Silo

CTXSRV002 Office Silo

CTXSRV003 Office Silo

CTXSRV004 Office Silo

CTXSRV005 Office Silo

CTXSRV006 SAP Silo

CTXSRV007 SAP Silo

CTXSRV008 SAP Silo

CTXSRV009 SAP Silo

Because the SAP silo is overloaded, Ardence is used to quickly transform server CTXSRV004 and CTXSRV005 into SAP servers.

CTXSRV001 Office Silo

CTXSRV002 Office Silo

CTXSRV003 Office Silo

CTXSRV004 SAP Silo

CTXSRV005 SAP Silo

CTXSRV006 SAP Silo

CTXSRV007 SAP Silo

CTXSRV008 SAP Silo

CTXSRV009 SAP Silo

However, the Citrix Presentation Server farm still thinks that CTXSRV004 and CTXSRV005 are servers on which Microsoft Office has been installed, and the farm will be load balancing Office users to CTXSRV004 and CTXSRV005. As a result, Microsoft Office users will experience that the application is unavailable (because it has not been installed) and SAP users will not be load balanced to these new servers. This is why the servers on which these applications are published need to be adjusted, by using the above described method. The RES Automation Manager Agent can be embedded in the Ardence image together with a RES Workspace Manager installation. When the image gets online, RES Automation Manager and RES Workspace Manager will automatically perform the necessary steps.