Name

ethernet address, client.ethernetaddress, kPMRPCClientEthernetAddress, kPMObserveClientEthernetAddress — Primary ethernet address.

Synopsis

string client.ethernetaddress( );  
 

Description

Primary ethernet address.

A single ethernet address. Most likely to be the MAC address from the built-in ethernet card.

The address is formatted as six groups of two digits in lowercase.

xx:xx:xx:xx:xx:xx

Returns

ethernet address is a string.

Observable

Changes to ethernet address can be observed, without polling, using client.ethernetaddress, kPMObserveClientEthernetAddress.

Security

ethernet address can be requested by any authenticated client.

Unauthenticated clients are authorized using the uk.co.dssw.powermanager.client.ethernetaddress right. By default, any local process can request ethernet address.

Availablility

pmdctl

Examples

Example 34. C: client.ethernetaddress


CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault,kPMRPCClientEthernetAddress);


Example 35. Objective-C: client.ethernetaddress


DSSWPMRequest* myRequest = [DSSWPMRequest requestWithRequest:kPMRPCClientEthernetAddress];


Example 36. AppleScript: client.ethernetaddress


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


Example 37. Shell: client.ethernetaddress


./pmctl client.ethernetaddress