Discussion:
How to set up as a remote lpd server?
(too old to reply)
Jiang Fred-r54123
2007-01-09 00:09:53 UTC
Permalink
All,
I got a issue here about to set up a remote printer on HP unix (V11.1)
which will call vms lpd printer.
On vms box: vms_node
A lpd printer queue: bcode1 printer type LPD (Multinet support tcpip)
Get lpd service running on Openvms box as following:
$ mu config/server
SERVER-CONFIG> show/full lpd
Service "LPD":
TCP socket (AF_INET,SOCK_STREAM), Port 515
Socket Options = SO_KEEPALIVE
INIT() = TCP_Init
LISTEN() = TCP_Listen
CONNECTED() = TCP_Connected
SERVICE() = Run_Program
Program = "MULTINET:SERVER_LPD.EXE"
Accept Hosts = IP*127.0.0.1
Accept Hosts = 10.192.111.2 (huan.ap.frs.com)
Reject by default all other hosts and nets
Reject Message = "Your host does not have line printer access"
On HP_UNIX box: 10.192.111.2 (huan.ap.frs.com)
We create a remote printer which is assigned as following:
Printer name: remote_printer
Remote node: vms_node.ap.frs.com
Printer name: bcode1

I use printer command on unix box but nothing print out with no errors.
Command: lp -d remote_printer aa.txt

Please help to trace any problem set up I use here, Thanks.

BGs,
Fred

-----Original Message-----
From: Jeremy Begg [mailto:***@vsm.com.au]
Sent: Monday, January 08, 2007 7:51 AM
To: Francesco Gennai
Cc: info-***@process.com
Subject: Re: LPD server, access control and accounting

Hi Francesco,
Is it possible to do some sort of accounting/access control based on
source IP of the LPD connection for jobs submitted to the Multinet LPD
server ?
If you mean access control to the LPD server, you can do that using the
standard mechanisms in SERVER-CONFIG, e.g.

$ mu config/server
SERVER-CONFIG> show/full lpd
Service "LPD":
TCP socket (AF_INET,SOCK_STREAM), Port 515
Socket Options = SO_KEEPALIVE
INIT() = TCP_Init
LISTEN() = TCP_Listen
CONNECTED() = TCP_Connected
SERVICE() = Run_Program
Program = "MULTINET:SERVER_LPD.EXE"
Accept Hosts = IP*127.0.0.1
Reject by default all other hosts and nets
Reject Message = "Your host does not have line printer access"

You could then use the 'set accept-net', 'set accept-host', 'set
reject-net' and 'set reject-host' commands to control which hosts can
send jobs to the LPD server.

For more sophisticated access control (e.g. limiting a particular remote
host to a particular local print queue) you can modify
MULTINET_COMMON_ROOT:[MULTINET.EXAMPLES]USER_LPD_SERVER.C.

As far as accounting is concerned, I haven't checked but you might be
able to do something with USER_LPD_SERVER.

Regards,

Jeremy Begg

+---------------------------------------------------------+
| VSM Software Services Pty. Ltd. |
| http://www.vsm.com.au/ |
| "OpenVMS Systems Management & Programming" |
|---------------------------------------------------------|
| P.O.Box 402, Walkerville, | E-Mail: ***@vsm.com.au |
| South Australia 5081 | Phone: +61 8 8221 5188 |
|---------------------------| Mobile: 0414 422 947 |
| A.C.N. 068 409 156 | FAX: +61 8 8221 7199 |
+---------------------------------------------------------+
Jeremy Begg
2007-01-09 00:24:51 UTC
Permalink
Hello Fred,

The first thing to do is to confirm that the Unix host is actually making a
connection to MultiNet's LPD server. I suggest you try this:

$ mu config/server
SERVER-CONFIG> select lpd
SERVER-CONFIG> set log-accept true
SERVER-CONFIG> set log-reject true
SERVER-CONFIG> save
SERVER-CONFIG> restart
SERVER-CONFIG> exit
$ reply/enable=net/temp

