How do I write a eem script to catch high cpu on cat6k?

Hi,
I have a high cpu condition I am trying to catch in a 6509 with a WS-SUP720-3B
running s72033-advipservicesk9_wan-mz.122-33.SXI2a  code.
I configured this eem script but even when this message is printed in the log, it doesn't execute.
*Jun 9 19:15:48.822: %HA_EM-6-LOG: cpu_stats: ------HIGH CPU DETECTED----, CPU: 92%
Am I missing a parameter on my trigger?
event manager applet cpu_stats
event syslog pattern "%HA_EM-6-LOG: cpu_stats: ------HIGH CPU DETECTED----" maxrun 120
action 1.02 cli command "enable"
action 1.03 cli command "show clock | append disk0:cpu_stats"
action 1.04 cli command "show proc cpu sort | append disk0:cpu_stats"
action 1.05 cli command "Show proc cpu history | append disk0:cpu_stats"
action 1.06 cli command "debug netdr cap rx"
action 1.07 cli command "show tcp brief | append disk0:cpu_stats"
action 1.08 cli command "show ibc | append disk0:cpu_stats"
action 1.09 cli command "show platform hardware capacity ibc | append disk0:cpu_stats"
action 1.15 cli command "show netdr cap | append disk0:cpu_stats"
action 1.16 cli command "undebug all"
This is from the show logg:
*Jun 9 19:15:48.822: %HA_EM-6-LOG: cpu_stats: ------HIGH CPU DETECTED----, CPU: 92%
*Jun 9 19:23:44.066: %HA_EM-6-LOG: cpu_stats: ------HIGH CPU DETECTED----, CPU: 91%
*Jun 9 19:44:18.862: %SYS-5-CONFIG_I: Configured from console by console
*Jun 9 19:49:34.718: %HA_EM-6-LOG: cpu_stats: ------HIGH CPU DETECTED----, CPU: 91%
*Jun 9 19:50:58.962: %SYS-5-CONFIG_I: Configured from console by console
But the disk0:cpu_stats file never gets data appended to it.
Thank you in advance for any assistance,
Chris

Hi Joseph,
I have a continuous ping from a 4500 to this 6500.
I enabled the debug event manager action cli but got limited output.
So enabled debug event manager all.
Here is the output:
*Jun 10 15:30:20.673: cli_history_entry_add: free_hist_list size=0, hist_list size=7
*Jun 10 15:30:20.673: check_eem_cli_policy_handler: num_matches = 0, response_code = 1d
c6500#
*Jun 10 15:30:22.417: cli_history_entry_add: free_hist_list size=0, hist_list size=7
*Jun 10 15:30:22.417: check_eem_cli_policy_handler: command_string=end
*Jun 10 15:30:22.417: check_eem_cli_policy_handler: num_matches = 0, response_code = 1
*Jun 10 15:30:22.417: fh_fd_config_event_match: num_matches = 0
*Jun 10 15:30:22.417: fh_fd_config_event_notify:
*Jun 10 15:30:22.429: fh_fd_syslog_event_match: num_matches = 0
*Jun 10 15:30:22.429: fh_fd_data_syslog: num_matches = 0
*Jun 10 15:31:00.001: fh_fd_timer_process_async
*Jun 10 15:31:00.001: cron_tick: num_matches 0
*Jun 10 15:32:00.005: fh_fd_timer_process_async
*Jun 10 15:32:00.005: cron_tick: num_matches 0
*Jun 10 15:33:00.001: fh_fd_timer_process_async
*Jun 10 15:33:00.001: cron_tick: num_matches 0
c6500#debu event mana
*Jun 10 15:34:00.001: fh_fd_timer_process_async
*Jun 10 15:34:00.001: cron_tick: num_matches 0ger action cli
Debug EEM action cli debugging is on
c6500#
*Jun 10 15:34:08.181: cli_history_entry_add: free_hist_list size=0, hist_list size=7
*Jun 10 15:34:08.181: check_eem_cli_policy_handler: command_string=debug event manager action cli
*Jun 10 15:34:08.181: check_eem_cli_policy_handler: num_matches = 0, response_code = 1
*Jun 10 15:35:00.001: fh_fd_timer_process_async
*Jun 10 15:35:00.001: cron_tick: num_matches 0
*Jun 10 15:36:00.009: fh_fd_timer_process_async
*Jun 10 15:36:00.009: cron_tick: num_matches 0
*Jun 10 15:37:00.001: fh_fd_timer_process_async
*Jun 10 15:37:00.001: cron_tick: num_matches 0
*Jun 10 15:38:00.001: fh_fd_timer_process_async
*Jun 10 15:38:00.001: cron_tick: num_matches 0
C6500# sh proc cpu
CPU utilization for five seconds: 93%/11%; one minute: 91%; five minutes: 90%
PID Runtime(ms) Invoked uSecs 5Sec 1Min 5Min TTY Process
Thank you for your help,
Chris

Similar Messages

  • How do I write in greek script in Pages?

    I want to write in greek script (symbol font) but pages doesn't show it. It is in font book. How do I get pages to let me write in the symbol font?

    tgrebe wrote:
    How do I get pages to let me write in the symbol font?
    Make sure you never use the old symbol font for Greek.  The data it produces is actually Latin underneath, and there is no guarantee anyone else will see Greek.  Instead use the Greek keyboard, and the right font to produce real Greek will be used automatically.

  • How do I write a halt script vs an onComplete script?

    I am having an issue with a swf playing over another swf.  The stop audio portion of my ActionScript is occurring onComplete rather then a halt script action.  This was not a problen when I tested locally since the files would download in 1 or 2 seconds instead of 8 to 12 seconds.   Can someone tell me how to change the onComplete to a halt action?  My script is below.
    //run at once
    var sRequest:URLRequest = new URLRequest("track01.swf");
    var externalMovie:MovieClip;
    var swfLoader:Loader = new Loader();
    swfLoader.load(sRequest);
    this.addChild(swfLoader);
    swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
    function onComplete(evtObj:Event):void{
      externalMovie = MovieClip(swfLoader.content)
    //------------------button code
    this.addEventListener(MouseEvent.CLICK, onClick);
    function onClick(evtObj:MouseEvent):void{
    externalMovie.stop();
    //this.removeChild(swfLoader);
    //trace(evtObj.target.name)
    var buttonClicked:String = evtObj.target.name;
    swfLoader.load(new URLRequest(buttonClicked + ".swf"));

    Hello - Thank you for responding. I am very new to AS3 and I am not certain how I make the unloadAndStop() work in the code I have. There is sound in each of the 19 loaded swf.  I am publishing for 10. I think the stop(); you are referring to is for my website link. 
    The issue is in this portion of the code.  I tried changing the code to  externalMovie.unloadAndstop();  and it didn't help.  Is this a function that replaces swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);  ?
    This is the link to the page, if it would help to see what going wrong.
    http://www.firstcommusic.net/amped/nov-dec/in_theQ.html
    //run at once
    var sRequest:URLRequest = new URLRequest("TV_track01.swf");
    var externalMovie:MovieClip;
    var swfLoader:Loader = new Loader();
    swfLoader.load(sRequest);
    this.addChild(swfLoader);
    swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
    function onComplete(evtObj:Event):void{
         externalMovie = MovieClip(swfLoader.content)

  • How Can I write a script for change first indent?

    How can I write a java script to tell indesign:
    what ever the text first indent is, I want to change first indent =
    1) 8mm
    2) 0mm
    3)-8mm (if left indent is 0, change the first indent to 8mm, and then change first indent = -8)
    3 scripts
    Please someone help me, please!

    Hi hasive, thank you for your responses, thank you very much,
    I need three scripts
    1st script, I want to set the first indent to 8mm;
    2nd script, I want to set the first indent to -8 mm, but if the left indent is 0, please set the left indent to >8mm then set the first indent to -8mm;
    3rd, I want to set the first to 0mm, if the first indent is 8mm or -8mm;
    thank you
    Harvey

  • Write the results script of results log pane to XLS or CSV file with VBA.

    Hi,
    How can I write the results script of results log pane to XLS or CSV file with VBA code or something? I tried so hard but i can't.
    Thanks

    MoGas,
    This is actually not a trivial process. You need to use the results object and code it to write to your file (it is described in the help files).
    e-Tester automatically saves the results log as a text file so you may just want to stick with that for simplicity.

  • EEM script on line vty

    Hi,
    I am using this script to check high cpu util on switch
    event manager applet high_cpu
    event snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 get-type exact entry-op gt entry-val "65" poll-interval 5 action 1.01 syslog msg "------HIGH CPU DETECTED----, CPU: $_snmp_oid_val %"
    action 1.02 cli command "enable"
    action 1.03 cli command "term len 0"
    action 1.04 cli command "debug platform packet all receive buffer"
    action 1.05 cli command "show platform health | redirect slot0:high_cpu1"
    action 1.06 cli command "show proc cpu sort | redirect slot0:high_cpu2"
    action 1.07 cli command "show platform cpu packet statistics | redirect slot0:high_cpu3"
    action 1.08 cli command "show platform cpu packet buffered | redirect slot0:high_cpu4"
    action 1.09 cli command "show platform health | redirect slot0:high_cpu5"
    action 1.10 cli command "show proc cpu sort | redirect slot0:high_cpu6"
    action 1.11 cli command "show platform cpu packet statistics | redirect slot0:high_cpu7"
    action 1.12 cli command "show platform cpu packet buffered | redirect slot0:high_cpu8"
    action 1.13 cli command "show clock | redirect slot0:high_cpu9"
    action 1.14 cli command "undebug all"
    action 1.15 cli command "conf t"
    action 1.16 cli command "no event
    Switch version: cat4500e-entservicesk9-mz.122-50.SG3.bin
    Model:  WS-C4900M 3 slot switch
    Can you pls confirm whether each line will take separate vty to run each command or all the above command will run on single vty
    Post running this script we are getting vty 11-15 are showing 0.0 & we are not able to kill/disconnect session
    br/subhojit

    You can use "show tcp brief" to identify the tcp connections with a TCB value associated to each.
    Try to clear the session using the command "clear tcp tcb " to clear the lines.
    High CPU was due to Spanning-tree state changes/
    Thanks & Regards,
    Karthick Murugan
    CCIE#39285
    **DO NOT FORGET TO RATE ALL USEFUL POSTS**

  • How can I hide what I write in Java Script

    If I write a script, I offer it to many one to use it, but I don’t want to anyone to see what I write in the script, how can I do?

    In ESTK go to "File" and select "Export as Binary..."
    HTH
    Marijan (tomaxxi)
    http://tomaxxi.com

  • How do I write a script to prepopulate a date

    I have a two page form.  The first page has a current date at the top of the form.  On the second page there is a date object that I would like to prepopulate 21 days from the current date on top of page one.  How do I write a script?  I am very new at this and have only a couple days to figure this out.  Thank you

    Hi,
    in the exit:Event of the 1st date field add this FormCalc script:
    DateField2 = Num2Date(Date2Num($.formattedValue, "DD.MM.YYYY") + 21, "DD.MM.YYYY")
    You may have to change th date pattern  "DD.MM.YYYY" in the way you need it.

  • How to handling ecxeptions on alv and how to write subrotiens on scripts

    Hi abapers..
    tell me how to handle ecxeptions on ALV, and how many exceptions are there ,which exception i have to use.
    AND is it possible to write subrotiens on script, if it is possible tell to me how to write

    There are already enough Exceptions provided for ALV .
    yes you can write sub-routines in scripts , search SDN and you will get answer for the same

  • How to write a shell script to execute a procedure with out parameter

    Hi,
    How to write a shell script to execute a procedure with out parameter.
    here is my procedure
    PROCEDURE sample(invar1 VARCHAR2,
    invar2 VARCHAR2,
    invar3 VARCHAR2,
    invar4 VARCHAR2,
    ecode out number);
    Any example really helpfull
    Thanks in advance

    Or if we're passing values in, maybe something like:
    Test procedure:
    CREATE OR REPLACE PROCEDURE p (myin IN VARCHAR2, myout OUT VARCHAR2)
    AS
    BEGIN
        myout :=
            CASE myin
                WHEN 'A' THEN 'APPLE'
                WHEN 'B' THEN 'BANANA'
                ELSE 'STARFRUIT'
            END;
    END;Shell script:
    #!/bin/bash
    my_shell_variable=$1
    unset ORACLE_PATH
    sqlplus -s un/pw@db <<-EOF
    set feedback off pause off
    set pagesize 0
    set autoprint off
    VAR out varchar2(30)
    VAR myin varchar2(30)
    exec :myin := '${my_shell_variable}'
    BEGIN
      p(:myin, :out);
    END;
    print out
    exit
    EOFTest:
    /Users/williamr: xx A
    APPLE
    /Users/williamr: xx B
    BANANA
    /Users/williamr: xx
    STARFRUITObviously in a real script you would not hardcode the password or let it show in a "ps" listing.
    Message was edited by:
    William Robertson

  • How can I write a script for set left indent?

    In three cases as below:
    for example:
    left indent:8mm; first indent:0mm
    left indent:0mm; first indent:8mm
    left indent:8mm; first indent:-8mm
    How can I write a script to tell Indesign, wherever the text indent is, each time when I run the script once, the text can put just a step rightward, and “one step = 8mm”.
    Please!

    Hi, Trevor
    I use change by list as below:
    grep {leftIndent:48mm} {leftIndent:56mm}
    grep {leftIndent:40mm} {leftIndent:48mm}
    grep {leftIndent:32mm} {leftIndent:40mm}
    grep {leftIndent:24mm} {leftIndent:32mm}
    grep {leftIndent:16mm} {leftIndent:24mm}
    grep {leftIndent:8mm} {leftIndent:16mm}
    grep {firstLineIndent:8mm, leftIndent:48mm} {firstLineIndent:8mm, leftIndent:56mm}
    grep {firstLineIndent:8mm, leftIndent:32mm} {firstLineIndent:8mm, leftIndent:48mm}
    grep {firstLineIndent:8mm, leftIndent:24mm} {firstLineIndent:8mm, leftIndent:32mm}
    grep {firstLineIndent:8mm, leftIndent:16mm} {firstLineIndent:8mm, leftIndent:24mm}
    grep {firstLineIndent:8mm, leftIndent:8mm} {firstLineIndent:8mm, leftIndent:16mm}
    grep {firstLineIndent:-8mm, leftIndent:48mm} {firstLineIndent:-8mm, leftIndent:56mm}
    grep {firstLineIndent:-8mm, leftIndent:32mm} {firstLineIndent:-8mm, leftIndent:48mm}
    grep {firstLineIndent:-8mm, leftIndent:24mm} {firstLineIndent:-8mm, leftIndent:32mm}
    grep {firstLineIndent:-8mm, leftIndent:16mm} {firstLineIndent:-8mm, leftIndent:24mm}
    grep {firstLineIndent:-8mm, leftIndent:8mm} {firstLineIndent:-8mm, leftIndent:16mm}
    but not that perfect,
    I want to useing jave "if{}" or "for{}" to write this script, but I don't kown the syntext.

  • Need EEM script for write mem config details.

    Looking for an EEM script that will send an email of config details when a write mem is performed.  
    Any help would be appreciated as i'm new to EEM.

    Something like this could work:
    event manager applet email-write-mem
    event cli pattern "^(write memory|write|copy running-config startup-config)*$" sync no skip no
    action 0.5 info type routername
    action 1.0 mail from [email protected] to [email protected] server 10.1.1.1 subject "Write mem on $_info_routername" body "A write mem was done on $_info_routername"

  • How to write a shell script

    Hi,
    I am trying to learn to write shell script.
    Can anybody guide me throught this:
    I want to write a shell script that finds all the processes running in a database and then kill all these processes.

    Thanks Jen,
    I tried it and it worked.
    One question:
    What should I do to create a file and write a script in that file, so that when I run the file it will automatically kill the processes that are currently running.
    Should I use a "loop".
    I appreciate your help amd time.

  • EEM Script to Automate DHCP/NAT changes on WAN address

    Hi all,
    I'm new to eem scrpting.
    I need to know if it's possible to write a simple script on a DHCP cilent used for a backup in a Call center.
    If power is lost or a connection it lost to the WAN interface the address will change from time to time. It does happen.
    I have a bunch of static nat and port forwarding statements that don't work after the address change.
    Is there a way to tell the router "consider all of the subnet possible addresses in a /192 subnet situation" ?
    Then translate all nat statements to the new WAN address?
    Thanks
    I'm not sure if I'm asking the right question yet but that is close.
    Back up router is a DHCP client and changes addresses from time to time. The router is a 3825 running 12.3 adventerprise image.
    It''s not going to be updated past that.
    Thanks again
    evan

    Thanks Joseph,
    I guess I can't do it in any case because of the IOS ver. it's actually 12.3 (11).
    We have a lot of static port forwarding going on. I not sure how it's going to work when the WAN address changes.
    I was looking for a way to keep all of the one to one static nat statements working to the inside servers. Eventually they have to get a static ip address for the backup.
    Thanks again.
    evan
    p.s. how would one do it if we get the updated ios ver. I see problems coming if I don't take some proactive measure.
    Someway to monitor the WAN address change and keep the port fowarding exactly the same and maybe notify someone that it did change as it's a DHCP client?

  • How to prevent a text in script from displaying if its value is zero

    Dear all,
    How to prevent a text in script from displaying if its value is zero
    for eg   Price  = 0.00
    if price is 0 it should'nt appear in output.
    I tried with    if price ne 0.
                       price = &price&
                        endif.
    but it's not working.
    Regards
    Raj
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jan 20, 2009 8:59 AM

    Hello Nagaraju,
                           What you were doing is partially right.
    The correct format to write in the script is as follows :
    /:  if &PRICE& ne 0.
      &PRICE&
    /:  endif.
    This should work. Let me know how it goes.
    Nayan

