原因:(noSuchName)此MIB中没有此类变量名 [英] Reason: (noSuchName) There is no such variable name in this MIB

查看:4227
本文介绍了原因:(noSuchName)此MIB中没有此类变量名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用centos操作系统。

我试图通过 snmpget 命令获取localhost的内存统计信息,我收到此错误。

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


$ b b

我没有得到我做错了。我将 / usr / share / snmp / mibs / 的路径导出到 $ PATH 变量。
$ b

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.

推荐答案

您最好阅读net-snmp的FAQ页面,

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

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

您应该使用

snmpget -v 1 -c public localhost .1.3.6.1.4.1.2021.4.6.0

这篇关于原因:(noSuchName)此MIB中没有此类变量名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