Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

syntax in keepalive script

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
Silver

Re: syntax in keepalive script

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

New Member

Re: syntax in keepalive script

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

Silver

Re: syntax in keepalive script

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

Cisco Employee

Re: syntax in keepalive script

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.

New Member

Re: syntax in keepalive script

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

211
Views
0
Helpful
5
Replies
CreatePlease login to create content