Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

centos

snmp

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.

like image 322
Riyaz Avatar asked Jul 03 '13 09:07

Riyaz


1 Answers

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.

like image 75
Lex Li Avatar answered Nov 15 '22 16:11

Lex Li