cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
474
Views
0
Helpful
5
Replies

syntax in keepalive script

followurself
Level 1
Level 1

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

5 Replies 5

dario.didio
Level 4
Level 4

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

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

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
Cisco Employee
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 www.cisco.com you can find sample scripts include an echo.

Gilles.

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

Getting Started

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: