Add printer with IP address with lpadmin


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Add printer with IP address with lpadmin
# 1  
Old 01-06-2006
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 the existing one seems to be controlled that way since lpstat -t shows me a system name.
Smilie
So ...
Any hints?

Tnx in advance!
# 2  
Old 01-06-2006
Take a look at Solaris printer installation - it should help.
# 3  
Old 01-07-2006
Network printer

Quote:
Originally Posted by nulnul7
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 the existing one seems to be controlled that way since lpstat -t shows me a system name.
Smilie
So ...
Any hints?

Tnx in advance!
Hi,

Nulnul7,

actually u need to confirm if the printer is confogured on an ip address directly or via an printserver.

If it is a direct printer assigned to an ip address first try to ping that ip address, if ur able to ping that ip address then add it to system by
lpsystem -t bsd Psname (Psname : Print server name or the name
mapped to the ip address in /etc/hosts)
After that ckeck its status by

lpsystem -l
then shut the print scheduler bu lpshut or /usr/lib/lpshut
Then add the printer to the system by

lpadmin -p Printer name -s Psname !Port No ( if using print server )

OR

lpadmin -p printer name -s ipaddress
then enable the print scheduler /usr/lib/lpsched
then enable and accept the printer by

enable printername
accept printername

This should solve your problem.

Thanks,
Tausif Siddiqui
# 4  
Old 01-09-2006
Hi again and thanks for your help.

Ok, maybe I should have done some more searching before posting but unfortunately, we're always in lack of time.

Well, I don't know really why (the printer seems to be considered as remote) but it works fine now, Tausif. The day I will retire, I'll have a look on the logic behind this all ... Smilie

Thank you all!

Peter Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Printer (lpadmin) error - blank pages PS/PCL

Help! I have to solve an urgent problem! I have a Solaris 10 server, where I created a line of printing with the command # /usr/sbin/lpadmin -p IL_Printer -s pv24002 -v /dev/null -m netstandard_foomatic -A write -n /usr/lib/lp/model/ppd/system/foomatic/Canon/cnl66e1.ppd.gz -o... (0 Replies)
Discussion started by: poyato
0 Replies

2. UNIX for Advanced & Expert Users

Find IP Address of a Printer Q in Hp-Unix

Could anyone help me to identify the IP address of a printer queue with its printer queue name information . (1 Reply)
Discussion started by: lenin1985
1 Replies

3. HP-UX

how to find the IP address of a printer

I'm trying to find the IP address of a print queue. I tried this, but nada. cat /etc/hosts | lp -d lp01 Looked in the hosts file but it's not there (2 Replies)
Discussion started by: abNORMal
2 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. UNIX for Dummies Questions & Answers

add printer

Helooo I am trying to add a printer in sco unix but i found only serial ports how to define parallel ports? Regards (1 Reply)
Discussion started by: sak900354
1 Replies

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

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

8. UNIX for Dummies Questions & Answers

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... (2 Replies)
Discussion started by: andrec
2 Replies
Login or Register to Ask a Question