On 11/26/10, Andrew Wentzell <[email protected]> wrote:
> On Fri, Nov 26, 2010 at 11:43 AM, John Neiberger <[email protected]>
> wrote:
>> I'd like to periodically (weekly, for example) gather certain
>> interface stats via "show int" and then upload those stats via
>> ftp/tftp/scp or whatever to a server. I'll then pull those stats into
>> an Excel spreadsheet and parse them. What would be the best way to do
>> this? Is this something that can be built in a TCL script and then run
>> on a schedule? If you needed to do this, how would you do it? I have
>> stats from multiple interfaces on six 7600s that I need to grab at
>> least once a week.
>
> I'd write an expect script to run the show command, then parse the
> output with perl/python (or just write the whole thing in python and
> use the pexpect module).  Dump all the data to a CSV file or whatever
> you want. Run via a cron job as often as needed.

The folks at shrubbery.net have already written the expect script;
install rancid &

clogin -c "sh int" devname | awk/perl/python ...

regards,
lee
_______________________________________________
cisco-nsp mailing list  [email protected]
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/

Reply via email to