Context Name and Context ID

 

The additional parameters that need to be provided for an SNMPv3 request are Context Name and the ContextID.

 

Context Name

 

An SNMP context name or "context" in short, is a collection of management information accessible by an SNMP entity. An item of management information may exist in more than one context. An SNMP entity potentially has access to many contexts. In other words, if a management information has been defined under certain context by an SNMPv3 entity, then any management application can access that information by giving that context name. The "context name" is an octet string, which has at least one management information.

 

ContextID

 

Within an administrative domain, contextID uniquely identifies an SNMP entity that may recognize an instance of a context with a particular context name. Most of the SNMPv3 entities have the snmpEngineID as their contextID.

 

API Name Class/Component Name

API Methodsapi.jpg

High Level

SnmpTarget
SnmpRequestServer
SnmpPoller
SnmpTable

setContextName(String)

setContextID(String)

Low Level

SnmpSession

SnmpPDU

setContextName(byte [])

setContextID(String)

RMI

SnmpTarget
SnmpRequestServer

setContextName(String)

setContextID(String)

CORBA

SnmpTarget
SnmpRequestServer

setContextName(String)

setContextID(String)

EJB

SnmpTarget

setContextName(String)

setContextID(String)

 

note.jpg

Note: The above parameters are to be set before making an SNMPv3 request. The rest of the parameters, such as passwords, securityLevel, etc. are in USMUserTable and EngineTable. Therefore, before making an SNMPv3 request, make sure that the USMUserEntry corresponding to the remoteHost-remotePort-userName is present in the USMUserTable. If the entry is not present, add it before making an SNMPv3 request. How to add an entry to the table has been described in Configuring Users.



Copyright © 2012, ZOHO Corp. All Rights Reserved.