GetCallingStationSessions()
GetCallingStationSessions($from_time, $to_time = null, $mac_format = null)
Calculate the number of sessions for accounting records matching a specific calling-station-id. The calling
station id address is looked up automatically from the RADIUS Access-Request (Calling-Station-ID
attribute).
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.
See
"GetTraffic()"
GetUserSessions()
GetUserSessions($from_time, $to_time = null)
Calculate the number of sessions for accounting records matching a specific user-name. The username
attribute is looked up automatically from the RADIUS Access-Request (User-Name attribute).
See
"GetTraffic()"
GetIpAddressSessions()
GetIpAddressSessions($from_time = null, $to_time = null)
Calculate the number of sessions for accounting records matching a specific IP address. The IP address
attribute is looked up automatically from the RADIUS Access-Request (Framed-IP-Address attribute).
See
"GetTraffic()"
See
"GetIpAddressTraffic()"
GetUserActiveSessions()
GetUserActiveSessions($callingstationid = null)
Count the number of currently active sessions for the current username.
The username attribute is looked up automatically from the RADIUS Access-Request (User-Name
attribute). If a $callingstationid argument is supplied, sessions that match that Calling-Station-Id are
excluded from the count of active sessions.
GetCurrentSession()
GetCurrentSession($criteria)
Looks up the details for an active session, based on the specified criteria.
This is a multi-purpose function that has a very flexible query interface; for ease of use, consider using one of the
related functions GetCallingStationCurrentSession(), GetIpAddressCurrentSession(), or
GetUserCurrentSession(). These functions are not available in RADIUS request context, but are available in the
HTTP context (using {nwa_radius_query}).
Returns null if there is no matching session, otherwise returns a single session array – a typical result
follows:
array (
'id' => '2073',
'acctsessionid' => '4a762dbf00000002',
406
| Reference
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.
Amigopod 3.7 | Deployment Guide
Need help?
Do you have a question about the PowerConnect W Clearpass 100 Software and is the answer not in the manual?