===========                                        DISview [518]
!CMDSET.TXT
===========

===========================
Command Set Reference Guide
===========================
This file contains details of the syntax and parameters of all 
of the commands to be found in Demon's KA9Q NET version 2.16, 
contained in the DIS216C package.

Default parameters are shown in braces; e.g. {30}.


-----------------------------------
Network name and address parameters
-----------------------------------


       <hostname> -----------+          +------- <domain_name>
                             |          |
                          <------> <--------->
  email_address ==>   ian@dowrmain.demon.co.uk
                      <-> <------------------>
                       |           |
       <username> -----+           +------------- <nodename>
                                   |
                          <------------------>
                          dowrmain.demon.co.uk.
                          <------------------->
                                   |
       <fqdn> ---------------------+
       (fully qualified domain name)

 

________________________________________________________________

  ?                       (help: list of top-level NET commands)
  !                                         (break out to shell)
  #                                               (comment line)
  F10                    (default escape to NET Session Manager)
________________________________________________________________

  abort       [<session_number>]                           (FTP)

  arp

  arp add     <nodename> ether|ax25|netrom|arcnet
                                               <network_address>

  arp drop    <nodename> ether|ax25|netrom|arcnet
  arp flush

  arp publish <nodename> ether|ax25|netrom|arcnet
                                               <network_address>

  asystat

  at [ <yymmddhhmm> | <hhmm> | <mm> | now+<hhmm> <command> ]

  attach asy <ioaddress> <vector>[c] slip|ax25|nrs|ppp
                              <interface> <rx_buffer_size> <mtu>
                              <speed> [<flags>]

                              flags f: force 16650A
                                    n: no TX flow control

  attach packet <vector> <interface> <buffers>
                  <mtu> [<ip_address>]

________________________________________________________________

  cd         [<directory>]

  close      [<session_number>]

________________________________________________________________

  delete     <filename>

  detach     <interface>

  dialer     <interface> <dialer_filename>

  dialer     <interface> <dialer_filename> 
                                [<seconds>[<pings>[<nodename>]]]

  dialer     <interface> <dialer_filename> demand
  dialer     <interface> <dialer_filename> failexit

         (use ESC RETURN to terminate dialing from the keyboard)

           Init Commands
           -------------
              dial_cmd "<string>"
              init "<string>"
              ld_code "<string>"
              number "<string>"
              retries <count>

           Dial Commands
           -------------
              control up|down
              dial
              init
              send "<string>" [<milliseconds>]
              speed <speed>
              status up|down
              wait <milliseconds> [ "<string>" [<speed>] ]
           
              cwait <milliseconds> [ "<success_string>"
                   "<failure_string>" [, "<failure_string>" ...]
                   [<speed>] ]


  dir        [<directory>|<filename>]

  disconnect [<session_number>]

  domain addserver   <ip_address|nodename>

  domain cache clean [on|off]                              {off}
  domain cache list
  domain cache size  [<entries>]                           {100}
  domain cache wait  [<seconds>]                           {300}

  domain dropserver  <ip_address|nodename>
  domain list
  domain maxwait     [<seconds>]                             {0}
  domain query       <ip_address|nodename>
  domain qtype       <ip_address|nodename> <type>          {255}
                                              type: 255=TYPE_ANY
                                                      1=TYPE_A 

  domain retry       [<n>]                                   {2}
  domain startdns
  domain stopdns
  domain suffix      [<domain_name>]               {demon.co.uk}
  domain trace       [on|off]                              {off}

________________________________________________________________

  echo   [accept|refuse]                    (telnet)    {accept}
  eol    [standard|null]                    (telnet)  {standard}

  escape [<literal_character>|<decimal_ASCII_code>]    {324=F10}

  exit

