Operating System - Tru64 Unix
1828047 Members
2453 Online
109974 Solutions
New Discussion

Re: Network performance test with FTP

 
SOLVED
Go to solution
Herr Ing. RUEHRNESSEL
Respected Contributor

Network performance test with FTP

In AIX i can test the network throughput performance by using the ftp and dd commands. This memory-to-memory transfer eliminates disk operations in either the client or server by running the following:
# ftp
ftp> bin
ftp> put "| dd if=/dev/zero bs=32k count=10000" /dev/null


If I try this command on Tru64, i get an error message:

ftp> bin
200 Type set to I.
ftp> put "| dd if=/dev/zero bs=32k count=10000" /dev/null
| dd if=/dev/zero bs=32k count=10000: No such file or directory
ftp>


Does anybody have an idea, why this standard unix command is not working on TRU64? Does anybody know of a similar syntax? I like this command on AIX since it uses no disk resources.


Many thanks for any help!

Regards
Manfred

4 REPLIES 4
Uwe Zessin
Honored Contributor

Re: Network performance test with FTP

I don't think it has anything to do with a 'standard unix command' (dd) - to me it looks like the FTP put command does not interpret the pipe symbol.
.
Michael Schulte zur Sur
Honored Contributor
Solution

Re: Network performance test with FTP

Uwe,
you are right.

Manfred,
you have to use the pipe command before. Interpretation of | is switched off by default. See man ftp.

greetings,

Michael
Herr Ing. RUEHRNESSEL
Respected Contributor

Re: Network performance test with FTP

Thank you guys, many thanks to UWE !

The hint with the "pipe" command in FTP solved the problem:


ftp> bin
200 Type set to I.
ftp> pipe
Interpretation of "|" in filenames on.
ftp> put "| dd if=/dev/zero bs=32k count=10000" /dev/null
200 PORT command successful.
10000+0 records in
10000+0 records out
226 Transfer complete.
327680000 bytes sent in 15.25 secs (15.25 secs, 20979.46 Kbytes/s)

Regards
Manfred
Ralf Puchner
Honored Contributor

Re: Network performance test with FTP

btw. ftp is not a performance messurement tool due to limitation on packet sizes etc.
Help() { FirstReadManual(urgently); Go_to_it;; }