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

snmp-server view issues

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
Cisco Employee

snmp-server view issues

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 ****
Community Member

snmp-server view issues

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.

Cisco Employee

snmp-server view issues

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 ****
Community Member

snmp-server view issues

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)

Cisco Employee

snmp-server view issues

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 ****
613
Views
0
Helpful
5
Replies
CreatePlease to create content