lpstat command gives error "Unable to connect to server: Connection refused" in RHEL

Solution Verified - Updated -

Issue

  • lpstat command gives error "Unable to connect to server: Connection refused"

    # lpstat -a
    lpstat: Unable to connect to server: Connection refusedPlease see the following :
    
  • Receiving the following error:

    # lpstat -p
    lpstat: Connection refused
    

Environment

  • Red Hat Enterprise Linux (RHEL) 4, 5, 6, 7
  • Common Unix Printing System (CUPS)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.