cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
465
Views
0
Helpful
4
Replies

CSS HTTP Keepalive Response

dgahm
Level 8
Level 8

Is it possible to script a HTTP keepalive to parse the response for a specific word?

1 Accepted Solution

Accepted Solutions
4 Replies 4

There is a script for this on CSS

ap-kal-httpcheck.

The script connects to a webserver on port 80 by default.It performs a GET on the specified page. If the WebString is returned, the service stays up. If anything fails, the service is marked down.

The syntax for this KAL is:

ap-kal-httpcheck \'WebSiteIP WebPage WebString [Port]\'

for e.g.

service web1

ip add 10.10.10.1

keepalive frequency 10

Keepalive type script ap-kal-httpcheck ?10.10.10.1 /index.html teststring?

active

Hope it helps

Syed

Syed,

Does it have to match everything that is returned, or can it be defined to match on a single word within the 1st 25kbytes.

Thanks, Dave

Dave~

It parses the entire page to search for string.

More details available at

http://www.cisco.com/en/US/partner/products/hw/contnetw/ps792/products_tech_note09186a00801e1dfb.shtml

Syed

Thanks for the link. Unfortunately it only checks 10KB, but there must be a way to modify it.