This would be ideal for our helpdesk/field technicians to launch the script from self service so when they are either remotely logged in or at the machine physically they can verify that the machine is in the correct site and check other things in the id page. I'm new to scripting so passing parameters ect is not my specialty.
Something like this where jamf.com is our jss
!/bin/sh
/usr/local/jamf/bin/jamf recon | grep '<computer_id>' > '/private/var/jss_computer_id.xml'
open -a /Applications/Safari.app https://Jamf.com:8443/computers.html?id='<computer_id>'&o=r
I know this doesn't pass the computer_id, but it does put the id locally in the xml file