What is the command to find the serial number of a Content Host registered to Red Hat Satellite 6?

Solution Verified - Updated -

Issue

  • What is the command to find the serial number of a Content Host registered to Red Hat Satellite 6?

  • Not able to find the serial number of the Content Host which is registered to Red Hat Satellite by using the hammer commands :

# hammer csv content-hosts --export --file /tmp/reports.csv

# su - postgres -c "echo \"select name,updated_at,last_report,comment from hosts;\" | psql foreman" > /tmp/postgres_report.txt

Environment

  • Red Hat Satellite 6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content