cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
4354
Views
3
Helpful
2
Replies

SNMPv3 "view" vs "context"

riad1990new
Level 1
Level 1

Hello,

 

Can someone explain to me what's the difference between SNMPv3 "view" and "context"?

Thanks,
Riad.

1 Accepted Solution

Accepted Solutions

M02@rt37
VIP
VIP

Hello @riad1990new,

In SNMPv3, a "view" refers to a subset of the managed objects within the SNMP MIB that an SNMP entity can access or manipulate. Views are defined to control the level of access that a particular SNMP user has to specific portions of the MIB tree. They are associated with SNMP security models and are used to enforce access control policies. They help define which parts of the MIB a user or a community is allowed to retrieve or modify.

On the other hand, a "context" in SNMPv3 refers to a domain or a specific instance of a managed entity on a device. SNMPv3 introduced the concept of contexts to allow for the monitoring of multiple instances of the same SNMP object on a device without ambiguity. SNMP contexts are particularly useful in scenarios where a single SNMP agent manages multiple virtual routing or VRFs on a device, and each VRF has its own set of SNMP information. Contexts help distinguish between these different instances.

https://datatracker.ietf.org/doc/html/rfc3411#section-3.3.1

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

View solution in original post

2 Replies 2

Hello
I have never had to use contexts for snmpv3 however my understanding they are used for secure placement of specific snmp mibs within a vpn, basically separating snmp traffic and access to snmp objects within each separate vpn.

SNMPv3 views are created to allow access to certain snmp objects , used in conjunction with v3 groups and access-lists you can allow snmp hosts/users specific privilege access to these views.                                                            


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

M02@rt37
VIP
VIP

Hello @riad1990new,

In SNMPv3, a "view" refers to a subset of the managed objects within the SNMP MIB that an SNMP entity can access or manipulate. Views are defined to control the level of access that a particular SNMP user has to specific portions of the MIB tree. They are associated with SNMP security models and are used to enforce access control policies. They help define which parts of the MIB a user or a community is allowed to retrieve or modify.

On the other hand, a "context" in SNMPv3 refers to a domain or a specific instance of a managed entity on a device. SNMPv3 introduced the concept of contexts to allow for the monitoring of multiple instances of the same SNMP object on a device without ambiguity. SNMP contexts are particularly useful in scenarios where a single SNMP agent manages multiple virtual routing or VRFs on a device, and each VRF has its own set of SNMP information. Contexts help distinguish between these different instances.

https://datatracker.ietf.org/doc/html/rfc3411#section-3.3.1

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.