/* 
* Copyright (c) 2004 by Sun Microsystems, Inc.
* All rights reserved.
*/ 

TEST NAME 

      ftpstress_6 - compare for data corruption on IPv6

SYNOPSIS 

      sh ftpstress_6.sh REMOTE-MACHINE

DESCRIPTION 

      This command sends files of different sizes from a local machine to a
      remote machine, back to the local machine, and compares for data
      corruption.

OPERANDS 

      REMOTE-MACHINE  Either a host name or IPv6 address of the machine to
                      which files and directories are copied. If a host name 
                      is given, it must appear in /etc/inet/ipnodes along with the
                      remote machine's IPv6 address.

USAGE VARIABLES 

      RUNTIME         This environment variable specifies, in seconds, the 
                      duration of the test.

      local_ftpdir    This environment variable specifies the local directory 
                      to use for creating and copying files.

      remote_ftpdir   This environment variable specifies the remote directory 
                      to use for creating and copying files.

SETUP 

      You need two machines connected by a network, either back-to-back, or
      through a hub or switch.

      Before the tests can run, ensure that the local machine can make
      anonymous ftp transfers to the remote machine. This is described in
      detail in the in.ftpd(1M) man page. Under HCTS, this is set up by the
      setup_anon_ftp.sh script at install time.

OUTPUT 

      The test produces self-explanatory output of the progress of the test.

DURATION 

      24 hours

POSSIBLE CONCURRENT TESTS 

      This test can run concurrently with cl3se3_6, lsalr_6, mpflip, rcp_6, and
      spray_6.

CAVEATS 

      * If several instances of ftpstress_6 are running at the same time, ensure
        that the test directories are different for each instance.

      * This test requires at least 1.2 Gbytes on the local machine and 600
        Mbytes on the remote host.

EXAMPLES 

      # local_ftpdir=/export/home/tmp
      # remote_ftpdir=incoming/
      # RUNTIME=60
      # ./ftpstress_6.sh cerberus240

      Beginning ftpstress_6
      Running time: 60 seconds
      Creating fileset for transfer
      Initiating file transfer
      FTP succeeded: transmitted 568888832 bytes so far
      LOOPTIME: 614
      !PASS: No errors detected in ftp on IPv6
      #

REFERENCES 

      ftp(1), in.ftpd(1M), netstat(1M), hosts(4), netrc(4), rhosts(4)
