10-29-2004 06:45 AM - edited 03-02-2019 07:37 PM
What I am looking to do is to measure the traffic over a giving period of time from one interface on a set based switch. Is this possible without mirroring a port and using additional software?
sh interface gig 3/4 on an IOS based switch will display the following
**************************************************
5 minute output rate 0 bits/sec, 0 packets/sec
3451 packets input, 220902 bytes, 0 no buffer
Received 2874 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
14195 packets output, 922168 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
****************************************************
Can you change the default from 5 minute output to 60 mins or greater?
Is there a comparable command within the SET based switches?
sh port 3/4 does not display as much useful information.
Thanks in advance!
10-29-2004 07:31 AM
show port counters [mod[/port]]
That command is what I think youre looking for.
I'm not sure about the command to change 5 minute output/input rate. You could do a little math to get the number you seek.
5 minute output rate 0 bits/sec, 0 packets/sec
3451 packets input, 220902 bytes,
14195 packets output, 922168 bytes,
The 5 minute output rate is just an average over 5 minutes. You have the total number of bytes (8 bits) and packets received on the interface. Just clear counters on that interface and wait 60 minutes. Divide your total input or output packets by 3600sec and you have the packets per second. For bits per second multiply total output/input bytes by 8b and the divide by 3600sec and that will give you your average bps. Now you have bps and pps over a 1 hour time period.
HTH
Ryan
10-29-2004 07:48 AM
Unfortunatly the sh port counters only shows collisions, runts giants etc. It does not have a comarable output to the sh interface gig 3/4 hence my query?
10-29-2004 08:19 AM
OOPS!! Sorry about that. Try this!
show mac [utilization] [mod[/port]]
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide