syntax in keepalive script

Unanswered Question
Jul 7th, 2009

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

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
dario.didio Tue, 07/07/2009 - 01:27

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

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

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

dario.didio Tue, 07/07/2009 - 03:25

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

Gilles Dufour Tue, 07/07/2009 - 04:03

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.

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

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

Actions

This Discussion