Troubleshooting the Automox Agent Installation on macOS
To install, restart, and remove the Automox agent on macOS devices, refer to the commands listed here.
Install the Automox agent
To install the Automox agent on macOS, run this command. (This requires your access key. See Managing Organization Keys.)
Copy
curl -sS "https://console.automox.com/downloadInstaller?accesskey=YOUR_ORGANIZATION_KEY_HERE" | sudo bash && sudo launchctl load /Library/LaunchDaemons/com.automox.agent.plist
Inspect the process
Determine if the Automox agent is running:
Copy
ps aux | grep amagent
Restart the agent
Unload the agent:
Copy
sudo launchctl bootout system/com.automox.agent
Load the agent:
Copy
sudo launchctl bootstrap system /Library/LaunchDaemons/com.automox.agent.plist
Uninstall agent:
Copy
sudo launchctl bootout system/com.automox.agent || true
sudo /usr/local/bin/amagent --deregister
sudo rm -f /usr/local/bin/amagent*
sudo rm -rf "/Library/Application Support/Automox/"
sudo rm -f /Library/LaunchDaemons/com.automox.agent*
sudo rm -rf /var/tmp/automox/ || true
sudo rm -f /var/tmp/amagent* || true
sudo /usr/bin/dscl . -delete /Users/_automoxserviceaccount
