It is very strange how suddenly the xpath GET stopped printing the data correct, for this line:
id=`/usr/bin/curl -k -u $user:$pass "$jssurl/JSSResource/computers/udid/$uuid" -X GET | xpath //computer/general/id | cut -f2 -d ">" | cut -f1 -d "<"`
Getting this output with ALL the data from JSS on that specific computer:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 37386 100 37386 0 0 43174 0 --:--:-- --:--:-- --:--:-- 43170
not well-formed (invalid token) at line 1, column 0, byte 0:
{"computer":{"general":{"id":1992,"name":
.....
.... [ALL THE DATA]
....
^
at /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/XML/Parser.pm line 187.
It displayed computer id before and now all data raw...
I wonder why it stopped working like that, any ideas?