Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

**** Need printing help in Solaris 10 zones

145 views
Skip to first unread message

underh20

unread,
Jan 29, 2010, 2:28:01 PM1/29/10
to
Anyone has experience in printing in Solaris 10 zone ?

Our server "atlantis" has one local zone "zoneA" setup. HP jetadmin
is installed and has been running at the global zone and local zone,
namely "atlantis" and "zoneA".

We set up a printer "printer1" in both the global and zoneA. One print
job was sent to the printer in zoneA.

We see the print job appearing in the queue but it never comes out and
the print job will not complete and go away. Is there anyway to find
out what's going on? How can we verify and test printing from the
Solaris 10 zone ?

We plan to add more printers via the jetadmin menu. It would be great
if we can stay with jetadmin but we are open to any suggestion in
Solaris 10 printing provided that they are reliable, no cost and not
difficult to install in global and local zones.

Below are the content/outputs of /etc/printers.conf , /var/spool/lp/
requests, /var/spool/print, /etc/inet/hosts,
"lpstat -t" and "svcs -a | grep print" from both global and zoneA.


Thanks, Bill


=====================================================
<<<< zone -----> zoneA >>>>

# cat /etc/printers.conf

printer1:\
:bsdaddr=zoneA,printer1,Solaris:\
:printer-uri-supported=ipp\://zoneA/printers/printer1:

# ls -lt /var/spool/lp/requests
drwxrwx--- 2 lp lp 512 Jan 29 13:20 localhost
# ls -lt /var/spool/lp/requests/localhost
-rw-rw---- 1 lp lp 41 Jan 29 13:20 41-0
# cat /var/spool/lp/requests/localhost/41-0
printer1-41
0
root
0
184
1264789259
none


# svcs -a | grep print
online Jan_05 svc:/application/cde-printinfo:default
online 13:17:49 svc:/application/print/server:default
online 13:17:49 svc:/application/print/rfc1179:default
maintenance 19:36:39 svc:/application/print/ipp-listener:default


# cat /etc/inet/hosts

::1 localhost # original
127.0.0.1 localhost # original
172.50.224.67 zoneA


# lpstat -t
scheduler is running
no system default destination
device for printer1: /dev/printer1
printer1 accepting requests since September 25, 2009 5:56:51 PM EDT
printer printer1l now printing printer1-41. enabled since September
25, 2009 5:56:51 PM EDT. available.
printer1-41 root 184 Jan 29 13:20


=====================================================
<<<<global -----> atlantis >>>>

# cat /etc/printers.conf

printer1:\
:bsdaddr=atlantis,printer1,Solaris:\
:printer-uri-supported=ipp\://atlantis/printers/printer1:

# ls -lt /var/spool/lp/requests
drwxrwx--- 2 lp lp 512 Jan 29 13:20 localhost
# ls -lt /var/spool/lp/requests/localhost
total 0

# svcs -a | grep print
online Jan_05 svc:/application/cde-printinfo:default
online 13:16:44 svc:/application/print/server:default
online 13:16:44 svc:/application/print/rfc1179:default
online 13:16:44 svc:/application/print/ipp-listener:default

# cat /etc/inet/hosts

:1 localhost
127.0.0.1 localhost
172.50.224.63 atlantis loghost


# lpstat -t
scheduler is running
no system default destination
device for printer1: /dev/printer1
printer1 accepting requests since Fri Jan 29 13:15:01 2010
printer printer1 idle. enabled since Fri Jan 29 13:15:01 2010.
available.

=====================================================

John D Groenveld

