Resim arşivinden backup DVD oluşturmak

Ekim 24, 2017 § Yorum yok § Kalıcı bağlantı

Öncelikle DVD olacak büyüklükte tar dosyalarını ve pariteleri oluşturalım

cd hatiralar
for i in `find ./   -maxdepth 1  -mindepth 1 -type d`; do tar -cv $i| split -b 3584MB - "${i}_tar_cv.part_"; done;
for i in `find ./   -maxdepth 1  -mindepth 1 -name '*tar_cv.part*'`; do par2 create -r20 $i; done;

Daha sonra yapilan işlemler sıra ile

md5sum dvd2/* >> hatiralar_dvd17.txt
cp hatiralar_dvd17.txt dvd1/
mkisofs -o ../iso/dvd13.iso -J /home/fatiho/dvd_hatiralar/dvd2/*
dvdisaster -c -i /home/fatiho/dvd_hatiralar/iso/dvd13.iso  -e /home/fatiho/dvd_hatiralar/iso/dvd13.ecc
growisofs -dvd-compat -speed=12 -Z /dev/sr0=/home/fatiho/dvd_hatiralar/iso/dvd12.iso

Bu işleri tek satırda yapmak için :

for i in `find ./   -maxdepth 1  -mindepth 1 -type d -name 'dvd*'`; do adi=`basename $i`; echo $adi;echo $i; md5sum $i/* >> "hatiralar_${adi}.txt";cp "hatiralar_${adi}.txt" $i/; mkisofs -o  "/home/fatiho/dvd_hatiralar/iso/${adi}.iso" -J $i/*; dvdisaster -c -i "/home/fatiho/dvd_hatiralar/iso/${adi}.iso"  -e "/home/fatiho/dvd_hatiralar/iso/${adi}.ecc"; done;

Multicast trafiği dinleme

Ekim 24, 2017 § Yorum yok § Kalıcı bağlantı

Iperf server
route add -host 239.255.1.3 ethx (where x is the interface used to transmit/receive multicast traffic)
iperf -s -B 239.255.1.3 -u -f m -i 5 – This command will run iperf in server mode. It will to join multicast group 239.255.1.3 and receive 1470 byte UDP datagrams from the client once the client is started. Rates will be formatted in Mbps and will be reported every 5 seconds.

root@perf138:iperf-2.0.4# iperf -s -B 239.255.1.3 -u -f m -i 5
------------------------------------------------------------
Server listening on UDP port 5001
Binding to local address 239.255.1.3
Joining multicast group  239.255.1.3
Receiving 1470 byte datagrams
UDP buffer size: 8.00 MByte (default)
------------------------------------------------------------
[  3] local 239.255.1.3 port 5001 connected with 10.4.2.139 port 32952
[ ID] Interval       Transfer     Bandwidth       Jitter   Lost/Total Datagrams
[  3]  0.0- 5.0 sec    570 MBytes    957 Mbits/sec  0.017 ms    0/406906 (0%)
[ ID] Interval       Transfer     Bandwidth       Jitter   Lost/Total Datagrams
[  3]  5.0-10.0 sec    570 MBytes    957 Mbits/sec  0.015 ms    0/406894 (0%)
[ ID] Interval       Transfer     Bandwidth       Jitter   Lost/Total Datagrams
[  3] 10.0-15.0 sec    570 MBytes    957 Mbits/sec  0.016 ms    0/406905 (0%)
[ ID] Interval       Transfer     Bandwidth       Jitter   Lost/Total Datagrams
[  3] 15.0-20.0 sec    570 MBytes    957 Mbits/sec  0.018 ms    0/406891 (0%)
[ ID] Interval       Transfer     Bandwidth       Jitter   Lost/Total Datagrams
[  3] 20.0-25.0 sec    570 MBytes    957 Mbits/sec  0.013 ms    0/406897 (0%)
[ ID] Interval       Transfer     Bandwidth       Jitter   Lost/Total Datagrams
[  3] 25.0-30.0 sec    570 MBytes    957 Mbits/sec  0.010 ms    0/406907 (0%)
[ ID] Interval       Transfer     Bandwidth       Jitter   Lost/Total Datagrams
[  3]  0.0-30.0 sec  3423 MBytes    957 Mbits/sec  0.026 ms    0/2441426 (0%)

root@perf138:iperf-2.0.4#

Iperf client
route add -host 239.255.1.3 ethx (where x is the interface used to transmit/receive multicast traffic)
iperf -c 239.255.1.3 -u -b 957m -f m -i 5 -t 30 – o This command will run iperf in client mode. It will transmit 1470 byte UDP datagrams to destination address 239.255.1.3 at a rate of 957 Mbps. The test will terminate after 30 seconds. Rates will be formatted in Mbps and will be reported every 5 seconds.

root@perf139:iperf-2.0.4# iperf -c 239.255.1.3 -u -b 990m -f m -i 5 -t 30
------------------------------------------------------------
Client connecting to 239.255.1.3, UDP port 5001
Sending 1470 byte datagrams
Setting multicast TTL to 1
UDP buffer size: 0.06 MByte (default)
------------------------------------------------------------
[  3] local 10.4.2.139 port 32952 connected with 239.255.1.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 5.0 sec    570 MBytes    957 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  5.0-10.0 sec    570 MBytes    957 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3] 10.0-15.0 sec    570 MBytes    957 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3] 15.0-20.0 sec    570 MBytes    957 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3] 20.0-25.0 sec    570 MBytes    957 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3] 25.0-30.0 sec    570 MBytes    957 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-30.0 sec  3423 MBytes    957 Mbits/sec
[  3] Sent 2441428 datagrams
root@perf139:iperf-2.0.4#

Neredeyim ben!?

Ekim, 2017 arşivinde geziniyorsun.