08-12-2002 01:10 PM
Is it possible to use the scripting facility on the css 11155 to automate tasks such as activating and suspending content rules?
Thanks
08-12-2002 05:23 PM
Gilles,
Please email me directly to pknoops@cisco.com and I will forward you an example of suspending/activating a content rule or service via a script. You can even go as far as using or command scheduler utility to launch the script at a given time of day to perform the necessary tasks.
Regards
Pete Knoops
Cisco Systems
TAC Engineer, Boxborough MA
08-13-2002 03:15 AM
Pete, could you post the information so other people reading the thread can see the answer.
Tx,,
Gilles.
08-13-2002 05:18 AM
Gilles,
Here is one example:
!The purpose of this script is to check the status of two services and if they are
!both down suspend the content rule. The script will also activate content rule
!if any of the services comes back up.
!no echo
set count "0"
sho service server-g | grep Alive
if STATUS "NEQ" "1"
modify count "++"
endbranch
sho service server-h | grep Alive
if STATUS "NEQ" "1"
modify count "++"
endbranch
if count "==" "2"
configure
owner test
content l3
suspend
exit
exit
endbranch
if count "NEQ" "2"
configure
owner test
content l3
act
exit
exit
endbranch
exit
end
I will post another example shortly
Pete..
08-14-2002 01:32 AM
thanks.
That's interesting.
08-14-2002 09:53 AM
Peter,
Thanks.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide