===========                                        DISview [601]
!CMDSET.TXT
===========

===========================
Command Set Reference Guide
===========================
This file contains details of the syntax and parameters of all 
of the commands to be found in YAN 2.2.

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 YAN commands)
  !                                         (break out to shell)
  #                                               (comment line)
  F10                    (default escape to YAN 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>]

________________________________________________________________

  bootp [iface_name] [silent | noisy]

  browse <URL>

  browse <#filename>
________________________________________________________________

  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       <type>                                {255}

                                                  RR      <type>
                                                  ----    ------
                                                  A          1
                                                  NS         2
                                                  MD         3
                                                  MF         4
                                                  CNAME      5
                                                  SOA        6
                                                  MB         7
                                                  MG         8
                                                  MR         9
                                                  NULL      10
                                                  WKS       11
                                                  PTR       12
                                                  HINFO     13
                                                  MINFO     14
                                                  MX        15
                                                  TXT       16
                                                  NSAP      22
                                                  NSAP-PTR  23
                                                  AXFR     252
                                                  MAILB    253
                                                  MAILA    254
                                                  all      255

  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}
  edit   <filename>
  eol    [standard|null]                    (telnet)  {standard}

  escape [<literal_character>|<decimal_ASCII_code>]    {324=F10}

  exit [code]

________________________________________________________________

  finger [-l] <finger_filename>@<nodename> [</>][</logfile>]
  finger [-l] @<nodename> [</>][</logfile>]
		   (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>
  ftp <@scriptname>

    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
    rget    <remote_file> [<local_file>]
    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: 2 + hash
                                                 4: 2 + bytecount
    view    <remote_file>
    xview   (option>

  ftpopt    ascii|binary|hash
  ftpopt    pager [on|off]
  ftpopt    type  ascii | binary | logical <byte_size>
  ftpopt    verbose <n>                        (see above for n)
  ftpopt    view <n>                                         {0}
  ftpopt    wrap <cols>                         cols=0: wrap off

  F10                    (default escape to YAN Session Manager)
________________________________________________________________

  help (or ?)                   (list of top-level YAN commands)

  history [n] [<-m>]

  hop check   <nodename>
  hop maxttl  [<hops>]                                      {30}
  hop maxwait [<seconds>]                                    {5}
  hop queries [<count>]                                      {3}
  hop trace   [on|off]                                     {off}

  hostname    [<nodename>]

  http URL [options]
  http @scriptname [options]
  httpopt binary [on|off]                                  {off}
  httpopt cookies [0|1|2]                                    {0}
  httpopt spoof [on|off]                                   {off}
  httpopt proxy [on|off]                                   {off}
  httpopt proxyserver [server_name:port]
  httpopt refresh [on|off]                                 {off} 
  httpopt usecache [on|off]                                {off}
  httpopt verbose [on|off]                                 {off}
________________________________________________________________

  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]

________________________________________________________________

  mail       [<address>]
  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)
  mstat [n]                                                  {0}

  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 newnews     [0|1|2][<n>]   
  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]                                {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>]]]

  pkstat

  popmail addserver <host> [<seconds>] [hh:mm-hh:mm] <protocol>
				  <mailbox> <username> [<password>]
  popmail delete <username> [<on|off>]
  popmail dropserver <host> [<username>]
  popmail kick <host> [<username>]
  popmail list
  popmail quiet <yes|no>                                     {no}   
  popmail trace <level>                                       {0}
  popmail verbose <yes|no>                                   {no}

  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 | ip_address
                        [<metric>]]

  route addprivate <target_nodename>[/<bits>] | default 
                     <interface> [gateway_nodename | ip_address
                        [<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>|<ip_address> [<port_number>] [</filename>]
					 [<@><@scriptname>] {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>
________________________________________________________________

  view	  <filename>

________________________________________________________________

  watch    [on|off]                                        {off}

________________________________________________________________



NET STARTUP OPTIONS
===================
  NET [-b]                           (console BIOS)
      -c<n><c><e>                    (configure status line)
      [-d <root_directory>]          (N.B. defaults to DOS root)
      [-e]                           (43/50 line mode)
      [-s <socket_array_size>]
      [-t]                           (no seconds display)
      [-v]                           (verbose) 
      [-w]                           (status line colour)
      [-x]                           (session line colour) 
      [-y]                           (main screen colour)
      [ <yan_autoexec_filename> ]



WELL-KNOWN PORT NUMBERS
=======================
    0  reserved     42  NAMESERVER      109  POP-2
  1-4  unassigned   43	NICNAME 	110  POP-3
    5  RJE	    53	DOMAIN		111  Sun RPC
    7  ECHO	    67	BOOTPS		113  AUTH
    9  DISCARD	    68	BOOTPC		117  UUCP-PATH
    11	USERS	    69	TFTP		119  NNTP
    13	DAYTIME     75	private dialout 123  NTP
    15	NETSTAT     77	private rje	129  PWDGEN
    17	QUOTE	    79	FINGER		139  NETBIOS-ssn
    19	CHARGEN     87	TTYLINK 	161  SNMP net monitor
    20	FTP-data    93	DCP		162  SNMP traps
    21	FTP-control 95	SUPDUP		512  UNIX comsat
    23	TELNET	   101	HOSTNAME	513  RLOGIN/Unix rwho
    25	SMTP	   102	ISO-TSAP	514  SYSLOG
    37	TIME	   103	X.400 - service 525  TIME daemon
    39	RLP	   104	x.400 - sending 666  Demon's POP3 finger

  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     @
