cancel
Showing results for 
Search instead for 
Did you mean: 

Use print server

Rafael Massuquetto
Occasional Contributor

Use print server

Hello!
I'd like to know how config to print in a print server (D-Link DP300U) whith hp-ux 11i v3 ia64.
To send a print to printer installed in a Windows machine are used a config file in /var/spool/lpd/printer with content:

DEVICE_URI=smb://user:password@machine/printer
export DEVICE_URI
/opt/samba/bin/smbspool printer machine: Impressao 1 1 $1 > /dev/null

But I can't set to use a print server, I try this config (SI2 is the name of print server), and the IP of the print server to.
DEVICE_URI=smb://SI2/printer
export DEVICE_URI
/opt/samba/bin/smbspool printer SI2: Impressao 1 1 $1 > /dev/null

The msg error is: ERROR: Unable to connect to CIFS host, will retry in 60 seconds...


5 REPLIES
Steven E. Protter
Exalted Contributor

Re: Use print server

Shalom,

Looks like some kind of firewall or configuration on the print server is blocking access.

In HP-UX setup, did you specify a remote print server.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Dennis Handly
Acclaimed Contributor

Re: Use print server

You have DEVICE_URI vs DEVICE_URL?
Dennis Handly
Acclaimed Contributor

Re: Use print server

(Hmm, I guess DEVICE_URI was correct.)
Rafael Massuquetto
Occasional Contributor

Re: Use print server

Protter,
I a novice in HP-UX, and when the server was installed, any config to use print servers was been made only to use windows shared printers.

Matti_Kurkela
Honored Contributor

Re: Use print server

Based on a quick browse through the D-Link DB-300U manual, the print server actually understands the LPR printing protocol. So you don't have to bother with SMB/CIFS: you can configure the print server in Unix style as a "remote printer".

The LPR print protocol normally assumes the remote host is a Unix system, so it requires two things: a remote print queue name and the server name/IP address. In this D-Link print server, the port name is used to select one of the server's ports (LPT1, LPT2 or USB) using the configurable port names defined in the "Port Settings" section of the "Configuration" page of the print server's web GUI.

To configure a remote print queue "DlinkPrinter" to the print server's LPT1 port, assuming that the print server's IP address is 11.22.33.44, and that the LPT1 port has been configured with the name "lpt111111111" as shown in the manual, you would use the lpadmin command like this:

lpadmin -pDlinkPrinter -v/dev/null -mrmodel -ocmrcmodel -osmrsmodel -orm11.22.33.44 -orplpt111111111

This single lpadmin command should be enough to set up a very basic printing functionality: depending on the capabilities of the printer, you may be able to print ASCII text, PCL and/or PostScript data.

MK
MK