Stress Test: scp

### TEST NAME

> scp - copy files from one machine to another

### SYNOPSIS

> `sh scp.sh` remote_machine

### DESCRIPTION

> These tests use the `scp` command to copy files from one machine to another. The tests terminate if any file becomes corrupted.

### OPERANDS

> remote_machine
>   Either the host name or IP address of the machine to which files and directories are copied. If the host name is specified, it must appear in `/etc/hosts` along with the remote machine's IP address.

### USAGE VARIABLES

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

### SETUP

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

> Ensure that sufficient disk space is available on the remote machine for copying.

### OUTPUT

> At the start of each iteration, the current time is output.

### DURATION

> 8 hours

### POSSIBLE CONCURRENT TESTS

> You can run this test concurrently with `lsalr`, `mpflip`, `cl3se3`, `ftpstress`, and `spray`.

### NOTES

> The `scp` test copies `/kernel/unix` on the local machine to `/tmp` on the remote machine.

### EXAMPLES

> >     # RUNTIME=30
> >     # export RUNTIME
> >     # ./scp.sh dellboy240
> >     Runtime: 30 seconds
> >     Changing local directory to /tmp
> >     Thursday March  2 13:52:21 GMT 2000
> >     Thursday March  2 13:52:29 GMT 2000
> >     Thursday March  2 13:52:37 GMT 2000
> >     Thursday March  2 13:52:46 GMT 2000
> >     !PASS: Completed 5 copies successfully

### REFERENCES

> `scp`(1), `ssh`(1), `hosts`(4)

Copyright 2005 Sun Microsystems, Inc. All rights reserved.