cancel
Showing results for 
Search instead for 
Did you mean: 

setting up Remote Printer

 
SOLVED
Go to solution
Highlighted
Regular Advisor

setting up Remote Printer

Dear Expert,

hi, i am facing the problem on setting up remote printer, your help will be much appreciated.

let me describe in detail what i am trying to do and the problem that i facing.

I am trying to setup a Seikosha seiko BP-9000 printer that attached to Winxp pc to print from hpunix 11.11. The printer will be used to share for all the Unix users, the steps that i have done so far :

1. install Print Service for Unix
2. add a local (LPT) printer
printer manufaturer : generic
printer model : generic /text only
printer name : seiko2

3. the IP of the winXP PC : 192.168.11.20
computer name : FAM20

4. in Unix, i add the below line in
to /etc/hosts
192.168.11.20 FAM20

5. SAM
i) Printer and Plotter
ii) LP Spooler
iii) Printer and Plotter
iv) Action
v) Add remote Printer
My settings:
Printer Name : seiko2
Remote System Name : FAM20
Remote Printer Name : seiko2
[X] Remote Printer is on BSD system
Default Request Priority - 0
[X] Allow Anyone to Cancel a Request
[ ] Make This Printer the Default
Destination

error appear when I press OK :

lpstat: printer "seiko2" non-existent
A problem occurred doing "lpadmin -pseiko2 -ormFAM20 -orpseiko2
-mrmodel -v/dev/null -ob3 -ocmrcmodel -osmrsmodel". Stderr from this
command is "/usr/sbin/lpadmin: can't create new cancel interface programâ
Unable to add printer "seiko2" because of above error(s).

Note :
1. in my /etc/inetd.conf =>
printer 515/tcp spooler
is not commented.

2. have already done inetd -c
3. find nothing in /var/adm/inetd.sec
4. trying to telnet to FAM20 but return with error, ping to FAM20 was OK.

please advise anthing that i can do to successfully configure my remote printer.

thank you very much

regards
ng
8 REPLIES 8
Highlighted
Honored Contributor

Re: setting up Remote Printer

Hi ng,

the message from SAM sounds like a real showstopper; perhaps a permission problem under /var/spool/lp or elsewhere.
But before wasting time investigating this, can you confirm that other lp printers actually work on the same machine?

regards,
John K.
it would be nice if you always got a second chance
Highlighted
Honored Contributor
Solution

Re: setting up Remote Printer

As far as I understand, when creating a new "cancel interface program" for a remote printer, lpadmin should actually be copying /usr/lib/lp/cmodel/rcmodel to /etc/lp/cinterface/seiko2.

Can you find any reason why this would fail? For example, is the root filesystem full? Does the /etc/lp/cinterface/seiko2 file already exist? Is the /etc/lp/cinterface directory missing, or does it have strange permissions?
The default permissions should be drwxr-xr-x, owner lp, group bin.

Is the "TCP/IP Print Server" service running on the winXP PC?

Right click on "My Computer", select "Manage", go to "Services and Applications" -> "Services". Find the "TCP/IP Print Server", start it if it's not started, and set its Startup Type to Automatic, so that it will start again automatically if the PC is restarted.

MK
MK
Highlighted
Regular Advisor

Re: setting up Remote Printer

Thanks for your quick response, the printer has no problem to print from the PC attached to it.

below is the list of file from /var/spool/lp,
please advise which one have permission problem.

prw------- 1 lp lp 0 Jan 7 10:45 CLD_FIFO
prw------- 1 lp lp 0 Jan 7 10:45 FIFO
-rw-r----- 1 lp lp 0 Jan 7 10:45 SCHEDLOCK
lrwxr-xr-t 1 root sys 14 Sep 23 03:10 Tclass -> /etc/lp/Tclass
lrwxr-xr-t 1 root sys 15 Sep 23 03:10 Tmember -> /etc/lp/Tmember
lrwxr-xr-t 1 root sys 18 Sep 23 03:10 cinterface -> /etc/lp/cinterface
lrwxr-xr-t 1 root sys 13 Sep 23 03:10 class -> /etc/lp/class
lrwxr-xr-t 1 root sys 18 Sep 23 03:10 cmodel -> /usr/lib/lp/cmodel
-rw------- 1 lp mail 53 Nov 27 16:42 dead.letter
-rw-r--r-- 1 lp lp 9 Jun 11 2007 default
lrwxr-xr-t 1 root sys 17 Sep 23 03:10 fonts -> /usr/lib/lp/fonts
lrwxr-xr-t 1 root sys 12 Sep 23 03:10 info -> /etc/lp/info
lrwxr-xr-t 1 root sys 17 Sep 23 03:10 interface -> /etc/lp/interface
lrwxr-xr-t 1 root sys 15 Sep 23 03:10 log -> /var/adm/lp/log
lrwxr-xr-t 1 root sys 21 Sep 23 03:10 lpana.log -> /var/adm/lp/lpana.log
lrwxr-xr-t 1 root sys 19 Sep 23 03:10 lpd.log -> /var/adm/lp/lpd.log
lrwxr-xr-t 1 root sys 14 Sep 23 03:10 member -> /etc/lp/member
lrwxr-xr-t 1 root sys 17 Sep 23 03:10 model -> /usr/lib/lp/model
-rw-r--r-- 1 lp sys 32868 Jan 7 10:45 outputq
-rw-r--r-- 1 lp lp 35532 Jan 7 10:45 pstatus
-rw-r--r-- 1 lp lp 8836 Jan 7 10:39 qstatus
drwxr-xr-x 2 lp bin 96 Nov 16 2000 receive
drwxr-xr-x 48 lp bin 1024 Jan 7 10:39 request
-rw-r--r-- 1 lp lp 5 Jan 7 10:43 seqfile
lrwxr-xr-t 1 root sys 18 Sep 23 03:10 sinterface -> /etc/lp/sinterface
lrwxr-xr-t 1 root sys 18 Sep 23 03:10 smodel -> /usr/lib/lp/smodel
drwxr-xr-x 2 lp bin 96 May 15 2007 tsm.pipes


for MK question, I managed to find that there is missing cinterface in /etc/lp, thus, i created the cinterface with the following permission :

app:/etc/lp# ll
total 28
drwxrwxrwx 2 lp bin 96 Jan 7 10:39 cinterface
drwxr-xr-x 2 lp bin 96 Nov 16 2000 class
drwxr-xr-x 2 lp bin 96 Nov 16 2000 info
drwxr-xr-x 5 lp bin 1024 Jan 7 10:39 interface
drwxr-xr-x 2 lp bin 1024 Jan 7 10:39 member
drwxrwxrwx 2 lp bin 96 Mar 24 2004 netlp.asx
-rwxr-xr-x 1 lp bin 5256 Jan 7 10:32 request
-rwxr-xr-x 1 root sys 5256 Dec 23 09:01 request1
drwxr-xr-x 2 lp bin 96 Jan 7 10:39 sinterface

After i have created the cinterface, the error message no more appearing when i create new remote printer seiko4, The "TCP/IP Print Server" service in running on the winXP PC and it is started automatically.

but when i trying to print, the printer still does't print out anything

when i lpstat the printer, below message saying FAM20 is down

app:/etc/lp# lpstat seiko4
seiko4-0 root priority 0 Jan 7 10:40 on seiko4
stprd.sh 218 bytes
connection to FAM20 is down

app: waiting for FAM20 to come up

Note : my /etc/hosts contain the following line
192.168.11.20 FAM20
, the IP represent the host IP, and FAM20 is the hostname, please also refer to attachment for my TCP/IP printer server status. I am able to ping to either 192.168.11.20 or FAM20


SOS, please help.

thank you very much.

regards
ng








Highlighted
Honored Contributor

Re: setting up Remote Printer

The lpstat output:

# lpstat seiko4
seiko4-0 root priority 0 Jan 7 10:40 on seiko4
stprd.sh 218 bytes
connection to FAM20 is down

indicates the port 515 of FAM20 does not respond to the Unix host. The fact that your telnet attempt fails confirms this.

If ping works, the physical connection should be OK.

There is probably a firewall preventing the connection to port 515. Check the settings of any software firewall on WinXP. You should allow incoming connections to TCP port 515 from your HP-UX server.

(If your WinXP is up to date, it probably does have a firewall: after installing SP2, WinXP's Security Center nags at you if there is no firewall active.)

If there is a separate firewall device in the network, check its settings too.

MK
MK
Highlighted
Honored Contributor

Re: setting up Remote Printer

Hi again ng,

as Matti says, you need network connection from your unix server to FAM20 on port 515. Try:
# telnet FAM20 515

By the time you get a login prompt, the connection will be ok. Till then, you have to request changes in your network.

regards,
John K.
it would be nice if you always got a second chance
Highlighted
Valued Contributor

Re: setting up Remote Printer

hi all, in SAM options "remote printer is on BSD system" is bad. This option must be blank

If the problem is not solved :

¿the printer has jetdirect module?


regards
The man is your friend
Highlighted
Regular Advisor

Re: setting up Remote Printer

thank you very much, after i enable my telnet server in winxp, i am able to print to seiko4 now.

i have double confirm by two setting
1) with check on Remote Printer is on BSD
system

2) without check on Remote Printer is on BSD
system

I found that to print from unix to winxp, i must use the option 1.

I have another question about this remote printer issue, how do i configure remote printer on hp laserjet 1015 ?
I have tried it using the earlier steps and it was printed out but the alignment was out. any idea ?








Highlighted
Regular Advisor

Re: setting up Remote Printer

i have intalled the hp 1010 driver cd, but the printout still not correct.