________________________________________________________________

  finger [<finger_filename>]@<nodename>
                  (N.B. no spaces either side of the "@" symbol)

  finger status@gate            (get Demon system status)
  finger motd@gate              (get Demon Message-of-the-Day)
  finger <myhostname>@post      (list waiting SMTP mail)
  finger <nodename>@post        (get IP address of <nodename>)
  finger <ip_address>@post      (get hostname of <ip_address>)

  fkey
  fkey   <key_number> [<value>|"<string>"]    

    (in the string, use \n or ^M for RETURN)
    (start string with '[command]' to return to net> prompt)
 
        NORMAL  SHIFT  CONTROL  ALT   |    Miscellaneous
        ------  -----  -------  ---   |    -------------
     F1   59     84      94     104   |    page up     73 
     F2   60     85      95     105   |    page down   81 
     F3   61     86      96     106   |    home        71 
     F4   62     87      97     107   |    end         79 
     F5   63     88      98     108   |    up arrow    72 
     F6   64     89      99     109   |    down arrow  80 
     F7   65     90     100     110   |    left arrow  75 
     F8   66     91     101     111   |    right arrow 77 
     F9   67     92     102     112   |    insert      82 
     F10  68     93     103     113   |    delete      83 
  
      
  ftp <nodename>

    ascii
    batch   [on|off]
    binary
    cd      <remote_dir>
    close
    dir     [<remote_dir>|<remote_file> [<local_file>]]
    get     <remote_file> [<local_file>]
    hash                                           (= verbose 3)
    help    [<ftp_command>]
    list    [<remote_dir>|<remote_file> [<local_file>]]
    ls      [<remote_dir>|<remote_file> [<local_file>]]
    mget    <remote_file> [<remote_file> ...]
    mkdir   <remote_dir>
    mput    <local_file>  [<local_file> ...]
    nlst    [<remote_dir>|<remote_file> [<local_file>]]
    open    <nodename>
    pager   [on|off]
    put     <local_file>  [<remote_file>]
    quit
    rmdir   <remote_dir>
    source  <local_ftp_script_filename>
    type    [a | i | l <bytesize> ]                          {a}
    verbose [<n>]                                            {2}
                                                n=0: errors only
                                                  1: + summary
                                                  2: + progress
                                                  3: + hash
    view    <remote_file>

  ftpopt    ascii|binary|hash
  ftpopt    pager [on|off]
  ftpopt    type  ascii | binary | logical <byte_size>
  ftpopt    verbose <n>                        (see above for n)
  ftpopt    wrap <cols>                         cols=0: wrap off

  F10                    (default escape to NET Session Manager)
________________________________________________________________

  help (or ?)                   (list of top-level NET commands)

  hop check   <nodename>
  hop maxttl  [<hops>]                                      {30}
  hop maxwait [<seconds>]                                    {5}
  hop queries [<count>]                                      {3}
  hop trace   [on|off]                                     {off}

  hostname    [<nodename>]

________________________________________________________________

  icmp echo   [on|off]      (must be on for one-shot ping)  {on}
  icmp status
  icmp trace  [on|off]      (turn off for hop check)       {off}

  ifconfig
  ifconfig <interface>
  ifconfig <interface> broadcast     <broadcast_ip_address>

  ifconfig <interface> encapsulation 
                           none|ax25|encap|ether|slip|netrom|ppp

  ifconfig <interface> forward       <fwd_interface>
  ifconfig <interface> ip_address    <ip_address>
  ifconfig <interface> linkaddress   <ether_addr>
  ifconfig <interface> mtu           <bytes>
  ifconfig <interface> netmask       [0x]<hexmask>
  ifconfig <interface> rxbuf         <buffer_size>

  inline     [on|off]

  ip address [<ip_address>]

  ip filter  <interface> delete
  ip filter  <interface> list
  ip filter  <interface> deny in|out <type> <source> <dest>
  ip filter  <interface> permit in|out <type> <source> <dest>

  ip rtimer  [<seconds>]                                    {30}
  ip status
  ip ttl     [<hops>]                                       {64}

  isat       [on|off]                                      {off}

________________________________________________________________

  kick       [<session_number>]
________________________________________________________________

  log        [<log_filename>|stop]

