Update: Run Apple Software Update
Log In or Register to download the BES file, and more.

1 Votes

Versioning - This is the latest version.

1Update: Run Apple Software Updates9/2/2016 10:16:40 AM
2Update: Run Apple Software Update9/2/2016 10:57:28 AM

Description

Run the Apple Software Update Utility

Property Details

ID21376
StatusBeta - Preliminary testing ready for more
TitleUpdate: Run Apple Software Update
DomainBESC
CategorySoftware Sharing
Download Size0
SourceSysMan
Source IDmah60
Source Release Date9/2/2016 12:00:00 AM
KeywordsApple Software Update, Mac OS X, macOS
Added by on 9/2/2016 10:57:28 AM
Last Modified by on 9/2/2016 10:57:28 AM
Counters 3446 Views / 2 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 216 fixlets and 98 analyses   * Results in a true/false
Show indented relevance
mac of operating system
Used in 4 fixlets   * Results in a true/false
Show indented relevance
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"
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
Success Criteria

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"
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
Success Criteria

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"
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
Success Criteria

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"
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
Success Criteria

This action will be considered successful when all lines of the action script have completed successfully.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!