How to use `hammer` cli on a capsule

Solution Unverified - Updated -

Issue

  • hammer cli fails to connect to the Satellite Capsule Server with the error message:
$ hammer -u <USERNAME> -p <PASSWORD> -s https://localhost host list
Could not load the API description from the server
  - is the server down?
  - was 'foreman-rake apipie:cache' run on the server when using apipie cache? (typical production settings)
Warning: An error occured while loading module hammer_cli_foreman
  • How can I use the hammer cli from a Capsule server?

Environment

  • Satellite Server 6.x

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