cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
404
Views
0
Helpful
1
Replies

permanent variable in script - suggestion needed

cbluhme
Level 1
Level 1

Hello

I need to let a keepalive script store a variable so that the next time the keepalive script is run, the variable can be read and used.

A session variable is apparently not "permanent" when it is created in a keepalive script.

Does anyone have any creative suggestions how to store a value permanent in the CSS.

I do not think it is a good idea to store it in the configuration or writing or reading it to/in log-files but are there any other ways.

BRGRDS

1 Reply 1

Gilles Dufour
Cisco Employee
Cisco Employee

I would recommend to avoid this at all costs.

Keep the script simple.

If this question is related to a case you have open, and you actually want to do some 'service dampening'

you should try to use existing counters instead of creating your own one.

For example if you do a 'sho service summary' you could ugrep the last column which is the number of state transitions.

You could also reconfigure the frequency on the fly.

You could also run a script with the command scheduler instead of from the service itself.

This script would monitor all the keepalives and could store variable and also reconfigure frequency on the fly.

As you can see, there are many ways to achieve what you want.

Regards,

Gilles.

Review Cisco Networking for a $25 gift card