Listing inactive systems present on Red Hat using web API

Solution Verified - Updated -

Environment

  • Red Hat Network

Issue

  • List Inactive systems present on Red Hat Network using the web API
  • List Inactive Systems present on RHN in a group

Resolution

  • This is the API to list inactive systems in a group:- listInactiveSystemsInGroup

  • There is no dedicated API to list inactive systems which are not in system group, however can use "listUserSystems" API to get the last checkin date/time for the systems to identify whether the system it is active or inactive.

system.listUserSystems 

 Parameters:

    string sessionKey

Returns:

    array
        struct (system)
            int "id" - server id
            string "name" - server name
            string "last_checkin" - last time server successfully checked in with Red Hat Network.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.