RAS Session Variables

0 users found this article helpful

When a remote user starts a published application or desktop, a set of session variables is created by Parallels RAS on the host server. The variables contain information about the client machine, which you can examine if needed. The variables are always updated, so on connect/reconnect they always contain the latest values. The following RAS session variables are available:

 

Variable Name

Description

TUX_REMOTECLIENT_PLATFORM Name and version of the operating system running on the client machine. For example, "Windows 8.1 Enterprise Edition (WOW 64)", "iPhone OS 9.2.1", "Android 6.0", etc.
TUX_REMOTECLIENT_MAC MAC address of the client machine.
TUX_REMOTECLIENT_IP IP address of the client machine as seen by the client
TUX_REMOTECLIENT_LANG Language used by the GUI on the client machine: EN, FR, RU, DE, ES, IT, PT, CS (Chinese Simplified), CT (Chinese Traditional), KR (Korean). Note that on macOS, iOS, and Android devices, the language is reported as the one used in the OS but only if it's a supported language. If it's not supported, it will default to EN.
TUX_REMOTECLIENT_MACHINE Client's computer name. For example, "Bob's iPad mini 1st generation", "BobPC", "Bob's iMac", etc.
TUX_REMOTECLIENT_LOGIN The username (including domain) that was used to log in to Parallels RAS. For example, myuser@somedomain.
TUX_REMOTECLIENT_VERSION Parallels Client version.
TUX_REMOTECLIENT_VENDOR Device vendor name. For example, "Asus", "Apple", "Google", etc
TUX_REMOTECLIENT_MODEL Device model name. For example, "Nexus 5", "iPad2.6", etc.

 

 

 

 

 

 

 

 

 

 

 

 

 

You can view RAS session variables and their values using one of the following two methods:

Each method is described below.

Examine the registry

To see the variables, run regedit and navigate to HKEY_CURRENT_USER\Software\Parallels\Shell\, where is the ID of a session as displayed in the RAS Console (e.g. 2, 3, 4, etc.) The variables for a particular session are listed under the session ID node. On user connect/reconnect they are updated to reflect the actual client configuration. The variables exist for the duration of a session and are removed from the registry once the session is terminated.

Please note that in addition to the variables listed in the table above you may see other (undocumented) variables under a session ID. Those are for internal Parallels RAS use only and should be ignored.

Using GetRASVariable.exe utility

The GetRASVariable.exe utility is located in the Parallels RAS installation folder (e.g. C:\Program Files (x86)\Parallels\ApplicationServer). To obtain a value of a variable, execute the utility from the command line passing the variable name as parameter (see the table above). The utility will output the value to the screen.

The following example displays the value of the TUX_REMOTECLIENT_MACHINE variable:

GetRASVariable.exe TUX_REMOTECLIENT_MACHINE

Was this article helpful?

Tell us how we can improve it.