Instructions to use Netgear PS105 Print Server in OS/2
------------------------------------------------------

This is best read with a monospaced font.
By: Bob McLellan
    The Little Blue Kiwi
    bobmcl@ibm.net
    www.thelittlebluekiwi.co.nz

Contents


1.Background
2.Tools provided with Netgear PS105
3.Netgear PS105 operation
4.Running with OS/2
Appendices.
A1. IP trace
A2. Configuration file

1. Background
The Netgear PS105 Print Server does not have specific support for OS/2. This is true for many other print servers and these instructions may have some applicability in other situations. Many print servers are available today and only a reduced range offer specific OS/2 support. This reduces the range of choice for both features and price. It is possible to use many of the print servers that do not specifically support OS/2, but some knowledge is required to do this.
The Netgear PS105 supports IPX/SPX (Netware), Netbios and TCPIP. It has a single printer port
and conveniently has a coax ethernet port (10Base-2) and 4 10/100 RJ45 ports, working as a hub.

2. Tools provided with the Netgear PS105
A CD is provided which contains an administrative tool and a user setup tool, all of which runs under Windows. There is a PDF file on the CD which is a copy of the leaflet which comes in the box. More importantly, there is another PDF file, which is installed with the Admin tool, which is a fairly complete guide for using the server. Unfortunately you have to install the tool to get the guide.

3. Netgear PS105 operation.
The server automatically looks for a TCPIP address by polling as soon as it is connected.
There is a trace of the two formats in the appendix to this note.


The server has some predefined addresses which are on labels stuck to its base. In my case they are ..
 NIC address 00:C0:02:31:97:48 (the 00:C0:02 is standard to all the Netgear servers)
 Server Name PS319748 (note the 319748 is used in both addresses)

4. Running with OS/2

a. Setting an IP address
The server uses the BOOTP protocol (as well as DHCP) so you can use the BOOTP server that comes with OS/2
  Add this line to x:\mptn\etc\bootptab (the file should already be there)
    PS: ht=ether: ha=00c002319748: ip=192.168.0.51: sm=255.255.255.0: hn:

    The PS is a name I use for the server and the IP address can suit your network.

  Add an entry to the hosts file if you like
    192.168.0.51     PS

  Go to a command line and type 'bootpd' and enter.
  This starts the BOOTP server and the address should be set soon. This address only lasts till the print server is turned off. After that you must set the address again.

b. Connecting with Netbios
Just do a normal Netbios connection, for example,
  NET USE LPT2 \\PS319748\PS319748_P1

Note the port address is the device name with '_P1' appended. You should get an OK to this command. There are also a bunch of logical ports - L1, L2 etc.
After that, set up a printer object using LPT2.

c. Permanently changing the server configuration.
The server supports some FTP operations. The key one is that you can read and write a configuration file which resides in the server EPROM. The default file is listed in the appendix to this note. 
Once you have assigned an IP address to the server, you can then FTP to it. 
The file names accessible with FTP sometimes just act as commands (read only). 

 File Name  Purpose                                Mode
 CONFIG     Configuration file                     Read/Write
 PSINF      Device information                     Read
 DEFAULTC   Reset device to default configuration  Read
 RESET      Reset device                           Read
 PASSRESET  Clear password                         Read
 SETIP      Save current IP address                Read

 Command          Function
 dir              Lists files as shown in the list above.
 get FILENAME     Retrieves a file. The only files that can be retrieved are CONFIG and PSINF.
 get RESET        Resets the print server and terminates the current connection.
 get PASSRESET    Clears the password.
 get SETIP        Sets the current IP address as a static IP address.
                  To avoid an address conflict, do not use this command if a DHCP server assigned
                  the IP address to the print server.
 put CONFIG       Copies the CONFIG file to the print server, overwriting the existing CONFIG 
                  file.
                  After using this command to write a new configuration file, use the get RESET
                  command; all LEDs should turn on and then off while the print server is 
                  resetting.
 put PASSWORD     Copies the password file to the print server and gives it a new password.
                  Passwords can be up to 19 bytes in length.
 put filename Ln  Copies the filename file to the printer connected to n port and prints the file.
 quit             Terminates the current FTP session.

Appendices.

A1. IP trace
-------------------------- #:2 --------------------------
 Delta Time: 10.102sec   Packet Length: 590 bytes (24E hex)
 DIX:   Dest: FF:FF:FF:FF:FF:FF   Source: 00:C0:02:31:97:48
 DIX:   Dest: 255.255.255.255    Source:  169.254.065.052
----------------------- IP HEADER -----------------------
 IP:  Version: 4 Correct    Header Length: 20 bytes
 IP:  Type Of Service: 00
 IP:     000. ....  Routine
 IP:     ...0 ....  Normal Delay
 IP:     .... 0...  Normal Throughput
 IP:     .... .0..  Normal Reliability
 IP:  Total Len: 576 (x240) bytes          Id: 0152
 IP:  Flags: 0
 IP:     .0..       May Fragment
 IP:     ..0.       Last Fragment
 IP:  Fragment Offset: 000
 IP:  Time To Live: 30 sec    Protocol: 17  UDP
 IP:  Header Checksum: AE29    (Correct)
 IP:  No Options

---------------------- UDP HEADER ----------------------
 UDP:  Source Port: 68 (DHCP Client)    Dest Port: 67 (DHCP Server)
 UDP:  Length: 556 (x22C)
 UDP:  Checksum: F9EB   (Correct)
