cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2290
Views
0
Helpful
5
Replies

snmp-server view issues

dragnar
Level 1
Level 1

All,

I am trying to accesss to this OID. 

ObjectipRouteTable
OID1.3.6.1.2.1.4.21

I was under the impression that the syntaxt would be as follows:

snmp-server view %view_name% explude ip.21

snmp-server community %RO_String% view %view_name% RO %snmp access list number%

so I do that and I loose SNMP reachability.  I am not sure what exactly is wrong.  Some help would be appriciated please.

5 Replies 5

AFROJ AHMAD
Cisco Employee
Cisco Employee

Hi ,

If you are trying to poll this oid : 1.3.6.1.2.1.4.21  then it should NOT be EXCLUDED.

you snmp config should be like this :

snmp-server view testview ISO included

snmp-server community view testview RO

or you can Explicitly INCLUDE the OID :

snmp-server view testview ISO included

snmp-server view testview ip.21 included

snmp-server community view testview RO

Thanks-

Afroz

[Do rate the useful post]

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

sorry, i wanted to exclude that.  it seems that the exclude blocks the rest of my snmp operation.  I can not walk any iod at all.

share the output of  show run | i  snmp

and what screen shot of the error when you do the SNMP WALK.

Thanks-

Afroz

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

Actual SNMP communities omitted for security reasons.

with this config I can walk the whole SNMP tree

---------------------------------------------------------------------

snmp-server community ########## RO 13

With this config I can not walk the tree

-------------------------------------------------------------------

snmp-server view solarwinds ip.21 excluded

snmp-server community ########## view solarwinds RO 13

SNMP walk output

-----------------------------

.1.0 = No more variables left in this MIB View (It is past the end of the MIB tree)

Hi Scott,

you config:

snmp-server view solarwinds ip.21 excluded

snmp-server community ########## view solarwinds RO 13

==add this==

snmp-server view solarwinds iso included

snmp-server view solarwinds ip.21 excluded

snmp-server community ########## view solarwinds RO 13

Thanks-

Afroz

Thanks- Afroz [Do rate the useful post] ****Ratings Encourages Contributors ****

Review Cisco Networking for a $25 gift card