Satellite Reporting
I am wondering if there is a way to pull from Satellite a report of all registered servers that includes hardware and storage and network configuration?
Responses
I am pulling all sorts of data from my Satellite via various reports that we've written.
Take a look at your Satellite's API help pages: https://yoursatellite.company.com/rhn/apidoc/index.jsp
There's a wealth of detail can be pulled from the Satellite. There are some example reports somewhere (that I can't now remember). I wrote a few reports in Perl, but am now doing all my reports in Python - at kindergarten level.
Cheers
D
Hi Don,
I am not very capable with the API (or Python in general) so I have become quite dependent on spacecmd (available from the EPEL channel and can be installed stand-alone on a separate system with network access to your Satellite).
spacecmd -q system_listhardware sysadm01.corp.company.com | grep -A14 Network
I don't think spacecmd can specifically provide the data you are looking for (I don't see storage in the output - like you would from the hardware tab on the web page) but... I you could look in to the code that spacecmd uses to get an idea of how you could write your own API calls.
You could also even propose adding your updates to spacecmd itself. ;-)
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
