BATCH FILE for Microsoft Network Performance testingREM ############################################################################### REM 12 May 2017 creating network perf test to test NETWORK times - 12 May 2017 REM john meister - based on scripts used for OS analysis and testing in grad research REM ############################################################################### REM original Performance test with 3 loops for load testing 19 Oct 2012 REM Requires 100MB file. Create 100MBTEST by "cat 10MBTEST >> 100MBTEST" ten times REM "type 10MBTEST >> 100MBTEST" (repeat 10 times until you have a 100 MB file) REM copy 100MBTEST HOLD-100MTEST (to prevent deleting it by running the script) REM ############################################################################### REM set logfile=C:\NET_TEST\%COMPUTERNAME%_net-load-results.txt (example log file) REM ############################################################################### REM "global replace Host-S with name of system running script" Host-S - sending REM "global replace Host-D with name of system receiving files" Host-D - receiving REM ############################################################################### REM user must have admin rights on both systems and remote access to Host-D REM ############################################################################### cls set logfile=C:\NET_TEST\Host-S_to_Host-D_network-times.txt ECHO %logfile% > %logfile% set fulltime=%TIME% REM start taskmgr.exe # optional identifier that the script is running ECHO . >> %logfile% ECHO =========================START================================ >> %logfile% ECHO LinuxMeister - Network LOAD-TEST for Microsoft OS >> %logfile% ECHO TEST BETWEEN Host-S and Host-D >> %logfile% ECHO ============================================================== >> %logfile% ECHO test conducted: %DATE% - %fulltime% >> %logfile% ECHO The Microsoft version listed below was run on the following system: >> %logfile% ver >> %logfile% hostname >> %logfile% ECHO ============================================================== >> %logfile% ECHO "tracert Host-D" >> %logfile% tracert Host-D >> %logfile% ECHO ============================================================== >> %logfile% ECHO "ping Host-D" >> %logfile% ping Host-D >> %logfile% ECHO ============================================================== >> %logfile% ECHO "time to copy 100MB files 10 times to Host-D" >> %logfile% ECHO "files to be deleted after the stop time is recorded" >> %logfile% ECHO total time: subtract start from stop >> %logfile% ECHO ============================================================== >> %logfile% ECHO "mkdir \\Host-D\C$\NET_TEST - note: NOT TIMED" >> %logfile% mkdir \\Host-D\C$\NET_TEST copy HOLD-100MBTEST \\Host-D\C$\NET_TEST\ copy NET-MS* \\Host-D\C$\NET_TEST\ dir \\Host-D\C$\NET_TEST >> %logfile% ECHO ============================================================== >> %logfile% set startrealtime=%TIME:~3,5% dir \\Host-D\C$\NET_TEST >> %logfile% copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-01 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-02 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-03 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-04 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-05 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-06 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-07 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-08 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-09 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-10 dir \\Host-D\C$\NET_TEST >> %logfile% set realstoptime=%TIME:~3,5% ECHO ============================================================== >> %logfile% ECHO "stop clock 1st cycle, delete files, record time for 1GB xfr, next iteration" >> %logfile% ECHO ============================================================== >> %logfile% ECHO "del \\Host-D\C$\NET_TEST\100MBTEST* - NOT TIMED" >> %logfile% del \\Host-D\C$\NET_TEST\100MBTEST* ECHO ============================================================== >> %logfile% ECHO FIRST STOP TIME: %realstoptime% >> %logfile% ECHO FIRST Start TIME: %startrealtime% >> %logfile% ECHO ============================================================== >> %logfile% set startrealtime=%TIME:~3,5% dir \\Host-D\C$\NET_TEST >> %logfile% copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-11 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-12 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-13 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-14 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-15 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-16 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-17 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-18 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-19 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-20 dir \\Host-D\C$\NET_TEST >> %logfile% set realstoptime=%TIME:~3,5% ECHO ============================================================== >> %logfile% ECHO "stop clock 2nd cycle, delete files, record time for 1GB xfr, next iteration" >> %logfile% ECHO ============================================================== >> %logfile% ECHO "del \\Host-D\C$\NET_TEST\100MBTEST* - NOT TIMED" >> %logfile% del \\Host-D\C$\NET_TEST\100MBTEST* ECHO ============================================================== >> %logfile% ECHO SECOND STOP TIME: %realstoptime% >> %logfile% ECHO SECOND Start TIME: %startrealtime% >> %logfile% ECHO ============================================================ >> %logfile% set startrealtime=%TIME:~3,5% dir \\Host-D\C$\NET_TEST >> %logfile% copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-21 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-22 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-23 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-24 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-25 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-26 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-27 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-28 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-29 dir \\Host-D\C$\NET_TEST copy 100MBTEST \\Host-D\C$\NET_TEST\100MBTEST-30 dir \\Host-D\C$\NET_TEST >> %logfile% set realstoptime=%TIME:~3,5% ECHO ============================================================== >> %logfile% ECHO "stop clock 3rd cycle, delete files, record time for 1GB xfr, done" >> %logfile% ECHO ============================================================== >> %logfile% ECHO "del \\Host-D\C$\NET_TEST\100MBTEST* - NOT TIMED" >> %logfile% del \\Host-D\C$\NET_TEST\100MBTEST* ECHO ============================================================== >> %logfile% ECHO THIRD STOP TIME: %realstoptime% >> %logfile% ECHO THIRD Start TIME: %startrealtime% >> %logfile% ECHO =========================================================== >> %logfile% ECHO "ping Host-D" >> %logfile% ECHO ============================================================== >> %logfile% ping Host-D >> %logfile% ECHO =================END================= >> %logfile% REM open calculator to show the batch file is completed start calc |
|
Wagoneers FULL SIZE JEEPS JeepMeister "Jeep is America's -Enzo Ferrari MeisterTech Diesels + |
One Page Overview of Linux Commands click for an image of the 5 essential Linux commands An Intro to Linux |
at Midway Auto on SR9 in Snohomish, or at Northland Diesel in Bellingham, WA |