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.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With