Then attempt to print a file. If the HP Unix system is attempting to send
the file to MultiNet you should see an OPCOM message come out on your
screen.

You should also check that the directory MULTINET_SPOOL exists, and if there
are any files in it. MultiNet LPD server will create a temporary file in
this directory.

Regards,

Jeremy Begg
Post by Jiang Fred-r54123
I got a issue here about to set up a remote printer on HP unix (V11.1)
which will call vms lpd printer.
On vms box: vms_node
A lpd printer queue: bcode1 printer type LPD (Multinet support tcpip)
$ mu config/server
SERVER-CONFIG> show/full lpd
TCP socket (AF_INET,SOCK_STREAM), Port 515
Socket Options = SO_KEEPALIVE
INIT() = TCP_Init
LISTEN() = TCP_Listen
CONNECTED() = TCP_Connected
SERVICE() = Run_Program
Program = "MULTINET:SERVER_LPD.EXE"
Accept Hosts = IP*127.0.0.1
Accept Hosts = 10.192.111.2 (huan.ap.frs.com)
Reject by default all other hosts and nets
Reject Message = "Your host does not have line printer access"
On HP_UNIX box: 10.192.111.2 (huan.ap.frs.com)
Printer name: remote_printer
Remote node: vms_node.ap.frs.com
Printer name: bcode1
I use printer command on unix box but nothing print out with no errors.
Command: lp -d remote_printer aa.txt
Please help to trace any problem set up I use here, Thanks.
BGs,
Fred
-----Original Message-----
Sent: Monday, January 08, 2007 7:51 AM
To: Francesco Gennai
Subject: Re: LPD server, access control and accounting
Hi Francesco,
Is it possible to do some sort of accounting/access control based on
source IP of the LPD connection for jobs submitted to the Multinet LPD
server ?
If you mean access control to the LPD server, you can do that using the
standard mechanisms in SERVER-CONFIG, e.g.
$ mu config/server
SERVER-CONFIG> show/full lpd
TCP socket (AF_INET,SOCK_STREAM), Port 515
Socket Options = SO_KEEPALIVE
INIT() = TCP_Init
LISTEN() = TCP_Listen
CONNECTED() = TCP_Connected
SERVICE() = Run_Program
Program = "MULTINET:SERVER_LPD.EXE"
Accept Hosts = IP*127.0.0.1
Reject by default all other hosts and nets
Reject Message = "Your host does not have line printer access"
You could then use the 'set accept-net', 'set accept-host', 'set
reject-net' and 'set reject-host' commands to control which hosts can
send jobs to the LPD server.
For more sophisticated access control (e.g. limiting a particular remote
host to a particular local print queue) you can modify
MULTINET_COMMON_ROOT:[MULTINET.EXAMPLES]USER_LPD_SERVER.C.
As far as accounting is concerned, I haven't checked but you might be
able to do something with USER_LPD_SERVER.
Regards,
Jeremy Begg
+---------------------------------------------------------+
| VSM Software Services Pty. Ltd. |
| http://www.vsm.com.au/ |
| "OpenVMS Systems Management & Programming" |
|---------------------------------------------------------|
| South Australia 5081 | Phone: +61 8 8221 5188 |
|---------------------------| Mobile: 0414 422 947 |
| A.C.N. 068 409 156 | FAX: +61 8 8221 7199 |
+---------------------------------------------------------+
Jiang Fred-r54123
2007-01-09 01:00:23 UTC
Permalink
Hi Jeremy,
When I issued unix command "lpstat -t", following message came out on my
vms teminal.

$
%%%%%%%%%%% OPCOM 9-JAN-2007 08:45:11.17 %%%%%%%%%%%
Message from user SYSTEM on MTHENG
MultiNet Server: LPD (accepted) from [10.192.130.147,1023]
(huanghai.ap.freescale.net)
========================================================================
=====
When issued unix command "lp -d remote_printer aa.sh", following message
came out on my vms terminal.

