找答案的高端用户(找答案钻石及双钻级别的用户)将尽可能从此问题下的所有回
答中,为您推荐最佳答案。届时您可以根据推荐数采纳答案。
如果自提问时间起7天内您仍无法选出最佳答案,您可以选择“无满意答案”关闭此问题。
问题
取消精华
首页精华问答
取消推荐
高端用户推荐
申请置评
已申请置评
修改
修改标签
添加标签
官方认证
取消官方认证
修改标签
添加标签
转移分类
删除
{{itemCategory}}
收藏({{answerDetail.Q_FavoriteCounts}})
手机扫码追踪该问题,
觉得实用,立即去分享!
点击复制链接
专家建议
取消最佳答案
修改
除了在交换机的管理界面中去查看某个接口的当前速率外,还可以通过SNMP网管软件去读取交换机的接口参数,一般会利用标准IF-MIB(rfc2863)中的OID .1.3.6.1.2.1.2.2.1.5 (ifSpeed) 来读取交换机的接口速率,
例如100Mbps的接口,结果为100000000。
关于“ifSpeed”的说明如下:
An estimate of the interface's current bandwidth in bits per second. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. If the bandwidth of the interface is greater than the maximum value reportable by this object then this object should report its maximum value (4,294,967,295) and ifHighSpeed must be used to report the interace's speed. For a sub-layer which has no concept of bandwidth, this object should be zero.
这个“ifSpeed”是一个无符号32位的整形数据,其单位是bps,其表示的范围是0~4,294,967,295,也就是说,如果端口的速率是10G 的时候,通过这个参数读取的时候,是无法正确表示的。
此时,就可以用另一个OID .1.3.6.1.2.1.31.1.1.1.15(ifHighSpeed)来读取交换机接口速率
如果读取100Mbps接口的速率,结果为100。
关于“ifHighSpeed”的说明如下:
An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n' then the speed of the interface is somewhere in the range of `n-500,000' to `n+499,999'. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth. For a sub-layer which has no concept of bandwidth, this object should be zero.
ifHighSpeed是一个无符号32位的整形数据,其单位是bps其单位是Mbps, 因此,对于10G的接口,读取的结果为10000。
等您来回答
换一换
{{item.CoinValue}}西币
{{item.VisitNum}}人想问
本版相关问题
换一换
专家置评
首次回答问题,获得
双倍西币积分!
立即成为技术知识分享的一员!
欢迎您访问支持中心!
丰富的视频,全方位的文档,大量的网友交流精华……
为了更好的完善这些内容,我们诚邀您在浏览结束后,花20秒左右的时间,完成一个用户在线调查!
感谢您的支持!

官方商城-正品备件
DIOMIS