Operating System - HP-UX
1833758 Members
2333 Online
110063 Solutions
New Discussion

Problem printing in network printer

 
SOLVED
Go to solution

Problem printing in network printer

Hi
I have configured a network printer ( EPSON Dot matrix printer, connected to a print server) through SAM. While giving a print command, I could not get any print out whereas server is sending the data to printer ( as per log).

For testing purpose I have configured a HP network printer in same way and i got the result.
Could anybody helpme in this regards

thanks in advance
Regards
Prasanta
6 REPLIES 6
Steve Steel
Honored Contributor

Re: Problem printing in network printer

Hi


What sort of print server- Network card

What script did you choose - I hope dumb

Did you do it as a network or remote printer


If network use hppi to send a test page

Steve Steel

If you want truly to understand something, try to change it. (Kurt Lewin)

Re: Problem printing in network printer

Hi steve,
Thanx for reply.

Yes this is a Dlink DP-301P+ printersever ( network card)
I have choosed the dumbplot script. and it has been configured as network printer only.

It printed only once. but after that it is not. even I deleted that and added once again.

Thanx and regards
Prasanta KB
Bill Hassell
Honored Contributor
Solution

Re: Problem printing in network printer

There is a big terminology problem with network printer versus remote printer. In HP-UX (specifically SAM), a network printer refers only to HP proprietary LAN cards for printers, while a remote printer refers to a printer on another server such as Linux, NT, WinXp, or has a non-HP network connection.

Remove the Epson printer and add it (in SAM) as a remote printer. But before you start, contact the manufacturer of the LAN card to get the name of the printer inside the LAN card. SAM will need this to configure the printer. Also note that you do not have to give the IP address of the remote printer a hostname -- just use the IP address.

NOTE: Unix files are sent unchanged to a remote printer so if your Epson printer does not have an option to convert LF intgo CR+LF, you'll need to filter plain ASCII files with ux2dos before printing. Otherwise, you'll get a stairstep printout across the paper:

ux2dos some_file | lp -dmyprinter

If your Epson printer is connected to an HP External LAN box, be sure to use the selftest button to make sure the box can print to the printer. If not, it won't work when you send data over the LAN either. Hold the test button down until the Activity light is ON and the Status light is OFF (ASCII status printout). Here is a summary:

TEXT Activity Status
--------------------------
PCL (default) OFF OFF (press for less than 1 sec)

ASCII OFF ON

Postscript ON OFF

HP-GL2 ON ON (plotter/large format)


Bill Hassell, sysadmin
Alzhy
Honored Contributor

Re: Problem printing in network printer

Try (assuming the printer danme is epson):

Delete the printer:

lpshut
lpadmin -xepson


Add the printer:

/usr/sbin/lpadmin -pepson -ormepson.dom.com -orplp -mrmodel -v/dev/null -ocmrcmodel -osmrs
model
lpsched


epson.dom.com - you may substitute with the Printer's/Print Server's IP address.


Now try printing.. a text file:


cat /var/adm/syslog/syslog.log|ux2dos|lp -depson


Note: The ux2dos command above is needed to avoid the stair-casing effect for text printouts.


Hakuna Matata.

Re: Problem printing in network printer

Thanx Bill and nelson,
As per your suggestion, I have configured as Remote printer and it is printing fine. I have not yet checked through application. May be tomorrow I will get that.
Let's hope for the best. Thanx a lot for your valuable suggestions.

But still I have not convienced why it is not printing if I configure as network printer. As I have done the same for all other printers ( almost 60 nos of printers) and it is printing fine.

Anyway Thanx for your inputs. If any further issue, I may get back to you.

Regards
Prasanta

Re: Problem printing in network printer

Could you please tell me the location where I can get the print logs. I have configured as Remote printer.

Thanx and regards
Prasanta