How to setup hammer API request timeout on Satellite 6

Solution Verified - Updated -

Issue

  • hammer -u <USER> -p <PASS> product list --organization Default_Organization --per-page 1000 ended with timed out error, whereas hammer -u <USER> -p <PASS> ping did not end with a timeout error.
  • How to set longer timeout for hammer commands?
  • We have >500 content-hosts listed in Satellite, running hammer content-host list --organization <orgname> ends up with Error: Request Timeout after approximately 2 minutes.

Environment

  • Red Hat Satellite 6
    • hammer

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