Hi all

I want to know if it's possible to have the performance / speed of the copy of a file from one server to another ? and get the speed of this transfert ?

Thank you all


Article Comments

The only way that you would be able to measure the overall speed of the transfer would be to set up a Windows Network Card sensor on the server sending and the server receiving the file and compare the results of the sensor to the normal results of the sensor. If the network card is usually using a bandwidth of 1kbit/s and it jumps to 150, you would know about the speed that it's being sent and vice versa for the server receiving the file.


Aug, 2013 - Permalink

Thank you greg for your fast answer.

Unfortunately it's not pratical and I can't make long term report with those kind of calcul.

There is no way with file sensor or by custom powershell sensor ?


Aug, 2013 - Permalink

You could create a custom EXE sensor with the powershell code

$time=Measure-Command -Expression {Copy-Item C:\filetocopy.txt C:\Wherefileiscopied}
write-host $time":ok"

That will give you an output of how long it takes to copy a file from one machine to another.


Aug, 2013 - Permalink

Thank you Greg, is it possible to have an example of custom advanced powershell script. i need to keep the result for my reports.


Aug, 2013 - Permalink

You should be able to do this and you can also change the time from seconds to minutes with this as well. All you would need to do is change the line $time.seconds to $time.minutes or milliseconds.

$time=Measure-Command -Expression {Copy-Item C:\filetocopy.txt C:\Wherefileiscopied}
Write-Host "<prtg>"
Write-Host "<result>" 
"<channel>Transfer Time</channel>" 
"<value>"+ $time.seconds +"</value>" 
"</result>"
"<text>OK</text>"
Write-Host "</prtg>"

Aug, 2013 - Permalink