lpstat/libpapi.so doesn't attempt to contact a local print service
unless it runs across printers(4)/printers.conf(4) configuration that
tells it there is a local queue. I'm not sure what's going on here,
turn on lpr.debug in the syslog and send the info.
-Norm
From my Nevada build 63 laptop to a Nevada build 63 print server (snappy)
Script started on Thu May 03 15:39:57 2007
solaris-devx% svcs '*print*'
STATE STIME FMRI
disabled 4:01:47 svc:/application/print/ipp-listener:default
disabled 4:02:03 svc:/application/print/rfc1179:default
disabled 15:34:28 svc:/application/print/server:default
online 4:01:57 svc:/application/print/ppd-cache-update:default
online 4:02:16 svc:/application/cde-printinfo:default
solaris-devx% cat ${HOME}/.printers
lj snappy:LaserJet_4650
solaris-devx% cat /etc/printers.conf
#
# If you hand edit this file, comments and structure may change.
# The preferred method of modifying this file is through the use of
# lpset(1M)
#
solaris-devx% ssh snappy "svcs '*print*'"
STATE STIME FMRI
disabled 12:07:50 svc:/application/print/ipp-listener:default
online 12:08:03 svc:/application/print/ppd-cache-update:default
online 12:08:12 svc:/application/print/queue-detect:cups-browse
online 12:08:16 svc:/application/print/server:default
online 12:08:20 svc:/application/cde-printinfo:default
online 14:37:36 svc:/application/print/rfc1179:default
solaris-devx% lpstat -p
printer lj idle. enabled since Thu May 03 15:41:19 2007. available.
solaris-devx% exit
script done on Thu May 03 15:41:21 2007
Ghee Teo wrote:
> Hi,
>
> I posted this question here instead of presto. I think this is more generic.
> I have in my $HOME/.printers, the following lines
>
> _all pdub0407dbl,pdub0407
> pdub0407dbl dbl-nw.Ireland:pdub0407dbl
> pdub0407 dbl-nw.Ireland:pdub0407
>
> if I have
> disabled 16:50:08 svc:/application/print/server:default
>
> lpstat -p gives me nothing.
>
> If I have,
> online 16:51:16 svc:/application/print/server:default
>
> lpstat -p gives me
> printer pdub0407dbl idle. enabled since Thu May 03 16:51:24 2007. available.
> printer pdub0407 idle. enabled since Thu May 03 16:51:24 2007. available.
>
> My /etc/printers.conf is empty. and
> # grep printers /etc/nsswitch.conf
> printers: user files
>
> That's means I can't see the print queue on the remote server,
> dbl-nw.ireland
> even though I have defined a alias in $HOME/.printers.
>
> In our previous discussion, the smf service
> svc:/application/print/server:default
>
> is suppose to be disabled by default which effectively stop a user to access
> to
> printers on remote servers unless the sys admin turn on this service.
>
> I think this behaviour is expected, can you shed some light on this?
>
> For example, evince would not see any of remote print queue until I started
> adding a local queue which does make lpsched to run and the remote queue is
> then available by accident.
>
>
> -Ghee
>
>
> This message posted from opensolaris.org
> _______________________________________________
> printing-discuss mailing list
> printing-discuss at opensolaris.org
>