System information

Manual:Tools/Fetch
184
Examples
The following example shows how to copy the file with filename "conf.rsc" from device with ip address
192.168.88.2 by FTP protocol and save it as file with filename "123.rsc". User and password are needed to login into
the device.
[admin@mt-test] /tool> fetch address=192.168.88.2 src-path=conf.rsc \
user=admin mode=ftp password=123 dst-path=123.rsc port=21 \
host="" keep-result=yes
Example to upload file to other router:
[admin@mt-test] /tool> fetch address=192.168.88.2 src-path=conf.rsc \
user=admin mode=ftp password=123 dst-path=123.rsc upload=yes
Another example that demonstrates the usage of url property.
[admin@test_host] /> /tool fetch url="http://www.mikrotik.com/img/netaddresses2.pdf" mode=http
status: finished
[admin@test_host] /> /file print
# NAME TYPE SIZE CREATION-TIME
...
5 netaddresses2.pdf .pdf file 11547 jun/01/2010 11:59:51
[ Top | Back to Content ]