Jiang Fred-r54123
2007-01-09 00:09:53 UTC
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,
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 |
+---------------------------------------------------------+
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 thesource IP of the LPD connection for jobs submitted to the Multinet LPD
server ?
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 |
+---------------------------------------------------------+