About Script

harsha
New Contributor III

Hi guys,

I saw a script and the script is below. May I know what this script do? And can I add this script in jamf pro? Do I need to change any values or parameters in it before adding into jamf pro? Can you guys plz help me?

https://github.com/jamf/Jamf-Nation-Scripts/blob/master/Apple_Software_Update_Search_v2.sh

5 REPLIES 5

Tangentism
Contributor III

1. On the github page, click 'Raw' in the top right hand corner

2. Save page as.... "Apple_Software_Update_Search_v2.sh"

3.Go to your Jamf instance: Settings > Computer Management > Scripts

4. Click the '+' in the top right

5. Copy the contents of the script (open it in your favourite text editor) into the main window

6. Enter the name of the script in the title bar

7. Click onto the 'Options' Tab

8. Paste the following into parameter fields 4: "Update Selection (Required)"

9 Paste the following into parameter fields 5, 6 & 7: "Update Selection (Optional)"

10. Click save in the bottom right

 

The script requires that you provide at least one parameter of an item that you want it to check if there's an update. You can add these parameters when you attach the script as a payload in a policy.

I suggest that you spend some time working through these online videos that Jamf have provided as you have asked this same question twice on this forum. I think you need to learn some of the fundamental concepts that these videos convey:

https://trainingcatalog.jamf.com/

harsha
New Contributor III

Hi Tangentism,

harsha_0-1634547629916.png

Is this correct?

I am getting https://trainingcatalog.jamf.com/ error like server error. What should i do now?

Tangentism
Contributor III

The manual describes outlines what I described by using the Jamf Admin application: https://docs.jamf.com/10.32.0/jamf-pro/administrator-guide/Scripts.html

 

As for the website not loading, I have no idea as thats quite a vague error. Try this link and you can dig in from there: https://www.jamf.com/training/online-training/

harsha
New Contributor III

I am using jamf pro, so i cant add this script(https://github.com/jamf/Jamf-Nation-Scripts/blob/master/Apple_Software_Update_Search_v2.sh)

in jamf pro? Can you tell what is the meaning of this script? It is about security updates to install the latest version?

harsha
New Contributor III

Hi Tangentism,

Can you plz tell me that the above script can be used in jamf pro??