什么是“此MIB视图中没有剩余的变量"?是什么意思(Linux)? [英] What does "No more variables left in this MIB View" mean (Linux)?

查看:1314
本文介绍了什么是“此MIB视图中没有剩余的变量"?是什么意思(Linux)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Ubuntu 12.04上,我试图通过以下命令来获取管理值的子树:

On Ubuntu 12.04 I am tring to get the subtree of management values with the following command:

snmpwalk -v 2c -c public localhost 

输出的最后一行是

iso.3.6.1.2.1.25.1.7.0 = No more variables left in this MIB View (It is past the end of the MIB tree)

这是错误吗?一个警告?子树到此结束吗?

Is this an error? A warning? Does the subtree end there?

推荐答案

这里发生的事情比您想象的要多.我在自己构建的每个新Ubuntu盒子上都遇到了这个问题,我确实认为这是一个问题(不是错误,而是一个问题-对此进行进一步介绍).

There's a bit more going on here than you might suspect. I encounter this on every new Ubuntu box that I build, and I do consider it a problem (not an error, but a problem--more on this down further).

这是技术上正确的解释(为什么这不是错误"):

Here's the technically-correct explanation (why this is not an "error"):

此MIB视图中没有剩余的变量"并不是一个特别的错误;而是关于您的请求的声明.该请求始于简单的内容,例如".1.3",并继续询问下一个"词典OID.直到最后一个OID为止,它都有下一个" OID,此时代理已通知您没有其他可看的东西了.不要打扰问.

"No more variables left in this MIB View" is not particularly an error; rather, it is a statement about your request. The request started at something simple, say ".1.3" and continued to ask for the "next" lexicographic OID. It got "next" OIDs until that last one, at which point the agent has informed you that there's nothing more to see; don't bother asking.

现在,这就是为什么我认为这是一个问题(在此问题的背景下):

Now, here's why I consider it a problem (in the context of this question):

安装"snmpd"并运行它的目的是收集有关包装盒的有意义的信息.通常,此信息是面向性能的.例如,我需要了解的三件事是网络接口信息(IF-MIB :: ifHCInOctets和IF-MIB :: ifHCOutOctets),磁盘信息(UCD-SNMP-MIB :: dskUsed和UCD-SNMP- MIB :: dskTotal)和CPU信息(UCD-SNMP-MIB :: ssCpuRawIdle,UCD-SNMP-MIB :: ssCpuRawWait等).

The point of installing "snmpd" and running it is to gather meaningful information about the box; typically, this information is performance-oriented. For example, the three general things that I need to know about are network-interface information (IF-MIB::ifHCInOctets and IF-MIB::ifHCOutOctets), disk information (UCD-SNMP-MIB::dskUsed and UCD-SNMP-MIB::dskTotal), and CPU information (UCD-SNMP-MIB::ssCpuRawIdle, UCD-SNMP-MIB::ssCpuRawWait, and so on).

默认的Ubuntu"snmpd"配置明确拒绝了与此配置有关的所有有用信息(限制访问仅足够的信息以告知您该设备是Linux设备):

The default Ubuntu "snmpd" configuration specifically denies just about everything useful with this configuration (limiting access to just enough information to tell you that the box is a Linux box):

view systemonly included .1.3.6.1.2.1.1
view systemonly included .1.3.6.1.2.1.25.1
rocommunity public default -V systemonly

此配置将框锁定下来,如果它将位于不安全的网络上并且几乎没有SNMP管理知识,则此框可能是安全的".

This configuration locks the box down, which may be "safe" if it will be on an insecure network with little SNMP administration knowledge available.

但是,我要做的第一件事是删除"rocommunity"设置中的"-V systemonly"部分;这将允许通过社区字符串"public"访问所有可用的SNMP信息(只读).

However, the first thing that I do is remove the "-V systemonly" portion of the "rocommunity" setting; this will allow all available SNMP information to be accessed (read-only) via the community string of "public".

如果这样做,则可能会看到期望的结果,即可以用来评估包装盒性能的页面和SNMP信息页面.

If you do that, then you'll probably see what you're expecting, which is pages and pages of SNMP information that you can use to gauge the performance of your box.

这篇关于什么是“此MIB视图中没有剩余的变量"?是什么意思(Linux)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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