Dennis,
> -----Original Message-----
> Sent: Sunday, January 24, 2010 9:08 AM
> To: GS
> Subject: EEM Applet wih CLI
> 
> Hello GS,
> 
> I'm currently working with the EEM.
> So this is really new stuff for me..
> 
> I have the following task:
> 
> Configure an EventManager Applet wich shows the first 15 lines of the
> output "show cpu processes".
> Now I don't know what I should configure in the action command.
> 
Divin posted about this last week:  
event manager applet HELL
 event none
 action 000 cli command "ena"
 action 005 cli command "sh proc cpu"
 action 010 set lines "0"
 action 020 foreach _it "$_cli_result" "\n"
 action 022  if $lines gt 6
 action 023   break
 action 024  end
 action 030  puts "$_it"
 action 031  increment lines
 action 040 end
Its working now.! I rewrote the whole thingy.
Router#event manager run HELL
CPU utilization for five seconds: 5%/0%; one minute: 3%; five minutes: 4%
 PID Runtime(ms)     Invoked      uSecs   5Sec   1Min   5Min TTY Process
   1          12          66        181  0.00%  0.00%  0.00%   0 Chunk Manager
   2         572        1499        381  0.07%  0.02%  0.00%   0 Load Meter
   3           0           1          0  0.00%  0.00%  0.00%   0 chkpt message ha
   4           0           1          0  0.00%  0.00%  0.00%   Router#event manager run HELL
----------
Just change action 022 to gt 15 and you're set.
-ryan
Blogs and organic groups at http://www.ccie.net
Received on Sun Jan 24 2010 - 15:46:56 ART
This archive was generated by hypermail 2.2.0 : Thu Feb 04 2010 - 20:28:42 ART