$
%%%%%%%%%%% OPCOM 9-JAN-2007 08:45:11.23 %%%%%%%%%%%
Message from user SYSTEM on MTHENG
MultiNet Server: LPD (accepted) from [10.192.130.147,1023]
(huanghai.ap.freescale.net)
========================================================================
======
Re-input unix command "lpstat -t"
$ lpstat -t
scheduler is running
no system default destination
device for remote_printer: /dev/null
remote to: BCODE1 on vms_node.ap.frs.com
Remote_printer1 accepting requests since Jan 8 14:47
printer remote_printer is idle. enabled since Jan 8 14:35
fence priority : 0

printer queue for remote_printer
no entries

huan: remote_printer: ready and waiting

========================================================================
=========
Result: nothing print out

-----Original Message-----
From: Jeremy Begg [mailto:***@vsm.com.au]
Sent: Tuesday, January 09, 2007 8:25 AM
To: Jiang Fred-r54123
Cc: info-***@process.com
Subject: Re: How to set up as a remote lpd server?



Hello Fred,

The first thing to do is to confirm that the Unix host is actually
making a connection to MultiNet's LPD server. I suggest you try this:

$ mu config/server
SERVER-CONFIG> select lpd
SERVER-CONFIG> set log-accept true
SERVER-CONFIG> set log-reject true
SERVER-CONFIG> save
SERVER-CONFIG> restart
SERVER-CONFIG> exit
$ reply/enable=net/temp

Then attempt to print a file. If the HP Unix system is attempting to
send the file to MultiNet you should see an OPCOM message come out on
your screen.

You should also check that the directory MULTINET_SPOOL exists, and if
there are any files in it. MultiNet LPD server will create a temporary
file in this directory.

Regards,

