Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-31-2015, 04:01 PM
Casey Casey is offline
Registered User
 
Join Date: Oct 2011
Posts: 114
"show ip accounting" Top 10

Attached is a script I wrote that I figured others may also find helpful. It captures your 'show ip accounting' output, sorts it, and displays a somewhat formatted list of the 10 connections that have transmitted the most data.

It also saves it to your clipboard so you can paste it into notepad/email/IM/etc.

I've only tested on Cisco IOS routers (29xx and 39xx models)

If someone feels likes making the code more robust or just formatted to any kind of coding standard... then have at it. You won't hurt my feelings.

All I ask if that you considering sharing your improvements with everyone else here.

Use at your own risk.
Attached Files
File Type: zip IPAccountingTop10.zip (1.7 KB, 298 views)
Reply With Quote
  #2  
Old 11-14-2019, 11:16 AM
benny100 benny100 is offline
Registered User
 
Join Date: Nov 2019
Posts: 1
Script

Hi Casey. I have been looking for a tool that can sort the IP accounting for some time now and finally found this. I am a newbie in regard to scripting and tried to run yours and getting this compilation errors.

Line: 1
Char: 1
Error: Invalid character
Code: 800A0408
Source: Microsoft VBScript compilation error.

If you can give me some advice on what I am doing wrong I would really appreciate it

Thanks a lot
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 11:03 AM.