lpadmin help

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers lpadmin help
# 1  
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?


Last edited by andrec; 09-12-2001 at 08:23 PM..
# 2  
Old 09-13-2001
Hammer & Screwdriver

I found it.

I find the following steps working for me to connect to a network printer and I'd like to share it with all of you.

1. lpsystem -t bsd printer-server-name .
(register remote system with the print service)

2. lpadmin -p printer-name -s printer-server-name!printer-name.
(configure the printer/ services)

3. lpadmin -d printer-name.
(set up default printer)

By the way, when I do man lpsystem, the system docs tells me that lpsystem is considered obsolete. I have yet to find another way to do it, other than admintool, however.

Hope this helps.
# 3  
Old 09-13-2001
Yes, it helps greatly. Thanks for following up with your solution so everyone in the community can benefit from each other's hard work.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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:// -m /Library/Printers/PPDs/Contents/Resources/HP\... (3 Replies)
Discussion started by: abk
3 Replies

2. 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

3. 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

4. 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

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. 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

7. 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

8. Solaris

configuring printer using lpadmin

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

9. 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
Login or Register to Ask a Question