This can be automated with an Embedded Event Manager (EEM) Applet:
In config mode, do:
event manager applet MyPolicy
event timer cron cron-entry @daily
action 1.0 cli command enable
action 2.0 cli command "sh ver | redirect shVerFile"
action 3.0 cli command "sh proc mem sort | shProcFile"
...
If you like, you can replace the @daily with @hourly, @weekly ...etc. or a
complex cron entry. Something like "0-59/1 0-23/1 * *
0-7"
A more sophisticated implementation can be done with Tcl scripts to run the cli
commands, extract the data, then deliver it in any
format you want.
You can get help building these EEM applets with the Progrizon Policy Builder
web-based tool at:
http://www.progrizon.com/support/pb/pb.php
You need to sign up which asks you to provides your email.
[email protected]
> Message: 4
> Date: Mon, 13 Dec 2010 11:44:59 -0500
> From: Jared Mauch <[email protected]>
> To: Sascha Pollok <[email protected]>
> Cc: [email protected]
> Subject: Re: [c-nsp] Script to track memory leaks?
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
>
> here's what you likely want to collect:
>
> sh ver
> sh proc mem sort
> sh mem dead totals
> sh mem dead
> show mem allocating-process totals
>
> with this sprinkled in periodically:
>
> Show mem debug leak sum
> Show mem debug leak chunk
>
> - Jared
>
_______________________________________________
cisco-nsp mailing list [email protected]
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/