ParallelsU61
Bit poster
Hi.
I think I have followed carefully the documentation but the Configuration item I've added to my Baseline doesn't execute the scripts.
catalog_mode_discovery_script.sh
#! /bin/bash
PLIST="/Library/Preferences/com.parallels.pma.agent.plist"
MODE=$(/usr/libexec/PlistBuddy -c "Print :SuCatalogMode" $PLIST 2>/dev/null)
if [ $? != 0 ]; then
MODE=0
fi
echo $MODE
catalog_mode_remediation_script.sh
#! /bin/bash -s -
PLIST="/Library/Preferences/com.parallels.pma.agent.plist"
MODE=2
/usr/libexec/PlistBuddy -c "Delete :SuCatalogMode" $PLIST 2>&1
/usr/libexec/PlistBuddy -c "Add :SuCatalogMode integer $MODE" $PLIST
The 2 scripts have been tested locally and they work. All the other items of the Baseline (Configuration Profiles) are installed.
The only log I have on the client is relative to another preference :
03-30 18:02:01.309 I /PrlCommonUtils:74:307/ Executed command : /usr/libexec/PlistBuddy -c Print :CatalogURL /Library/Preferences/com.apple.SoftwareUpdate.plist
03-30 18:02:01.314 F /PrlCommonUtils:74:307/ Command '/usr/libexec/PlistBuddy -c Print :CatalogURL /Library/Preferences/com.apple.SoftwareUpdate.plist' failed.
03-30 18:02:07.369 I /PrlCommonUtils:74:307/ Executed command : /usr/libexec/PlistBuddy -c Print :CatalogURL /Library/Preferences/com.apple.SoftwareUpdate.plist
03-30 18:02:07.373 F /PrlCommonUtils:74:307/ Command '/usr/libexec/PlistBuddy -c Print :CatalogURL /Library/Preferences/com.apple.SoftwareUpdate.plist' failed.
03-30 19:09:18.461 I /PrlCommonUtils:74:307/ Executed command : /usr/libexec/PlistBuddy -c Print :CatalogURL /Library/Preferences/com.apple.SoftwareUpdate.plist
03-30 19:09:18.465 F /PrlCommonUtils:74:307/ Command '/usr/libexec/PlistBuddy -c Print :CatalogURL /Library/Preferences/com.apple.SoftwareUpdate.plist' failed.
03-30 19:09:24.531 I /PrlCommonUtils:74:307/ Executed command : /usr/libexec/PlistBuddy -c Print :CatalogURL /Library/Preferences/com.apple.SoftwareUpdate.plist
03-30 19:09:24.534 F /PrlCommonUtils:74:307/ Command '/usr/libexec/PlistBuddy -c Print :CatalogURL /Library/Preferences/com.apple.SoftwareUpdate.plist' failed.
There's nothing in the pma_agent.log relative to the com.parallels.pma.agent.plist file.
Best regards.

I think I have followed carefully the documentation but the Configuration item I've added to my Baseline doesn't execute the scripts.
catalog_mode_discovery_script.sh
#! /bin/bash
PLIST="/Library/Preferences/com.parallels.pma.agent.plist"
MODE=$(/usr/libexec/PlistBuddy -c "Print :SuCatalogMode" $PLIST 2>/dev/null)
if [ $? != 0 ]; then
MODE=0
fi
echo $MODE
catalog_mode_remediation_script.sh
#! /bin/bash -s -
PLIST="/Library/Preferences/com.parallels.pma.agent.plist"
MODE=2
/usr/libexec/PlistBuddy -c "Delete :SuCatalogMode" $PLIST 2>&1
/usr/libexec/PlistBuddy -c "Add :SuCatalogMode integer $MODE" $PLIST
The 2 scripts have been tested locally and they work. All the other items of the Baseline (Configuration Profiles) are installed.
The only log I have on the client is relative to another preference :
03-30 18:02:01.309 I /PrlCommonUtils:74:307/ Executed command : /usr/libexec/PlistBuddy -c Print :CatalogURL /Library/Preferences/com.apple.SoftwareUpdate.plist
03-30 18:02:01.314 F /PrlCommonUtils:74:307/ Command '/usr/libexec/PlistBuddy -c Print :CatalogURL /Library/Preferences/com.apple.SoftwareUpdate.plist' failed.
03-30 18:02:07.369 I /PrlCommonUtils:74:307/ Executed command : /usr/libexec/PlistBuddy -c Print :CatalogURL /Library/Preferences/com.apple.SoftwareUpdate.plist
03-30 18:02:07.373 F /PrlCommonUtils:74:307/ Command '/usr/libexec/PlistBuddy -c Print :CatalogURL /Library/Preferences/com.apple.SoftwareUpdate.plist' failed.
03-30 19:09:18.461 I /PrlCommonUtils:74:307/ Executed command : /usr/libexec/PlistBuddy -c Print :CatalogURL /Library/Preferences/com.apple.SoftwareUpdate.plist
03-30 19:09:18.465 F /PrlCommonUtils:74:307/ Command '/usr/libexec/PlistBuddy -c Print :CatalogURL /Library/Preferences/com.apple.SoftwareUpdate.plist' failed.
03-30 19:09:24.531 I /PrlCommonUtils:74:307/ Executed command : /usr/libexec/PlistBuddy -c Print :CatalogURL /Library/Preferences/com.apple.SoftwareUpdate.plist
03-30 19:09:24.534 F /PrlCommonUtils:74:307/ Command '/usr/libexec/PlistBuddy -c Print :CatalogURL /Library/Preferences/com.apple.SoftwareUpdate.plist' failed.
There's nothing in the pma_agent.log relative to the com.parallels.pma.agent.plist file.
Best regards.
