Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing to a network printer from Unix

Status
Not open for further replies.

vaks

Programmer
Aug 25, 2003
7
AU
I have recently added a printer on the network. I can ping it and print from any windows workstation. I added the printer using scoadmin. However I am lost as to where I set the ip address.

The printer is Lexmark T522n.

Can awayone shed a little light on the subject..

Thank you
 
Put the IP address in /etc/hosts. What sort of printer is it? HPLaserjet?
 
Hi Wonoboodoo,

The IP address is in /etc/hosts and I can ping the printer from a prompt either by name or by number. The Printer is A Lexmark T522 lazer. I'm not sure if it is HPLaserjet

My samba printers are ok as they are all attached to PC's. This printer is not attached to a workstation and I am not sure where I map it or how sco redirects the output to an IP address.

Any information would be appreciated

George
 
You have to know if the PrintServer embedded in your network printer supports LPR/LPD protocol, and then the name of the job queue.
Next step is to create remote printer with scoadmin:
Host=Name of the printer in /etc/hosts
Printer=Name of the queue
You have to uncheck the Use extending protocol option

Hope This Help
PH.
 
on the lexmark t520n series you can query the printer with a web browser.

Select the reports button on the left side, then select print server setup page.

This will give you all the supported protocols and settings that are currently active on the printer.

In the /etc/printcap file make sure that the ex option is not specified for this printer.
 
I have 3 SCO servers with multiple Lexmark network printers installed on them. The only way I have been able to make them work reliably is to configure them with the SCO 'rlpconf' command. Basically rlpconf does what PHV said, but interactively so you don't have to create the files. HP printers work much better with SCO than Lexmark, but when you have to print to a Lexmark...
Post again if you need more help.
 
Thanks fellas. As all you guys have done this before it sounds pretty straight forward. I need a little more when it comes to step by step configurations.
In scoadmin I highlight the printer in question "Lex522"
I go to printer/Add remote/ Unix
At Host I tab to select
At Printer I tab to select and as SCO is retreiving printer data from "Lex522", It failed to retrieve list of local printers and their descriptions.

All other printers are attached to Windows workstations and mapping them in Unix is done via /usr/spoool/lp/remote
where the entry to redirect the output is
manage: /usr/local/samba/bin/smbclient \\bob\manage -N -P

Can I use an entry in /usr/spool/lp/remote to redirect
Lex522: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
and point to the printer on the network

Thanks in Advance

George
 
I suppose what I am really trying to say is.

In windows to print to a network printer you simply create a port.

IP_10.9.9.222 standard TCP/IP port. It has a
Port Name IP_10.9.9.222
Printer name or IP address 10.9.9.222
Port Number 9100

How can we configure the same details in a SCO enviroment..
The standard convention is to direct output to a host name followed by a printer name.. //hostxxx/printerxxx
In my case my host and printer are the same thing.
This is the confusion...

Thanks in advance

George
 
Port 9100 is the standard port for hpnp. If SNMP is enable on the Lexmark you can try using the HP stuff in scoadmin.

Hope This Help
PH.
 
Hey Guys,
We finally have lift off. The network printer is now fully operational either from a windows or unix enviroment. As you all know there are many ways to skin a cat.

Thanks for all your help and support in fixing this for us.

George
 
I added a printer via scoadmin print manager add local
Model = Freeman
connection = /dev/nul
printing = enabled
local Jobs = accepting
Remote Jobs = enabled
the 'freeman' script in /usr/spool/lp/admins/lp/interfaces
is hpnp.model which has reference to ip address and port
it also requires a subdirectory "model.orig/freeman with the driver for the printer.

Bingo. Now we can print to this netwrk printer via Windows and Unix. This printer is not attached to a windows workstation therefore if users print to this printer there is no need for workstations to be booted before you can print to them.
 
Just a quick update.. The original way we did this did not work with Optra forms. This is a forms overlay package that marries the data from our database with different forms. So the best way to set the printer is to create a windows printer "on any pc printing to a network printer and share this. Then simply map it via samba.. So easy once you know how..

George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top