Hi All,
I'm having issues with the following command and wanted an army of eyes to
glance over my syntax to see if there was anything you might be able to
spot.
/usr/bin/sudo /usr/bin/curl -k -u username:password
https://jss.qut.edu.au:8443/JSSResource/computers/id/$variable -T
"$xmlFile" -X PUT
I get the dreaded 500 Internal Server Error of verbose and bountiful
feedback.
So I try;
/usr/bin/sudo /usr/bin/curl -k -u username:password
https://jss.qut.edu.au:8443/JSSResource/computers/id/$variable -d
"name=$newvariable" -X PUT
Which is successful at changing the computer name entry in the JSS - but
so far that's all I have been able to change. I have attempted to change
the RealName field by using (realname, RealName, real_name, Real_Name,
REAL_NAME) and so on for other fields which only result in a 400 Bad
Request.
So I guess I'm back at a cross road after finding I can venture down
neither path. I can't get the -T "$fileupload" syntax to work and I can't
get -d "name=$string&realname=$string2" to work either.
I have used an account with only access to the API and also my account
which has full rights.
Any pointers or slaps on the wrist would be appreciated.
Kind regards
Rhys Forrester
Queensland University of Technology