Jeremy Begg
Post by Jiang Fred-r54123
I got a issue here about to set up a remote printer on HP unix (V11.1)
which will call vms lpd printer.
On vms box: vms_node
A lpd printer queue: bcode1 printer type LPD (Multinet support tcpip)
$ mu config/server
SERVER-CONFIG> show/full lpd
TCP socket (AF_INET,SOCK_STREAM), Port 515
Socket Options = SO_KEEPALIVE
INIT() = TCP_Init
LISTEN() = TCP_Listen
CONNECTED() = TCP_Connected
SERVICE() = Run_Program
Program = "MULTINET:SERVER_LPD.EXE"
Accept Hosts = IP*127.0.0.1
Accept Hosts = 10.192.111.2 (huan.ap.frs.com)
Reject by default all other hosts and nets
Reject Message = "Your host does not have line printer access"
On HP_UNIX box: 10.192.111.2 (huan.ap.frs.com) We create a remote
Printer name: remote_printer
Remote node: vms_node.ap.frs.com
Printer name: bcode1
I use printer command on unix box but nothing print out with no errors.
Command: lp -d remote_printer aa.txt
Please help to trace any problem set up I use here, Thanks.
BGs,
Fred
-----Original Message-----
Sent: Monday, January 08, 2007 7:51 AM
To: Francesco Gennai
Subject: Re: LPD server, access control and accounting
Hi Francesco,
Is it possible to do some sort of accounting/access control based on
source IP of the LPD connection for jobs submitted to the Multinet LPD
server ?
If you mean access control to the LPD server, you can do that using the
standard mechanisms in SERVER-CONFIG, e.g.
$ mu config/server
SERVER-CONFIG> show/full lpd
TCP socket (AF_INET,SOCK_STREAM), Port 515
Socket Options = SO_KEEPALIVE
INIT() = TCP_Init
LISTEN() = TCP_Listen
CONNECTED() = TCP_Connected
SERVICE() = Run_Program
Program = "MULTINET:SERVER_LPD.EXE"
Accept Hosts = IP*127.0.0.1
Reject by default all other hosts and nets
Reject Message = "Your host does not have line printer access"
You could then use the 'set accept-net', 'set accept-host', 'set
reject-net' and 'set reject-host' commands to control which hosts can
send jobs to the LPD server.
For more sophisticated access control (e.g. limiting a particular
remote host to a particular local print queue) you can modify
MULTINET_COMMON_ROOT:[MULTINET.EXAMPLES]USER_LPD_SERVER.C.
As far as accounting is concerned, I haven't checked but you might be
able to do something with USER_LPD_SERVER.
Regards,
Jeremy Begg
+---------------------------------------------------------+
| VSM Software Services Pty. Ltd. |
| http://www.vsm.com.au/ |
| "OpenVMS Systems Management & Programming" |
|---------------------------------------------------------|
| South Australia 5081 | Phone: +61 8 8221 5188 |
|---------------------------| Mobile: 0414 422 947 |
| A.C.N. 068 409 156 | FAX: +61 8 8221 7199 |
+---------------------------------------------------------+
Jim Mehlhop
2007-01-09 14:45:13 UTC
Permalink
Post by Jiang Fred-r54123
Hi Jeremy,
When I issued unix command "lpstat -t", following message came out on my
vms teminal.
$
%%%%%%%%%%% OPCOM 9-JAN-2007 08:45:11.17 %%%%%%%%%%%
Message from user SYSTEM on MTHENG
MultiNet Server: LPD (accepted) from [10.192.130.147,1023]
(huanghai.ap.freescale.net)
========================================================================
=====
When issued unix command "lp -d remote_printer aa.sh", following message
came out on my vms terminal.
$
%%%%%%%%%%% OPCOM 9-JAN-2007 08:45:11.23 %%%%%%%%%%%
Message from user SYSTEM on MTHENG
MultiNet Server: LPD (accepted) from [10.192.130.147,1023]
(huanghai.ap.freescale.net)
========================================================================
======
Re-input unix command "lpstat -t"
$ lpstat -t
scheduler is running
no system default destination
device for remote_printer: /dev/null
You have the queue pointing to the null device.
Post by Jiang Fred-r54123
remote to: BCODE1 on vms_node.ap.frs.com
Remote_printer1 accepting requests since Jan 8 14:47
printer remote_printer is idle. enabled since Jan 8 14:35
fence priority : 0
printer queue for remote_printer
no entries
huan: remote_printer: ready and waiting
========================================================================
=========
Result: nothing print out
-----Original Message-----
Sent: Tuesday, January 09, 2007 8:25 AM
To: Jiang Fred-r54123
Subject: Re: How to set up as a remote lpd server?
Hello Fred,
The first thing to do is to confirm that the Unix host is actually
$ mu config/server
SERVER-CONFIG> select lpd
SERVER-CONFIG> set log-accept true
SERVER-CONFIG> set log-reject true
SERVER-CONFIG> save
SERVER-CONFIG> restart
SERVER-CONFIG> exit
$ reply/enable=net/temp
Then attempt to print a file. If the HP Unix system is attempting to
send the file to MultiNet you should see an OPCOM message come out on
your screen.
You should also check that the directory MULTINET_SPOOL exists, and if
there are any files in it. MultiNet LPD server will create a temporary
file in this directory.
Regards,
Jeremy Begg
Post by Jiang Fred-r54123
I got a issue here about to set up a remote printer on HP unix (V11.1)
which will call vms lpd printer.
On vms box: vms_node
A lpd printer queue: bcode1 printer type LPD (Multinet support tcpip)
$ mu config/server
SERVER-CONFIG> show/full lpd
TCP socket (AF_INET,SOCK_STREAM), Port 515
Socket Options = SO_KEEPALIVE
INIT() = TCP_Init
LISTEN() = TCP_Listen
CONNECTED() = TCP_Connected
SERVICE() = Run_Program
Program = "MULTINET:SERVER_LPD.EXE"
Accept Hosts = IP*127.0.0.1
Accept Hosts = 10.192.111.2 (huan.ap.frs.com)
Reject by default all other hosts and nets
Reject Message = "Your host does not have line printer access"
On HP_UNIX box: 10.192.111.2 (huan.ap.frs.com) We create a remote
Printer name: remote_printer
Remote node: vms_node.ap.frs.com
Printer name: bcode1
I use printer command on unix box but nothing print out with no errors.
Command: lp -d remote_printer aa.txt
Please help to trace any problem set up I use here, Thanks.
BGs,
Fred
-----Original Message-----
Sent: Monday, January 08, 2007 7:51 AM
To: Francesco Gennai
Subject: Re: LPD server, access control and accounting
Hi Francesco,
Is it possible to do some sort of accounting/access control based on
source IP of the LPD connection for jobs submitted to the Multinet LPD
server ?
If you mean access control to the LPD server, you can do that using the
standard mechanisms in SERVER-CONFIG, e.g.
$ mu config/server
SERVER-CONFIG> show/full lpd
TCP socket (AF_INET,SOCK_STREAM), Port 515
Socket Options = SO_KEEPALIVE
INIT() = TCP_Init
LISTEN() = TCP_Listen
CONNECTED() = TCP_Connected
SERVICE() = Run_Program
Program = "MULTINET:SERVER_LPD.EXE"
Accept Hosts = IP*127.0.0.1
Reject by default all other hosts and nets
Reject Message = "Your host does not have line printer access"
You could then use the 'set accept-net', 'set accept-host', 'set
reject-net' and 'set reject-host' commands to control which hosts can
send jobs to the LPD server.
For more sophisticated access control (e.g. limiting a particular
remote host to a particular local print queue) you can modify
MULTINET_COMMON_ROOT:[MULTINET.EXAMPLES]USER_LPD_SERVER.C.
As far as accounting is concerned, I haven't checked but you might be
able to do something with USER_LPD_SERVER.
Regards,
Jeremy Begg
+---------------------------------------------------------+
| VSM Software Services Pty. Ltd. |
| http://www.vsm.com.au/ |
| "OpenVMS Systems Management & Programming" |
|---------------------------------------------------------|
| South Australia 5081 | Phone: +61 8 8221 5188 |
|---------------------------| Mobile: 0414 422 947 |
| A.C.N. 068 409 156 | FAX: +61 8 8221 7199 |
+---------------------------------------------------------+
Jim Mehlhop

