Reference Guide

10 Use of System Variables with Some Options of the Connect Parameter
Some options of the Connect parameter can use the system variables shown in System Variables to map the string. All combinations
of the variables are supported. For options that support use of system variables, see Connect Parameters Options.
System variables
The following table contains the system variables you can use with some options of the connect parameter:
Table 2. System variables
Option Value
$SN Serial number used.
$MAC MAC address used.
$IP IP Address used.
$IPOCT4 The fourth octet of IP Address, for example, if IP is 10.151.120.15,
then the fourth octet is 15.
$TN Terminal name.
$PF Platform name—The rst part of image name xxx_wnos, for
example, R10L.
$UN Sign-on name used.
$PW Sign-on password used.
$DN Sign-on domain name used.
$FIP IP address used in xed format with 3 digits between separators,
for example, 010.020.030.040.ini. Using it in conjunction with the
left/right modier helps to dene policy for subnet.
For example, include=&Left($FIP,11).ini is specied to include le
010.020.030.ini for subnet 010.020.030.xxx.
$WPUN PEAP/MSCHAPv2 username used (802.1x dependent).
$WPPW PEAP/MSCHAPv2 password used (802.1x dependent).
$WPDN PEAP/MSCHAPv2 domain used (802.1x dependent).
$DHCP (extra_dhcp_option) Extra DHCP options for Windows CE unit, including 169, 140, 141,
166, 167. For example, set a string test169 for option tag 169 in
DHCP server, and set TerminalName=$DHCP(169) in wnos.ini.
Check terminal name in GUI, and the terminal name will be test169.
166 and 167 is default for CCM MQTT Server and CCM CA
Validation in ThinOS. So you need to remap the options from GUI or
INI if you want to use $DHCP(166) and/or $DHCP(167).
$SUBNET Species Subnet notation. The format is
{network_address}_{network_mask_bits}. For example, if the IP
address is 10.151.120.15, and the network mask is 255.255.255.0,
then 10.151.120.0_24 is used.
&Right($xx, i) or &Left($xx, i)
Species whether the variable is to be read from left or right. The
$xx is any of the above parameters. The parameter i species left
or right oset digits.
The combinations of all the above variables, such as
CTX&Right($IP,4)@&Left($UN,3) are supported. A replacement
$SYS_VAR is used if the statements or parameters support.
Getting Started: Learning INI File Basics 9