________________________________________________________________

  mbox
  mbox attend      [on|off]
  mbox maxmsg      [<n>]                                   {200}
  mbox motd        ["<string>"]
  mbox status
  mbox timer       [<seconds>]                               {0}
  mbox tiptimeout  [<seconds>]                             {180}

  memory freelist
  memory ifbufsize [<bytes>]                              {2048}
  memory minheap   [<n>]
  memory nibufs    [<n>]                                     {5}
  memory sizes
  memory status
  memory thresh    [<bytes>]                              {8192}

  mkdir  <directory>

  more <filename>  [<filename> ...]               (q: quit)
                                              (space: next page)
                                              (ENTER: next line)
  multitask [on|off]                                        {on}

________________________________________________________________

  nntp addserver   <nntpserver_nodename> [<interval_in_seconds>]
                         [<time_range>] [<group> [<group> ...]]

  nntp batch       [on|off <n>]
  nntp directory   [spool|control <directory>]
  nntp dropserver  <nntpserver_nodename>
  nntp groups      [<newsgroup_name> ... ]
  nntp kick        [<nntpserver_nodename>]
  nntp listservers
  nntp newgroups   [on|off]
  nntp safety      [on|off]
  nntp trace       [<n>]                n=0: no trace
                                          1: serious errors
                                          2: transient errors
                                          3: session progress
                                          4: received articles
                                          5: errors
                                          6:
                                          7: max trace
  nntp verbose     [on|off]

________________________________________________________________

  param <interface>
  param <interface> <param> [<param> ...]

  param <interface> 8|dtr [<n>]                    (n=0: DTR lo)
                                                   (n=1: DTR hi)
  param <interface> 9|rts [<n>]                    (n=0: RTS lo)
                                                   (n=1: RTS hi)
  param <interface> 10    [<speed>]
  param <interface> up
  param <interface> down
  param <interface> blind
 
  ping  <nodename> [<length> [<milliseconds> [<incflag>]]]

  ppp <interface>

  ppp <interface> idle [<seconds> [exit|noexit]]        {noexit}

  ppp <interface> ipcp open active|passive
  ppp <interface> ipcp timeout [<seconds>]
  ppp <interface> ipcp try configure [<count>]
  ppp <interface> ipcp try failure [<count>]
  ppp <interface> ipcp try terminate [<count>]
  ppp <interface> ipcp local|remote address
                                  [<nodename>|allow [on|off]]
  ppp <interface> ipcp local|remote compress [tcp <slots>
                                  [<flag>|none|allow [on|off]]

  ppp <interface> lcp close
  ppp <interface> lcp local|remote
  ppp <interface> lcp local|remote accm
                                  [<bitmap> | allow [on|off]]
  ppp <interface> lcp local|remote authenticate
                                  [pap|none|allow [on|off]]
  ppp <interface> lcp local|remote compress address|control
                                  [on|off|allow [on|off]]
  ppp <interface> lcp local|remote compress protocol
                                  [on|off|allow [on|off]]
  ppp <interface> lcp local|remote default
  ppp <interface> lcp local|remote magic [on|off|allow [on|off]]
  ppp <interface> lcp local|remote mru  [<size>]|allow [on|off]]
  ppp <interface> lcp open active|passive
  ppp <interface> lcp timeout [<seconds>]
  ppp <interface> lcp try configure [<count>]
  ppp <interface> lcp try failure [<count>]
  ppp <interface> lcp try terminate [<count>]

  ppp <interface> pap user [<username> [<password>]]

  ppp <interface> trace [<flags>]

  ps
  pwd          [<directory>]

________________________________________________________________

  record       [<filename>|off]                            {off}

  remote       [-p <port>] [-k <key>] [-a <kickaddr>] <nodename>
                                             exit|reset|kick
  remote       -s <key>

  rename       <old_filename> <new_filename>

  reset        [<session_number>]

  rip accept   <incoming_gateway_nodename>

  rip add      <destination_nodename> <secs> [<flags>]
                                  flags=1: include route to self
                                        2: split horizon
                                        4: triggered update

  rip drop     <destination_nodename>
  rip merge    [on|off]                                    {off}
  rip refuse   <incoming_gateway_nodename>
  rip request  <incoming_gateway_nodename>
  rip status
  rip trace    [<n>]                           n=0: no trace
                                                 1: changes only
                                                 2: full trace

  rlogin       <nodename>                       ~d: download
                                                ~u: upload
  rmdir        <directory>

  route
  route add        <target_nodename>[/<bits>] | default 
                       <interface> [gateway_nodename [<metric>]]

  route addprivate <target_nodename>[/<bits>] | default 
                       <interface> [gateway_nodename [<metric>]]

  route drop       <target_nodename>[/<bits>]
  route flush
  route lookup     <target_nodename>

  rsh          <nodename> [<command>]
