Reason: (noSuchName) There is no such variable name in this MIB

放肆的年华 提交于 2019-12-18 21:54:15

问题


I am using centos Operating System.
i am trying to get the memory statistics of localhost through snmpget command, i am getting this error.

snmpget -v 1 -c public localhost .1.3.6.1.4.1.2021.4.6
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: UCD-SNMP-MIB::memAvailReal

But, if i fire this one .. i am getting the output..

snmpget -v 1 -c public localhost .1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (58756) 0:09:47.56

I am not getting what I am doing wrong. I exported the path of /usr/share/snmp/mibs/ to $PATH variable.
can any one help me out.


回答1:


You'd better read the FAQ page of net-snmp,

http://www.net-snmp.org/wiki/index.php/FAQ:Applications_09

You should use

snmpget -v 1 -c public localhost .1.3.6.1.4.1.2021.4.6.0.



来源:https://stackoverflow.com/questions/17444248/reason-nosuchname-there-is-no-such-variable-name-in-this-mib

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!