Can someone please post an example of how to use the sudo jamf runScript syntax to call an existing script on the JSS server?
I was hoping I could use it like such:
sudo jamf runScript -id 128
But alas it does not work like Policies do.
No mention of a way to do this in the help page. Seems like a no-brainer, no?
Usage: jamf runScript -script <file name> -path <path to script> [-computerName <computerName>] [-target <target volume>] [-username <username>] [-p1 <parameter 1>] [-p2 <parameter 2>] [-p3 <parameter 3>] [-p4 <parameter 4>] [-p5 <parameter 5>] [-p6 <parameter 6>] [-p7 <parameter 7>] [-p8 <parameter 8>]
-script The file name of the script to run
-path The path to the script
-computerName The name of the computer to be passed to the script If the name is not specified, it will be looked up on the target drive.
-target The target drive to be passed to the script
-username The username to be passed to the script
-p[1-8] The parameters to be passed to the script
Notes: Parameters in scripts created for use with the Casper Suite must be formatted in a certain way. The parameters passed to the script are as follows: Target Drive Computer Name Username Parameter 1 Parameter 2 Parameter 3 Parameter 4 Parameter 5 Parameter 6 Parameter 7 Parameter 8