Extract csv report for information on content-hosts registered with Red Hat Satellite 6.
Environment
- Red Hat Satellite 6.2.x
Issue
- Steps to extract a
csv reportcontaining information about the registered content-hosts withRed Hat Satellite 6.
Resolution
Steps to follow:
- Install the
tfm-rubygem-hammer_cli_csv.noarchpackage on theRed Hat Satelliteserver (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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
