I want to complete this script to do the following:
Send an E-mail only for once as long as the CPU threshold is exceeding the threshold value (10%), and when the CPU is lower than another threshold (5%) it will send another E-mail only for once informing that the CPU utilization is normal now.
Also I need another option to run this script only for once and then it will be disabled or distroyed, whatever.
You can created two different EEM scripts. One for CPU going higher than certain threshold and another going below that threshold. Then you can crate some non-feasible exit value for the correpsonding script. E.G. if script expecting CPU to raise above threshold you can specifiy exit value to ve above 100 which wont be reached and script will never rerun. Similar with the second one:
1-What about running the script to be triggered for only one time and then destroyed, what is the required configuration? (you didn't reply on this point)
2-With your suggestion, If the CPU utilization reached the threshold value and the script is executed once, then the CPU utilization went down under the threshold again, will the script going to be executed again?
This question is because I think (and correct me if I'm wrong) that the exit-op eq exit-val 101 will keep the script in a closed loop untill the condition of exit-val 101 is met which will never happen, and hence it will not execute again if the CPU threshold is reached again which is not acceptable for me.
This is actually a pretty cool feature, i didn't even know it existed until I was looking for a solution to advertise a subnet (prefix in BGP talk), only if a certain condition existed. This is exactly what conditional advertisements does
j ai une question j ai achete un routeur cisco 887VA-k9 , je le configuré avec la configuration ci- dessous
si je le lier avec mon pc portable sur l un de ses ports directement ça marche toute est bien ( la connexion internet + m...
Attached policy provides CLI access to the Cisco 4G router over text messaging. Two files are in the attached .tar file:
2. PDF with instructions on how to load and use the .tcl file.