Command Line Instructions for Configuring/Setting up HPLIP

Asked by Narendra Babu H.C.

Hi All,

At present there are instructions to configure/setup HPLIP from GUI.
Is there any reference by which we can configure/setup HPILP from commandline ???

Thanks and Regards,
Narendra Babu H.C.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Aaron Albright
Solved:
Last query:
Last reply:
Revision history for this message
Best Aaron Albright (albrigha-deactivatedaccount) said :
#1

All of the tools have command line functionality. Run: hp-<tool> -h for more specific information on how to enter the interactive (command line) feature. For most commands it's simply by adding "-i" to the command. For example:

hp-setup -i

Hope this helps.

Aaron

Revision history for this message
Narendra Babu H.C. (narendra-babu) said :
#2

Hi Aaron,

I tried "hp-setup -i"

Following is the error displayed.

warning: python-dbus is not installed.
error: option -i not recognized

If I give "hp-setup i"

It says

error: Invalid device URI:
error: No device selected/specified or that supports this functionality.

Please let me know how to resolve this.

Regards,
Narendra Babu H.C.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Aaron Albright
Sent: Tuesday, October 14, 2008 3:03 AM
To: Babu HC, Narendra (GE Healthcare)
Subject: Re: [Question #47622]: Command Line Instructions
forConfiguring/Setting up HPLIP

Your question #47622 on HPLIP changed:
https://answers.launchpad.net/hplip/+question/47622

    Status: Open => Answered

Aaron Albright proposed the following answer:
All of the tools have command line functionality. Run: hp-<tool> -h for
more specific information on how to enter the interactive (command line)
feature. For most commands it's simply by adding "-i" to the command.
For example:

hp-setup -i

Hope this helps.

Aaron

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/hplip/+question/47622/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/hplip/+question/47622

You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#3

Please run:

su
hp-setup -h

and post the output.

Aaron

Revision history for this message
Narendra Babu H.C. (narendra-babu) said :
#4

Hi,

Here is the output of hp-setup -h

HP Linux Imaging and Printing System (ver. 2.8.9)
Printer/Fax Setup Utility ver. 8.0

Copyright (c) 2001-8 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Installs HPLIP printers and faxes in the CUPS spooler. Tries to automatically determine the correct PPD file to use. Allows the printing of a testpage. Performs basic fax parameter setup.

Usage: hp-setup [MODE] [OPTIONS] [SERIAL NO.|USB bus:device|IP|DEVNODE]

[MODE]
  Run in graphical UI mode: -u or --gui (Default)
  Run in interactive mode: -i or --interactive

[OPTIONS]
  Automatic mode: -a or --auto (-i mode only)
  To specify the port on a --port=<port> (Valid values are 1*, 2, and 3. *default)
  multi-port JetDirect:
  No testpage in automatic -x (-i mode only)
  mode:
  To specify a CUPS printer -p<printer> or --printer=<printer> (-i mode only)
  queue name:
  To specify a CUPS fax -f<fax> or --fax=<fax> (-i mode only)
  queue name:
  Type of queue(s) to -t<typelist> or --type=<typelist>. <typelist>: print*, fax*
  install: (*default) (-i mode only)
  Set the language: -q <lang> or --lang=<lang>. Use -q? or --lang=? to see a list of
                             available language codes.
  Set the logging level: -l<level> or --logging=<level>
                             <level>: none, info*, error, warn, debug (*default)
  Run in debug mode: -g (same as option: -ldebug)
  This help information: -h or --help

[SERIAL NO.|USB ID|IP|DEVNODE]
  USB bus:device (usb "xxx:yyy" where 'xxx' is the USB bus and 'yyy' is the USB device.
  only): (Note: The ':' and all leading zeros must be present.)
                             Use the 'lsusb' command to obtain this information.
  IPs (network only): IPv4 address "a.b.c.d" or "hostname"
  DEVNODE (parallel only): "/dev/parportX", X=0,1,2,...
  SERIAL NO. (usb and "serial no."
  parallel only):

Examples:
  Setup using GUI mode: $ hp-setup
  Setup using GUI mode, $ hp-setup -b usb
  specifying usb:
  Setup using GUI mode, $ hp-setup 192.168.0.101
  specifying an IP:
  One USB printer attached, $ hp-setup -i -a
  automatic:
  USB, IDs specified: $ hp-setup -i 001:002
  Network: $ hp-setup -i 66.35.250.209
  Network, Jetdirect port $ hp-setup -i --port=2 66.35.250.209
  2:
  Parallel: $ hp-setup -i /dev/parport0
  USB or parallel, using $ hp-setup -i US12345678A
  serial number:
  USB, automatic: $ hp-setup -i --auto 001:002
  Parallel, automatic, no $ hp-setup -i -a -x /dev/parport0
  testpage:
  Parallel, choose device: $ hp-setup -i -b par

Notes:
1. If no serial number, USB ID, IP, or device node is specified, the USB and parallel busses will be probed for devices.
2. Using 'lsusb' to obtain USB IDs: (example)
 $ lsusb
 Bus 003 Device 011: ID 03f0:c202 Hewlett-Packard
 $ hp-setup --auto 003:011
 (Note: You may have to run 'lsusb' from /sbin or another location. Use '$ locate lsusb' to determine this.)
3. Parameters -a, -f, -p, or -t are not valid in GUI (-u) mode.

Regards,
Narendra Babu H.C

Revision history for this message
Narendra Babu H.C. (narendra-babu) said :
#5

Thanks Aaron Albright, that solved my question.