Name

machine model, client.machinemodel, kPMRPCClientMachineModel, kPMObserveClientMachineModel — Machine's model type.

Synopsis

string client.machinemodel( );

Description

Machine's model type.

The machine model is a unique identifer per computer model type.

Returns

machine model is a string.

Observable

Changes to machine model can be observed, without polling, using client.machinemodel, kPMObserveClientMachineModel.

Security

machine model can be requested by any authenticated client.

Unauthenticated clients are authorized using the uk.co.dssw.powermanager.client.machinemodel right. By default, any local process can request machine model.

Availablility

pmdctl

Examples

Example 48. C: client.machinemodel

CFMutableDictionaryRef myRequest = PMRequestCreate(kCFAllocatorDefault,kPMRPCClientMachineModel);


Example 49. Objective-C: client.machinemodel

DSSWPMRequest* myRequest = [DSSWPMRequest requestWithRequest:kPMRPCClientMachineModel];


Example 50. AppleScript: client.machinemodel

tell application "Power Manager Scripting"
    set myResult to machine model of Client
end tell


Example 51. Shell: client.machinemodel

./pmctl client.machinemodel