Maybe you are looking for

  • Help. DSL drops connection all the time, is it the modem? (westell 327W)

    Pardon me because I'm not so tech aware, and so don't know what to do to try to find a solution.  We lose our internet connection a lot.  It seems to happen in spurts:  last night we couldn't connect at all, today it was bad in the morning but now I'

  • Fw800 --- fw400 and dependability

    How dependable is it to use a fw800 connection with an adapter for fw400? The 15" macbookpro, lacking the fw800 needs to be connected to a fw800 external drive for use with final cut pro. If only I had waited for the 17"......I presume that the drive

  • Ok I've seemed to follow the steps in making custom Ringtones but....

    I have followed all of the steps correctly from a previous post, and created a few ringtones in itunes, but when I try to sync, they don't show up on my phone. I tried deleting the .m4a file and it still did not show. Someone had mentioned that the r

  • Unable to donwload Oracle SQL Developer 2.1 Patch 1 - getting a 404

    Hi, I'm trying to download Oracle SQL Developer 2.1 Patch 1, but I'm getting a 404. Here is the page I'm downloading from: http://www.oracle.com/technology/software/products/sql/index.html Here is the link to the zip file: http://download.oracle.com/

  • Resolve Action when Syncing...

    I cannot find out how to fix the "Resolve" issue we keep running into when syncing our test site with production.  It repeatedly says we have files that have different versions on the local and remote.  This is not the case. I cannot find any informa