Additional value appended as a suffix to client machine name

  • KM02816922
  • 13-Jun-2017
  • 13-Jun-2017

This document has not been formally reviewed for accuracy and is provided "as is" for your convenience.

Summary

Additional value appended as a suffix to client machine name for multiprotocol citrix and web http/html script.

Error

When he is running the script from controller the clientname parameter gets additional random number, example:
Clientname=mymachine-1
Clientname=mymachine-2

Server is expecting to receive only "mymachine" string.


Cause

In multiprotocol you usually use ctrx_nfuse_connect instead of ctrx_connect_server or ctrx_set_connect_opt(ICAFILE,…

ctrx_nfuse_connect will check if Clientname is empty and set to:
Controller: <hostname>-<username><vuserid>
VuGen: <hostname>-<username>

<username> for ctrx_nfuse_connect this is empty.

Fix

Set ClientName before ctrx_nfuse_connect:

ctrx_set_connect_opt("CLIENT_NAME","someclientname");
ctrx_nfuse_connect("https://ServerName/Citrix/TCO.....