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

Returns

ethernet addresses is an array of strings. Each item in ethernet addresses must be unique.

Observable

Changes to ethernet addresses can be observed, without polling, using client.ethernetaddresses, kPMObserveClientEthernetAddresses.

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.

Availablility

pmdctl

Examples

Example 44. C: client.ethernetaddresses

CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault,kPMRPCClientEthernetAddresses);


Example 45. Objective-C: client.ethernetaddresses

DSSWPMRequest* myRequest = [DSSWPMRequest requestWithRequest:kPMRPCClientEthernetAddresses];


Example 46. AppleScript: client.ethernetaddresses

tell application "Power Manager Scripting"
    set myResult to ethernet addresses of Client
end tell


Example 47. Shell: client.ethernetaddresses

./pmctl client.ethernetaddresses