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

CSS HTTP Keepalive Response

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

1 ACCEPTED SOLUTION

Accepted Solutions

Re: CSS HTTP Keepalive Response

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

4 REPLIES

Re: CSS HTTP Keepalive Response

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

Blue

Re: CSS HTTP Keepalive Response

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

Re: CSS HTTP Keepalive Response

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

Blue

Re: CSS HTTP Keepalive Response

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

194
Views
0
Helpful
4
Replies
CreatePlease to create content