我们在一台机器上有几个networking接口。 如何configurationSNMP视图来限制哪些接口可以显示给公共社区?
我们正在使用Ubuntu服务器和版本库中的默认SNMPD。 我们已经成功地限制了SNMPD代理,只显示使用此configuration的interfaces树:
view system included .iso.org.dod.internet.mgmt.mib-2.interfaces
使用掩码参数。 请参阅snmpd.conf wiki页面以获取进一步解释。
这将允许用户只能看到ifTable中的第二行:
view system included .iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.2 ff.a0
或以较短的forms:
# OID # mask view system included .1.3.6.1.2.1.2.2.1.1.2 ff.a0 # ignore those with 0(a = 1 0 1 0) # allow any column in table ^ # restrict access to the second row