Contents

This document provides a sample CSS keepalive script to be used in a
CDM/CR high availability configuration to down a device that is not responding
quickly enough. Typically, this will be the CDM that is busy with other
operations like importing files, deleting files, and so on.

The web server may respond quickly when a redirection request may take
some time as the CDM/CR has to look through its tables. The CSS can be
configured to down the device path on the first failure.

This document is not restricted to specific software and hardware
versions.

The information in this document was created from the devices in a
specific lab environment. All of the devices used in this document started with
a cleared (default) configuration. If your network is live, make sure that you
understand the potential impact of any command.

Filename: ap-kal-cdm
!
! Parameters: IP_addr webpage [timeout]
!
! IP_addr is the IP address of the CDM or CR you are testing
! webpage is the web page you are testing for (see Description)
! timeout is the maximum time to wait (default is 5000)
!

This script is used as a keepalive to test the responsiveness of the
CDM or CR to returning redirects for client HTTP requests. The arguments are
the device's address, the webpage to test for, and a timeout (in milliseconds).
If no timeout is given, 5000 is used as default.

The webpage needs to be a page that will remain on the CDM. Look at the
CE_Play URL for the page in the Previewer. All characters following the
http://host:port/ are what you need to include in this
parameter. For example, if the CE_Play link was:

http://10.0.2.50/Cisco/00b0d0ab1f84/Default_Channel/here.gif

You would specify the following for the webpage parameter to this
script:

/Cisco/00b0d0ab1f84/Default_Channel/here.gif

If there is no valid response from the device within the specified
timeout, the script failed.