Satellite Reporting

Latest response

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

This is where I found my initial reports:

https://access.redhat.com/site/documentation/en-US/Red_Hat_Network_Satellite/5.5/html/API_Overview/files/html/scripts.html

It's for Satellite 5.5, but should be OK.

Thanks, I will look into that.

Here is what I need to do. spacewalk-report inventory gives me some of what I want. It should be possible to modify it, so that it gives me the additional information I need.

DMI Info
Vendor: Cisco Systems Inc Bios: Cisco Systems, Inc. S5500.2.0.3.0.050720121819 05/07/2012
System: N20-B6625-1 .
Product: N20-B6625-1 Asset Tag: (chassis: QCI1541ADEK) (chassis: Unknown) (board: QCI1541ADEK) (system: QCI1541ADEK)
Board: Cisco Systems Inc

Is the section that I need to add to the report.

I will look at your scripts and see what I can do with those.

Thanks

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. ;-)

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.