Skip to content

Instantly share code, notes, and snippets.

@cayblood
Created April 6, 2020 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cayblood/f6a4c01509fe7e54685b8b24a1ae9199 to your computer and use it in GitHub Desktop.
Save cayblood/f6a4c01509fe7e54685b8b24a1ae9199 to your computer and use it in GitHub Desktop.
∴ sudo jamf recon
Password:
Retrieving inventory preferences from https://casper.amazon.com:8443/...
Finding extension attributes...
Locating applications...
Locating hard drive information...
Locating accounts...
Locating printers...
Searching path: /System/Applications
Searching path: /Applications
Locating hardware information (Mac OS X 10.14.6)...
Submitting data to https://casper.amazon.com:8443/...
<computer_id>178180</computer_id>
cayblood@a483e7dd3ea3 ~ [ruby-2.6.5] [node-12.14.1]
∴ sudo jamf policy
Checking for policies triggered by "recurring check-in" for user "cayblood"...
Executing Policy Deploy Badger Manifest - Prod (Daily) CLOUDFRONT
Running script deployS3UpdateManifest-2020-01-15.sh...
Script exit code: 0
Script result: + declare -x FETCH_URL=
+ declare -x REL_DATA_PATH=/Library/Preferences/com.amazon.UpdateBadger.manifest.plist
+ declare -x REL_SIG_PATH=/Library/Preferences/com.amazon.UpdateBadger.manifest.plist.sig
+ declare -x VOLUME=/
+ declare -x COMPUTER_NAME=a483e7dd3ea3
+ declare -x USER_NAME=cayblood
+ declare -i DOWNLOAD_RESULT=0
+ declare -x MANIFEST_DATA_PATH=///Library/Preferences/com.amazon.UpdateBadger.manifest.plist
+ declare -x SIGNATURE_DATA_PATH=///Library/Preferences/com.amazon.UpdateBadger.manifest.plist.sig
+ '[' --prod == --prod ']'
+ echo 'Declaring Prod manifest and signature'
Declaring Prod manifest and signature
+ FETCH_URL=https://d35ofjjy78a31s.cloudfront.net/macos/com.amazon.UpdateBadger.manifest.plist
+ SIG_URL=https://d35ofjjy78a31s.cloudfront.net/macos/com.amazon.UpdateBadger.manifest.plist.sig
++ mktemp //tmp/manifest_XXXXXXXXXXXXXX
+ TEMP_MANIFEST_FILE=//tmp/manifest_TjBHt55OMtvtAE
++ mktemp //tmp/signature_XXXXXXXXXXXXXX
+ TEMP_SIGNATURE_FILE=//tmp/signature_UT5vfPEExoZaAi
+ /bin/launchctl bootout system /Library/LaunchAgents/com.amazon.acme.updates.plist
/Library/LaunchAgents/com.amazon.acme.updates.plist: Could not find specified service
+ /bin/launchctl bootout system /Library/LaunchDaemons/com.amazon.acme.helper.updates.plist
+ killAll 'ACME Updates'
+ killAll com.amazon.acme.helper.updates
No matching processes were found
+ echo 'Copying MANIFEEST to '\''///Library/Preferences/com.amazon.UpdateBadger.manifest.plist'\'' from '\''https://d35ofjjy78a31s.cloudfront.net/macos/com.amazon.UpdateBadger.manifest.plist'\'''
Copying MANIFEEST to '///Library/Preferences/com.amazon.UpdateBadger.manifest.plist' from 'https://d35ofjjy78a31s.cloudfront.net/macos/com.amazon.UpdateBadger.manifest.plist'
+ curl --compressed -f -o //tmp/manifest_TjBHt55OMtvtAE https://d35ofjjy78a31s.cloudfront.net/macos/com.amazon.UpdateBadger.manifest.plist
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 59407 100 59407 0 0 187k 0 --:--:-- --:--:-- --:--:-- 187k
+ chown root:wheel //tmp/manifest_TjBHt55OMtvtAE
+ MANIFEST_DOWNLOAD_RESULT=0
+ '[' 0 == 0 ']'
+ mv -f //tmp/manifest_TjBHt55OMtvtAE ///Library/Preferences/com.amazon.UpdateBadger.manifest.plist
+ echo 'Manifest Copy finished!'
Manifest Copy finished!
+ chown root:wheel ///Library/Preferences/com.amazon.UpdateBadger.manifest.plist
+ chmod 644 ///Library/Preferences/com.amazon.UpdateBadger.manifest.plist
+ echo 'Copying SIGNATURE to '\''///Library/Preferences/com.amazon.UpdateBadger.manifest.plist.sig'\'' from '\''https://d35ofjjy78a31s.cloudfront.net/macos/com.amazon.UpdateBadger.manifest.plist.sig'\'''
Copying SIGNATURE to '///Library/Preferences/com.amazon.UpdateBadger.manifest.plist.sig' from 'https://d35ofjjy78a31s.cloudfront.net/macos/com.amazon.UpdateBadger.manifest.plist.sig'
+ curl --compressed -f -o //tmp/signature_UT5vfPEExoZaAi https://d35ofjjy78a31s.cloudfront.net/macos/com.amazon.UpdateBadger.manifest.plist.sig
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 344 100 344 0 0 1933 0 --:--:-- --:--:-- --:--:-- 1943
+ chown root:wheel //tmp/signature_UT5vfPEExoZaAi
+ SIGNATURE_DOWNLOAD_RESULT=0
+ '[' 0 == 0 ']'
+ mv -f //tmp/signature_UT5vfPEExoZaAi ///Library/Preferences/com.amazon.UpdateBadger.manifest.plist.sig
+ echo 'Signature Copy finished!'
Signature Copy finished!
+ chown root:wheel ///Library/Preferences/com.amazon.UpdateBadger.manifest.plist.sig
+ chmod 644 ///Library/Preferences/com.amazon.UpdateBadger.manifest.plist.sig
++ id -u cayblood
+ /bin/launchctl bootstrap gui/561143238 /Library/LaunchAgents/com.amazon.acme.updates.plist
/Library/LaunchAgents/com.amazon.acme.updates.plist: service already loaded
+ /bin/launchctl bootstrap system /Library/LaunchDaemons/com.amazon.acme.helper.updates.plist
+ '[' 0 == 0 ']'
+ '[' 0 == 0 ']'
+ exit 0
Running command killall -HUP UpdateBadger...
Result of command:
No matching processes were found
Submitting log to https://casper.amazon.com:8443/
Executing Policy Remove OS Upgrade Notification
Running script CleanupOSUpgradeMarker.sh...
Script exit code: 0
Script result:
Submitting log to https://casper.amazon.com:8443/
Executing Policy Write CrowdStrike version
Running script write_crowdstrike_version.sh...
Script exit code: 0
Script result:
Checking for patches...
No patch policies were found.
Submitting log to https://casper.amazon.com:8443/
cayblood@a483e7dd3ea3 ~ [ruby-2.6.5] [node-12.14.1]
∴ sudo jamf manage
Getting management framework from the JSS...
Enforcing management framework...
Checking availability of https://casper.amazon.com:8443/...
The JSS is available.
Enforcing login/logout hooks...
Enforcing scheduled tasks...
Creating launch daemon...
Creating launch agent...
Updating daemon settings
Checking availability of https://casper.amazon.com:8443/...
The JSS is available.
cayblood@a483e7dd3ea3 ~ [ruby-2.6.5] [node-12.14.1]
∴ + /bin/launchctl bootstrap system /Library/LaunchDaemons/com.amazon.acme.helper.updates.plist
+ '[' 0 == 0 ']'
+ '[' 0 == 0 ']'
+ exit 0
Running command killall -HUP UpdateBadger...
Result of command:
No matching processes were found
Submitting log to https://casper.amazon.com:8443/
Executing Policy Remove OS Upgrade Notification
Running script CleanupOSUpgradeMarker.sh...
Script exit code: 0
Script result:
Submitting log to https://casper.amazon.com:8443/
Executing Policy Write CrowdStrike version
Running script write_crowdstrike_version.sh...
Script exit code: 0
Script result:
Checking for patches...
No patch policies were found.
Submitting log to https://casper.amazon.com:8443/
cayblood@a483e7dd3ea3 ~ [ruby-2.6.5] [node-12.14.1]
∴ sudo jamf manage
Getting management framework from the JSS...
Enforcing management framework...
Checking availability of https://casper.amazon.com:8443/...
The JSS is available.
Enforcing login/logout hooks...
Enforcing scheduled tasks...
Creating launch daemon...
Creating launch agent...
Updating daemon settings
Checking availability of -bash: +: command not found
cayblood@a483e7dd3ea3 ~ [ruby-2.6.5] [node-12.14.1]
∴ + '[' 0 == 0 ']'
+ '[' 0 == 0 ']'
+ exit 0
Running command killall -HUP UpdateBadger...
Result of command:
No matching processes were found
Submitting log to https://casper.amazon.com:8443/
Executing Policy Remove OS Upgrade Notification
Running script CleanupOSUpgradeMarker.sh...
Script exit code: 0
Script result:
Submitting log to https://casper.amazon.com:8443/
Executing Policy Write CrowdStrike version
Running script write_crowdstrike_version.sh...
Script exit code: 0
Script result:
Checking for patches...
No patch policies were found.
Submitting log to https://casper.amazon.com:8443/
cayblood@a483e7dd3ea3 ~ [ruby-2.6.5] [node-12.14.1]
∴ sudo jamf manage
Getting management framework from the JSS...
Enforcing management framework...
Checking availability of https://casper.amazon.com:8443/...
The JSS is available.
Enforcing login/logout hooks...
Enforcing scheduled tasks...
Creating launch daemon...
Creating launch agent...
Updating daemon settings
Checking availability of https://casper.amazon.com:8443/...
The JSS is available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment