Report or List of all failed commands

lfriedo
New Contributor III

Is there a way to get a report or list of all failed commands for our mobile devices in Jamf Pro.  Whenever I go to a device for any reason I often find failed commands from several months ago and manually clear those.  But it would be nice to be able to know all the devices with failed commands so I can look at what failed without having to go to each device individually.

1 ACCEPTED SOLUTION

kgam
Contributor

There's not an option within Jamf to pull this report but you can use the classic API to get the 'Management History' from your computers which will include the failed commands which you can then isolate for you report. This method will involve some scripting though.

The API will be https://yourcompany.jamfcloud.com/JSSResource/computerhistory/id/{id}

View solution in original post

2 REPLIES 2

obi-k
Valued Contributor II

You could send a mass MDM command to clear failed and/or pending commands...

1. Devices tab

2. Smart Device groups (Or static)

3. Click on the desired group

4. Click View

5. Click Action

6. Cancel Remote Commands

7. Select the desired option

8. Click Next

Screenshot 2023-02-23 at 12.43.21 PM.png

kgam
Contributor

There's not an option within Jamf to pull this report but you can use the classic API to get the 'Management History' from your computers which will include the failed commands which you can then isolate for you report. This method will involve some scripting though.

The API will be https://yourcompany.jamfcloud.com/JSSResource/computerhistory/id/{id}