I'm using the following to try to extract computer information out to an XML file.
Via Terminal (command wraps in this box):
curl –u username:password https://jss.domain.com:8443/JSSResource/computers/name/jafuller674382/subset/General&Location&Extention%20Attributes –o "/Users/jafuller/Desktop/jafuller674382.xml"
I need to get the data from the General tab (works), Location tab (doesn't work) and Extension Attributes (doesn't work).
Can you clarify what syntax would be needed here?
Best answer by cvgs
You have to enclose the curl URL in quotes, otherwise the shell will capture the ampersand.
Below is a snippet from a working script, adapt freely to your environment: