Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
share|improve this question
add comment

1 Answer 1

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 
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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