We have several network interfaces in a machine. How to configure SNMP view to limit which interfaces could be shown to public community?

We're using Ubuntu Server and default SNMPD from the repository. We have successfully limit the SNMPD agent to show only interfaces tree using this configuration:

view system included  .iso.org.dod.internet.mgmt.mib-2.interfaces
link|improve this question

feedback

1 Answer

Use the mask parameter. See snmpd.conf wiki page for further explanation.

This will allow user to see only the second row in the ifTable:

view system included  .iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex.2 ff.a0

or in the shorter form:

                      # 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 
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.