bbSCP Test and Verification
The sections below provide test and verification data including sample commands for using bbSCP between two hosts (crow & cfe3.nas.nasa.gov):
Straight File Transfer
[crow] ~/data> bbscp -V 100mb user@cfe3.nas.nasa.gov:/nobackup1/user/
/home/user/bin/bbscp: will run commandline: bbftp -s -r 1 -V -p 8 -u
user -i /tmp/bbscp.lKCrSUg cfe3.nas.nasa.gov
/home/user/bin/bbscp: begin output of bbftp:
--------------------------------------------------------------------------
WARNING! This is a US Government computer. This system is for the use of
authorized users only. By accessing and using thecomputer system you are
consenting to system monitoring,including the monitoring of keystrokes.
Unauthorized use of, oraccess to, this computer system may subject you to
disciplinaryaction and criminal prosecution.
--------------------------------------------------------------------------
Authenticated with partial success.
Plugin authentication
Enter PASSCODE:
>> COMMAND : setoption keepaccess
<< OK
>> COMMAND : setoption keepmode
<< OK
>> COMMAND : setoption nocreatedir
<< OK
>> COMMAND : put 100mb /nobackup1/user/100mb
<< OK
104857600 bytes send in 5.43 secs (1.89e+04 Kbytes/sec or 147 Mbits/s)
/home/user/bin/bbscp: end output of bbftp
Renaming File at Destination
Transfer a single file and rename it at the destination. Both local-to-remote and remote-to-local transfer is supported.
[crow] ~/data> bbscp -V -N 100mb user@cfe3.nas.nasa.gov:/nobackup1/user/
crow-100mb
/home/user/bin/bbscp: will run commandline: bbftp -s -r 1 -V -p 8 -u
user -i
/tmp/bbscp.5eUBcTX cfe3.nas.nasa.gov
/home/user/bin/bbscp: begin output of bbftp:
--------------------------------------------------------------------------
WARNING! This is a US Government computer. This system is for the use of
authorized users only. By accessing and using thecomputer system you are
consenting to system monitoring,including the monitoring of keystrokes.
Unauthorized use of, oraccess to, this computer system may subject you to
disciplinaryaction and criminal prosecution.
--------------------------------------------------------------------------
Authenticated with partial success.
Plugin authentication
Enter PASSCODE:
>> COMMAND : setoption keepaccess
<< OK
>> COMMAND : setoption keepmode
<< OK
>> COMMAND : setoption nocreatedir
<< OK
>> COMMAND : put 100mb /nobackup1/user/crow-100mb
<< OK
104857600 bytes send in 5.3 secs (1.93e+04 Kbytes/sec or 151 Mbits/s)
/home/user/bin/bbscp: end output of bbftp
Adjusting the TCP Window Size
Use the -X and -Y options to set the TCP window size (available in bbscp Version 1.0.2).
[crow]$ ./bbscp -V -N -X 2000 -Y 2000 1gig.dat user@dmzfs1.nas.nasa.gov:
/home/user/garbage.dat
bbscp: will run commandline: bbftp -s -r 1 -V -p 8 -u user -i
/tmp/bbscp.SNxL5RT dmzfs1.nas.nasa.gov
bbscp: begin output of bbftp:
user@dmzfs1.nas.nasa.gov's password:
>> COMMAND : setoption keepaccess
<< OK
>> COMMAND : setoption keepmode
<< OK
>> COMMAND : setoption nocreatedir
<< OK
>> COMMAND : setsendwinsize 2000
<< OK
>> COMMAND : setrecvwinsize 2000
<< OK
>> COMMAND : put 1gig.dat /home/user/garbage.dat
<< OK
1109393408 bytes send in 34.6 secs (3.13e+04 Kbytes/sec or 244 Mbits/s)
bbscp: end output of bbftp
Dry Run/Debugging
Dry Run: Script performs its duty but does not actually execute bbFTP. The bbFTP commandline is printed, along with the contents of the bbFTP control-file
cfe3.user 55> bbscp -d -V -N one-gig
user@crow.eos.nasa.gov:/home/user/data/cfe3-one-gig
/usr/local/bin/bbscp: would have run commandline: bbftp -s -r 1 -V -p 8
-u user -i /tmp/bbscp.4PZYIuL crow.eos.nasa.gov
/usr/local/bin/bbscp: bbftp control-file (/tmp/bbscp.4PZYIuL) looks like:
setoption keepaccess
setoption keepmode
setoption nocreatedir
put one-gig /home/user/data/cfe3-one-gig
|