Join Cauce to outlaw spam
http://www.cauce.org/
Jim Mehlhop
2007-01-09 14:50:54 UTC
Permalink
Post by Jim Mehlhop
Post by Jiang Fred-r54123
Hi Jeremy,
When I issued unix command "lpstat -t", following message came out on my
vms teminal.
$
%%%%%%%%%%% OPCOM 9-JAN-2007 08:45:11.17 %%%%%%%%%%%
Message from user SYSTEM on MTHENG
MultiNet Server: LPD (accepted) from [10.192.130.147,1023]
(huanghai.ap.freescale.net)
========================================================================
=====
When issued unix command "lp -d remote_printer aa.sh", following message
came out on my vms terminal.
$
%%%%%%%%%%% OPCOM 9-JAN-2007 08:45:11.23 %%%%%%%%%%%
Message from user SYSTEM on MTHENG
MultiNet Server: LPD (accepted) from [10.192.130.147,1023]
(huanghai.ap.freescale.net)
========================================================================
======
Re-input unix command "lpstat -t"
$ lpstat -t
scheduler is running
no system default destination
device for remote_printer: /dev/null
You have the queue pointing to the null device.
Sorry that is the Unix side of things, at least I don't know how to
decode Unix stuff
Post by Jim Mehlhop
Post by Jiang Fred-r54123
remote to: BCODE1 on vms_node.ap.frs.com
Remote_printer1 accepting requests since Jan 8 14:47
printer remote_printer is idle. enabled since Jan 8 14:35
fence priority : 0
printer queue for remote_printer
no entries
huan: remote_printer: ready and waiting
========================================================================
=========
Result: nothing print out
-----Original Message-----
Sent: Tuesday, January 09, 2007 8:25 AM
To: Jiang Fred-r54123
Subject: Re: How to set up as a remote lpd server?
Hello Fred,
The first thing to do is to confirm that the Unix host is actually
$ mu config/server
SERVER-CONFIG> select lpd
SERVER-CONFIG> set log-accept true
SERVER-CONFIG> set log-reject true
SERVER-CONFIG> save
SERVER-CONFIG> restart
SERVER-CONFIG> exit
$ reply/enable=net/temp
Then attempt to print a file. If the HP Unix system is attempting to
send the file to MultiNet you should see an OPCOM message come out on
your screen.
You should also check that the directory MULTINET_SPOOL exists, and if
there are any files in it. MultiNet LPD server will create a temporary
file in this directory.
Regards,
Jeremy Begg
Post by Jiang Fred-r54123
I got a issue here about to set up a remote printer on HP unix (V11.1)
which will call vms lpd printer.
On vms box: vms_node
A lpd printer queue: bcode1 printer type LPD (Multinet support tcpip)
$ mu config/server
SERVER-CONFIG> show/full lpd
TCP socket (AF_INET,SOCK_STREAM), Port 515
Socket Options = SO_KEEPALIVE
INIT() = TCP_Init
LISTEN() = TCP_Listen
CONNECTED() = TCP_Connected
SERVICE() = Run_Program
Program = "MULTINET:SERVER_LPD.EXE"
Accept Hosts = IP*127.0.0.1
Accept Hosts = 10.192.111.2 (huan.ap.frs.com)
Reject by default all other hosts and nets
Reject Message = "Your host does not have line printer access"
On HP_UNIX box: 10.192.111.2 (huan.ap.frs.com) We create a remote
Printer name: remote_printer
Remote node: vms_node.ap.frs.com
Printer name: bcode1
I use printer command on unix box but nothing print out with no errors.
Command: lp -d remote_printer aa.txt
Please help to trace any problem set up I use here, Thanks.
BGs,
Fred
-----Original Message-----
Sent: Monday, January 08, 2007 7:51 AM
To: Francesco Gennai
Subject: Re: LPD server, access control and accounting
Hi Francesco,
Is it possible to do some sort of accounting/access control based on
source IP of the LPD connection for jobs submitted to the Multinet LPD
server ?
If you mean access control to the LPD server, you can do that using the
standard mechanisms in SERVER-CONFIG, e.g.
$ mu config/server
SERVER-CONFIG> show/full lpd
TCP socket (AF_INET,SOCK_STREAM), Port 515
Socket Options = SO_KEEPALIVE
INIT() = TCP_Init
LISTEN() = TCP_Listen
CONNECTED() = TCP_Connected
SERVICE() = Run_Program
Program = "MULTINET:SERVER_LPD.EXE"
Accept Hosts = IP*127.0.0.1
Reject by default all other hosts and nets
Reject Message = "Your host does not have line printer access"
You could then use the 'set accept-net', 'set accept-host', 'set
reject-net' and 'set reject-host' commands to control which hosts can
send jobs to the LPD server.
For more sophisticated access control (e.g. limiting a particular
remote host to a particular local print queue) you can modify
MULTINET_COMMON_ROOT:[MULTINET.EXAMPLES]USER_LPD_SERVER.C.
As far as accounting is concerned, I haven't checked but you might be
able to do something with USER_LPD_SERVER.
Regards,
Jeremy Begg
+---------------------------------------------------------+
| VSM Software Services Pty. Ltd. |
| http://www.vsm.com.au/ |
| "OpenVMS Systems Management & Programming" |
|---------------------------------------------------------|
| South Australia 5081 | Phone: +61 8 8221 5188 |
|---------------------------| Mobile: 0414 422 947 |
| A.C.N. 068 409 156 | FAX: +61 8 8221 7199 |
+---------------------------------------------------------+
Jim Mehlhop
Join Cauce to outlaw spam
http://www.cauce.org/
Jim Mehlhop

Join Cauce to outlaw spam
http://www.cauce.org/

Loading...