Mac Agent Service Launcher
Install and launch the Mac Agent service launcher by following these steps:
- Download the Signed Mac Agent as described in the Signed Mac Agent docs.
 - Download the 
.plistfile from the Device42 Autodiscovery tools page under MacOS Service Wrapper for the Discovery Agent. - Modify the 
.plistfile as required based on your setup and required options. For example, you can change theStartIntervalto configure how often the agent will run, or configure other options to pass asProgramArguments. - You need the config file and executable in the 
/opt/device42/directory. - You need the 
.plistfile in the/Library/LaunchDaemons/directory. 
Now run:
sudo launchctl load /Library/LaunchDaemons/<plist file name>
Make Changes to the .plist File
If you make changes to the .plist file, you need to unload and then load it again by running:
sudo launchctl unload /Library/LaunchDaemons/<plist file name>
sudo launchctl load /Library/LaunchDaemons/<plist file name>
To make sure that the file is correctly loaded, run:
sudo launchctl list | grep device42
Install via MDM
If you need to deploy in bulk to many machines, you can use MDM.
Package the Launch Agent using Composer and deploy it via the JSS, Casper Remote, or ARD.
Include the following as a post-flight script to set some permissions and load the agent. Right-click Scripts, click Shell Script, and then post flight.
#!/bin/bash
chown root "/Library/LaunchDaemons/NAMEOF.plist"
chmod 644 "/Library/LaunchDaemons/NAMEOF.plist"
launchctl load "/Library/LaunchDaemons/NAMEOF.plist"
Notes
- By default, logs are stored under 
/var/logor as otherwise configured in the.plistfile. - The 
agent_local.logfile is under the default/opt/device42working directory.