Dell PowerConnect W Clearpass 100 Software 3.9 Deployment Guide - Page 484
GetCallingStationSessions(), GetUserSessions(), GetIpAddressSessions(), GetUserActiveSessions(),
View all Dell PowerConnect W Clearpass 100 Software manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 484 highlights
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()" for details on how to specify the time interval. 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()" for details on how to specify the time interval. 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()" for details on how to specify the time interval. See "GetIpAddressTraffic()" for additional details on the $ip_addr argument. 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', 484 | Reference ClearPass Guest 3.9 | Deployment Guide