Sponsored Content
Full Discussion: lpadmin help
Top Forums UNIX for Dummies Questions & Answers lpadmin help Post 6786 by andrec on Wednesday 12th of September 2001 02:31:53 PM
Old 09-12-2001
Question lpadmin help

hi all,

I can add a network printer with ADMINTOOL. However, I have a problem to add a network printer using lpadmin on my Sparc Solaris 8 box.

Here's the detail:
===============
lpadmin -p printername

lpadmin: ERROR: Missing -U or -v option.
To Fix: Local printer must have a port defined (-v option)
or have dial-out instructions (-U option).
================

I know I have to use the -v option. However, how can I create a special device file in order to specify the device path? I have looked into the man pages but it just tells me that -v is associated with device only. Can someone please help me on this?

thanks

Last edited by andrec; 09-12-2001 at 07:23 PM..
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Ooops there goes lpadmin =0

Hi there thanks for checking in I'm screwed if you can't help me. I have root access to a unix box and i did this. >/usr/bin> mailx marcus@rtt.co.za > /usr/bin/lpadmin which over wrote the lpadmin file which is in /usr/bin How do i get this back. Please help. (2 Replies)
Discussion started by: nemex
2 Replies

2. Solaris

configuring printer using lpadmin

Can some one tell me how to configure the printer on solaris printer name = A printer server address : 172.21.19.6 (3 Replies)
Discussion started by: krishan
3 Replies

3. UNIX for Dummies Questions & Answers

Add printer with IP address with lpadmin

