EasyManua.ls Logo

Cisco 11503 - CSS Content Services Switch

Cisco 11503 - CSS Content Services Switch
392 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 8 Using the CSS Scripting Language
Script Keepalive Examples
8-50
Cisco Content Services Switch Administration Guide
OL-5647-02
no set EXIT_MSG
socket disconnect ${SOCKET}
exit script 0
HTTP List Keepalive
!no echo
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Filename: ap-kal-httplist
! Parameters: Site1 WebPage1 Site2 WebPage2 [...]
!
! Description:
! This script will connect a list of sites/webpage pairs. The
! user must simply supply the site, and then the webpage and
! we'll attempt to do an HTTP HEAD on that page.
!
! Failure Upon:
! 1. Not establishing a connection with the host.
! 2. Not receiving a status code 200 on the HEAD request on any
! one site. If one fails, the script fails.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Make sure the user has a qualified number of arguments
if ${ARGS}[#] “LT” “2”
echo “Usage: ap-kal-httplist \'WebSite1 WebPage1 WebSite2 WebPage2
...'"
exit script 1
endbranch
while ${ARGS}[#] “GT” “0”
set Site “${ARGS}[1]”
var-shift ARGS
if ${ARGS}[#] “==” “0”
set EXIT_MSG “Parameter mismatch: hostname present but webpage
was not”
exit script 1
endbranch
set Page “${ARGS}[1]”
var-shift ARGS
no set EXIT_MSG
function HeadUrl call “${Site} ${Page}”
endbranch
exit script 0
function HeadUrl begin

Table of Contents

Other manuals for Cisco 11503 - CSS Content Services Switch

Related product manuals