歡迎您光臨本站 註冊首頁

snmp agent測試問題No Such Object available on this agent at this OID

←手機掃碼閱讀     火星人 @ 2014-03-03 , reply:0

snmp agent測試問題No Such Object available on this agent at this OID

我自己自定義MIB后,並將其集成與snmpd中后測試結果顯示如下:
[email protected]:~# snmpwalk -v2c -c public localhost testTable
TEST-TABLE-MIB::testTable = No Such Object available on this agent at this OID
其中testTable是我自定義的MIB庫中的一個表,

但是我測試其中自帶的MIB庫時卻正常的,現象如下:
[email protected]:~# snmpwalk -v2c -c public localhost sysORTable
SNMPv2-MIB::sysORID.1 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.2 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.3 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.5 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.6 = OID: RFC1213-MIB::ip
SNMPv2-MIB::sysORID.7 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.8 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORDescr.1 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.3 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.8 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (1) 0:00:00.01
我的snmp.conf的配置如下:
###############################################################################
#
# EXAMPLE.conf:
#   An example configuration file for configuring the ucd-snmp snmpd agent.
#
###############################################################################

rocommunity  public
rwcommunity  private


syslocation Server Room
syscontact Sysadmin ([email protected])



#trapsink   127.0.0.1:162
#trap2sink  127.0.0.1:162
#informsink 127.0.0.1:162


#trap2sink 127.0.0.1 public
#trap2sink  192.168.3.21 public

#interface eth1
agentaddress 192.168.11.88:161

view all    included  .1       80
view system included  .iso.org.dod.internet

#       sec.name  source          community
com2sec local     localhost       public
com2sec mynetwork 192.168.11.88      public
com2sec notConfigUser  localhost  public

#               sec.model  sec.name
group MyRWGroup v1         local
group MyRWGroup v2c        local
group MyRWGroup usm        local
group MyRWGroup usm        initial
group MyROGroup v1         mynetwork
group MyROGroup v2c        mynetwork
group MyROGroup usm        mynetwork
group MyRWGroup v1       notconfiguser
group MyRWGroup v2c      notconfiguser

#view system included  .iso.org.dod.internet.mgmt.mib-2.system
#                context sec.model sec.level match  read   write  notif
access MyROSystem ""     any       noauth    exact  system none   none
access MyROGroup ""      any       noauth    exact  all    none   none
access MyRWGroup ""      any       noauth    exact  all    all    none
access  notConfigGroup ""      any       noauth    exact  all    none none


請問下造成這個問題的原因是什麼?怎麼解決?No Such Object available on this agent at this OID
.......
《解決方案》

1、        修改/etc/snmp/snmpd.conf如下:
com2sec  local     127.0.0.1    public
group MyROGroup  v1       local
group MyROGroup  v2c       local
group MyROGroup  usm       local
view all    included   .1     80
access MyROGroup  ""      any       noauth    exact  all  none  none
extend  .1.3.6.1.4.1.54135.1  linknumber  /bin/sh /etc/snmp/script/link.sh
#syslocation MyLocation
#syscontact Me
《解決方案》

我也遇到這個問題。回復 1# pioneerl


   

[火星人 ] snmp agent測試問題No Such Object available on this agent at this OID已經有1804次圍觀

http://coctec.com/docs/service/show-post-235.html