Dell PowerConnect W Clearpass 100 Software 3.9 Deployment Guide - Page 481
MacEqual(), MacAddrConvert(), GetTraffic(), GetTime(), 02X-%02X-%02X-%02X, 02X-%02X
View all Dell PowerConnect W Clearpass 100 Software manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 481 highlights
MacEqual() MacEqual($addr1, $addr2) Compares two MAC addresses for equality, using their canonical forms. Example usage as a condition expression for an attribute: return MacEqual(GetAttr('Calling-Station-Id'), '00-01-02-44-55-66') MacAddrConvert() MacAddrConvert($mac, $mac_format) Converts a MAC address to a specified format. This function accepts anything that can be interpreted as a MAC address using some fairly liberal guidelines and returns the address formatted with the $mac_format string. The $mac_format argument should be a sprintf-style format string that expects 6 arguments, which are the octets of the MAC address. For example, the IEEE 802 standard format of uppercase hexadecimal with each octet separated with a hyphen may be represented by the MAC format %02X-%02X-%02X-%02X%02X-%02X. This is also the default value used if $mac_format is empty. GetTraffic() GetTraffic($criteria, $from_time, $to_time = null, $in_out = null) Calculate the sum of traffic counters for 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 GetCallingStationTraffic(), GetIpAddressTraffic(), or GetUserTraffic(). $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. GetTime() GetTime($criteria, $from_time, $to_time = null) Calculate the sum of session times for 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 See "GetCallingStationTime()" , GetIpAddressTime(), or GetUserTime(). $criteria is the criteria on which to search for matching accounting records. As well as the criteria specified, the time interval specified by $from_time and optionally $to_time is also used 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. ClearPass Guest 3.9 | Deployment Guide Reference | 481