07-07-2009 01:08 AM
hello,
what is the rigth syntax to use within tcpports script
looking to have multiple ip address and multiple ports. the e.g. file has the following line
echo "Usage: ap-kal-tcp-ports \'ipAddress tcpPort1 [tcpPort2 tcpPort3...]\'"
will it be \'10.1.102.23 80 [443 25] , 10.1.102.24 80 [443 25]\'"
Thanks
07-07-2009 01:27 AM
Hi,
you can only have 1 IP address and multiple ports. So per IP address you can check multiple TCP ports.
This is on a CSS right?
th syntacs is:
keepalive type script ap-kal-tcp-ports "10.66.5.13 80 21"
Pls rate if this was helpful.
HTH,
Dario
07-07-2009 01:47 AM
Hello,
i am looking to use this script on ACE
how to use it for multiple servers then? because within a serverfarm there will be many servers
Thaks
07-07-2009 03:25 AM
Hi,
on the ACE you have the option to use a keepalive (called a probe) under a serverfarm, or under a real server (rserver). In your case, you should configure this probe under the rserver itself and not under the serverfarm.
HTH,
Dario
07-07-2009 04:03 AM
Here is how it works in ACE :
set ip $scriptprobe_env(realIP)
set port $scriptprobe_env(realPort)
You put this at the beginning of your script file and the script can be use with any serverfarm without modification.
FYI, in the software download section on www.cisco.com you can find sample scripts include an echo.
Gilles.
07-08-2009 01:47 AM
Thanks Giles
I found a script at cisco called CHECKPORT
within description it says
# !!!!!!! PLEASE NOTE:
# CHECKPORT_STD_SCRIPT, as written here, will return success for all probed suspects,
# regardless of whether they respond as expected or not.
# This script is available for sample code only, and should not be used to determine
# the health of the probed servers.
can we use it in realtime enviornment.Also is there anything to be modified within the script. do we need to specify the ip address and the port number within the script. if yes please suggest how?
also what will be the config within ACE
thanks
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: