syntax in keepalive script

Unanswered Question
Jul 7th, 2009
User Badges:


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 \' 80 [443 25] , 80 [443 25]\'"


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
dario.didio Tue, 07/07/2009 - 01:27
User Badges:
  • Silver, 250 points or more


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 " 80 21"

Pls rate if this was helpful.



followurself Tue, 07/07/2009 - 01:47
User Badges:


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


dario.didio Tue, 07/07/2009 - 03:25
User Badges:
  • Silver, 250 points or more


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.



Gilles Dufour Tue, 07/07/2009 - 04:03
User Badges:
  • Cisco Employee,

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 you can find sample scripts include an echo.


followurself Wed, 07/08/2009 - 01:47
User Badges:

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



This Discussion