home *** CD-ROM | disk | FTP | other *** search
-
- ============================
- TCP/IP COMMAND SET REFERENCE
- ============================
-
- Version 1.6: 23 January 1991
-
- Document Reference: "NRWCMD16"
-
-
- by Ian Wade, G3NRW
-
-
- 7 Daubeney Close
- Harlington
- Dunstable
- Bedfordshire
- LU5 6NF, UK
-
-
- IP: 44.131.5.2
- AX.25: G3NRW @ GB7BIL
-
-
- Copyright (C) 1990, 1991 Ian Wade, G3NRW
-
- All rights reserved. No part of this document may be reproduced or
- transmitted in any form or by any means, electronic or mechanical,
- including photocopying, recording or by any information storage and
- retrieval system for commercial purposes or resale or barter without
- written permission from the author.
-
- This document may be reproduced in whole or in part for any non-
- commercial amateur radio purpose as long as credit is given to the
- author.
-
-
- ABSTRACT
- ========
-
- This document contains details of all of the commands to be found in
- the following TCP/IP Network Operating System ("NOS") packages:
-
- KA9Q/PA0GRI: version 900819
- KA9Q/G1EMM: version KH113014
-
-
- CHANGES FROM PREVIOUS VERSION
- =============================
-
- Minor corrections to the "route" command syntax.
-
- Familiarity with the basic functions of the "NOS" packages is assumed.
- This document is intended only as a quick reference to the TCP/IP
- command set, and does not describe how individual commands work.
-
-
- RATIONALISATION OF PARAMETER DESCRIPTIONS
- =========================================
-
- Because the "NOS" packages contain software modules originating from
- several different sources, the documentation which describes them
- inevitably contains a number of inconsistencies. For example, the
- words "label" and "interface" apparently describe different objects,
- whereas in actuality they are the same thing. On the other hand, the
- meaning of the word "address" used in many commands differs from
- command to command.
-
- In this document an attempt has been made to rationalise the meaning
- of these parameters, to produce a consistent command set within and
- across the two "NOS" packages.
-
- The principal parameters which have caused confusion in the past are
- to do with names, addresses and interfaces. These are now defined
- as follows:
-
- <callsign> an AX.25 MYCALL callsign (e.g. "G3NRW-1")
- <hostname> a computer name (e.g. "g3nrw" or "g3nrw.ampr.org")
- <ipaddress> an Internet address (e.g. "44.131.5.2")
- <host> <hostname> or <ipaddress>
- <username> a user at a computer (e.g. "ian")
- <interface> a device interface name (e.g. "pk0" or "ax0")
- <ioaddress> a device I/O base address (e.g. "0x3f8")
- <vector> an IRQ level (e.g. "4")
-
- (Note that the word "hostid" is not used in this document, to avoid
- confusion with the Unix command of the same name).
-
-
- TCP/IP "NOS" COMMAND SET REFERENCE
- ==================================
-
- The rest of this document specifies the complete "NOS" command set
- for the KA9Q/PA0GRI and KA9Q/G1EMM packages.
-
- The extreme left-hand column of each line is coded as follows:
-
- i | signifies a command in the KA9Q/PA0GRI version of "NOS"
- m| signifies a command in the KA9Q/G1EMM version of "NOS"
-
- The extreme right-hand column shows the default values of command
- parameters.
-
-
- Version| |Default
- _____| |_______
- | |
- im| ? (help: list of top-level "nos>" commands) |
- im| ! (break out to shell) |
- im| # (comment line) |
-
- | |
- im| abort [<session #>] (FTP) |
- | |
- im| arp |
- | |
- i | arp add <host> ether|ax25|netrom |
- | <ether_addr>|<callsign> |
- | |
- m| arp add <host> ether|ax25|netrom|arcnet |
- | <ether_addr>|<callsign> |
- | |
- i | arp drop <host> ether|ax25|netrom |
- | |
- m| arp drop <host> ether|ax25|netrom|arcnet |
- | |
- im| arp flush |
- | |
- i | arp publish <host> ether|ax25|netrom |
- | <ether_addr>|<callsign> |
- | |
- m| arp publish <host> ether|ax25|netrom|arcnet |
- | <ether_addr>|<callsign> |
- | |
- im| asystat |
- | |
- i | attach 3c500 <ioaddress> <vector> arpa <interface> |
- | <buffers> <mtu> [ipaddress] |
- | |
- i | attach asy <ioaddress> <vector> slip|ax25|nrs |
- | <interface> <buffers> <mtu> |
- | <speed> [ipaddress] |
- | |
- m| attach asy <ioaddress> <vector> slip|ax25|nrs|ppp |
- | <interface> <buffers> <mtu> |
- | <speed> [options] |
- | |
- m| attach drsi <ioaddress> <vector> ax25 <interface> |
- | <bufsize> <mtu> |
- | <chan_a_speed> <chan_b_speed> |
- | [<ipaddress_a>] [<ipaddress_b>] |
- | |
- m| attach eagle <ioaddress> <vector> ax25 <interface> |
- | <buffers> <mtu> <speed> |
- | [<ipaddress_a>] [<ipaddress_b>] |
- | |
- m| attach hapn <ioaddress> <vector> ax25 <interface> |
- | <rx_bufsize> <mtu> csma|full |
- | [<ipaddress>] |
- | |
- im| attach hs <ioaddress> <vector> ax25 <interface> |
- | <buffers> <mtu> <txdelay> |
- | <persistence> [<ipaddress_a>] |
- | [<ipaddress_b>] |
- | |
- m| attach kiss <asy_interface> <port> <interface> |
- | [<mtu>] |
- | |
- im| attach netrom |
- | |
- im| attach packet <vector> <interface> <buffers> |
- | <mtu> [<ipaddress>] |
- | |
- m| attach pc100 <ioaddress> <vector> ax25 <interface> |
- | <buffers> <mtu> <speed> |
- | [<ipaddress_a>] [<ipaddress_b>] |
- | |
- im| attach scc <devices> init <ioaddress> <spacing> |
- | <Aoff> <Boff> <Dataoff> |
- | <intack> <vector> [p]<clock> |
- | [hdwe] [<param>] |
- | |
- im| attach scc <chan> slip|kiss|nrs|ax25 |
- | <interface> <mtu> <speed> |
- | <bufsize> [<callsign>] |
- | |
- m| attended [off|on] |on
- | |
- m| ax25 bc <interface> |
- m| ax25 bcinterval [<seconds>] |0
- m| ax25 bctext ["<broadcast_text>"] |
- im| ax25 blimit [<val>] |30
- im| ax25 digipeat [on|off] |on
- im| ax25 flush |
- im| ax25 heard |
- im| ax25 irtt [<millisecs>] |5000
- im| ax25 kick <&AXB> |
- im| ax25 maxframe [<window_size>] |1
- im| ax25 mycall [<callsign>] |
- im| ax25 paclen [<bytes>] |256
- im| ax25 pthresh [<bytes>] |128
- im| ax25 reset <&AXB> |
- im| ax25 retry [<n>] |10
- | |
- im| ax25 route |
- im| ax25 route add <target_callsign> [<digi_callsign> ...] |
- im| ax25 route drop <target_callsign> |
- m| ax25 route mode <target_callsign> [vc|datagm|interface] |
- | |
- im| ax25 status [<&AXB>] |
- im| ax25 t3 [<millisecs>] |0
- m| ax25 t4 [<seconds>] |300
- m| ax25 timertype [original|linear|exponential] |exp
- i | ax25 version [1|2] |1
- m| ax25 version [1|2] |2
- im| ax25 window [<bytes>] |2048
- | |
-
- | |
- im| bbs |
- | |
- im| Help ? (command list) |
- im| Area A |
- im| Bye B |
- im| Chat C |
- im| Download D <filename> |
- im| Escape E [<esc_char>] |^X
- im| Finger F [<username>] |
- im| Gateway G <interface> <callsign> [<callsign>...]|
- im| Help H (full helpfile) |
- m| Information I |
- im| Heard J |
- im| Kill K <n> ... |
- im| List L [<n> ...] |
- im| Netrom N |
- im| Read R [<n> ...] |
- im| Send S <username> [@ <host>] [< <from_addr>] |
- im| [$<bulletin_id>] |
- im| Telnet T [<host>] |
- im| Upload U <filename> |
- m| Verbose V |
- im| What W [<directory>] |
- im| Zap Z <filename> |
- | |
- im| Remote @ |
- im| Expert [<string>] |
- i | (unknown) > |
- im| (unknown) " |
- im| (unknown) # |
- | |
-
- | |
- im| cd [<directory>] |
- | |
- im| close [<session #>] |
- | |
- m| comm <interface> <string> |
- | |
- im| connect <interface> <callsign> [<digi_callsign> ...]|
- | |
-
- | |
- im| delete <filename> |
- | |
- im| detach <interface> |
- | |
- m| dialer <interface> <interval> <ping_target> |
- | <script_filename> |
- | |
- im| dir [<directory> | <file>] |
- | |
- im| disconnect [<session #>] (AX.25) |
- | |
- im| domain addserver <host> [<host> ...] |
- | |
- i | domain addserver <own_host> (starts server) |
- | |
- i | domain bootp <domainserver_ipaddress> [filename] |
- | |
- m| domain cache clean [off|on] |off
- m| domain cache list |
- m| domain cache size [<entries>] |20
- m| domain cache wait [<seconds>] |
- | |
- i | domain debug [off|on] |off
- im| domain dropserver <host> [<host> ...] |
- m| domain list |
- i | domain listservers |
- i | domain load [<filename>] |
- i | domain loopback [off|on] |off
- m| domain maxwait [<seconds>] |60
- i | domain nslookup <domainserver_host> <record_type> <name>|
- i | domain retries [<n>] |0
- m| domain retry [<n>] |
- i | domain save <filename> |
- im| domain suffix [<domain_suffix>] |
- i | domain timeout [<seconds>] |30
- im| domain trace [off|on] |off
- m| domain translate [off|on] |off
- m| domain verbose [off|on] |on
- | |
- m| drsistat |
- | |
- m| dump <hex_memoryaddress> | <.> [<decimal_range>] |
- | |
-
- | |
- m| eaglestat |
- | |
- im| echo [accept|refuse] (telnet) |accept
- | |
- i | eol [unix|standard] (telnet) |standd
- m| eol [standard|null] (telnet) |standd
- | |
- m| escape <hex_character> (always F10 on PC) |0x1d
- | |
- i | etherstat |
- | |
- im| exit |
- | |
-
- | |
- im| finger [<username>]@<host> |
- | (no spaces between parameters) |
- | |
- i | fkey |
- i | fkey <key_number> [<value> | "<string>" ] |
- | (terminate string with ^M for CR) |
- | |
- | f1 59 sf1 84 cf1 94 af1 104 pgup 73 |
- | f2 60 sf2 85 cf2 95 af2 105 pgdn 81 |
- | f3 61 sf3 86 cf3 96 af3 106 home 71 |
- | f4 62 sf4 87 cf4 97 af4 107 end 79 |
- | f5 63 sf5 88 cf5 98 af5 108 arup 72 |
- | f6 64 sf6 89 cf6 99 af6 109 ardn 80 |
- | f7 65 sf7 90 cf7 100 af7 110 ar l 75 |
- | f8 66 sf8 91 cf8 101 af8 111 ar r 77 |
- | f9 67 sf9 92 cf9 102 af9 112 ins 82 |
- | f10 68 sf10 93 cf10 103 af10 113 del 83 |
- | |
- | |
- im| ftp <host> |
- | |
- | ascii |
- | batch [off|on] |
- | binary |
- | cd [<dir>] |
- | dele <remote_file> |
- | dir [<filename> | <dir> [<local_filename>] ] |
- | get <remote_file> [<local_file>] |
- | h |
- | list [<filename> | <dir> [<local_filename>] ] |
- | ls [<filename> | <dir> [<local_filename>] ] |
- | mget <remote_file> [<remote_file> ...] |
- | mkdir <remote_dir> |
- | mput <local_file> [<local_file> ...] |
- | nlst [<filename> | <dir> [<local_filename>] ] |
- | pass <password> |
- | put <local_file> [<remote_file>] |
- | pwd [<dir>] |
- | quit |
- | rmdir <remote_dir> |
- | type [a | i | l <bytesize> ] |a
- | user <username> |
- | |
- im| F10 (to escape to "nos" command level) |
- | |
-
- | |
- m| hapnstat |
- im| help (list of top-level "nos>" commands) |
- | |
- im| hopcheck check <host> |
- im| hopcheck maxttl [<hops>] |30
- im| hopcheck maxwait [<seconds>] |5
- im| hopcheck queries [<count>] |3
- im| hopcheck trace [off|on] |off
- | |
- im| hostname [<hostname>] |
- | |
- im| hs |
- | |
-
- | |
- im| icmp echo [off|on] (must be "on" for one-shot pings) |on
- im| icmp status |
- im| icmp trace [off|on] |off
- | |
- im| ifconfig [<interface>] |
- im| ifconfig <interface> broadcast <bcast_ipaddress> |
- im| ifconfig <interface> encapsulation none|ax25|slip|netrom |
- im| ifconfig <interface> forward <ipaddress> |
- im| ifconfig <interface> ipaddress <ipaddress> |
- im| ifconfig <interface> linkaddress <callsign> |
- im| ifconfig <interface> mtu <bytes> |
- im| ifconfig <interface> netmask [0x]<hexmask> |
- im| ifconfig <interface> rxbuf |
- | |
- i | info |
- | |
- im| ip address [<ipaddress> | <hostname>] |
- im| ip rtimer [<seconds>] |30
- im| ip status |
- im| ip ttl [<hops>] |255
- | |
- m| isat [off|on] |off
- | |
-
- | |
- im| kick [<session #>] |
- | |
-
- | |
- im| log [<log_filename> | stop] |
- | |
-
- | |
- m| mail |
- | |
- im| mbox |
- m| mbox attend [off|on] |
- m| mbox kick |
- m| mbox maxmsg [<n>] |200
- m| mbox motd ["<string>"] |
- m| mbox status |
- m| mbox timer [<seconds>] |
- m| mbox tiptimeout [<seconds>] |
- | |
- im| mem free |
- im| mem garbage |
- m| mem ifbufsize [<bytes>] |2048
- m| mem nibufs [<n>] |5
- im| mem sizes |
- im| mem status |
- im| mem thresh [<bytes>] |8192
- | |
- im| mkdir <directory> |
- | |
- im| mode <interface> [vc|datagram] (AX.25) |
- | |
- im| more <filename> [<filename> ...] (q: quit) |
- | (space: next page) |
- | (CR: next line) |
- m| motd ["<string>"] |
- | |
- m| multitask [off|on] |on
- | |
-
- | |
- im| netrom acktime [<millisecs>] |3000
- im| netrom bcnodes <interface> |
- im| netrom connect <node_callsign> | <node_alias> |
- im| netrom choketime [<millisecs>] |180000
- m| netrom derate [off|on] |on
- im| netrom interface <interface> <alias> <quality> |
- im| netrom irtt [<millisecs>] |15000
- im| netrom kick <&CB> |
- m| netrom minquality [<n>] |10
- | |
- im| netrom nodefilter |
- im| netrom nodefilter add <neighbour_callsign> <interface> |
- im| netrom nodefilter drop <neighbour_callsign> <interface> |
- im| netrom nodefilter mode [none | accept | reject] |
- | |
- im| netrom nodetimer [<seconds>] |0
- im| netrom obsotimer [<seconds>] |0
- m| netrom promiscuous [off | on] |off
- im| netrom qlimit [<bytes>] |2048
- im| netrom reset <&CB> |
- im| netrom retries [<n>] |10
- | |
- im| netrom route |
- im| netrom route add <alias> <destination> <interface> |
- | <quality> <neighbour> |
- im| netrom route drop <destination> <neighbour> <interface> |
- im| netrom route info <destination> |
- | |
- im| netrom status |
- m| netrom timertype [linear | exponential] |exp
- i | netrom ttl [<hops>] |64
- m| netrom ttl [<hops>] |10
- im| netrom user [<username>] |
- im| netrom verbose [off | on] |off
- im| netrom window [<frames>] |4
- | |
- im| nntp addserver <nntpserver_host> <interval_in_seconds> |
- | [<time_range>] [<group> [<group> ...]] |
- | |
- im| nntp directory [spool | control <directory>] |
- im| nntp dropserver <nntpserver> |
- im| nntp groups [<newsgroup_name> ... ] |
- im| nntp kick <nntpserver> |
- im| nntp listservers |
- im| nntp trace [<trace #>] (0: no trace) |1
- | (1: serious errors) |
- | (2: transient errors) |
- | (3: session progress) |
- | (4: received articles) |
- | (5: errors) |
- | |
- im| nrstat |
- | |
-
- | |
- im| param <interface> <param> [<param> ...] |
- | |
- im| param <KISS_interface> 0 <data frame> |
- im| param <KISS_interface> 1 <TX_delay> (10 mS units) |
- im| param <KISS_interface> 2 <persistence> (0-255) |
- im| param <KISS_interface> 3 <slot_time> (10 mS units) |
- im| param <KISS_interface> 4 <TX_tail> (10 mS units) |
- im| param <KISS_interface> 5 <n> (n=0: half duplex) |
- | (n>0: full duplex) |
- | |
- im| param <KISS_interface> 255 (exit KISS mode) |
- | |
- im| ping <host> [<len> [<seconds> [<incflag>]]] |
- | |
- im| pop mailbox <mbox> |
- im| pop mailhost [<host>] |
- im| pop kick |
- m| pop quiet [off|on] |off
- im| pop timer [<seconds>] |0
- im| pop userdata [<username> <password>] |
- | |
- im| ps |
- | |
- im| pwd [<directory>] |
- | |
-
- | |
- im| record [<filename> | off] |off
- | |
- im| remote [-p port] [-k key] [-a kickaddr] |
- | <host> exit|reset|kick |
- im| remote -s <key> |
- | |
- im| rename <old_filename> <new_filename> |
- | |
- im| reset [<session #>] |
- | |
- im| rip accept <incoming_gateway_host> |
- | |
- im| rip add <destination_host> <secs> [<flags>] |
- | (1: include route to self) |
- | (2: split horizon) |
- | (4: triggered update) |
- | |
- im| rip drop <destination_host> |
- im| rip merge [off|on] |off
- im| rip refuse <incoming_gateway_host> |
- im| rip request <incoming_gateway_host> |
- im| rip status |
- im| rip trace [<n>] (0: no trace) |0
- | (1: changes only) |
- | (2: full trace) |
- | |
- i | rlogin <host> |
- im| rmdir <directory> |
- | |
- im| route |
- im| route add <dest_host>[/<bits>]|default |
- | <interface> [gateway_host [<metric>]] |
- | |
- im| route addprivate <dest_host>[/<bits>] |
- | <interface> [gateway_host [<metric>]] |
- | |
- im| route drop <dest_host>[/<bits>] |
- im| route flush |
- im| route lookup <dest_host> |
- | |
- m| rspf interface [<name> <quality> <horizon>] |
- | (needs ifconfig <interface> broadcast 44.255.255.255) |
- | |
- m| rspf message [<"message_string">] |
- m| rspf maxping [<n>] |5
- m| rspf mode [vc | datagram | none] |none
- m| rspf rrhtimer [<seconds>] |0
- m| rspf routes |
- m| rspf status |
- m| rspf suspecttimer [<seconds>] |
- m| rspf timer [<seconds>] |0
- | |
-
- | |
- im| sccstat |
- | |
- im| session [<session #>] |
- | |
- im| shell |
- | |
- m| smtp batch [off|on] |off
- im| smtp gateway [<host>] |
- im| smtp mode [ queue | route ] |route
- im| smtp kick |
- im| smtp kill <jobnumber> |
- im| smtp list |
- im| smtp maxclients [<n>] |10
- i | smtp mxlookup [off|on] |off
- m| smtp quiet [off|on] |off
- im| smtp timer [<seconds] |0
- im| smtp trace [<n>] (0: trace off) |0
- | (1: trace on) |
- | |
- im| socket [<socket #>] |
- | |
- m| source <script_filename> |
- | |
- im| start ax25|discard|echo|finger|ftp|netrom|pop |
- | remote|rip|smtp|telnet|ttylink |
- m| start tip <interface> |
- | |
- m| status |
- | |
- im| stop ax25|discard|echo|finger|ftp|netrom|pop |
- | remote|rip|smtp|telnet|ttylink |
- m| stop tip <interface> |
- | |
-
- | |
- m| tail <filename> |
- | |
- im| tcp irtt [<millisecs>] |5000
- im| tcp kick <&TCB> |
- im| tcp mss [<bytes>] |512
- im| tcp reset <&TCB> |
- im| tcp rtt <&TCB> <millisecs> |
- im| tcp status [<&TCB>] |
- m| tcp syndata [off|on] |off
- m| tcp timertype [linear | exponential] |exp
- im| tcp trace [off | on] |off
- im| tcp window [<bytes>] |2048
- | |
- im| telnet <host> [<well_known_port_number>] |23
- | |
- m| third-party [off | on] |on
- | |
- im| tip <interface> |
- | |
- i | ttylink <host> [<well_known_port_number>] |87
- | |
- im| trace <interface> [<BTIO_flags> [<trace_filename>]]] |
- | |
- | BTIO FLAGS: |
- | |
- | B=0 Broadcast filter off (trace all packets) |
- | B=1 Broadcast filter on (ignore broadcasts) |
- | |
- | T=0 Display protocol headers only |
- | T=1 Display headers + ASCII text |
- | T=2 Display headers + ASCII text + hex |
- | |
- | I=0 Ignore input packets |
- | I=1 Trace input packets |
- | |
- | O=0 Ignore output packets |
- | O=1 Trace output packets |
- | |
-
- | |
- im| udp status |
- | |
- im| upload <filename> |
- | |
-
- | |
- im| watch [off|on] |on
- | |
- m| watchdog [off|on] |off
- | |
-
- ______________________________________________________________________
-
-
-
- NOS STARTUP OPTIONS
- ===================
-
- nos [-t] (trace startup)
- [-d <root_directory>]
- [-s <socket_array_size>]
- [-m <heap_memory_in_KB>]
- [ <nos_autoexec_filename> ]
-
-
- /ftpusers PERMISSIONS
- =====================
-
- 1 read file }
- 2 create new file } "ftp" and "telnet"
- 4 write/delete file }
-
- 8 AX.25 Gateway access }
- 16 Telnet Gateway access }
- 32 NET/ROM Access } "telnet" only
- 64 Remote control }
- 128 Disallow access }
-
-
- WELL-KNOWN PORT NUMBERS (decimal)
- =================================
-
- 0 reserved 23 TELNET 79 FINGER
- 1-4 unassigned 25 SMTP 87 TTYLINK
- 5 RJE 37 TIME 95 SUPDUP
- 7 ECHO 39 RLP 101 HOSTNAME
- 9 DISCARD 42 NAMESERVER 102 ISO-TSAP
- 11 USERS 43 NICNAME 109 POP-2
- 13 DAYTIME 53 DOMAIN 113 AUTH
- 15 NETSTAT 67 BOOTPS 117 UUCP-PATH
- 17 QUOTE 68 BOOTPC 119 NNTP
- 19 CHARGEN 69 TFTP 513 RLOGIN
- 20 FTP-data 75 private dialout
- 21 FTP 77 private rje
-