ADDING THE BASH SCRIPT TO JAMF PRO
In order to add the bash script to Jamf Pro, follow the steps below:
Log in to the Jamf Pro
Access the Settings page, in the All tab search for the Categories section, and create a new one (if not created):
Access the Settings page, in the All tab search for the Scripts section, and create a new script. Make sure you give it a name, assign it to a category, and continue with the next tabs.
In the Scripts tab, select the Shell/Bash mode with the Default theme and paste in the script you find in the installagent.sh file attached at the bottom of this article. Make sure to add the correct access token and URL according to your deployement.
You can continue editing the Options or the Limitations tabs in case you have specific settings that you want to use and press Save.
Next, you need to create a new Policy that will be used to deploy the Footprint Agent. On the
Policies page, press the New button and create the policy. In the General tab, give the policy a Display Name, enable it, and select the Category and the Triggers (that suit you).Â
To finish the policy configuration, make sure you also have a look at the Scope, Self Service, and User interaction tabs to set them up according to your preference. After that press the Save button.
The Footprint Agent will get installed automatically, according to the triggers you have configured on the policy. The policy can be manually triggered by running the following command line in the Terminal:
InstallAgent.sh Script:
Make sure to replace <TOKEN> and <URL> according to the Footprint Console > Scan Surface > Agent Based Scan Surface > Setup agents information
cd /opt sudo curl -L -o /opt/footprint-agent-installer.sh https://<URL>/agent/macos/update/agent_installer.sh sleep 20 chmod +rx /opt/footprint-agent-installer.sh sleep 20 sudo bash /opt/footprint-agent-installer.sh --token <TOKEN> --server_url <URL>
Comments
0 comments
Please sign in to leave a comment.