Connectivity Guide

390 | Reference DellNetworking W-ClearPass Guest 6.2 | User Guide
Calculate the sum of traffic counters for accounting records in the database.
Revoking access for a device is only possible 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()" on page 386,
"GetIpAddressTraffic()" on page 388, or "GetUserTraffic()" on page 391.
$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.
GetUserActiveSessions()
GetUserActiveSessions($username, $callingstationid = null)
Looks up the list of all sessions for the specified 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.
GetUserActiveSessionCount()
GetUserActiveSessionCount($username)
Counts 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).
GetUserCumulativeUsage()
GetUserCumulativeUsage($username)
Looks up the total cumulative time for the username.
The username attribute is looked up automatically from the RADIUS Access-Request (User-Name attribute).
GetUserCurrentSession()
GetUserCurrentSession($username)
Looks up the current (most recent) active session for the specified username.
See "GetCurrentSession()" on page 387 for details of the return value.
GetUserFirstLoginTime()
GetUserFirstLoginTime($username)
Looks up the first login time for the specified username.
The username attribute is looked up automatically from the RADIUS Access-Request (User-Name attribute).
GetUserSessions()
GetUserSessions($username, $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()" on page 389 for details on how to specify the time interval.
GetUserTime()