============================ 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: an AX.25 MYCALL callsign (e.g. "G3NRW-1") a computer name (e.g. "g3nrw" or "g3nrw.ampr.org") an Internet address (e.g. "44.131.5.2") or a user at a computer (e.g. "ian") a device interface name (e.g. "pk0" or "ax0") a device I/O base address (e.g. "0x3f8") 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 [] (FTP) | | | im| arp | | | i | arp add ether|ax25|netrom | | | | | | m| arp add ether|ax25|netrom|arcnet | | | | | | i | arp drop ether|ax25|netrom | | | m| arp drop ether|ax25|netrom|arcnet | | | im| arp flush | | | i | arp publish ether|ax25|netrom | | | | | | m| arp publish ether|ax25|netrom|arcnet | | | | | | im| asystat | | | i | attach 3c500 arpa | | [ipaddress] | | | i | attach asy slip|ax25|nrs | | | | [ipaddress] | | | m| attach asy slip|ax25|nrs|ppp | | | | [options] | | | m| attach drsi ax25 | | | | | | [] [] | | | m| attach eagle ax25 | | | | [] [] | | | m| attach hapn ax25 | | csma|full | | [] | | | im| attach hs ax25 | | | | [] | | [] | | | m| attach kiss | | [] | | | im| attach netrom | | | im| attach packet | | [] | | | m| attach pc100 ax25 | | | | [] [] | | | im| attach scc init | | | | [p] | | [hdwe] [] | | | im| attach scc slip|kiss|nrs|ax25 | | | | [] | | | m| attended [off|on] |on | | m| ax25 bc | m| ax25 bcinterval [] |0 m| ax25 bctext [""] | im| ax25 blimit [] |30 im| ax25 digipeat [on|off] |on im| ax25 flush | im| ax25 heard | im| ax25 irtt [] |5000 im| ax25 kick <&AXB> | im| ax25 maxframe [] |1 im| ax25 mycall [] | im| ax25 paclen [] |256 im| ax25 pthresh [] |128 im| ax25 reset <&AXB> | im| ax25 retry [] |10 | | im| ax25 route | im| ax25 route add [ ...] | im| ax25 route drop | m| ax25 route mode [vc|datagm|interface] | | | im| ax25 status [<&AXB>] | im| ax25 t3 [] |0 m| ax25 t4 [] |300 m| ax25 timertype [original|linear|exponential] |exp i | ax25 version [1|2] |1 m| ax25 version [1|2] |2 im| ax25 window [] |2048 | | | | im| bbs | | | im| Help ? (command list) | im| Area A | im| Bye B | im| Chat C | im| Download D | im| Escape E [] |^X im| Finger F [] | im| Gateway G [...]| im| Help H (full helpfile) | m| Information I | im| Heard J | im| Kill K ... | im| List L [ ...] | im| Netrom N | im| Read R [ ...] | im| Send S [@ ] [< ] | im| [$] | im| Telnet T [] | im| Upload U | m| Verbose V | im| What W [] | im| Zap Z | | | im| Remote @ | im| Expert [] | i | (unknown) > | im| (unknown) " | im| (unknown) # | | | | | im| cd [] | | | im| close [] | | | m| comm | | | im| connect [ ...]| | | | | im| delete | | | im| detach | | | m| dialer | | | | | im| dir [ | ] | | | im| disconnect [] (AX.25) | | | im| domain addserver [ ...] | | | i | domain addserver (starts server) | | | i | domain bootp [filename] | | | m| domain cache clean [off|on] |off m| domain cache list | m| domain cache size [] |20 m| domain cache wait [] | | | i | domain debug [off|on] |off im| domain dropserver [ ...] | m| domain list | i | domain listservers | i | domain load [] | i | domain loopback [off|on] |off m| domain maxwait [] |60 i | domain nslookup | i | domain retries [] |0 m| domain retry [] | i | domain save | im| domain suffix [] | i | domain timeout [] |30 im| domain trace [off|on] |off m| domain translate [off|on] |off m| domain verbose [off|on] |on | | m| drsistat | | | m| dump | <.> [] | | | | | m| eaglestat | | | im| echo [accept|refuse] (telnet) |accept | | i | eol [unix|standard] (telnet) |standd m| eol [standard|null] (telnet) |standd | | m| escape (always F10 on PC) |0x1d | | i | etherstat | | | im| exit | | | | | im| finger []@ | | (no spaces between parameters) | | | i | fkey | i | fkey [ | "" ] | | (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 | | | | ascii | | batch [off|on] | | binary | | cd [] | | dele | | dir [ | [] ] | | get [] | | h | | list [ | [] ] | | ls [ | [] ] | | mget [ ...] | | mkdir | | mput [ ...] | | nlst [ | [] ] | | pass | | put [] | | pwd [] | | quit | | rmdir | | type [a | i | l ] |a | user | | | im| F10 (to escape to "nos" command level) | | | | | m| hapnstat | im| help (list of top-level "nos>" commands) | | | im| hopcheck check | im| hopcheck maxttl [] |30 im| hopcheck maxwait [] |5 im| hopcheck queries [] |3 im| hopcheck trace [off|on] |off | | im| 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 [] | im| ifconfig broadcast | im| ifconfig encapsulation none|ax25|slip|netrom | im| ifconfig forward | im| ifconfig ipaddress | im| ifconfig linkaddress | im| ifconfig mtu | im| ifconfig netmask [0x] | im| ifconfig rxbuf | | | i | info | | | im| ip address [ | ] | im| ip rtimer [] |30 im| ip status | im| ip ttl [] |255 | | m| isat [off|on] |off | | | | im| kick [] | | | | | im| log [ | stop] | | | | | m| mail | | | im| mbox | m| mbox attend [off|on] | m| mbox kick | m| mbox maxmsg [] |200 m| mbox motd [""] | m| mbox status | m| mbox timer [] | m| mbox tiptimeout [] | | | im| mem free | im| mem garbage | m| mem ifbufsize [] |2048 m| mem nibufs [] |5 im| mem sizes | im| mem status | im| mem thresh [] |8192 | | im| mkdir | | | im| mode [vc|datagram] (AX.25) | | | im| more [ ...] (q: quit) | | (space: next page) | | (CR: next line) | m| motd [""] | | | m| multitask [off|on] |on | | | | im| netrom acktime [] |3000 im| netrom bcnodes | im| netrom connect | | im| netrom choketime [] |180000 m| netrom derate [off|on] |on im| netrom interface | im| netrom irtt [] |15000 im| netrom kick <&CB> | m| netrom minquality [] |10 | | im| netrom nodefilter | im| netrom nodefilter add | im| netrom nodefilter drop | im| netrom nodefilter mode [none | accept | reject] | | | im| netrom nodetimer [] |0 im| netrom obsotimer [] |0 m| netrom promiscuous [off | on] |off im| netrom qlimit [] |2048 im| netrom reset <&CB> | im| netrom retries [] |10 | | im| netrom route | im| netrom route add | | | im| netrom route drop | im| netrom route info | | | im| netrom status | m| netrom timertype [linear | exponential] |exp i | netrom ttl [] |64 m| netrom ttl [] |10 im| netrom user [] | im| netrom verbose [off | on] |off im| netrom window [] |4 | | im| nntp addserver | | [] [ [ ...]] | | | im| nntp directory [spool | control ] | im| nntp dropserver | im| nntp groups [ ... ] | im| nntp kick | im| nntp listservers | im| nntp trace [] (0: no trace) |1 | (1: serious errors) | | (2: transient errors) | | (3: session progress) | | (4: received articles) | | (5: errors) | | | im| nrstat | | | | | im| param [ ...] | | | im| param 0 | im| param 1 (10 mS units) | im| param 2 (0-255) | im| param 3 (10 mS units) | im| param 4 (10 mS units) | im| param 5 (n=0: half duplex) | | (n>0: full duplex) | | | im| param 255 (exit KISS mode) | | | im| ping [ [ []]] | | | im| pop mailbox | im| pop mailhost [] | im| pop kick | m| pop quiet [off|on] |off im| pop timer [] |0 im| pop userdata [ ] | | | im| ps | | | im| pwd [] | | | | | im| record [ | off] |off | | im| remote [-p port] [-k key] [-a kickaddr] | | exit|reset|kick | im| remote -s | | | im| rename | | | im| reset [] | | | im| rip accept | | | im| rip add [] | | (1: include route to self) | | (2: split horizon) | | (4: triggered update) | | | im| rip drop | im| rip merge [off|on] |off im| rip refuse | im| rip request | im| rip status | im| rip trace [] (0: no trace) |0 | (1: changes only) | | (2: full trace) | | | i | rlogin | im| rmdir | | | im| route | im| route add [/]|default | | [gateway_host []] | | | im| route addprivate [/] | | [gateway_host []] | | | im| route drop [/] | im| route flush | im| route lookup | | | m| rspf interface [ ] | | (needs ifconfig broadcast 44.255.255.255) | | | m| rspf message [<"message_string">] | m| rspf maxping [] |5 m| rspf mode [vc | datagram | none] |none m| rspf rrhtimer [] |0 m| rspf routes | m| rspf status | m| rspf suspecttimer [] | m| rspf timer [] |0 | | | | im| sccstat | | | im| session [] | | | im| shell | | | m| smtp batch [off|on] |off im| smtp gateway [] | im| smtp mode [ queue | route ] |route im| smtp kick | im| smtp kill | im| smtp list | im| smtp maxclients [] |10 i | smtp mxlookup [off|on] |off m| smtp quiet [off|on] |off im| smtp timer [] (0: trace off) |0 | (1: trace on) | | | im| socket [] | | | m| source | | | im| start ax25|discard|echo|finger|ftp|netrom|pop | | remote|rip|smtp|telnet|ttylink | m| start tip | | | m| status | | | im| stop ax25|discard|echo|finger|ftp|netrom|pop | | remote|rip|smtp|telnet|ttylink | m| stop tip | | | | | m| tail | | | im| tcp irtt [] |5000 im| tcp kick <&TCB> | im| tcp mss [] |512 im| tcp reset <&TCB> | im| tcp rtt <&TCB> | 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 [] |2048 | | im| telnet [] |23 | | m| third-party [off | on] |on | | im| tip | | | i | ttylink [] |87 | | im| trace [ []]] | | | | 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 | | | | | im| watch [off|on] |on | | m| watchdog [off|on] |off | | ______________________________________________________________________ NOS STARTUP OPTIONS =================== nos [-t] (trace startup) [-d ] [-s ] [-m ] [ ] /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