Hi all, I'm tryin' to add a network printer with lpadmin (I don't have access to admintool) to a Solarisbox but I don't exactly know where to use the IP address. The thing is that this printer exists already with another printQ but I don't see any printerserver declared with lpsystem -l although... (3 Replies)
Discussion started by: nulnul7
3 Replies

4. UNIX for Dummies Questions & Answers

Lpadmin and viewing printer settings

Hi - Dummy question #1.... We either use the Hewlett Packard HPPI too or LPADMIN command to setup out printers. Is there an LPADMIN command that will show you the default config of a particular printer. Ideally looking to see default font, CPI settings etc. Thanks. BravehearT1326 ... (1 Reply)
Discussion started by: BravehearT1326
1 Replies

5. Shell Programming and Scripting

Variables containing spaces in lpadmin

I apologize for the long post. I have a lot of info... I am trying to write a script that will add a network printer (or several) to a system using information read in from a text file. My problem is the spaces in the PPD file name, I'm not sure how to put the file name in or how to read it back... (2 Replies)
Discussion started by: HalfNube
2 Replies

6. HP-UX

Lpadmin(1M) rejects devices writable by lp

When we executed a lpadmin command, the following error was output. # lpadmin -phsaprinter -v/home/hoge/lpfile -mrmodel -ocmrcmodel -osmrsmodel -ormhsaprinter -orphsaprinter lpadmin: can't access file "/home/hoge/lpfile" /home/hoge/lpfile is the file other user made. The... (1 Reply)
Discussion started by: madhurtripathi
1 Replies

7. Solaris

lpadmin command options on solaris 10

lpadmin configuration issues on Solaris 10 Zone. I have configured a print queue using lpadmin command to print to print file server. Source server is a Solaris Zone running Solaris 10. Destination file print server is running OS AIX 5.3. I do not get errors when issuing the lp command to... (0 Replies)
Discussion started by: primeaup
0 Replies

8. UNIX for Advanced & Expert Users

problems with lpadmin usage

the problem i encountered is that lpadmin when encounters a failure doesn't cleanup properly .so the next time i use the same printer name it doesn't allow me to do so .saying interface directory can't be created .what can be done to solve this out ?please help .. (3 Replies)
Discussion started by: rahulpatro
3 Replies

9. Shell Programming and Scripting

Run shell script LPADMIN

Hi All, I'm new to shell scripts. I have the following LPADMIN script that runs ok when I run in in OSX Automator "Run shell Scripts": Shell: /bin/bash here is the line: /usr/sbin/lpadmin -p Copy-room-ljetP4015 -E -v lpd://192.168.1.1 -m /Library/Printers/PPDs/Contents/Resources/HP\... (3 Replies)
Discussion started by: abk
3 Replies
lpadmin(8)							    Apple Inc.								lpadmin(8)

NAME
lpadmin - configure cups printers and classes SYNOPSIS
lpadmin [ -E ] [ -U username ] [ -h server[:port] ] -d destination lpadmin [ -E ] [ -U username ] [ -h server[:port] ] -p destination [ -R name-default ] option(s) lpadmin [ -E ] [ -U username ] [ -h server[:port] ] -x destination DESCRIPTION
lpadmin configures printer and class queues provided by CUPS. It can also be used to set the server default printer or class. When specified before the -d, -p, or -x options, the -E option forces encryption when connecting to the server. The first form of the command (-d) sets the default printer or class to destination. Subsequent print jobs submitted via the lp(1) or lpr(1) commands will use this destination unless the user specifies otherwise with the lpoptions(1) command. The second form of the command (-p) configures the named printer or class. The additional options are described below. The third form of the command (-x) deletes the printer or class destination. Any jobs that are pending for the destination will be removed and any job that is currently printed will be aborted. OPTIONS
The following options are recognized when configuring a printer queue: -c class Adds the named printer to class. If class does not exist it is created automatically. -i ppd-file -P ppd-file Specifies a PostScript Printer Description (PPD) file to use with the printer. -m model Sets a standard PPD file for the printer from the model directory or using one of the driver interfaces. Use the -m option with the lpinfo(8) command to get a list of supported models. The model "raw" clears any existing PPD file and the model "everywhere" queries the printer referred to by the specified IPP device-uri. Note: The "raw" model is deprecated and will not be supported in a future version of CUPS. -o cupsIPPSupplies=true -o cupsIPPSupplies=false Specifies whether IPP supply level values should be reported. -o cupsSNMPSupplies=true -o cupsSNMPSupplies=false Specifies whether SNMP supply level (RFC 3805) values should be reported. -o job-k-limit=value Sets the kilobyte limit for per-user quotas. The value is an integer number of kilobytes; one kilobyte is 1024 bytes. -o job-page-limit=value Sets the page limit for per-user quotas. The value is the integer number of pages that can be printed; double-sided pages are counted as two pages. -o job-quota-period=value Sets the accounting period for per-user quotas. The value is an integer number of seconds; 86,400 seconds are in one day. -o job-sheets-default=banner -o job-sheets-default=banner,banner Sets the default banner page(s) to use for print jobs. -o name=value Sets a PPD option for the printer. PPD options can be listed using the -l option with the lpoptions(1) command. -o name-default=value Sets a default server-side option for the destination. Any print-time option can be defaulted, e.g., "-o number-up-default=2" to set the default "number-up" option value to 2. -o port-monitor=name Sets the binary communications program to use when printing, "none", "bcp", or "tbcp". The default program is "none". The specified port monitor must be listed in the printer's PPD file. -o printer-error-policy=name Sets the error policy to be used when the printer backend is unable to send the job to the printer. The name must be one of "abort- job", "retry-job", "retry-current-job", or "stop-printer". The default error policy is "stop-printer" for printers and "retry-cur- rent-job" for classes. -o printer-is-shared=true -o printer-is-shared=false Sets the destination to shared/published or unshared/unpublished. Shared/published destinations are publicly announced by the server on the LAN based on the browsing configuration in cupsd.conf, while unshared/unpublished destinations are not announced. The default value is "true". -o printer-op-policy=name Sets the IPP operation policy associated with the destination. The name must be defined in the cupsd.conf in a Policy section. The default operation policy is "default". -R name-default Deletes the named option from printer. -r class Removes the named printer from class. If the resulting class becomes empty it is removed. -u allow:{user|@group}{,user|,@group}* -u deny:{user|@group}{,user|,@group}* -u allow:all -u deny:none Sets user-level access control on a destination. Names starting with "@" are interpreted as UNIX groups. The latter two forms turn user-level access control off. Note: The user 'root' is not granted special access - using "-u allow:foo,bar" will allow users 'foo' and 'bar' to access the printer but NOT 'root'. -v "device-uri" Sets the device-uri attribute of the printer queue. Use the -v option with the lpinfo(8) command to get a list of supported device URIs and schemes. -D "info" Provides a textual description of the destination. -E Enables the destination and accepts jobs; this is the same as running the cupsaccept(8) and cupsenable(8) programs on the destination. -L "location" Provides a textual location of the destination. CONFORMING TO
Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". Also, printer and class names are not case-sensitive. Finally, the CUPS version of lpadmin may ask the user for an access password depending on the printing system configuration. This differs from the System V version which requires the root user to execute this command. NOTES
The CUPS version of lpadmin does not support all of the System V or Solaris printing system configuration options. EXAMPLE
Create an IPP Everywhere print queue: lpadmin -p myprinter -E -v ipp://myprinter.local/ipp/print -m everywhere SEE ALSO
cupsaccept(8), cupsenable(8), lpinfo(8), lpoptions(1), CUPS Online Help (http://localhost:631/help) COPYRIGHT
Copyright (C) 2007-2017 by Apple Inc. 19 March 2018 CUPS lpadmin(8)
All times are GMT -4. The time now is 06:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy