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