System information
54
Managing Parallels Mac Client
Using Command Line to Initiate Policy Retrieval
To initiate policy retrieval from a command line, change directory to
/Library/Parallels/pma_agent.app/Contents/MacOS and type the following command
in Terminal:
$ pmmctl get-policies
On completion, the command returns one of the following XML documents depending on the
result:
Policy retrieval failed
<plist version="1.0">
<dict>
<key>ErrorCode</key>
<integer>3</integer>
<key>ErrorMessage</key>
<string>Operation timed out</string>
</dict>
</plist>
where the <integer> element contains the error code, and the <string> element contains the
error description.
Policy retrieval was successful
<plist version="1.0">
<dict>
<key>ErrorCode</key>
<integer>0</integer>
<key>ErrorMessage</key>
<string>No error</string>
<key>NumberOfPolicyUpdates</key>
<integer>5</integer>
</dict>
</plist>
where the <integer> value of the <NumberOfPolicyUpdates> key contains the number of
policy updates retrieved.
To obtain the list of possible error codes with descriptions, use the following command:
$ pmmctl error-info
The command returns the following list:
0: No error
1: Invalid command
2: Operation failed
3: Operation timed out
4: Connection aborted
5: Unknown error code 5