IEPM

Performing a localmake on a remote system

SLAC Home Page
Bulk throughput measurements | Bulk throughput simulation | Windows vs. streams | Effect of load on RTT and loss | Bulk file transfer measurements | QBSS measurements

This document oulines the steps to make copies of monitoring tests, in this case we use BBCP, to remote hosts for the purpose of IEPM tests.

Use ssh to logon to remote host

In this document we use "pcgiga.cern.ch" as the example remote host, "cottrell" as an example of the account on the remote host, and pharlap.slac.stanford.edu as the monitoring host.
10iepm@pharlap:~>ssh [username]@pcgiga.cern.ch
Last login: Wed Apr  3 13:08:50 2002 from pharlap.slac.stanford.edu

Get machine information and enter the package directory

[cottrell@plato ~]$ uname -a
Linux plato.cacr.caltech.edu 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
[cottrell@plato ~]$ cd package

Remove existing versions of BBCP

[cottrell@plato ~/package]$ rm -rf bbcp*
[cottrell@plato ~/package]$ ls
bin    iperf-1.2      Makefile   netest-2.bin.tar  NetLogger.h  nt-2  pathrate-2.1.2      vx_ioctl.h
chirp  iperf-1.2.tar  MakeSname  NetLogger.c       NetLogger.i  obj   pathrate-2.1.2.tar

Copy the current version of BBCP to the remote machine

[cottrell@plato ~/package]$ scp [your username]@pharlap.slac.stanford.edu:/afs/slac/package/bbcp/bbcp.tar.Z ./
cottrell@pharlap.slac.stanford.edu's password:
bbcp.tar.Z           100% |***************************************************************|   162 KB    00:00
[cottrell@plato ~/package]$ ls
bbcp.tar.Z  iperf-1.2      MakeSname         NetLogger.h  obj                 vx_ioctl.h
bin         iperf-1.2.tar  netest-2.bin.tar  NetLogger.i  pathrate-2.1.2
chirp       Makefile       NetLogger.c       nt-2         pathrate-2.1.2.tar

Unzip BBCP

[cottrell@plato ~/package]$ gunzip bbcp.tar.Z
[cottrell@plato ~/package]$ ls
bbcp.tar  iperf-1.2      MakeSname         NetLogger.h  obj                 vx_ioctl.h
bin       iperf-1.2.tar  netest-2.bin.tar  NetLogger.i  pathrate-2.1.2
chirp     Makefile       NetLogger.c       nt-2         pathrate-2.1.2.tar

Run tar on the unzipped file

[cottrell@plato ~/package]$ tar -xvf bbcp.tar
bbcp/src/
bbcp/src/bbcp_Node.C
bbcp/src/bbcp_IO.h
...
bbcp/Makefile
bbcp/MakeSname
[cottrell@plato ~/package]$ ls
bbcp      bin    iperf-1.2      Makefile   netest-2.bin.tar  NetLogger.h  nt-2  pathrate-2.1.2      vx_ioctl.h
bbcp.tar  chirp  iperf-1.2.tar  MakeSname  NetLogger.c       NetLogger.i  obj   pathrate-2.1.2.tar

Run make on BBCP

[cottrell@plato ~/package]$ cd bbcp
[cottrell@plato bbcp]$ make
make[1]: Entering directory `/home/cottrell/package/bbcp/src'
make[2]: Entering directory `/home/cottrell/package/bbcp/src'
Compiling bbcp.C
...
Creating executable ../bin/i386_linux/bbcp ...
make[2]: Leaving directory `/home/cottrell/package/bbcp/src'
make[1]: Nothing to be done for `doitall'.
make[1]: Leaving directory `/home/cottrell/package/bbcp/src'
Make done.
[cottrell@plato bbcp]$ ls
bin  Makefile  MakeSname  obj  src
[cottrell@plato bbcp]$ ls bin
i386_linux24

Run BBCP on the remote host

[cottrell@plato bbcp]$ bin/i386_linux24/bbcp -v
bbcp: Copy source not specified.
Usage:   bbcp [Options] [Inspec] Outspec

Options: [-a [dir]] [-b bf] [-B bsz] [-c [lvl]] [-C cfn] [-D] [-d path] [-e]
         [-f] [-h] [-i fn] [-I fn] [-k] [-L opts[@logurl]] [-m mode] [-p]
         [-P sec] [-q qos] [-s snum] [-S srcxeq] [-T trgxeq] [-t sec] [-v] [-V]
         [-w wsz] [-W wsz] [-x rate] [-z] [--]

I/Ospec: [user@][host:]file
[cottrell@plato bbcp]$

Update the alias file by recording the path to the new test's file

$BBCPCMD{"[nodename]"} = "/home/cottrell/package/bbcp/bin/i386_linux24/bbcp";

Test the localmake on the remote site by logging off of the machine and performing run-bw-tests to the testing node for the test case, BBCP in this case, you just copied

[cottrell@plato bbcp]$ exit
18iepm@pharlap:~>$bandsrc/run-bw-tests -n [nodename] -t [testname]

Please contact Jerrod D. Williams if you have any questions or concerns regarding this page an/or its contents.