07-04-2012
Please post what Operating System and version you have and what Shell you use.
First reaction would be to use lpadmin -xdest to delete the previous printer.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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... (2 Replies)
Discussion started by: andrec
2 Replies
2. UNIX for Dummies Questions & Answers
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
3. Solaris
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
4. UNIX for Dummies Questions & Answers
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. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
6. Shell Programming and Scripting
Hi all,
I have a file resp_cde.ats which has values as:-
APPDIR=C:\Program Files\Cogny\cert
PUBSDIR=C:\Program Files\Cognoy\cert\documentation
TOURDIR=C:\Program Files\Cognoy\cert\tour
DATADIR=C:\Program Files\Cognoy\cert\data
Now I use the grep command in a shell script:-
x=`grep... (2 Replies)
Discussion started by: vikasrout
2 Replies
7. Shell Programming and Scripting
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
8. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
9. Solaris
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
LEARN ABOUT MOJAVE
lpoptions
lpoptions(1) Apple Inc. lpoptions(1)
NAME
lpoptions - display or set printer options and defaults
SYNOPSIS
lpoptions [ -E ] [ -h server[:port] ] -d destination[/instance] [ -l ]
lpoptions [ -E ] [ -h server[:port] ] [ -p destination[/instance] ] -o option[=value] ...
lpoptions [ -E ] [ -h server[:port] ] [ -p destination[/instance] ] -r option
lpoptions [ -E ] [ -h server[:port] ] -x destination[/instance]
DESCRIPTION
lpoptions displays or sets printer options and defaults. If no printer is specified using the -p option, the default printer is used as
described in lp(1).
If no -l, -o, or -r options are specified, the current options are reported on the standard output.
Options set with the lpoptions command are used by the lp(1) and lpr(1) commands when submitting jobs.
When run by the root user, lpoptions gets and sets default options and instances for all users in the /etc/cups/lpoptions file. Otherwise,
the per-user defaults are managed in the ~/.cups/lpoptions file.
OPTIONS
lpoptions supports the following options:
-E Enables encryption when communicating with the CUPS server.
-d destination[/instance]
Sets the user default printer to destination. If instance is supplied then that particular instance is used. This option overrides
the system default printer for the current user.
-h server[:port]
Uses an alternate server.
-l Lists the printer specific options and their current settings.
-o option[=value]
Specifies a new option for the named destination.
-p destination[/instance]
Sets the destination and instance, if specified, for any options that follow. If the named instance does not exist then it is cre-
ated. Destinations can only be created using the lpadmin(8) program.
-r option
Removes the specified option from the named destination.
-x destination[/instance]
Removes the options for the named destination and instance, if specified. If the named instance does not exist then this does noth-
ing. Destinations can only be removed using the lpadmin(8) command.
FILES
~/.cups/lpoptions - user defaults and instances created by non-root users.
/etc/cups/lpoptions - system-wide defaults and instances created by the root user.
CONFORMING TO
The lpoptions command is unique to CUPS.
SEE ALSO
cancel(1), lp(1), lpadmin(8), lpr(1), lprm(1), CUPS Online Help (http://localhost:631/help)
COPYRIGHT
Copyright (C) 2007-2018 by Apple Inc.
10 April 2018 CUPS lpoptions(1)