EasyManuals Logo
Home>Cisco>Switch>11503 - CSS Content Services Switch

Cisco 11503 - CSS Content Services Switch User Manual

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
Page #322 background imageLoading...
Page #322 background image
Chapter 8 Using the CSS Scripting Language
Script Keepalive Examples
8-54
Cisco Content Services Switch Administration Guide
OL-5647-02
Pinglist Keepalive
!no echo
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Filename: ap-kal-pinglist
! Parameters: HostName1 HostName2 HostName3, etc.
!
! Description:
! This script is designed to ping a list of hosts that the user
! passes in on the command line.
!
! Failure Upon:
! 1. Not being able to ping any one of the hosts in the list
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
if ${ARGS}[#] “LT” “1”
echo “Usage: ap-kal-pinglist \'HostName1 HostName2 HostName3
...\'”
exit script 1
endbranch
while ${ARGS}[#] “GT” “0”
set Host “${ARGS}[1]”
var-shift ARGS
function PingHost call “${Host}”
endbranch
no set EXIT_MSG
exit script 0
function PingHost begin
! Ping the first host
ping ${ARGS}[1] | grep -u Success
if STATUS “NEQ” “0”
show variable UGREP | grep 100
if STATUS “==” “0”
set EXIT_MSG “Ping: Failure to ping ${ARGS}[1]”
exit script 1
endbranch
endbranch
function PingHost end

Table of Contents

Other manuals for Cisco 11503 - CSS Content Services Switch

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco 11503 - CSS Content Services Switch and is the answer not in the manual?

Cisco 11503 - CSS Content Services Switch Specifications

General IconGeneral
BrandCisco
Model11503 - CSS Content Services Switch
CategorySwitch
LanguageEnglish

Related product manuals