URL placeholder (template variables)

The URLs specified in the page table do not need to be absolute strings. You have the option to integrate template variables in the address which are then filled-out with parameters from a Public Spot session when the device requests the pages from the server. Placeholders have a form similar to C format strings, e.g., a percent sign immediately followed by a single, lowercase character. The following placeholders are defined:

%a
Inserts the device’s IP address. The placeholder only returns a value if the Request type in the Page table is set to Template.
Anmerkung: Note that this placeholder cannot generate a reachable address if the device itself is located behind another router with activated NAT.
%c
Inserts the LAN MAC address of the Public Spot device as a 12-character hexadecimal string. The output is in the format 'aa:bb:cc:dd:ee:ff'.
%d
Enter the URL parameter '%d' as the circuit ID, for example http://ipaddress/?circuit=%d&nas=%i. The Public Spot module replaces this variable with the circuit ID that is detected in the client's DHCP request. This requires "DHCP snooping" to be configured on the AP in such a way that the AP can query the circuit ID in the Public Spot station table of the WLC. In this way it is possible for the Public Spot welcome page displayed on the clients to be customized by location.
%e
Inserts the device serial number.
%i
Inserts the NAS port ID. In this context, 'NAS' stands for 'Network Access Server'. This variable contains the interface of the device that the client used to login. For a WLC or router without WLAN this corresponds to a physical interface, such as LAN-1, or, for a standalone access point, it is the SSID.
%l
Inserts the device host name.
%m
Inserts the MAC address of the client as a 12-character hexadecimal string. The individual bytes are separated by colons.
%n
Inserts the name of the device the way it is configured in the setup menu under Name.
%o
Inserts the URL of the Internet page which the user initially requested. After successful authentication, the device forwards the user to this URL.
%p
Adds the IP address of the Public Spot device to the ARF context of the respective client.
Assuming that your device is active in various IP networks, you can use this variable to specify the IP address used by the device in the network where the client is also located.
%r
Adds the IP address of the client (from the perspective of the Public Spot device in the respective ARF context).
%s
If the client is connected to the device via a WLAN interface, this placeholder will insert the WLAN SSID used in the network that the client is connected to. This feature is particularly interesting when MultiSSID is used, since this gives the server the opportunity to display different pages based on the SSID. If the client is connected via another access point that connects to the device via a Point-2-Point connection, the SSID of the first WLAN will be inserted. If the client is connect via Ethernet, the placeholder remains empty.
%t
Inserts the routing tag which is appended to the client's data packets.
%v
If the requesting client is assigned an individual VLAN ID, this variable contains the source VLAN ID.
%0-9
Inserts a single number between 0 and 9.
%%
Inserts a single percent character.

In order to be able to use variables for a template, add the parameters to the Page address (URL) in the page table. In the following URLs the variable %i is replaced with LAN-1 as described in the sample above:

Example:http://192.168.1.1/welcome.php?nas=%i

Example:http://192.168.1.1/%i_welcome.html