p align="justify"> [- i IP] Multicast IP address to use. Default: 224.2.2.4
[- p port] UDP port to use. Default: 2222
[- d] Enable debug messages. Default: disabled
[- f file] name of the file to send. Default: testfile.bin
[- s speed] Upload speed Kbytes/sec. Default: 100 Kbytes/sec
[- t delay] Prophylactic info messages delay, sec. Default: 2 sec
[- u] Setting force update flag. Default: force update flag not set
[- a version] Firmware version. Default: 0
[- h] This help
Приклад запуску сервера:
multifiles #./mfsrv -i 224.5.6.7 -p 1111 -f./netup.tgz -s 100 -a 1 104 -t 6file: ./ netup.tgz file name: netup.tgz prophylactic_delay:6: 102400 bytes/sec psleep: 13513
+ Sending file: netup.tgz sequence: 1Prophylactic info: 1068 bytes from 1068 send to socket: 3Prophylactic info: 1068 bytes from 1068 send to socket: 3Prophylactic info: 1068 bytes from 1068 send to socket: 3Prophylactic info: 1068 bytes from 1068 send to socket: 3Prophylactic info: 1068 bytes from 1068 send to socket: 3Prophylactic info: 1068 bytes from 1068 send to socket: 3Prophylactic info: 1068 bytes from 1068 send to socket: 3Prophylactic info: 1068 bytes from 1 068 send to socket: 3File: netup.tgz successfully sent
+ Sending file: netup.tgz sequence: 2
Як видно з цього прикладу, проводиться передача файлу netup.tgz в мультикаст-групу 224.5.6.7:1111 зі швидкістю 100 КБ/сек. Версія прошивки 1104.
Опис програми-клієнта
Ключі запуску клієнта:
multifiles #./mfcln -h's multicast file upload utility (client). (c) 2001-2008 NetUP Inc. netup.tv.date: Nov березня 2008 13: 22: 48this utility at your own risk.:
[- i IP] Multicast IP address to use. Default: 224.2.2.4
[- p port] UDP port to use. Default: 2222
[- t socket wait timeout] UDP socket timeout, sec. Default: 10 sec.
[- d] Enable debug messages. Default: disabled
[- f file] name of the file to save .: using filename coming from server
[- s stat_file] name of the file to save stats in .: /tmp/mfstat.log
[- a fw_version] current fw version. Download is started onlythe received version is newer than current.
Default: 0
[- h] This help
Приклад запуску клієнта:
Info message received.: 9240: netup.tgz: netup.tgz.9240: 5741931 bytes
data ... file to required 5741931 bytes, blocks size is: 1048576filled. Size is: 5741931 requested size is: 5741931.write intooffset: 1379info message received.: Netup.tgz: 208380: 5741931 bytesupdate: 0_version: 1104info message received.: Netup.tgz: 615480: 5741931 bytesupdate: 0_version: 1104info message received .: netup.tgz: 1022580: 5741931 bytesupdate: 0_version: 1104info message received.: netup.tgz: 1431060: 5741931 bytesupdate: 0_version: 1104info message received.: netup.tgz: 1838160: 5741931 bytesupdate: 0_version: 1104info message received.: netup. tgz: 2245260: 5741931 bytesupdate: 0_version: 1104info message received.: netup.tgz: 2653740: 5741931 bytesupdate: 0_version: 1104info message received.: netup.tgz: 3060840: 5741931 bytesupdate: 0_version: 1104info message received.: netup.tgz: 3467940: 5741931 bytesupdate: 0_version: 1104info message received.: netup.tgz: 3875040: 5741931 bytesupdate: 0_version: 1104info message received.: netup.tgz: 4283520: 5741931 bytesupdate: 0_version: 1104info message received.: netup.tgz: 4690620: 5741931 bytesupdate: 0_version: 1104info message received.: netup.tgz: 5097720: 5741931 bytesupdate: 0_version: 1104info message received.: netup.tgz: 5506200: 5741931 bytesupdate: 0_version: 1104info message received.: netup.tgz: 69000: 5741931 bytesupdate:0_version: 1 104
netup.tgz.9240 received. Checking ... a646426d66b5df3318ba09f1ae33d2 - our file md5. size: 5741931a646426d66b5df3318ba09f1ae33d2 - received md5check success netup.tgz.9240 checked. Success.
Як видно з цього прикладу, проводиться прийом файлу netup.tgz з мультикаст-групи 224.5.6.7:1111. Поточна версія файлу 1100, а передана з сервера - 1104.
Створення прошивки
Вміст папки scripts:
multifiles # ls -al scripts/16xr-x 4 root root 84 Oct 27 13: 51.xr-x 5 root root +4096 Oct 27 15:36 ..
rwxr-xr-x 1 root root 115 Oct 27 13:51 ...