ClearPass Guest 3.9 | Deployment Guide
Reference |
481
MacEqual()
MacEqual($addr1, $addr2)
Compares two MAC addresses for equality, using their canonical forms.
Example usage as a condition expression for an attribute:
return MacEqual(GetAttr('Calling-Station-Id'), '00-01-02-44-55-66')
MacAddrConvert()
MacAddrConvert($mac, $mac_format)
Converts a MAC address to a specified format. This function accepts anything that can be interpreted as a
MAC address using some fairly liberal guidelines and returns the address formatted with the
$mac_format
string.
The
$mac_format
argument should be a
sprintf-
style format string that expects 6 arguments, which are
the octets of the MAC address. For example, the IEEE 802 standard format of uppercase hexadecimal with
each octet separated with a hyphen may be represented by the MAC format
%02X-%02X-%02X-%02X-
%02X-%02X
. This is also the default value used if
$mac_format
is empty.
GetTraffic()
GetTraffic($criteria, $from_time, $to_time = null, $in_out = null)
Calculate the sum of traffic counters for accounting records in the database.
$criteria
is the criteria on which to search for matching accounting records. The time interval specified
by
$from_time
and optionally
$to_time
is used with the criteria to narrow the search.
If
$to_time
is not specified,
$from_time
is a “look back” time, that is, the time interval in seconds before
the current time. If
$to_time
is specified, the interval considered is between
$from_time
and
$to_time
.
$in_out
may be “in” to count only input octets, “out” to count only output octets, or any other value to
count both input and output octets towards the traffic total. This argument returns the computed total of
traffic for all matching accounting records.
GetTime()
GetTime($criteria, $from_time, $to_time = null)
Calculate the sum of session times for accounting records in the database.
$criteria
is the criteria on which to search for matching accounting records.
As well as the criteria specified, the time interval specified by
$from_time
and optionally
$to_time
is
also used to narrow the search.
If
$to_time
is not specified,
$from_time
is a “look back” time, that is, the time interval in seconds before
the current time.
This is a multi-purpose function that has a very flexible query interface; for ease of use, consider using one of the
related functions GetCallingStationTraffic(), GetIpAddressTraffic(), or GetUserTraffic().
This is a multi-purpose function that has a very flexible query interface; for ease of use, consider using one of the
related functions
See
“GetCallingStationTime()”
,
GetIpAddressTime()
, or
GetUserTime()
.
Summary of Contents for ClearPass Guest 3.9
Page 1: ...ClearPass Guest 3 9 Deployment Guide ...
Page 32: ...32 Management Overview ClearPass Guest 3 9 Deployment Guide ...
Page 178: ...178 RADIUS Services ClearPass Guest 3 9 Deployment Guide ...
Page 316: ...316 Guest Management ClearPass Guest 3 9 Deployment Guide ...
Page 410: ...410 Administrator Tasks ClearPass Guest 3 9 Deployment Guide ...
Page 414: ...414 Administrator Tasks ClearPass Guest 3 9 Deployment Guide ...
Page 423: ...ClearPass Guest 3 9 Deployment Guide Hotspot Manager 423 ...
Page 440: ...440 High Availability Services ClearPass Guest 3 9 Deployment Guide ...
Page 518: ...518 Index ClearPass Guest 3 9 Deployment Guide ...