Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Restrict OIDs for a snmp-community

Hi all

I need restrict the access to a Router for snmp. A customer require monitore a interface, but ONLY one, not all interfaces of the router.

If i configure a new community i asigned a ACL, but he have access to all Router's MIBs.

There are some solution to this issue?

Thanks in advanced

JABE

1 REPLY
Bronze

Re: Restrict OIDs for a snmp-community

snmp view is designed exactly for this.

snmp-server view oneinterface ifEntry.*.1 included

snmp-server view oneinterface ifEntry excluded

snmp-server community mycomm view oneinterface ro

In this example, only ifIndex 1 is allowed. You will have to find out what ifIndex is for your interface. Note that if you reboot the router and didn't configure interface persistance, ifIndex will change and you will have to redo the view again.

HTH

96
Views
5
Helpful
1
Replies