SQL Command for JAMF to repair data base and delete ghost entry
On Sql window :mysqlcheck --repair
On command prompt cd C:\Program Files\MySQL\
On command prompt mysqlcheck -repair jamfsoftware -u root -p
On command prompt mysqlcheck -u root -p --repair jamfsoftware
On command prompt mysqlcheck -u root -p --optimize jamfsoftware
On Sql window: select count(*) from computers;
On Sql window: select count(*) from mobile_devices;
On Sql window: select count(*) from computers_denormalized;
On Sql window: select count(*) from mobile_devices_denormalized;
On terminal : curl -k -u jssUser:jssPassword -H "Content-Type: text/xml" https://jamfprourl/JSSResource/computers/id/117 -X DELETE
curl -su username:password "https://server.name.here/JSSResource/computers/id/1024" -X DELETE
On terminal : curl -s -k -u jamfadmin:Pradeep@1989 "https://jamf.expo2020.ae:8443/JSSResource/computers/id/117” -X DELETE
On terminal : curl -s -k -u jamfadmin -p "https://jamf.expo2020.ae:8443/JSSResource/computers/id/117” -X DELETE
On Sql window: : SELECT computer_id FROM computers
On Sql window : DELETE from computers where computer_id = 117
On Sql window : select computer_id, udid, mac_address, alt_mac_address, computer_name from computers_denormalized where computer_id = ?;
On Sql window : insert into computers (computer_id, udid, mac_address, alt_mac_address, computer_name, management_id) select computer_id, udid, mac_address, alt_mac_address, computer_name, management_id from computers_denormalized where computer_id = ?;
curl -k -u jamfadmin:Pradeep@1989 -H "Content-Type: text/xml" “https://jamf.expo2020.ae:8443/JSSResource/computers/id/117” -X DELETE
curl -su jamfadmin:Pradeep@1989 "https://jamf.expo2020.ae:8443/JSSResource/computers/id/117” -X DELETE
curl -s -k -u “jamfadmin” -Pradeep@1989 "https://jamf.expo2020.ae:8443/JSSResource/computers/id/117” -X DELETE
url -s -k -u jamfadmin -p "https://url/JSSResource/computers/id/117” -X DELETE
Comments
Post a Comment