ascp4: Transferring from the Command Line with A4 |
The commands for ascp4 are generally similar to those for ascp, see Ascp Command Reference for examples and Comparison of Ascp and Ascp4 Options for option availability.
The following command examples demonstrate options that are unique to A4. These options enable reading management commands, enable read/write concurrency,and transfer TCP and UDP data streams.
Read management commands V4 from management port 5000 and execute the management commands. The management commands version 4 are PUT, WRITE and CLOSE.
# ascp4 -L /tmp/client-logs -R /tmp/server-logs --faspmgr-io -M 5000 localhost:/tmp
The following command runs ascp4 with two scan threads and eight read threads on the client, and eight meta threads and 16 write threads on the server.
# ascp4 -L /tmp/logs -R /tmp/logs -l1g --scan-threads=2 --read-threads=8 --write-threads=16 --meta-threads=8 /data/100K aspera@10.0.113.53:/data
# ascp4 -l 6000 -m 5000 --host=10.10.0.51 --mode=send --read-threads=1 --write-threads=1 tcp://192.168.10.10:2000 tcp://localhost:3000
Send a UDP stream multicasted on 233.3.3.3 port 3000 to host 192.168.0.11, then multicast the stream on 233.3.3.3 port 3001.
# ascp4 -l 6000 -m 5000 --host=192.168.0.11 --mode=send --read-threads=1 --write-threads=1
udp://233.3.3.3:3000/?pktbatch=0 udp://233.3.3.3:3001/?loopback=1