unread,
Jan 29, 2010, 4:10:37 PM1/29/10
to
[followup's set to comp.unix.solaris]

In article <42502782-fc6e-49ec...@f17g2000prh.googlegroups.com>,


underh20 <underh20.s...@gmail.com> wrote:
>Our server "atlantis" has one local zone "zoneA" setup. HP jetadmin
>is installed and has been running at the global zone and local zone,
>namely "atlantis" and "zoneA".

Use your global zone as the print server and configure your
local zones to be your print clients:

zoneA# lpadmin -p printer1 -s atlantis
zoneA# lp -d printer1 /usr/sfw/share/ghostscript/8.15/examples/alphabet.ps

John
groe...@acm.org

underh20

unread,
Jan 29, 2010, 5:30:18 PM1/29/10
to
Hello all,

Per John's suggestion below, I did issue the command to
configure our global zone "atlantis" as the print server and configure
our local zone "zoneA" as the print client. Also i issued the command
below to send the postscript file for printing at printer1 :

zoneA# lpadmin -p printer1 -s atlantis
zoneA# lp -d printer1 /usr/sfw/share/ghostscript/8.15/examples/
alphabet.ps

However, the print job is still not coming out "printer1-718" and the
print queue remains. Below are the latest output at the print client
"zoneA" :


# lpstat -t
scheduler is running
no system default destination

system for printer1: atlantis (as lpd://atlantis/printers/printer1#Solaris)
printer1 accepting requests since January 29, 2010 5:14:48 PM EST
printer printer1 disabled since January 29, 2010 5:14:48 PM EST.
available.
printer1: processing
printer1-718 root 184 Jan 29 17:14


Anyone can shed some light as why "printer1-718" still sitting in the
queue and not going away ?

Thanks,

Bill

On Jan 29, 1:10 pm, groen...@cse.psu.edu (John D Groenveld) wrote:
> [followup's set to comp.unix.solaris]
>

> In article <42502782-fc6e-49ec-a1b2-9d88228dc...@f17g2000prh.googlegroups.com>,


>
> underh20  <underh20.scubadiv...@gmail.com> wrote:
> >Our server "atlantis" has one local zone "zoneA" setup.  HP jetadmin
> >is installed and has been running at the global zone and local zone,
> >namely "atlantis" and "zoneA".
>
> Use your global zone as the print server and configure your
> local zones to be your print clients:
>
> zoneA# lpadmin -p printer1 -s atlantis
> zoneA# lp -d printer1 /usr/sfw/share/ghostscript/8.15/examples/alphabet.ps
>
> John

> groenv...@acm.org

John D Groenveld

unread,
Jan 29, 2010, 9:37:53 PM1/29/10
to
In article <f9597837-cafe-4680...@a5g2000prg.googlegroups.com>,

underh20 <underh20.s...@gmail.com> wrote:
>zoneA# lpadmin -p printer1 -s atlantis
>zoneA# lp -d printer1 /usr/sfw/share/ghostscript/8.15/examples/
>alphabet.ps
>
>However, the print job is still not coming out "printer1-718" and the
>print queue remains. Below are the latest output at the print client
>"zoneA" :

Can you reach atlantis 515/tcp from zoneA or another host on
your network?

John
groe...@acm.org

underh20

unread,
Feb 1, 2010, 8:13:55 PM2/1/10
to
Hi John,

Yes, I can reach atlantis via port # 515. Any idea how we can trouble-
shoot further on
this. Below is the output. Thanks, Bill


zoneA# telnet atlantis 515
trying 172.50.224.63
Connected to
Escape character is '^]'.

On Jan 29, 6:37 pm, groen...@cse.psu.edu (John D Groenveld) wrote:
> In article <f9597837-cafe-4680-90f5-8c6505565...@a5g2000prg.googlegroups.com>,


>
> underh20  <underh20.scubadiv...@gmail.com> wrote:
> >zoneA# lpadmin -p printer1 -s atlantis
> >zoneA# lp -d printer1 /usr/sfw/share/ghostscript/8.15/examples/
> >alphabet.ps
>
> >However, the print job is still not coming out "printer1-718" and the
> >print queue remains.  Below are the latest output at the print client
> >"zoneA" :
>
> Can you reach atlantis 515/tcp from zoneA or another host on
> your network?
>
> John

> groenv...@acm.org

John D Groenveld

unread,
Feb 1, 2010, 8:32:33 PM2/1/10
to
In article <522fd10d-3951-473b...@l12g2000prg.googlegroups.com>,

underh20 <underh20.s...@gmail.com> wrote:
>Yes, I can reach atlantis via port # 515. Any idea how we can trouble-
>shoot further on

What's the make and model of your printer?

John
groe...@acm.org

underh20

unread,
Feb 2, 2010, 2:31:19 PM2/2/10
to
John,

It's a HP LaserJet 8150DN printer.

Thanks,

Bill

On Feb 1, 5:32 pm, groen...@cse.psu.edu (John D Groenveld) wrote:
> In article <522fd10d-3951-473b-b355-a723043c0...@l12g2000prg.googlegroups.com>,


>
> underh20  <underh20.scubadiv...@gmail.com> wrote:
> >Yes, I can reach atlantis via port # 515.  Any idea how we can trouble-
> >shoot further on
>
> What's the make and model of your printer?
>
> John

> groenv...@acm.org

John D Groenveld

unread,
Feb 2, 2010, 3:14:21 PM2/2/10
to
In article <aae464a1-943c-4be0...@h9g2000prn.googlegroups.com>,

underh20 <underh20.s...@gmail.com> wrote:
>It's a HP LaserJet 8150DN printer.

On atlantis global zone:
# lpadmin -p hp8150dn -v /dev/null -m netstandard_foomatic \
-n /usr/lib/lp/model/ppd/system/foomatic/HP/HP-LaserJet_8150-hpijs.ppd.gz \
-o dest=HP8150DN_IP_ADDRESS:9100 -o Duplex=DuplexNoTumble \
-o banner=never -T PS -I postscript
# /bin/enable hp8150dn
# /usr/sbin/accept hp8150dn
# lp -d hp8150dn /usr/share/ghostscript/8.64/examples/alphabet.ps

If that works, then in zoneA:
# lpadmin -p printer1 -s atlantis!hp8150dn
# lp -d hp8150dn /usr/share/ghostscript/8.64/examples/alphabet.ps

John
groe...@acm.org

underh20

unread,
Feb 4, 2010, 1:50:56 PM2/4/10
to
Jon,

We were able to follow your procedure and created the printer in the
global and local zone.
However, our mgnt just informed us the need to switch to another model
printer with new name.
How does one remove this printer completely in global and local
zone ? We'll re-create it
using the procedure afterwards.


# lpstat -t
scheduler is running
no system default destination

system for printer1: zoneA (as ipp://atlantis/printers/printer1)
printer1 accepting requests since Wed Feb 03 00:58:33 2010
printer printer1 idle. enabled since Wed Feb 03 00:58:33 2010.
available.


Thanks,

Bill

On Feb 2, 12:14 pm, groen...@cse.psu.edu (John D Groenveld) wrote:
> In article <aae464a1-943c-4be0-a6d2-a676647c4...@h9g2000prn.googlegroups.com>,


>
> underh20  <underh20.scubadiv...@gmail.com> wrote:
> >It's a HP LaserJet 8150DN printer.
>
> On atlantis global zone:
> # lpadmin -p hp8150dn -v /dev/null -m netstandard_foomatic \
> -n /usr/lib/lp/model/ppd/system/foomatic/HP/HP-LaserJet_8150-hpijs.ppd.gz \
> -o dest=HP8150DN_IP_ADDRESS:9100 -o Duplex=DuplexNoTumble \
> -o banner=never -T PS -I postscript
> # /bin/enable hp8150dn
> # /usr/sbin/accept hp8150dn
> # lp -d hp8150dn /usr/share/ghostscript/8.64/examples/alphabet.ps
>
> If that works, then in zoneA:
> # lpadmin -p printer1 -s atlantis!hp8150dn
> # lp -d hp8150dn /usr/share/ghostscript/8.64/examples/alphabet.ps
>
> John

> groenv...@acm.org

John D Groenveld

unread,
Feb 4, 2010, 2:26:53 PM2/4/10
to
In article <2fc64dca-4de2-47b1...@t17g2000prg.googlegroups.com>,

underh20 <underh20.s...@gmail.com> wrote:
>However, our mgnt just informed us the need to switch to another model
>printer with new name.

What's the new make and model?

>How does one remove this printer completely in global and local
>zone ? We'll re-create it

RTFM lpadmin(1M)
Removing a Printer Destination
The -x dest option removes the destination dest (a printer
or a class), from the LP print service. If dest is a printer
and is the only member of a class, then the class is
deleted, too. If dest is all, all printers and classes are
removed. If there are no remaining local printers and the
scheduler is still running, the scheduler is shut down.
# man -s 1m lpadmin
# lpadmin -x hp8150dn

John
groe...@acm.org

0 new messages