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.
  • But issuing hammer -u <USER> -p <PASS> ping did not end with a timeout error
  • How to set longer timeout to avoid this issue?
  • We have >500 content-hosts listed in Satellite, running hammer content-host list --organization <orgname> ends up with Error: Request Timeout after ~2 minutes.

Errors which can be experienced with hammer:

  • Timeout error
  • Timed out connecting to server
  • Timed out reading data from server

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