________________________________________________________________

  session
  session         [<session_number>]

  shell

  smtp batch      [on|off]                                 {off}
  smtp beep       [on|off]
  smtp delay      [<n>] ??????????
  smtp gateway    [<nodename>]
  smtp kick
  smtp kill       <job_number>
  smtp list
  smtp maxclients [<n>]                                     {10}
  smtp mode       [queue|route]                          {route}
  smtp separator  <string>                                {null}
  smtp timer      [<seconds>]                                {0}
  smtp trace      [<n>]                           n=0: trace off
                                                    7: max trace
  smtp verbose    [on|off]
  smtp wait       [<seconds>]                               {20}

  socket    [<socket_number>]

  source    <script_filename>

  sourceb   <script_filename>

  start   discard|echo|finger|ftp|remote|rip|smtp|telnet|
                                                    time|ttylink

  start   tip <interface> 

  stop    discard|echo|finger|ftp|remote|rip|smtp|telnet|
                                                    time|ttylink

  stop    tip  <interface>

________________________________________________________________

  tcp irtt      [<millisecs>]                             {5000}
  tcp kick      <&TCB>
  tcp mss       [<bytes>]                                  {512}
  tcp reset     <&TCB>
  tcp rtt       <&TCB> <millisecs>
  tcp status    [<&TCB>]
  tcp syndata   [on|off]                                   {off}
  tcp trace     [on|off]                                   {off}
  tcp window    [<bytes>]                                 {2048}

  telnet <nodename> [<well_known_port_number>]              {23}
  telnet <nodename> 25                       (SMTP)
  telnet <nodename> 87                       (CHAT/TTYLINK)
  telnet <my_hostname> | <my_ip_address>     (Built-in KA9Q BBS)
          (see the end of this file for details of
           the built-in KA9Q BBS Commands)


  test

  time   auto       [on|off]
  time   delay      [<seconds>]
  time   maxcorrect [<seconds>]
  time   mincorrect [<seconds>]
  time   read
  time   server     [<time_server_nodename>]
  time   set

  tip       <async_interface>

  trace
  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

________________________________________________________________

  udp      status

  upload
  upload   <filename>

________________________________________________________________

  watch    [on|off]                                        {off}

________________________________________________________________



NET STARTUP OPTIONS
===================
  NET [-b]                             (console BIOS)
      [-d <root_directory>]
      [-m <heap_memory_in_KB>]
      [-s <socket_array_size>]
      [-v]
      [ <net_autoexec_filename> ]



WELL-KNOWN PORT NUMBERS
=======================
    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


  Built-In KA9Q BBS Commands
  --------------------------
  Accessible via 'telnet <my_hostname>' 
              or 'telnet <my_ip_address>'

  N.B. ~/ftpusers must contain a suitable entry allowing
       access, and the Telnet server must be started with
       'start telnet'.

    Help      ? (command list)
    Area      A [<area_name>]
    Bye       B
    Chat      C
    Download  D <filename>               (ASCII file)
              DU <filename>              (uuencoded binary file)
    Escape    E [<esc_char>]                                {^X}
    Finger    F [<finger_filename>][@<nodename>]
    Help      H [<command_name>]
    Info      I
    Kill      K <n> ...
    List      L [<n> ...]
    Read      R <n> ...

    Send      S <username>  [%<nodename>][@<nodename>]
                   [< <from_addr>] [$<bulletin_id>]

    Forward   SF <username> [%<nodename>][@<nodename>]
                   [< <from_addr>] [$<bulletin_id>]

    Reply     SR [<n>]

    Telnet    T <nodename> [well_known_port_number>]       {23}
    Upload    U <filename>
    Verbose   V <n> ...
    What      W [<directory>]
    Zap       Z <filename>
    Sysop     @
