Administrator Guide

'nas_name' => 'centos',
'total_traffic' => 0,
'state' => 'stale',
'traffic_input' => 0,
'traffic_output' => 0,
'traffic_usage' => 0,
'session_time' => 29641260,
)
GetIpAddressCurrentSession()
GetIpAddressCurrentSession($ip_addr = null)
Looks up the current (most recent) active session for the specified client IP address. If ip_addr is not specified,
it defaults to the current value of $smarty.server.REMOTE_ADDR, which may not be the same value as the IP
address of the session if there is a NAT.
See "GetCurrentSession()" on page 708 for details of the return value.
GetIpAddressSessions()
GetIpAddressSessions($ip_addr, $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()" on page 710 for details on how to specify the time interval.
See "GetIpAddressTraffic()" on page 709 for additional details on the $ip_addr argument.
GetIpAddressTime()
GetIpAddressTime($ip_addr, $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()" on page 710 for details on how to specify the time interval.
See "GetIpAddressTraffic()" on page 709 for additional details on the $ip_addr argument.
GetIpAddressTraffic()
GetIpAddressTraffic($ip_addr, $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()" on page 710 for details on how to specify the time interval.
GetSessions()
GetSessions($criteria, $from_time, $to_time = null)
Calculate the number of sessions from accounting records in the database.
This is a multi-purpose function that has a very flexible query interface. For ease of use, consider using one of the
related functions "GetCallingStationSessions()" on page 707, "GetIpAddressSessions()" on page 709,
"GetUserActiveSessions()" on page 711, or "GetUserSessions()" on page 711.
Dell Networking W-ClearPass Guest 6.6 | User Guide Reference | 709