---------------- BOOTP/DHCP Header ---------------
  DHCP:  Opcode:  1  Request
    Message Type:  DHCPDISCOVER
  DHCP:  Hardware Type:  0x01  Ethernet
  DHCP:  Hardware Adress Length:  6
  DHCP:  Hop Count: 0
  DHCP:  Transaction ID:  1563214364
  DHCP:  Number of Seconds:  9548
  DHCP:  Flags 0000
  DHCP:  Client IP Address:   000.000.000.000
  DHCP:  Your IP Adress:      000.000.000.000
  DHCP:  Server IP Address:   000.000.000.000
  DHCP:  Gateway IP Address:  000.000.000.000
  DHCP:  Client Hardware Address: 00:C0:02:31:97:48
  DHCP:  Server Hostname:  No Name Sent
  DHCP:  Boot Filename:  No Name Sent
     Options
  DHCP:  Magic Cookie:  099.130.083.099
  DHCP:  Option 53  Length 1
    Message Type:  DHCPDISCOVER
  DHCP:  Option 57  Length 2
    Maximum DHCP Message Size: 576

-------------------------- #:3 --------------------------
 Delta Time:  7.976sec   Packet Length: 244 bytes (F4 hex)
 DIX:   Dest: FF:FF:FF:FF:FF:FF   Source: 00:C0:02:31:97:48
 DIX:   Dest: 255.255.255.255    Source:  169.254.065.052
----------------------- IP HEADER -----------------------
 IP:  Version: 4 Correct    Header Length: 20 bytes
 IP:  Type Of Service: 00
 IP:     000. ....  Routine
 IP:     ...0 ....  Normal Delay
 IP:     .... 0...  Normal Throughput
 IP:     .... .0..  Normal Reliability
 IP:  Total Len: 229 (xE5) bytes Error??  Id: 0153
 IP:  Flags: 0
 IP:     .0..       May Fragment
 IP:     ..0.       Last Fragment
 IP:  Fragment Offset: 000
 IP:  Time To Live: 30 sec    Protocol: 17  UDP
 IP:  Header Checksum: AF83    (Correct)
 IP:  No Options

---------------------- UDP HEADER ----------------------
 UDP:  Source Port: 138 (NETBIOS Datagram)    Dest Port: 138 (NETBIOS Datagram)
 UDP:  Length: 209 (xD1)
 UDP:  Checksum: 4D22   (Correct)
--------------------------------- DATA -----------------------------------
0000 10 02 00 42 A9 FE 41 34    00 8A 00 BB 00 00 20 46   ...B..A4...... F
0010 41 46 44 44 44 44 42 44    4A 44 48 44 45 44 49 43   AFDDDDBDJDHDEDIC
0020 41 43 41 43 41 43 41 43    41 43 41 43 41 43 41 00   ACACACACACACACA.
0030 20 43 41 43 41 43 41 43    41 43 41 43 41 43 41 43    CACACACACACACAC
0040 41 43 41 43 41 43 41 43    41 43 41 43 41 43 41 42   ACACACACACACACAB
0050 4E 00 FF 53 4D 42 25 00    00 00 00 00 00 00 00 00   N..SMB%.........
0060 00 00 00 00 00 00 00 00    00 00 00 00 00 00 00 00   ................
0070 00 00 11 00 00 21 00 00    00 00 00 00 00 00 00 E8   .....!..........
0080 03 00 00 00 00 00 00 00    00 21 00 56 00 03 00 01   .........!.V....
0090 00 00 00 02 00 32 00 5C    4D 41 49 4C 53 4C 4F 54   .....2.\MAILSLOT
00A0 5C 42 52 4F 57 53 45 00    01 00 80 A9 03 00 50 53   \BROWSE.......PS
00B0 33 31 39 37 34 38 00 00    00 00 00 00 00 00 01 00   319748..........
00C0 03 03 00 00 00 00 AA 55    00                        .......U.


A2. Configuration file.
0001 BOX_NAME:PS319748
0011 IPXSPX_P:Enable
0012 TCPIP_P :Enable
0014 NETB_P:Enable
0040 P1_NAME:P1
0100 L1_PROUT:P1
0101 L1_PREST:
0102 L1_POSTR:
0103 L1_CHGLF:No
0104 L1_NAME:L1
0120 L2_PROUT:P1
0121 L2_PREST:
0122 L2_POSTR:
0123 L2_CHGLF:No
0124 L2_NAME:L2
0140 L3_PROUT:P1
0141 L3_PREST:
0142 L3_POSTR:
0143 L3_CHGLF:No
0144 L3_NAME:L3
0501 LPT1MODE:Ack&Busy
2000 NOP_MODE:PS
2001 NFREthII:Enable
2002 NFR802.2:Enable
2003 NFR802.3:Enable
2004 NFRSNAP :Enable
2101 NFS_NAME:
2102 N_NOTIFY:No
2103 N_FREQ  :1
2110 NDS_TREE:
2111 NCONTEXT:
2501 NR_NAME1:
4000 IP_ADDR:0.0.0.0
4001 GATEWAY:0.0.0.0
4002 MASK   :0.0.0.0
4010 TCP_INT:2
4011 TCP_CNT:254
4012 WINS_IP:0.0.0.0
4020 DHCP_MODE:Enable
4100 MAIL_IP:0.0.0.0
4101 MAIL_ACC:
4102 MAIL_PAS:**********
4103 MAIL_INT:1
4104 MAIL_BAN:Yes
4105 MAIL_RED:
4106 MAIL_POR:P1
4107 MAIL_EVR:No
4108 MAIL_NOT:No
4109 MAIL_MOD:
5000 SMBGNAME:
5001 SMBDROP:No
5002 SMBDELAY:0