Hello, I'am checking the CPU threshold with EEM in a 6509 switch (12.2.18SXF9) with SUP-720-3B. When the CPU is over a preconfigured value, I want to copy the "show process cpu sorted" command to a file cpu.txt in the sup-bootflash, and if the file already exist,I want to rewrite it without asking me for confirmation. Can I do that ?
The following sample did not work, because always ask me for confirmation.
event manager applet Chequeo_CPU
event snmp oid 22.214.171.124.126.96.36.199.188.8.131.52.1.3.1 get-type exact entry-op ge entry-val 5 poll-interval 10
action 1.0 cli command "enable"
action 2.0 cli command "term exec prompt time"
action 3.0 cli command "show process cpu sorted | tee sup-bootflash:/cpu.txt"
action 4.0 snmp-trap strdata "Utilizacion CPU supero 5%, valor actual=$_snmp_oid_val%"
action 5.0 syslog msg "Utilizacion CPU supero 5%, valor actual=$_snmp_oid_val%"
Thanks a lot in advance.