cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
643
Views
0
Helpful
5
Replies

scripting with CSS 11155

gsatchivi
Level 1
Level 1

Is it possible to use the scripting facility on the css 11155 to automate tasks such as activating and suspending content rules?

Thanks

5 Replies 5

pknoops
Level 3
Level 3

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

Pete, could you post the information so other people reading the thread can see the answer.

Tx,,

Gilles.

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..

thanks.

That's interesting.

gsatchivi
Level 1
Level 1

Peter,

Thanks.

Review Cisco Networking for a $25 gift card