Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

scripting with CSS 11155

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
Bronze

Re: scripting with CSS 11155

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

Cisco Employee

Re: scripting with CSS 11155

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

Tx,,

Gilles.

Bronze

Re: scripting with CSS 11155

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

Cisco Employee

Re: scripting with CSS 11155

thanks.

That's interesting.

Community Member

Re: scripting with CSS 11155

Peter,

Thanks.

181
Views
0
Helpful
5
Replies
CreatePlease to create content