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

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

问题描述

我使用的是centos操作系统.
我正在尝试通过 snmpget 命令获取本地主机的内存统计信息,但出现此错误.

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

我没有明白我做错了什么.我将 /usr/share/snmp/mibs/ 的路径导出到 $PATH 变量.
谁能帮帮我.

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天全站免登陆