| ascp4: Transferring from the Command Line with Ascp 4 |
156
Option
Description
Default
maxsize=
maximum_size
Maximum stream length
No default
maxtime=
maximum_time
Maximum stream duration, in
seconds
No default
maxidle=
maximum_time
Maximum idle duration, in seconds
No default
rcvbufsz=
buffer_size
Receive buffer size
10MB
sndbufsz=
buffer_size
Send buffer size
10MB
ifaddr=
ip_address
Multicast interface IP address
0.0.0.0
srcaddr=
ip_address
Multicast source IP address
0.0.0.0
ttl=
hops
Multicast time-to-live
1
loopback=
boolean
Multicast loopback
1
Ascp 4 Data Streaming Examples
Use the following examples as a guide for creating your own streaming transfers with Ascp 4.
• Send a multicast stream:
# ascp4 --mode=send --host=desthost --compression=none --read-
threads=1 --write-threads=1 udp://233.3.3.3:3000?loopback=1&ttl=2
udp://233.4.4.4:3000?loopback=1&ttl=2
• Capture a local multicast stream and send it to the receiver as a UDP unicast stream:
# ascp4 --mode=send --host=desthost --compression=none --read-threads=1
--write-threads=1 udp://233.3.3.3:3000?loopback=1&ttl=2 udp://
localhost:3000/
• Read a TCP stream from 192.168.10.10 port 2000 and send it to 10.10.0.51. On 10.10.0.51, write the stream to
localhost port 3000.
# 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 multicast UDP stream 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
• Multicast using the same multicast IP address and varying the multicast port.
# ascp4 -L/opt/test-local-01 -R/opt/test-remote-01 -DD -m 12m -l
15m --mode send --host 10.132.117.2 --user root --read-threads
1 --write-threads 1 --compression none "udp://233.33.3.1:3001?
sndbufsz=100MB&ifaddr=10.131.117.1" "udp://233.44.4.1:4001?
rcvbufsz=100M&loopback=0"
# ascp4 -L/opt/test-local-02 -R/opt/test-remote-02 -DD -m 12m -l
15m --mode send --host 10.132.117.2 --user root --read-threads
1 --write-threads 1 --compression none "udp://233.33.3.1:3002?
sndbufsz=100MB&ifaddr=10.131.117.1" "udp://233.44.4.1:4002?
rcvbufsz=100M&loopback=0"