Axis 540 Technical Docs and RTFM
Netcat Source and binaries
arp -s 192.168.111.83 00:40:8C:3C:4A:8D
ftp 192.168.111.83
Connected to 192.168.111.83.
220 AXIS 540/542 FTP Printer Server V5.48 Dec 14 1998 ready.
User (192.168.111.83:(none)): root
331 User name ok, need password
Password:
230 User logged in
ftp> dir
200 PORT command successful.
150 Opening data connection for dir (192,168,111,9,4,165), (mode ascii).
-r--r--r-- 1 axis public 66 Jan 21 09:17 account
-r--r--r-- 1 axis public 510 Oct 9 11:01 status
-rw-r--r-- 1 root root 5664 Oct 9 18:20 config
-r--r--r-- 1 axis public 5615 Apr 20 09:51 defaults
-r--r--r-- 1 axis public 1086 Apr 30 11:01 help
--w--w--w- 1 axis public 0 Oct 18 08:22 prx (x = 1..8)
dr-xr-xr-x 2 axis public 512 Sep 2 11:38 aix
dr-xr-xr-x 2 axis public 512 Sep 2 11:38 bsd
dr-xr-xr-x 2 axis public 512 Sep 2 11:38 npipe
dr-xr-xr-x 2 axis public 512 Sep 2 11:38 sysv
226 Transfer complete.
ftp: 620 bytes received in 0.05Seconds 12.40Kbytes/sec.
ftp> binary
200 TYPE set to I.
ftp> get config
200 PORT command successful.
150 Opening data connection for config (192,168,111,9,4,166), (mode binary).
226 Transfer complete.
ftp: 5664 bytes received in 0.16Seconds 35.40Kbytes/sec.
ftp> quit
221 Goodbye.
--- TCP/IP Menu
TCP_ENB. : YES
INT_ADDR. : 192 168 111 83
DEF_ROUT. : 0 0 0 0
NET_MASK. : 0 0 0 0
PROS_PWD. : netprinter
PROS_PRT. : 35
LPD_BANN. : OFF (OFF, AUTO, LAST)
BOOTP_ENB. : NO
RARP_ENB. : NO
RTN_OPT. : NO
RTEL_PR1. : 9101 [Port Number for PR1]
RTEL_PR2. : 0
RTEL_PR3. : 0
RTEL_PR4. : 0
RTEL_PR5. : 9102 [Port Number for PR5 with cr-lf translate]
RTEL_PR6. : 0
RTEL_PR7. : 0
RTEL_PR8. : 0
ftp 192.168.111.83
Connected to 192.168.111.83.
220 AXIS 540/542 FTP Printer Server V5.48 Dec 14 1998 ready.
User (192.168.100.83:(none)): root
331 User name ok, need password
Password:
230 User logged in
ftp> binary
200 TYPE set to I.
ftp> put config
200 PORT command successful.
150 Opening data connection for config (192,168,111,9,4,168), (mode binary).
226 Transfer complete.
ftp: 5664 bytes sent in 0.00Seconds 5664000.00Kbytes/sec.
ftp> quit
221 Goodbye.
TCP/IP setup
Reverse Telnet setup
192.168.111.83 hp4mThe hp4m is now the hostname of the printer (not the printer name).
#printer_name:printer_hostname:port_numberThe port numbers for the Axis 540 are user configurable on the reverse telnet page or in the config file. There are 8ea virtual printers available with one each port number for each virtual printer. By default pr1-pr4 are non-cr-lf translating, and pr5-pr8 have built in cf-lf translation. For this setup, the configuration is:
fudge1:hp4m:9101
fudge2:hp4m:9102
9101 parallel port w/o cr-lf translation on virtual printer pr1
9102 parallel port with cr-lf translation on virtual printer pr5
/usr/spool/lp/model/netcatHPand run:
cd /usr/spool/lp/modelRun:
chmod 550 netcatHP
chown bin netcatHP
chgrp lp netcatHP
scoadmin printerAdd a local printer. The setup should look something like:
Name: fudge1Note that "fudge1" is the printer name and "netcatHP" is the name of the spooler script. Run:
Description: Axis 540 p1
Model: netcatHp
Device: /dev/null
/usr/lib/accept fudge1
enable fudge1
After downloading, run:
mv netcat.elf netcat
chown lp netcat
chgrp lp netcat
chmod 755 netcat
lpstat -t | /usr/lib/lponlcr | netcat -h fudge1 -p 9101This will print the print spooler status to the print server. If this doesn't work, don't bother trying the print spooler. The lponlcr adds a carriage return for every linefeed. The lponlcr is not needed for virtual printer p5. Other translations are available.
lpstat -t | netcat -h fudge2 -p 9102
lpstat -t | lp -d fudge1
getmany 192.168.111.83 public iso
snmpstat -s 192.168.111.83