Name
ethernet addresses, client.ethernetaddresses, kPMRPCClientEthernetAddresses, kPMObserveClientEthernetAddresses — All ethernet addresses.
Synopsis
array of strings client.ethernetaddresses( |
); |
Description
All ethernet addresses.
A complete list of ethernet MAC addresses and AirPort station IDs available.
The list's order is not specified and may change with each request.
Each address is formatted as six groups of two digits in lowercase.
| xx:xx:xx:xx:xx:xx |
Security
ethernet addresses can be requested by any authenticated client.
Unauthenticated clients are authorized using the uk.co.dssw.powermanager.client.ethernetaddresses right. By default, any local process can request ethernet addresses.
Examples
Example 38. C: client.ethernetaddresses
CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault,kPMRPCClientEthernetAddresses);
Example 39. Objective-C: client.ethernetaddresses
DSSWPMRequest* myRequest = [DSSWPMRequest requestWithRequest:kPMRPCClientEthernetAddresses];
Example 40. AppleScript: client.ethernetaddresses
tell application "Power Manager Scripting"
set myResult to ethernet addresses of Client
end tell