Aruba Networks PowerConnect W Clearpass 100 Software Deployment Manual page 449

3.9 deployment guide
Hide thumbs Also See for PowerConnect W Clearpass 100 Software:
Table of Contents

Advertisement

Usage example:
{nwa_radius_query _method=GetCallingStationTraffic
callingstationid=$dhcp_lease.mac_address
from_time=86400 in_out=out _assign=total_traffic}
This example uses the
"from_time" and "in_out" parameters. The result is assigned to a template variable called total_traffic, and
will not generate any output. See
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
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)
ClearPass Guest 3.9 | Deployment Guide
GetCallingStationTraffic
"GetCallingStationTraffic()"
"Standard RADIUS Request
query function. , and passes the "callingstationid",
Functions"section. A brief listing of the available methods is provided
.
Reference |
449

Advertisement

Table of Contents
loading

This manual is also suitable for:

Clearpass guest 3.9

Table of Contents