Update: Run Apple Software Update
1 Votes |
Versioning - This is the latest version.
1 | Update: Run Apple Software Updates | 9/2/2016 10:16:40 AM |
2 | Update: Run Apple Software Update | 9/2/2016 10:57:28 AM |
Description
Property Details
21376 | |
Beta - Preliminary testing ready for more | |
Update: Run Apple Software Update | |
BESC | |
Software Sharing | |
0 | |
SysMan | |
mah60 | |
9/2/2016 12:00:00 AM | |
Apple Software Update, Mac OS X, macOS | |
hansen_m on 9/2/2016 10:57:28 AM | |
hansen_m on 9/2/2016 10:57:28 AM | |
6742 Views / 8 Downloads | |
![]() ![]() ![]() ![]() ![]() |
Relevance

mac of operating system
Used in 4 fixlets | * Results in a true/false |

exists file "/usr/sbin/softwareupdate"
Actions
Action 1 (default)
Action Link Install
Recommended Apple Software Updates
Script Type
BigFix Action Script
delete "/tmp/SysMan_SoftwareUpdateLog.log"Success Criteria
wait /usr/bin/touch "/tmp/SysMan_SoftwareUpdateLog.log"
wait /bin/bash -c "/usr/sbin/softwareupdate --install --recommended > /tmp/SysMan_SoftwareUpdateLog.log"
if {exit code of action != 0}
exit {exit code of action as integer}
elseif {exists lines whose (it contains "restart") of file "/tmp/SysMan_SoftwareUpdateLog.log"}
action requires restart
endif
This action will be considered successful when all lines of the action script have completed successfully.
Action 2
Action Link Install
All Apple Software Updates
Script Type
BigFix Action Script
delete "/tmp/SysMan_SoftwareUpdateLog.log"Success Criteria
wait /usr/bin/touch "/tmp/SysMan_SoftwareUpdateLog.log"
wait /bin/bash -c "/usr/sbin/softwareupdate --install --all > /tmp/SysMan_SoftwareUpdateLog.log"
if {exit code of action != 0}
exit {exit code of action as integer}
elseif {exists lines whose (it contains "restart") of file "/tmp/SysMan_SoftwareUpdateLog.log"}
action requires restart
endif
This action will be considered successful when all lines of the action script have completed successfully.
Action 3
Action Link Prompt for
Specific Apple Software Update to Install by Label
Script Type
BigFix Action Script
delete "/tmp/SysMan_SoftwareUpdateLog.log"Success Criteria
wait /usr/bin/touch "/tmp/SysMan_SoftwareUpdateLog.log"
action parameter query "AppleSoftwareUpdateLabel" with description "Enter the label of the update to run (can be found by running `softwareupdate -l`):" and with default value ""
wait /bin/bash -c "/usr/sbin/softwareupdate --install '{parameter "AppleSoftwareUpdateLabel"}' > /tmp/SysMan_SoftwareUpdateLog.log"
if {exit code of action != 0}
exit {exit code of action as integer}
elseif {exists lines whose (it contains "restart") of file "/tmp/SysMan_SoftwareUpdateLog.log"}
action requires restart
endif
This action will be considered successful when all lines of the action script have completed successfully.
Action 4
Action Link
List Available Apple Software Updates to Log File
Script Type
BigFix Action Script
delete "/tmp/SysMan_SoftwareUpdateScanLog.log"Success Criteria
wait /usr/bin/touch "/tmp/SysMan_SoftwareUpdateScanLog.log"
wait /bin/bash -c "/usr/sbin/softwareupdate --list > /tmp/SysMan_SoftwareUpdateScanLog.log"
if {exit code of action != 0}
exit {exit code of action as integer}
endif
This action will be considered successful when all lines of the action script have completed successfully.
Sharing
Social Media: |