Operating System - HP-UX
1820044 Members
3165 Online
109608 Solutions
New Discussion

accesing printer's attached to DTC16RX port from non-HP-UX system's

 
SOLVED
Go to solution
Marek Hernik
New Member

accesing printer's attached to DTC16RX port from non-HP-UX system's

Is it possible to acess printer (attached to DTC-16RXprinter port) from non-HP-UX systems?

If yes how can I do this?
- should I use rcp command (remonte copy) to send files to be printed directly to DTC port or is it other way. (In others non-HP terminalserver?s e.g. JetStream, Chase IOLan ? I can do this by using following command:
rcp file_to_be_printed TS_IP_address:TS_printer_port
(* TS - terminal server)
- can I send files to be printed directly to DTC unit (printer port) or is it possible only via HP-UX software (ddfa).

Default DTC Network Manager is installed on HP-UX 10.20.
1 REPLY 1
Rodney Hills
Honored Contributor
Solution

Re: accesing printer's attached to DTC16RX port from non-HP-UX system's

Here is a perl script (which should run on any Un*x). Each DTC port has a telnet port# associated to it (see line setting $ip_portno for forumla), and by using the "Telnet" class within perl, I can send data down to that port.

use Net::Telnet ();
$dtcip="192.16.0.80"; # DTC ip address
$board=1;
$portonboard=1;
$ip_portno=(32*$board + $portonboard + 1)*256 + 23
$remote = new Net::Telnet (Timeout => 15, Errmode => 'die');
$remote->open(Host=>$dtcip,Port=>$ip_portno);
$remote->print("TEST LINE TO PRINTER ON DTC PORT");
$remote->close;
There be dragons...