Extract csv report for information on content-hosts registered with Red Hat Satellite 6.

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6

Issue

  • Steps to extract a csv report containing information about the registered content-hosts with Red Hat Satellite 6.

Resolution

Steps to follow on Satellite 6.6 or newer

# hammer --csv --csv-separator ';' host list > content-hosts.csv

OR
Login to satellite web ui --> Hosts --> Content Hosts --> Click on Export on the top right of the page.

Steps to follow on Satellite 6.5 or older

  • Install the tfm-rubygem-hammer_cli_csv.noarch package on the Red Hat Satellite server (Provided by the Red Hat Satellite repository).
# sudo yum install tfm-rubygem-hammer_cli_csv.noarch
  • Run the hammer command to create a csv report.
# hammer csv content-hosts --export --file /tmp/reports.csv
# hammer -u <<username>> -p <<password>> csv content-hosts  --export --file content-hosts-export.csv --itemized-subscriptions --verbose --organization <<organization name>>

where, the /tmp/reports.csv is the report file which gets generated after running the above command.

  • The above command will provide information for all the registered content-hosts about the below parameters:

Name,Count,Organization,Environment,Content View,Host Collections,Virtual,Host,OS,Arch,Sockets,RAM,Cores,SLA,Products,Subscriptions

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.

Comments