Spacewalk report system versus system-group

Latest response

Hi all,

I am looking for a spacewal report or a script using Satellite API that reports a server name and to which system-groups it belongs.

Has anyone found a report or create a script to do make this selection?

Kind regards,

Jan Gerrit Kootstra

Responses

Hi Jan,

You can use spacewalk-report command to get details about system group and systems in group

Bellow is sample output of spacewalk-report system-groups-systems command

# spacewalk-report system-groups-systems
group_id,group_name,server_id,server_name
7,MyGroup,1000010002,prod-system.example.com
7,MyGroup,1000010009,qa-system.example.com
7,MyGroup,1000010012,devel-system.example.com
7,MyGroup,1000010013,test-system.example.com

The system-groups-systems option is added to spacewalk-report command from Red Hat Satellite v 5.6 release. Refer release notes for more features in Red Hat Satellite v 5.6

Hope this helps you.

Regards,
Ashish

Hi Ashish,

I hope it is available in RHN Satellite 5.5 too.
What I found my self is the inventory report.

Kind regards,

Jan Gerrit

Hi Jan,

No its not available on Red Hat Satellite v 5.5 , some advanced options for spacewalk-report command are released in Satellite v 5.6 release.

Thanks,
Ashish

For Satellite v 5.5 you have to use API's

system.listSystems to list all systems registered to satellite then for each system in the list you have to call system.listGroups API to get System Group details.

Hope this helps,

Regards,
Ashish

According to the Red Hat documentation [1] for system.listGroups, this will give you "the available groups for a given system", which by my testing, is all the groups in the organization (in other words literally all "available groups".) It does not give you the list of groups the particular system is assigned to. Satellite 5.6 shows the same description for this method [2].

[1] https://access.redhat.com/documentation/en-US/Red_Hat_Network_Satellite/5.5/html/API_Overview/files/html/handlers/SystemHandler.html#listGroups
[2] https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.6/pdf/API_Overview/Red_Hat_Satellite-5.6-API_Overview-en-US.pdf

I've been experimenting lately with the 5.6 spacewalk-report bit, thanks for the info Peter, Ashish,

Close

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