scripts to create multiple tcp connection

scripts to create multiple tcp connection

scripts to create multiple tcp connection

Now i am going to illustrate how to test server capacity in term,s of handling tcp connection, when we design any server,  web server, mail server, vpn server ftp server…etc. we need to check capacity of server hardware ,service performance and one the most important Kernal capacity. we are not going to discourse these parameters in this post. i will share with you these parameter fine tuning in next post.

Now below scripts have the capacity to create multiple connection at a some time like 10k, 20k and 1,2,10 lac. Given scripts is not fully automatic. you have to read instruction in time of Execution.

 

@ echo off
color 35
echo +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo "Warring : Before starting this scripts"                                  +
echo "you must know about your current login user %homepath%"                +
echo "Server name or IP, Service port: edit scripts and"                       + 
echo "Replace username{vikas}"                                                 + 
echo "Server {smtp2.saharanect.in}"                                            +
echo "And service port"                                                        +
echo .                                                                         +
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
pause
cls
color 8a
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo ^^^^^^^^^^^^^^^^^^^^^ WelCome To Vikas Scripts ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^+
echo "This scripts will create only 70 connection from this machine to server"        +
echo "If you need more connection start this scripts on another system"               +
echo "Why 70 only? you machine virtual port capacity"                                 +
echo "Please read "http://en.wikipedia.org/wiki/Ephemeral_port"                       +
echo "Press inter to start or Ctrl+C to stop & find tracking result in {Output.log_}" +
echo .                                                                                +
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pause                                                                      
echo "Example of IPv4 address "192.168.200.1""
set /p server_ip="Please inter server IP Address: "
echo Example of Service port "smtp/25, http/80, ftp/23, etc....""
set /p service_port="Please inter service port: "

set /p connections="Please inter number that you want to open connection from server: "
:: **********************Please change below*****************************
:: first change 50= number of connection from your,s machine to server
:: Change user name "/user:vikas" ----> example /user:administrator
:: Chnage IP or Server name with port "smtp2.aharanext.in 25"  ----> Example webmail.ahara.in 80
::  Check the out put file output.log

@echo off
FOR /L %%G IN (1,1,%connections%) DO c:\Windows\System32\runas.exe /user:administrator  /savecred "telnet %server_ip% %service_port%" && echo "connection establist done"   >> output.log
echo on

Leave a Reply

Your email address will not be published. Required fields are marked *