Creates printer queue name with printer model

Asked by Venkat

Hello Sir,

I am executing the command for creating printers in monitor server , it creates queue name with printer model instead of name which we are giving .
Any suggestion.

dnkgevelprnm001:~ # lpstat -v
lpstat: No destinations added.
dnkgevelprnm001:~ # hp-setup -i -x --auto -b net --port=1 -psb22 sb22

HP Linux Imaging and Printing System (ver. 3.15.11)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 HP 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.

Setting up device: hp:/net/HP_LaserJet_700_color_MFP_M775?hostname=sb22

---------------------
| PRINT QUEUE SETUP |
---------------------

Using queue name: HP_LaserJet_700_color_MFP_M775
Locating PPD file... Please wait.

Found PPD file: /usr/share/cups/model/HP/hp-laserjet_700_color_mfp_m775-ps.ppd.gz
Description:

Adding print queue to CUPS:
Device URI: hp:/net/HP_LaserJet_700_color_MFP_M775?hostname=sb22
Queue name: HP_LaserJet_700_color_MFP_M775
PPD file: /usr/share/cups/model/HP/hp-laserjet_700_color_mfp_m775-ps.ppd.gz
Location:
Information: HP LaserJet 700 color MFP M775 Device (Automatically setup by HPLIP)

---------------------
| PRINTER TEST PAGE |
---------------------

Done.
dnkgevelprnm001:~ # lpstat -v
device for HP_LaserJet_700_color_MFP_M775: hp:/net/HP_LaserJet_700_color_MFP_M775?hostname=sb22
dnkgevelprnm001:~ #
dnkgevelprnm001:~ # lpstat -v sb22
lpstat: Invalid destination name in list "sb22".
dnkgevelprnm001:~ # lpstat -v HP_LaserJet_700_color_MFP_M775
device for HP_LaserJet_700_color_MFP_M775: hp:/net/HP_LaserJet_700_color_MFP_M775?hostname=sb22
dnkgevelprnm001:~ #

Thanks,
Venkat

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Venkat (venkatachalam-dk) said :
#1

Hi ,

Can you please update on this ?

Regards,
Venkat

Revision history for this message
goutam (goutamkk) said :
#2

Hi Venkat,

-p option doesn't work if you are using -a -x options.

Removing option -a -x in your above command should be able to pick the default queue name provide through option -p.

Thanks,
Goutam

Revision history for this message
Venkat (venkatachalam-dk) said :
#3

Hi Goutam,

Thanks for your reply .
We have to create 1300+ printer in monitor server .executing command "hp-setup -i -b net --port=1 --printer=bk12 bk12" ,which is prompting for some question.

We need to use script to create the printer , in that case which syntax we can use to create the printer without prompting for question.

Earlier we used "hp-setup -i -x --auto -b net --port=${printerport} --printer=${printername} ${printername}"

Thanks,
Venkat

Revision history for this message
goutam (goutamkk) said :
#4

Hi Venkat,

Comment out below lines in /usr/share/hplip/setup.py

431: if auto:
432: printer_name = default_model

------------------------------------------------------------------------------
483: else:
484 printer_name = printer_default_model

and save the file.

Re-try the command and let us know if the queue is configured as you expected.

Thanks,
Goutam

Can you help with this problem?

Provide an answer of your own, or ask Venkat for more information if necessary.

To post a message you must log in.