Cisco 11503 - CSS Content Services Switch Administration Manual page 314

Content services switch
Hide thumbs Also See for 11503 - CSS Content Services Switch:
Table of Contents

Advertisement

Script Keepalive Examples
!
! Notes:
!
!
! Tested: KGS 12/18/01
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
set OUT-OF-SOCKETS "785"
set NO-CONNECT "774"
! Make sure the user has a qualified number of arguments
if ${ARGS}[#] "LT" "2"
tcpPort3...]\'"
endbranch
set SERVICE "${ARGS}[1]"
!echo "SERVICE = ${ARGS}[1]"
var-shift ARGS
while ${ARGS}[#] "GT" "0"
! If we're out of sockets, exit and look for sockets on the next KAL
interval
next interval."
! Valid connection, look to see if it was good
${SERVICE}:${TCP-PORT}"
endbranch
no set EXIT_MSG
exit script 0
function SOCKET_CONNECT begin
Cisco Content Services Switch Administration Guide
8-46
Does not use output
Will handle out of sockets scenario.
echo "Usage: ap-kal-tcp-ports \'ipAddress tcpPort1 [tcpPort2
exit script 1
set TCP-PORT "${ARGS}[1]"
var-shift ARGS
function SOCKET_CONNECT call
if RETURN "==" "${OUT-OF-SOCKETS}"
set EXIT_MSG "Exceeded number of available sockets, skipping until
exit script 0
endbranch
if RETURN "==" "${NO-CONNECT}"
set EXIT_MSG "Connect: Failed to connect to
exit script 1
endbranch
set CONTINUE_ON_ERROR "1"
socket connect host ${SERVICE} port ${TCP-PORT} tcp 2000
Chapter 8
Using the CSS Scripting Language
OL-5647-02

Advertisement

Table of Contents
loading

This manual is also suitable for:

11500 series

Table of Contents