Printing Issue On Solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris Printing Issue On Solaris 10
# 1  
Old 05-27-2010
Printing Issue On Solaris 10

Synopsis:
Solaris 10 SunFire v880 with two networked HP laser printers set up through HPPI. Test page will print through HPPI but can't print to them us the lp command. When using the lp command it just hangs and causes the Samba process to fail.

We have a SunFire v880 running Solaris 10.

Code:
$$ cat /etc/release
                      Solaris 10 10/08 s10s_u6wos_07b SPARC
           Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 27 October 2008
$$

I have added the two printers to the /etc/hosts file.

Code:
xxx.xxx.x.22    hp_lj2100               # Laserjet 2100 network printer
xxx.xxx.x.23    hp_clj4550              # Color Laserjet 4550 network printer

I can ping both printers

Code:
$$ ping hp_lj2100
hp_lj2100 is alive
$$ 
$$ ping hp_clj4550
hp_clj4550 is alive
$$

HPPI is installed and running on this machine. These two printers have been set up using HPPI.

The HPPI version is ...

Code:
Please enter a selection (q - quit): 1

          ****************************************************************
          *****]         ****      
          **** ]          ****     JetDirect Printer Installer for UNIX
          **** ]]]]] ]]]]] ****    Version E.10.34
          **** ]   ] ]   ] ****
          **** ]   ] ]]]]] ****    Spooler Administration
          *****      ]     ****
          ******     ]    ****     User: (root)    OS: (SunOS 5.10)
               I N V E N T
          ****************************************************************

          Spooler:
              1) Add printer to local spooler
              2) Delete printer from local spooler
              3) Modify existing spooler queue(s) 
              4) Install New Model Script
              5) Remove Model Script

The first printer was set up as follows...

Code:
root@clyde # hppi

         ****************************************************************
         *****]         ****      
         **** ]          ****     JetDirect Printer Installer for UNIX
         **** ]]]]] ]]]]] ****    Version E.10.34
         **** ]   ] ]   ] ****
         **** ]   ] ]]]]] ****    M A I N     M E N U
         *****      ]     ****
         ******     ]    ****     User: (root)    OS: (SunOS 5.10)
              I N V E N T
         ****************************************************************

         1) Spooler Administration (super-user only)


         2) JetDirect Configuration (super-user only)
            - TCP/IP configurable parameters

         3) Diagnostics:
            - diagnose printing problems


                   ?) Help         q) Quit
        
Please enter a selection (q - quit): 1

          ****************************************************************
          *****]         ****      
          **** ]          ****     JetDirect Printer Installer for UNIX
          **** ]]]]] ]]]]] ****    Version E.10.34
          **** ]   ] ]   ] ****
          **** ]   ] ]]]]] ****    Spooler Administration
          *****      ]     ****
          ******     ]    ****     User: (root)    OS: (SunOS 5.10)
               I N V E N T
          ****************************************************************

          Spooler:
              1) Add printer to local spooler
              2) Delete printer from local spooler
              3) Modify existing spooler queue(s) 
              4) Install New Model Script
              5) Remove Model Script
  
                     ?) Help            q) Quit
        
Please enter selection: 1

Enter the network printer name or IP address (q - quit): hp_lj2100

    The following is a list of suggested parameter values for this queue. You
    may change any settings by selecting the corresponding non-zero numbers.   
    The values will be used to configure this queue when '0' is selected.  
    To abort the operation, press 'q'.
    

Configurable Parameters:            Current Settings
-----------------------             ----------------
   1) Lp destination (queue) name     [hp_lj2100_1]
   2) Status log                      [(No log)]
   3) Queue class                     [(not assigned)]
   4) Default queue                   [NO]
   5) Additional printer configuration...

Select an item for change, or '0' to configure (q-quit): 1

Currently used names:
---------------------
(no printer has been configured)

Enter the lp destination name (default=hp_lj2100_1, q - quit): laser-1


    The following is a list of suggested parameter values for this queue. You
    may change any settings by selecting the corresponding non-zero numbers.   
    The values will be used to configure this queue when '0' is selected.  
    To abort the operation, press 'q'.
    

Configurable Parameters:            Current Settings
-----------------------             ----------------
   1) Lp destination (queue) name     [laser-1]
   2) Status log                      [(No log)]
   3) Queue class                     [(not assigned)]
   4) Default queue                   [NO]
   5) Additional printer configuration...

Select an item for change, or '0' to configure (q-quit): 4


    The following is a list of suggested parameter values for this queue. You
    may change any settings by selecting the corresponding non-zero numbers.   
    The values will be used to configure this queue when '0' is selected.  
    To abort the operation, press 'q'.
    

Configurable Parameters:            Current Settings
-----------------------             ----------------
   1) Lp destination (queue) name     [laser-1]
   2) Status log                      [(No log)]
   3) Queue class                     [(not assigned)]
   4) Default queue                   [YES] 
   5) Additional printer configuration...

Select an item for change, or '0' to configure (q-quit): 0

Ready to configure laser-1.
OK to continue? (y/n/q, default=y) y

......
Finished adding "laser-1" to the spooler.
Press the return key to continue ... 

          ****************************************************************
          *****]         ****      
          **** ]          ****     JetDirect Printer Installer for UNIX
          **** ]]]]] ]]]]] ****    Version E.10.34
          **** ]   ] ]   ] ****
          **** ]   ] ]]]]] ****    Spooler Administration
          *****      ]     ****
          ******     ]    ****     User: (root)    OS: (SunOS 5.10)
               I N V E N T
          ****************************************************************

          Spooler:
              1) Add printer to local spooler
              2) Delete printer from local spooler
              3) Modify existing spooler queue(s) 
              4) Install New Model Script
              5) Remove Model Script
  
                     ?) Help            q) Quit
        
Please enter selection: q

         ****************************************************************
         *****]         ****      
         **** ]          ****     JetDirect Printer Installer for UNIX
         **** ]]]]] ]]]]] ****    Version E.10.34
         **** ]   ] ]   ] ****
         **** ]   ] ]]]]] ****    M A I N     M E N U
         *****      ]     ****
         ******     ]    ****     User: (root)    OS: (SunOS 5.10)
              I N V E N T
         ****************************************************************

         1) Spooler Administration (super-user only)


         2) JetDirect Configuration (super-user only)
            - TCP/IP configurable parameters

         3) Diagnostics:
            - diagnose printing problems


                   ?) Help         q) Quit
        
Please enter a selection (q - quit):

The diagnostics check shows that the printer is visible ...

Code:
         ****************************************************************
         *****]         ****      
         **** ]          ****     JetDirect Printer Installer for UNIX
         **** ]]]]] ]]]]] ****    Version E.10.34
         **** ]   ] ]   ] ****
         **** ]   ] ]]]]] ****    M A I N     M E N U
         *****      ]     ****
         ******     ]    ****     User: (root)    OS: (SunOS 5.10)
              I N V E N T
         ****************************************************************

         1) Spooler Administration (super-user only)


         2) JetDirect Configuration (super-user only)
            - TCP/IP configurable parameters

         3) Diagnostics:
            - diagnose printing problems


                   ?) Help         q) Quit
        
Please enter a selection (q - quit): 3
 
         
     ****************************************************************
     *****]         ****    
     **** ]          ****     JetDirect Printer Installer for UNIX
     **** ]]]]] ]]]]] ****    Version E.10.34
     **** ]   ] ]   ] ****
     **** ]   ] ]]]]] ****    D I A G N O S T I C S   M E N U
     *****      ]     ****
     ******     ]    ****     User: (root)     OS: (SunOS 5.10)
          I N V E N T
     ****************************************************************

     System:
        1) Verify installation of software
        2) Examine spooler operations 

     Printer/Network:
        3) Test network printer's accessibility
        4) Print a test page to printer
        5) View HP JetDirect interface's current configuration 
        6) Check BOOTP and TFTP operations (super-user only)
        7) Show HP JetDirect interface's protocol settings
        8) Display operational and protocol statistics 
        9) Remove BOOTP subsystem (super-user only)
       10) Enable/Disable Realtime Model Script Update (super-user only)

             ?) Help    q) Quit
       
Please enter a selection: 3           

Enter the network printer name or IP address (q - quit): hp_lj2100


ACTION: check if it's an HP network printer, and if the local
host has access to it....

RESULT:
hp_lj2100 is a network printer

clyde is allowed access to hp_lj2100

Press the return key to continue ...

I can also successfully print a test page through HPPI ...

Code:
     ****************************************************************
     *****]         ****    
     **** ]          ****     JetDirect Printer Installer for UNIX
     **** ]]]]] ]]]]] ****    Version E.10.34
     **** ]   ] ]   ] ****
     **** ]   ] ]]]]] ****    D I A G N O S T I C S   M E N U
     *****      ]     ****
     ******     ]    ****     User: (root)     OS: (SunOS 5.10)
          I N V E N T
     ****************************************************************

     System:
        1) Verify installation of software
        2) Examine spooler operations 

     Printer/Network:
        3) Test network printer's accessibility
        4) Print a test page to printer
        5) View HP JetDirect interface's current configuration 
        6) Check BOOTP and TFTP operations (super-user only)
        7) Show HP JetDirect interface's protocol settings
        8) Display operational and protocol statistics 
        9) Remove BOOTP subsystem (super-user only)
       10) Enable/Disable Realtime Model Script Update (super-user only)

             ?) Help    q) Quit
       
Please enter a selection: 4


Enter the network printer name or IP address 
(default=hp_lj2100, q - quit): hp_lj2100

    This test is using test files to demonstrate that data bytes can be
    transmitted across the HP JetDirect interface setup.  As long as a
    few characters print out, the test is successful.
    The printer must be ready, i.e. online and not printing anything.
    The following types of test files can be sent to the printer:

        1) text file       (if printer is in PCL or AUTO mode)
        2) PostScript file (if printer is in PS or AUTO mode)
        3) HP-GL/2 file    (if it is a HPGL/2 plotter)

        4) Color PCL file        (if printer is in PCL or AUTO mode)
        5) Color PostScript file (if printer is in PS or AUTO mode)
        6) Color HP-GL/2 file    (if it is a HPGL/2 plotter)

        7) User supplied file

    
Which one should be transmitted? (1/2/3/4/5/6/7/q, default=1) 1

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

    Sending a test file to hp_lj2100 ...
    

    Result: The file has been successfully sent to hp_lj2100. Check output!
    
===============================================================

Press the return key to continue  ...

I can see the printer on Unix ..

Code:
root@clyde # lpstat -lp laser-1
printer laser-1 is idle. enabled since 26 May 2010 16:47:37 IST. available.
        Form mounted: 
        Content types: text/plain
        Description:
        Printer types: unknown
        Connection: direct
        Interface: /usr/lib/lp/model/hpnpl/net_lj4x
        On fault: mail root
        After fault: continue
        Users allowed:
                (all)
        Forms allowed:
                (none)
        Media supported:
                (none)
        Banner required
        Character sets:
                (none)
        Default pitch:
        Default page size:
        Default port setting:
        Options: 
root@clyde #

But if I try to print to it using a basic lp command it just hangs. It also causes Samba to fail. To get Samba back working again I have to delete the entries out of /etc/printers.conf

I've been wrestling with this for a while now. Any ideas would be of great benefit.

Ken.


*** Update ***

I also tried adding the printer using the lpadmin command as follows..

Code:
lpadmin -p lj_2100 -o protocol=bds,nobanner,dest=XXX.X.X.22 -T dumb -I any -v /dev/null -i /usr/spool/lp/model/netstandard -A none

Got no errors ...

Code:
enable lj_2100
accept lj_2100

But a simple print command hangs

Code:
lp -d lj_2100 /etc/hosts

This also causes the Samba service to fail. This is due to the Samba service invoking a /usr/bin/lpstat -v

The problem is obviously related to the printer setup but I am at a loss as to what or why.

In order to get Samab to work again I've been removing the entries from /etc/printers.conf and restarting Samba

What am I doing wrong here. Surely adding a network printer to Solaris 10 souldn't be this difficult??

I knew I should have been a plumber!

Ken.

** Update **

Seriosuly I'm going demented here.

I tried adding the printer using the printmgr this time.

I then enabled the services as follows

Code:
root@clyde # pfexec svcadm enable svc:/application/print/server:default
root@clyde # 
root@clyde # 
root@clyde # pfexec svcadm enable svc:/application/print/ipp-listener:default
root@clyde # 
root@clyde # 
root@clyde # 
root@clyde # pfexec svcadm enable svc:/application/print/rfc1179:default
root@clyde # 
root@clyde # 
root@clyde # 
root@clyde # svcs -a | grep print
online         May_24   svc:/application/print/ppd-cache-update:default
online         May_24   svc:/application/cde-printinfo:default
online         11:39:52 svc:/application/print/server:default
online         11:39:52 svc:/application/print/ipp-listener:default
online         11:39:59 svc:/application/print/rfc1179:default
root@clyde # 
root@clyde # 
root@clyde # svcs -a | grep print
online         May_24   svc:/application/print/ppd-cache-update:default
online         May_24   svc:/application/cde-printinfo:default
online         11:39:52 svc:/application/print/server:default
online         11:39:52 svc:/application/print/ipp-listener:default
online         11:39:59 svc:/application/print/rfc1179:default

I then ran an lpstat -t command which was very slow but did eventually come back ....

Code:
root@clyde # 
root@clyde # 
root@clyde # lpstat -t
scheduler is running
system default printer: laserJet1
device for laserJet1: /dev/null
laserJet1 accepting requests since 27 May 2010 11:34:00 IST
printer laserJet1 is idle. enabled since 27 May 2010 11:33:59 IST. available.
root@clyde # 
root@clyde #

I then issued a simple print command which was very slow but eventually cam back with an error?

Code:
root@clyde # lp -d laserJet1 /etc/hosts
laserJet1: failed to allocate 1 file(s) for request: queue disabled
root@clyde # 
root@clyde # lpstat -t
scheduler is running
system default printer: laserJet1
device for laserJet1: /dev/null
laserJet1 accepting requests since 27 May 2010 11:34:00 IST
printer laserJet1 is idle. enabled since 27 May 2010 11:33:59 IST. available.
root@clyde #

Any ideas or should I just pick the machine up and fire it out the window?

Ken.

---------- Post updated 05-27-10 at 09:10 AM ---------- Previous update was 05-26-10 at 10:49 AM ----------

I've been doing some more digging and I've found these errors in the /var/lp/logs/lpsched file.

Code:
05/27 15:05:49: printer fault. type: ??, status: 14
msg: (exec exit fault)
05/27 15:07:25: printer fault. type: ??, status: 14
msg: (exec exit fault)
05/27 15:08:30: printer fault. type: ??, status: 14
msg: (exec exit fault)

The scheduler is running ...

Code:
root@clyde #               lpstat -r
scheduler is running

The lpstat is showing the print types as unknown but in printmgr it is clearly set up as HP.

Code:
root@clyde # lpstat -lp laserJet1
printer laserJet1 is idle. enabled since 27 May 2010 11:33:59 IST. available.
        Form mounted: 
        Content types: application/postscript
        Description: Laser Jst 2100
        Printer types: unknown
        Connection: direct
        Interface: /usr/lib/lp/model/netstandard_foomatic
        PPD: /usr/lib/lp/model/ppd/system/foomatic/HP/HP-LaserJet_2100-pxlmono.ppd.gz
        On fault: write root
        After fault: continue
        Users allowed:
                (all)
        Forms allowed:
                (none)
        Media supported:
                Letter
                A4
                11x17
                A3
                A5
                B5
                Env10
                EnvC5
                EnvDL
                EnvISOB5
                EnvMonarch
                Executive
                Legal
        Banner page never printed
        Character sets:
                (none)
        Default pitch:
        Default page size:
        Default port setting:
        Options: dest=XX.XXX.X.22, protocol=bsd
root@clyde #

Any ideas what the errors mean ....

Ken.

Last edited by KenLynch; 05-27-2010 at 11:16 AM..
# 2  
Old 05-30-2010
hi, have you tried printing WITHOUT samba running? that is just do a:

ca /etc/release | lp -d hp_lj2100

and see if you get it printed.

if configured mine using:

lpadmin -p $1 -v /dev/null -m netstandard -o dest=$2 -o banner=never -A mail

where $1 is the printer name and $2 is the ip address of the printer.

hth
This User Gave Thanks to pinoy43v3r For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Printing issue with AIX 7.2

Hello group. I recently upgraded my company's server from an IBM P520 w/AIX 5.1 to a new Power 8 w/AIX 7.2. The old server used serial printing and we turned off the print queing feature. We did this because we have many custom forms and did not want a que/spooling situation where a print job... (1 Reply)
Discussion started by: Len Davis
1 Replies

2. Solaris

Solaris Printing Issue

Message from lp on sunnyD (???) ... Subject: Problem with printer (name) The printer (name) has stopped printing for the reason given below. Fix the problem and bring the printer back on line to resume printing. The reason(s) it stopped (multiple reasons indicate repeated attempts): ... (2 Replies)
Discussion started by: sydalackk
2 Replies

3. Solaris

Network Printing issue

I have network printer registerd in solaris environment. When I issue print, it prints banner page. The issue printer is registerd in Print server which is running on Linux environment. So when I issue print in Print server, it doesn't print banner page as banner settings are made to turn off It... (6 Replies)
Discussion started by: Sunil Koya
6 Replies

4. AIX

AIX Printer Issue: Blank Page Printing.

We have configured Network printers in AIX 6.1. We are facing a Weird problem in Printing. While printing the user is getting a blank page after 2 pages. Please let us know the cause of this issue and ways to rectify it. If this is problem with banner/feeds how to view the default banner... (1 Reply)
Discussion started by: sugan_p
1 Replies

5. UNIX for Advanced & Expert Users

Unix Printing issue

I am currently struggling with attempting to print text files on a SCO 5.0.7 server to a network printer. The printer is an Hp LJ P2015dn There is an existing printer set up, and when I do a: lp -d myprinter /etc/hosts the first line of the hosts file is all that prints. I even attempted... (5 Replies)
Discussion started by: asamon
5 Replies

6. Shell Programming and Scripting

date printing issue

Hello folks Below command shows current date echo `date +%Y-%m-%d` 2010-04-21 How to show one day old date, i want see like 2010-04-20 (1 Reply)
Discussion started by: learnbash
1 Replies

7. SCO

Local Printing Issue in SCO Unix OS 5.0.5

Folks, Have a SCO OpenServer 5.0.5 legacy box on site that has run our legacy ERP system for about 15 years now. Primarily uses an Okidata 321 ML Turbo line printer (defined as 'printer') attached to the system's parrel port at /dev/lp0. System primarily operates as a terminal server with... (2 Replies)
Discussion started by: SystemsAdminAS
2 Replies

8. Shell Programming and Scripting

line feed printing issue

I am have an issue with the carrige or line feed chars showing up on info converted to a pdf file from a Orcale tool. Any direction would be appericated. ex. John doe 12435 1 232344 1 Jane doe 12435 1 424343 1 when should be like this John doe... (1 Reply)
Discussion started by: sherrod6970
1 Replies

9. Solaris

Printing multiple problem issue

Hi, unable to stop hp 4000series (4250N) printer from printing multiple copies when a single print request is made using simple "lp" command from Solaris OS 2.8. Any idea or solution are all welcome. Thank you. Cheers Dunstan (4 Replies)
Discussion started by: simka
4 Replies

10. UNIX for Dummies Questions & Answers

Printing Issue

I have a printing issue I need some help with. I have a printer that will advance a sheet of paper prior to printing a print job. This is not a banner page, it's just a blank page. The O/S is AIX. I know that in SCO and Other Unix's there are printer interface files that more or less tell the... (1 Reply)
Discussion started by: Docboyeee
1 Replies
Login or Register to Ask a Question