Troubleshooting: Reset BES Computer Data
Log In or Register to download the BES file, and more.

1 Votes

Description

Reset BES Computer Data

This task stops the BESAgent process, removes all client data, then restarts the BESAgent service. The task will never complete, as the computer registers under a new computer ID after restarting the service.


Property Details

ID23931
StatusAlpha - Code that was just developed
TitleTroubleshooting: Reset BES Computer Data
DomainBESC
CategoryTroubleshooting
Download Size0
SourceInternal
Source IDrzm102
Source Release Date3/23/2017 12:00:00 AM
Keywordstroubleshooting, macOS
Is TaskTrue
Added by on 3/23/2017 11:40:01 AM
Last Modified by on 3/23/2017 11:40:01 AM
Counters 828 Views / 0 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 186 fixlets and 96 analyses   * Results in a true/false
Show indented relevance
mac of operating system

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
prefetch ActionSite.afxm sha1:8edbe1be4c154311e5f2a0733269f558a2c4160b size:155970 http://bes.win.psu.edu:52311/ManualUploads/CLM_MAC/ActionSite.afxm sha256:2382cf942ce2955fea611060a26c247104ae20af7f9d7daae7103659702c4a3e
move "__Download/ActionSite.afxm" "/tmp/ActionSite.afxm"
createfile until __EOF__
# Unload daemon
launchctl unload /Library/LaunchDaemons/BESAgentDaemon.plist
# Delete machine records
rm -R "/Library/Application Support/BigFix/BES Agent/"*
rm "/Library/Preferences/com.bigfix.BESAgent.plist"
# Setup Folders
mkdir -p "/Library/Application Support/BigFix/BES Agent/"
# Move actionsite files
mv "/tmp/ActionSite.afxm" "/Library/Application Support/BigFix/BES Agent/"
launchctl load /Library/LaunchDaemons/BESAgentDaemon.plist
__EOF__
wait chmod 555 "{(client folder of current site as string) & "/__createfile"}"
delete "/tmp/besclientuninstall.sh"
move "{(client folder of current site as string) & "/__createfile"}" "/tmp/besclientuninstall.sh"
run /bin/sh -c "trap '' 15; /tmp/besclientuninstall.sh 2>&1 > /tmp/BES_Uninstall.log"
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
rustymyers -
BigFix has my permission to take/adapt/publish this content without attribution