免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1596 | 回复: 0
打印 上一主题 下一主题

为什么cacti不能正常获取交换机的ifname [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-13 22:20 |只看该作者 |倒序浏览
当我用snmpwalk从命令行去获取交换机设备的ifname时,他显示是正常的:
  $ snmpwalk -v 2c -c community IP .1.3.6.1.2.1.31.1.1.1.1
  IF-MIB::ifName.1 = STRING: Ethernet0/0/1
  IF-MIB::ifName.2 = STRING: Ethernet0/0/2
  IF-MIB::ifName.3 = STRING: Ethernet0/0/3
  IF-MIB::ifName.4 = STRING: Ethernet0/0/4
  IF-MIB::ifName.5 = STRING: Ethernet0/0/5
  IF-MIB::ifName.6 = STRING: Ethernet0/0/6
  IF-MIB::ifName.7 = STRING: Ethernet0/0/7
  IF-MIB::ifName.8 = STRING: Ethernet0/0/8
  IF-MIB::ifName.9 = STRING: Ethernet0/0/9
  IF-MIB::ifName.10 = STRING: Ethernet0/0/10
  IF-MIB::ifName.11 = STRING: Ethernet0/0/11
  IF-MIB::ifName.12 = STRING: Ethernet0/0/12
  IF-MIB::ifName.13 = STRING: Ethernet0/0/13
  IF-MIB::ifName.14 = STRING: Ethernet0/0/14
  IF-MIB::ifName.15 = STRING: Ethernet0/0/15
  IF-MIB::ifName.16 = STRING: Ethernet0/0/16
  IF-MIB::ifName.17 = STRING: Ethernet0/0/17
  IF-MIB::ifName.18 = STRING: Ethernet0/0/18
  IF-MIB::ifName.19 = STRING: Ethernet0/0/19
  IF-MIB::ifName.20 = STRING: Ethernet0/0/20
  IF-MIB::ifName.21 = STRING: Ethernet0/0/21
  IF-MIB::ifName.22 = STRING: Ethernet0/0/22
  IF-MIB::ifName.23 = STRING: Ethernet0/0/23
  IF-MIB::ifName.24 = STRING: Ethernet0/0/24
  IF-MIB::ifName.25 = STRING: Ethernet0/0/25
  IF-MIB::ifName.26 = STRING: Ethernet0/0/26
  IF-MIB::ifName.27 = STRING: Ethernet0/0/27
  IF-MIB::ifName.28 = STRING: Ethernet0/0/28
  IF-MIB::ifName.2002 = STRING: Vlan1001
但是当我使用"Data Queries" - "SNMP - Interface Statistics" 去获取设备流量,然后点击"Verbose Query",他却提示如下:
  + Located input field 'ifName' [walk]
  + Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
  + Found item [ifName=''] index: 1 [from value]
  + Found item [ifName='Ethernet0/0/2'] index: 2 [from value]
  + Found item [ifName='Ethernet0/0/2'] index: 3 [from value]
  + Found item [ifName='Ethernet0/0/2'] index: 4 [from value]
  + Found item [ifName='Ethernet0/0/2'] index: 5 [from value]
  + Found item [ifName='Ethernet0/0/2'] index: 6 [from value]
  + Found item [ifName='Ethernet0/0/2'] index: 7 [from value]
  + Found item [ifName='Ethernet0/0/2'] index: 8 [from value]
  + Found item [ifName='Ethernet0/0/2'] index: 9 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 10 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 11 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 12 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 13 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 14 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 15 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 16 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 17 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 18 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 19 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 20 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 21 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 22 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 23 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 24 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 25 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 26 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 27 [from value]
  + Found item [ifName='Ethernet0/0/21'] index: 28 [from value]
  + Found item [ifName='Ethernet'] index: 2002 [from value]

结果明显跟使用命令行得到的数据不一样,
但并不是我这边所有类型的交换机都有这个问题,一些其他类型的设备不会出现这种情况,请问这是怎么回事呢?

[ 本帖最后由 woodwalker 于 2007-12-13 22:24 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP