Smokeping_probes_FTPtransfer(3) | SmokePing | Smokeping_probes_FTPtransfer(3) |
Smokeping::probes::FTPtransfer - intrusive bandwidth probe
This probe send and retrieve files to or from an ftp server. It will plot the bandwidth it could use.
*** Probes *** +FTPtransfer destfile = path/to/destinationfile.xxx forks = 5 min_interval = 1 mode = get # mandatory offset = 50% passwordfile = /some/place/secret srcfile = src/path/mybig.pdf # mandatory step = 300 timeout = 15 # mandatory # The following variables can be overridden in each target section localaddr = myhost-nat-if passive = yes password = test-password pings = 5 port = 3255 timeout = 10 username = test-user # [...] *** Targets *** probe = FTPtransfer # if this should be the default probe # [...] + mytarget # probe = FTPtransfer # if the default probe is something else host = my.host localaddr = myhost-nat-if passive = yes password = test-password pings = 5 port = 3255 timeout = 10 username = test-user
The probe uses the Net::FTP perl client to run performance tests using an FTP server as a target. This probe is intrusive as it transfers real data. By using real data we get a fair shot at figuring out what a link is capable of when it comes to transfering actual files.
The password can be specified either (in order of precedence, with the latter overriding the former) in the probe-specific variable `password', in an external file or in the target-specific variable `password'. The location of this external file is given in the probe-specific variable `passwordfile'. See Smokeping::probes::passwordchecker(3pm) for the format of this file (summary: colon-separated triplets of the form `<host>:<username>:<password>')
The probe tries to be nice to the server and waits at least X seconds between starting filetransfers, where X is the value of the probe specific `min_interval' variable (1 by default).
Many variables can be specified either in the probe or in the target definition, the target-specific variable will override the prove-specific variable.
If your transfer takes a lot of time, you may want to make sure to set the timeout and max_rtt properly so that smokeping does not abort the transfers of limit the graph size.
Supported probe-specific variables:
Example value: path/to/destinationfile.xxx
Example value: 5
Default value: 5
Default value: 1
Example value: get
This setting is mandatory.
Example value: 50%
Example value: /some/place/secret
Example value: src/path/mybig.pdf
This setting is mandatory.
Example value: 300
Since FTPtransfer is an invasive probe you should make sure you do not load the link for more than a few seconds anyway. Smokeping curently has a hard limit of 180 seconds for any RTT.
Example value: 15
This setting is mandatory.
Supported target-specific variables:
Example value: myhost-nat-if
Example value: yes
Example value: test-password
Example value: 5
Example value: 3255
Example value: 10
Example value: test-user
Tobias Oetiker <tobi@oetiker.ch> sponsored by Virtela
This probe has the capability for saturating your links, so don't use it unless you know what you are doing.
The FTPtransfer probe measures bandwidth, but we report the number of seconds it took to transfer the 'reference' file. This is because curently the notion of Round Trip Time is at the core of the application. It would take some re-engineering to split this out in plugins and thus make it configurable ...
2020-07-10 | 2.7.3 |