Amigopod 3.7
| Deployment Guide
Reference |
371
{nwa_radius_query _method=GetCallingStationTraffic
callingstationid=$dhcp_lease.mac_address
from_time=86400 in_out=out _assign=total_traffic}
This example uses the
GetCallingStationTraffic
query function. , and passes the “callingstationid”,
“from_time” and “in_out” parameters. The result is assigned to a template variable called total_traffic, and
will not generate any output. See
“GetCallingStationTraffic()”
.
This template function accepts the following parameters to select a RADIUS database and other connection
options:
_db
– ID of the RADIUS database service handler (this parameter is optional, the default service handler
will be used if it not set)
_debug
– Set to a nonzero value to enable debugging
_quiet
– Set to a nonzero value to inhibit warning/error messages
The following parameters control the query to be executed:
_method
(required) – Name of the query function to execute. This should be one of the functions listed
in the
“Standard RADIUS Request Functions”
section. A brief listing of the available methods is provided
below.
_arg0, _arg1, …, _argN
(optional) – Positional arguments for the query function.
Named arguments may also be supplied; the arguments must be named identically to the function
arguments listed in the documentation for the query function.
The following parameters control how the result should be processed:
_assign
– Name of a page variable to store the output; if not set, output is sent to the browser as the
result of evaluating the template function.
_output
– Index of item to return from the RPC result; if not set, the complete result is returned. This
may be of use when an array containing multiple values is returned and only one of these values is
required.
_default
– Default value to display or return if an error occurs or the _output field is not available in the
result.
For ease of use, “assign” is also supported as a synonym for “_assign”.
This template function does not generate any output if the
_assign
parameter is set.
The methods that are available for use with this function are listed below:
GetTraffic($criteria, $from_time, $to_time = null, $in_out = null)
GetTime($criteria, $from_time, $to_time = null)
GetSessions($criteria, $from_time, $to_time = null)
GetCallingStationTraffic($callingstationid, $from_time, $to_time = null, $in_out = null, $mac_format =
null)
GetUserTraffic($username, $from_time, $to_time = null, $in_out = null)
GetIpAddressTraffic($ip_addr, $from_time = null, $to_time = null, $in_out = null)
GetCallingStationTime($callingstationid, $from_time, $to_time = null, $mac_format = null)
GetUserTime($username, $from_time, $to_time = null)
GetIpAddressTime($ip_addr, $from_time = null, $to_time = null)
GetCallingStationSessions($callingstationid, $from_time, $to_time = null, $mac_format = null)
GetUserSessions($username, $from_time, $to_time = null)
GetIpAddressSessions($ip_addr, $from_time = null, $to_time = null)
GetUserActiveSessions($username, $callingstationid = null)
Summary of Contents for Amigopod 3.7
Page 1: ...Amigopod 3 7 Deployment Guide...
Page 14: ...14 Amigopod 3 7 Deployment Guide...
Page 30: ...30 Management Overview Amigopod 3 7 Deployment Guide...
Page 108: ...108 RADIUS Services Amigopod 3 7 Deployment Guide...
Page 132: ...132 Operator Logins Amigopod 3 7 Deployment Guide...
Page 240: ...240 Guest Management Amigopod 3 7 Deployment Guide...
Page 332: ...332 Administrator Tasks Amigopod 3 7 Deployment Guide...
Page 336: ...336 Administrator Tasks Amigopod 3 7 Deployment Guide...
Page 345: ...Amigopod 3 7 Deployment Guide Hotspot Manager 345...
Page 362: ...362 High Availability Services Amigopod 3 7 Deployment Guide...