Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > d97b4c58d8763adc61a7b020afdfd868 > files > 93

smokeping-2.4.2-9mdv2010.0.noarch.rpm

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Smokeping/probes/FTPtransfer</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>

<body style="background-color: white">

<p><a name="__index__"></a></p>
<!-- INDEX BEGIN -->
<!--

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#overview">OVERVIEW</a></li>
	<li><a href="#synopsis">SYNOPSIS</a></li>
	<li><a href="#description">DESCRIPTION</a></li>
	<li><a href="#variables">VARIABLES</a></li>
	<li><a href="#authors">AUTHORS</a></li>
	<li><a href="#bugs">BUGS</a></li>
</ul>
-->
<!-- INDEX END -->

<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>Smokeping::probes::FTPtransfer - intrusive bandwidth probe</p>
<p>
</p>
<hr />
<h1><a name="overview">OVERVIEW</a></h1>
<p>This probe send and retrieve files to or from an ftp server. It will plot
the bandwidth it could use.</p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<pre>
 *** Probes ***</pre>
<pre>
 +FTPtransfer</pre>
<pre>
 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</pre>
<pre>
 # 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</pre>
<pre>
 # [...]</pre>
<pre>
 *** Targets ***</pre>
<pre>
 probe = FTPtransfer # if this should be the default probe</pre>
<pre>
 # [...]</pre>
<pre>
 + 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</pre>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>The probe uses the Net::FTP perl client to run performance tests using an
FTP server as a target. This probe is <strong>intrusive</strong> 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.</p>
<p>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
`&lt;host&gt;:&lt;username&gt;:&lt;password&gt;')</p>
<p>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).</p>
<p>Many variables can be specified either in the probe or in the target definition,
the target-specific variable will override the prove-specific variable.</p>
<p>If your transfer takes a lot of time, you may want to make sure to set the
<strong>timeout</strong> and <strong>max_rtt</strong> properly so that smokeping does not abort the
transfers of limit the graph size.</p>
<p>
</p>
<hr />
<h1><a name="variables">VARIABLES</a></h1>
<p>Supported probe-specific variables:</p>
<dl>
<dt><strong><a name="item_destfile">destfile</a></strong>

</dt><dd>
<p>Normally the destination filename is the same as the source filename
(without the path). If you want keep files in different directories this may not
work, and you have to specify destfile as well.</p>
<p>Example value: path/to/destinationfile.xxx</p>

</dd><dt><strong><a name="item_forks">forks</a></strong>

</dt><dd>
<p>Run this many concurrent processes at maximum</p>
<p>Example value: 5</p>
<p>Default value: 5</p>

</dd><dt><strong><a name="item_min_interval">min_interval</a></strong>

</dt><dd>
<p>The minimum interval between each starting ftp sessions in seconds.</p>
<p>Default value: 1</p>

</dd><dt><strong><a name="item_mode">mode</a></strong>

</dt><dd>
<p>The ftp probe can be in either put or get mode. If it is in put mode then it will send a file to the ftp server. In get mode it will retrieve a file
from the ftp server.</p>
<p>Example value: get</p>
<p>This setting is mandatory.</p>

</dd><dt><strong><a name="item_offset">offset</a></strong>

</dt><dd>
<p>If you run many probes concurrently you may want to prevent them from
hitting your network all at the same time. Using the probe-specific
offset parameter you can change the point in time when each probe will
be run. Offset is specified in % of total interval, or alternatively as
'random', and the offset from the 'General' section is used if nothing
is specified here. Note that this does NOT influence the rrds itself,
it is just a matter of when data acqusition is initiated.
(This variable is only applicable if the variable 'concurrentprobes' is set
in the 'General' section.)</p>
<p>Example value: 50%</p>

</dd><dt><strong><a name="item_passwordfile">passwordfile</a></strong>

</dt><dd>
<p>Location of the file containing usernames and passwords.</p>
<p>Example value: /some/place/secret</p>

</dd><dt><strong><a name="item_srcfile">srcfile</a></strong>

</dt><dd>
<p>The name of the source file. If the probe is in <strong>put</strong> mode, this file
has to be on the local machine, if the probe is in <strong>get</strong> mode then this
file should sit in the remote ftp account.</p>
<p>Example value: src/path/mybig.pdf</p>
<p>This setting is mandatory.</p>

</dd><dt><strong><a name="item_step">step</a></strong>

</dt><dd>
<p>Duration of the base interval that this probe should use, if different
from the one specified in the 'Database' section. Note that the step in
the RRD files is fixed when they are originally generated, and if you
change the step parameter afterwards, you'll have to delete the old RRD
files or somehow convert them. (This variable is only applicable if
the variable 'concurrentprobes' is set in the 'General' section.)</p>
<p>Example value: 300</p>

</dd><dt><strong><a name="item_timeout">timeout</a></strong>

</dt><dd>
<p>The timeout is the maximum amount of time you will allow the probe to
transfer the file. If the probe does not succeed to transfer in the time specified,
it will get killed and a 'loss' will be loged.</p>
<p>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.</p>
<p>Example value: 15</p>
<p>This setting is mandatory.</p>

</dd></dl>
<p>Supported target-specific variables:</p>
<dl>
<dt><strong><a name="item_localaddr">localaddr</a></strong>

</dt><dd>
<p>The local address to be used when making connections</p>
<p>Example value: myhost-nat-if</p>

</dd><dt><strong><a name="item_passive">passive</a></strong>

</dt><dd>
<p>Use passive FTP protocol</p>
<p>Example value: yes</p>

</dd><dt><strong><a name="item_password">password</a></strong>

</dt><dd>
<p>The password for the user, if not present in the password file.</p>
<p>Example value: test-password</p>

</dd><dt><strong><a name="item_pings">pings</a></strong>

</dt><dd>
<p>How many pings should be sent to each target, if different from the global
value specified in the Database section. Note that the number of pings in
the RRD files is fixed when they are originally generated, and if you
change this parameter afterwards, you'll have to delete the old RRD
files or somehow convert them.</p>
<p>Example value: 5</p>

</dd><dt><strong><a name="item_port">port</a></strong>

</dt><dd>
<p>A non-standard FTP port to be used</p>
<p>Example value: 3255</p>

</dd><dt><strong>timeout</strong>

</dt><dd>
<p>Timeout in seconds for the FTP transfer to complete.</p>
<p>Example value: 10</p>

</dd><dt><strong><a name="item_username">username</a></strong>

</dt><dd>
<p>The username to be tested.</p>
<p>Example value: test-user</p>

</dd></dl>
<p>
</p>
<hr />
<h1><a name="authors">AUTHORS</a></h1>
<p>Tobias Oetiker &lt;<a href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a>&gt; sponsored by Virtela</p>
<p>
</p>
<hr />
<h1><a name="bugs">BUGS</a></h1>
<p>This probe has the capability for saturating your links, so don't use it
unless you know what you are doing.</p>
<p>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 <em>Round Trip Time</em> is at the core of the application. It would
take some re-engineering to split this out in plugins and thus make it
configurable ...</p>

</body>

</html>