Getusertraffic(); Getipaddresstraffic(); Getcallingstationtime(); Getusertime() - Aruba Networks PowerConnect W Clearpass 100 Software Deployment Manual

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

Advertisement

Another way to limit the past 30 days downloads to 100 MB:
return GetUserTraffic($now - 86400*30, $now, 'out') > 100*1024*1024 && AccessReject()
Limit by MAC address, 50 MB download in past 24 hours:
return GetCallingStationTraffic(86400, 'out') > 50000000 && AccessReject()

GetUserTraffic()

GetUserTraffic($from_time, $to_time = null, $in_out = null)
Calculate sum of traffic counters in a time interval. Sessions are summed if they have the same User-Name
attribute as that specified in the RADIUS Access-Request.
See
"GetCallingStationTraffic()"

GetIpAddressTraffic()

GetIpAddressTraffic($from_time = null, $to_time = null, $in_out = null)
Calculate sum of traffic counters in a time interval. The IP address used is determined based on the context.
If processing a RADIUS Access-Request, the IP address is determined using the Framed-IP-Address
attribute. If processing a HTTP request, the current client IP address is assumed
(from $_SERVER['REMOTE_ADDR']).
Specifying an empty value for the IP address (such as null, false, or empty string) also causes the current
client IP address to be used.
See
"GetTraffic()"

GetCallingStationTime()

GetCallingStationTime($from_time, $to_time = null, $mac_format = null)
Calculate sum of session times in a specified time interval.
Because different NAS equipment can send differently-formatted MAC addresses in the Calling-Station-Id
attribute, the $mac_format argument may be specified. This should be a sprintf-style format string that
accepts 6 arguments (the octets of the MAC address). The default if not specified is the IEEE 802 standard
format, %02X-%02X-%02X-%02X-%02X-%02X – that is, uppercase hexadecimal with each octet
separated with a hyphen.
The calling station ID is looked up automatically from the RADIUS Access-Request (Calling-Station-ID
attribute).
See
"GetTraffic()"

GetUserTime()

GetUserTime($from_time, $to_time = null)
Calculate sum of session times in a specified time interval.
See
"GetTraffic()"

GetIpAddressTime()

GetIpAddressTime($from_time = null, $to_time = null)
Calculate sum of session times in a specified time interval. The IP address is looked up automatically from
the RADIUS Access-Request (Framed-IP-Address attribute).
See
"GetTraffic()"
See
"GetIpAddressTraffic()"
ClearPass Guest 3.9 | Deployment Guide
for details on how to specify the time interval.
for details on how to specify the time interval.
for details on how to specify the time interval.
for details on how to specify the time interval.
for details on how to specify the time interval.
for additional details on the $ip_addr argument.
Reference |
483

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PowerConnect W Clearpass 100 Software and is the answer not in the manual?

This manual is also suitable for:

Clearpass guest 3.9

Table of Contents