MikroTik RouterOS v2.9 Reference Manual page 536

Reference manual
Table of Contents

Advertisement

Variables
All of the Servlet HTML pages use variables to show user specific values. Variable names appear
only in the HTML source of the servlet pages - they are automatically replaced with the respective
values by the HotSpot Servlet. For each variable there is an example of its possible value included
in brackets. All the described variables are valid in all servlet pages, but some of them just might be
empty at the time they are accesses (for example, there is no uptime before a user has logged in).
Common server variables:
• hostname - DNS name or IP address (if DNS name is not given) of the HotSpot Servlet
("hotspot.example.net")
• identity - RouterOS identity name ("MikroTik")
• login-by - authentication method used by user
• plain-passwd - a "yes/no" representation of whether HTTP-PAP login method is allowed
("no")
• server-address - HotSpot server address ("10.5.50.1:80")
• server-name - name of hotspot server
• ssl-login - a "yes/no" representation of whether HTTPS method was used to access that servlet
page ("no")
• server-name - HotSpot server name (set in the /ip hotspot menu, as the name property)
• interface-name - physical HotSpot interface name (in case of bridged interfaces, this will
return the actual bridge port name)
Links:
• link-login - link to login page including original URL requested
("http://10.5.50.1/login?dst=http://www.example.com/")
• link-login-plain - link to login page, not including original URL requested
("http://10.5.50.1/login")
• link-logout - link to logout page ("http://10.5.50.1/logout")
• link-status - link to status page ("http://10.5.50.1/status")
• link-orig - original URL requested ("http://www.example.com/")
General client information
• domain - domain name of the user ("mt.lv")
• interface-name - name of the physical interface, on which client is connected (in case of
bridge, it will contain the name of bridge port)
• ip - IP address of the client ("10.5.50.2")
• logged-in - "yes" if the user is logged in, otherwise - "no" ("yes")
• mac - MAC address of the user ("01:23:45:67:89:AB")
• trial - a "yes/no" representation of whether the user has access to trial time. If users trial time
has expired, the value is "no"
• username - the name of the user ("John")
User status information:
Page 522 of 695
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RouterOS v2.9 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF