How to install and configure hammer cli on any remote clients of Red Hat Satellite or Capsule 6.X ?

Solution Verified - Updated

Environment

  • Red Hat Satellite/Capsule 6.X
  • Red Hat Enterprise Linux 7

Issue

  • How to install and configure "hammer cli" on a client of Redhat Satellite/Capsule 6.X?

  • Will the client host be requiring a "Satellite Infrastructure subscription" attached?

Resolution

  • Make sure the client host is properly registered with the Satellite / Capsule server and has a valid RHEL subscription.

  • Synchronize the mentioned repositories on your Red Hat Satellite server and enable these repositories on the client host.
    - rhel-7-server-satellite-tools-6.X-rpms
    - rhel-7-server-rpms
    - rhel-server-rhscl-7-rpms

  • If the client host is registered with a Red Hat Capsule server, make sure to have those repositories synced properly in your Capsule server as well, so that further those can be enabled on the client host.

  • To install "hammer cli" on a host, execute the command as mentioned below.

    # yum install tfm-rubygem-hammer_cli_katello tfm-rubygem-hammer_cli_csv -y
    
  • Perform the required changes in the hammer configuration file /etc/hammer/cli.modules.d/foreman.yml as listed.
    - At line 6 - change localhost to your satellite server's Fully Qualified Domain Name.
    - You can mention the password on Line 10 after uncommenting it as well.

  • For more details please refer to - Standalone Use of Hammer.

For more KB articles/solutions related to Red Hat Satellite 6.x hammer Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x hammer-related Issues

SBR
Product(s)
Components
Category

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.