cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2754
Views
5
Helpful
1
Replies

Limit SNMP view to single interface

gskhanna
Level 1
Level 1

Hello,

 

I'm trying to allow cacti to only graph a single port on our Cisco 6500 Sup 720 Router.

Specifically port te4/1 which has index of 202.

TenGigabitEthernet4/1: Ifindex = 202

 

 

I know command to allow it would be:

snmp-server view test ifEntry.*.202 included

 

The point of this is to only graph bandwidth for the single 10gb port, and nothing else. However, I am finding that cacti cannot even list any ports for the router due to lack of something else. I believe all the other snmp views are blocked, which are causing the problem.

 

Does anyone know what other MIB view is needed to be allowed for the port to still be graphed? but still disallow any other ports.

Thank you for your help!

 

 

1 Reply 1

VladoK
Level 1
Level 1

I've solved this on C4948E. I needed to allow only Gi1/39 for Cacti graphing.

 

The ifindex is:

SW#show snmp mib ifmib ifindex gigabitEthernet 1/39
Interface = GigabitEthernet1/39, Ifindex = 39

Switch config:

snmp-server view VIEW39 system included
snmp-server view VIEW39 ifEntry.*.39 included
snmp-server view VIEW39 ifXEntry.*.39 included
snmp-server community ACMEComm123 view VIEW39 RO 65

Now Cacti can see only basic device info (branch 'system') and the counter related stuff of interface Gi1/39. In the 'New Graph' dialog it lists only GigabitEthernet1/39.

Review Cisco Networking for a $25 gift card