You might want to check the following sites on Cisco.Com, I did a search and
there is one for CPU monitoring already created. I would suggest looking at
that one and from there you can get a handle on how it works.
Browse and download EEM Scripts:
EEM Main Page:
http://forums.cisco.com/eforum/servlet/EEM?page=main
If you have access to Cisco Live Virtual there are some good presentation
there on EEM.
I have an EEM script that I use for TAC cases. Many times they want logs
after a certain event or on a regular basis. The script that I have runs
the commands they want and then e-mails myself and the TAC engineer the
information. Amazing how fast they will resolve a case when they get logs
every hour on the hour.
Jeff Fry
R&S 22061
On Sun, Feb 14, 2010 at 10:36 AM, <Keegan.Holley_at_sungard.com> wrote:
> Honestly, I read over this feature a few times until I had a basic
> understanding of it. I'm planning to focus on the core topics and make
> sure I know what EEM is and where it is in the doc CD for my lab.
> Hopefully not more than a 2 point question. Ironically enough this
> strategy works pretty well in the real world as well. Have you tried
> looking this up on the doc CD?
>
>
>
>
>
> From:
> Jomi <doctorfleming_at_gmail.com>
> To:
> ccielab_at_groupstudy.com
> Date:
> 02/14/2010 08:02 AM
> Subject:
> some help with EEM
> Sent by:
> <nobody_at_groupstudy.com>
>
>
>
> Hi guys,
>
> I've been trying to get deeper on EEM technology. I have a task on mind
> that
> is driving me crazy, since I dont know how to solve it.
> The thing is that I want my router to send an e-mail with certain info
> when
> the CPU rises a value. The task is easy so far, but I dont know how to
> include the result of the command "show proc cpu" in the body of the mail.
> I've found some examples on the net, but they seem not to work. How can I
> get the output of "show proc cpu" into a variable, and then print this
> variable into an e-mail??
>
> Thanks in advance,
>
> J.M.H.
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
Blogs and organic groups at http://www.ccie.net
Received on Sun Feb 14 2010 - 11:00:33 ART
This archive was generated by hypermail 2.2.0 : Mon Mar 01 2010 - 06:28:35 ART