Script Play HostTag

Unanswered Question
May 3rd, 2007
User Badges:

I am trying to run the ap-kal-httptag "Hostname WebPage HostTag"

I am putting in script play ap-kal-httptag " /Livelinksupport/chicklet.png" and I get

Usage: ap-kal-httptag "Hostname WebPage HostTag"

What is the HostTag?

I have a CSS11506 with two services, one for each server, they are running a keepalive HTTP:GET:/ and the problem is the 200 code is successful because the root of the server does not go down, however, the application gets hung and the service restarts but this is not detected by the load balancer. I am trying to find a script to detect this. the livelink application does not have a static web page so I am trying to use the support page image to see when the app hangs whether the support image I am pointing will respond or hang also.

Thanks for any help you can provide.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.8 (3 ratings)
Gilles Dufour Thu, 05/03/2007 - 07:27
User Badges:
  • Cisco Employee,

if you do a 'show script ....' you can see where the hostag is being used :

socket send ${SOCKET} "GET ${WebPage} HTTP/1.0\nHost: ${HostTag}\n\n"

So basically, this is the dns name of the server.


thumpercisco Thu, 05/03/2007 - 08:46
User Badges:

Thank you for the help.

The other problem is that the backend service is ASP, I have no webpage to point to, add to that authentication requirement.

Flow is as follows:

the host IP - Livelink (where authentication takes place) - then to the .exe and into ASP, no html.

Basically I'm being asked to load balance two servers while monitoring a backend service that does not notify the front end service that redirection is required and users are hung until the service is restarted.


thumpercisco Thu, 05/03/2007 - 10:56
User Badges:

CSS11503# script play ap-kal-httptag " /livelink/livelink.exe km"


Error in script playback line:37

>>>socket waitfor ${SOCKET} "200 OK" 2000


Script Playback cancelled.

Gilles Dufour Thu, 05/03/2007 - 10:58
User Badges:
  • Cisco Employee,

if you need authentication you may need to use the following script instead :


But it depends on the type of authentication that is required.

Also, you can specify an url to a .exe. There is no requirement to point to a .html document.

As long as the server returns a webpage with HTTP 200 ok.


thumpercisco Wed, 05/09/2007 - 11:03
User Badges:

UPDATE - the CSS11503 is load balancing the front-end web servers service with keepalives correctly. The problem exists on the backend servers service that is ASP and the uri is not html but exe. This service hangs or fails and does not disrupt the keepalives from the front-end web service to the load balancer. Also there is authentication to access the application service on the back-end servers. I am looking into SASP.


thumpercisco Wed, 05/09/2007 - 12:16
User Badges:

I need a script that uses authentication and host tag

authentication first

then a uri that is on back end application service in ASP




This Discussion