我有一台 Cisco 3560G 交换机。接口计数器是自动重置、在特定时间间隔(5 分钟?)重新计算还是根本不重置?
我想获得(每小时、每天、每月等)关于通过的字节数的接口报告,以便我可以向租户收取他们使用的带宽的固定或成比例的费用。我查看了自己的界面,我的 int 无法通过微不足道的 5 GB ((inBytes+outBytes)/2^30) = ((3799659718+1574170392)/2^30)。计数器在月初清零(现在 = 2017-09-28 00:26);我定期下载 ISO 并从 LAN 文件服务器传输许多 GB。
Switch#sh int gx/y | i bytes
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
2661138970 packets input, 3799659718 bytes, 0 no buffer
2963702247 packets output, 1574170392 bytes, 0 underruns
上面的“数据包输入/输出”行在“5分钟输出速率”行下缩进,那么这些数字是以5分钟为间隔测量的吗?
Switch#sh int gx/y
...
5 minute input rate 32000 bits/sec, 39 packets/sec
5 minute output rate 39000 bits/sec, 44 packets/sec
2661155241 packets input, 3801470626 bytes, 0 no buffer
Received 232531495 broadcasts (0 multicast)
0 runts, 8 giants, 0 throttles
128 input errors, 50 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 7202264 multicast, 0 pause input
0 input packets with dribble condition detected
2963720601 packets output, 1576436851 bytes, 0 underruns
0 output errors, 0 collisions, 7 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 PAUSE output
0 output buffer failures, 0 output buffers swapped out