[SNMP4J] help: multiple context

Liu, Yu M. (NSB - CN/Beijing) yu.m.liu at nokia-sbell.com
Mon Jan 7 06:39:44 CET 2019


Hi experts,

We are using Snmp4J to develop our Subagent. Recently, we need to support multiple context function in our subagent and we follow below reference to achieve that.
https://doc.snmp.app/pages/viewpage.action?pageId=14155780

But in our testing, we observe that when we configure context "contexta" and ""(empty) together, then snmpwalk context "contexta" MIB table, it will get some OIDs from context ""(empty) MIB table.
Below is an example, the id "60" and "61" belong to context "contexta", id "64" and "65" belong to context ""(empty).
[root@ ~]# snmpwalk -n contexta -v 3 -u test1 -a MD5 -A 12345678 -x DES -X 12345678 -l authPriv 10.76.84.132:31101 1.3.6.1.4.1.94.7.1.4.2.1
SNMPv2-SMI::enterprises.94.7.1.4.2.1.1.60 = INTEGER: 60
SNMPv2-SMI::enterprises.94.7.1.4.2.1.1.61 = INTEGER: 61
SNMPv2-SMI::enterprises.94.7.1.4.2.1.2.60 = STRING: "system-system-test/host-host/container-container/service-service/process-process"
SNMPv2-SMI::enterprises.94.7.1.4.2.1.2.61 = STRING: "system-system-test/host-host/container-container/service-service/process-process"
SNMPv2-SMI::enterprises.94.7.1.4.2.1.3.60 = Hex-STRING: 07 E2 02 0A 01 24 21 00 2D 00 00
SNMPv2-SMI::enterprises.94.7.1.4.2.1.3.61 = Hex-STRING: 07 E2 02 0A 01 24 21 00 2D 00 00
SNMPv2-SMI::enterprises.94.7.1.4.2.1.4.60 = INTEGER: 600033
SNMPv2-SMI::enterprises.94.7.1.4.2.1.4.61 = INTEGER: 600034
...
SNMPv2-SMI::enterprises.94.7.1.4.2.1.20.64 = ""
SNMPv2-SMI::enterprises.94.7.1.4.2.1.20.65 = ""


Would you please help to check if it's normal. Thanks!


Best Regards,
Liu Yu
Tel: +86 10 64798176 (2736 8176)
Email : Yu.M.Liu at nokia-sbell.com<mailto:Yu.M.Liu at nokia-sbell.com>



More information about the SNMP4J mailing list