[AGENT++] Exception 128 with snmpGet
Michelle Lam
mydlam at yahoo.com
Sat Apr 23 01:27:17 CEST 2011
Hi,
I'm using the atm_mib example but instead of user the atm_mib I use my own mib module. When I issued an snmpGet as below:
./snmpGet localhost 1.3.6.1.4.1.3231.1.5.3.1.0 -v3 -P4700 -snunsecureUser -sl1 -cnother
I'm getting this error:
Oid = 1.3.6.1.4.1.3231.1.5.3.1.0
Value =
Exception: 128 occured.
I have the oid above defined in the mib module l3fmmib.h and add it
mib.add(new l3fmmib());
mib.add(nonDefaultContext, new l3fmmib());
UsmUserTable has:
uut->addNewRow("unsecureUser",
SNMP_AUTHPROTOCOL_NONE,
SNMP_PRIVPROTOCOL_NONE, "", "");
vacm has:
vacm->addNewContext("other");
vacm->addNewGroup(SNMP_SECURITY_MODEL_USM, "unsecureUser",
"newGroup", storageType_nonVolatile);
vacm->addNewGroup(SNMP_SECURITY_MODEL_USM, "unsecureUser",
"testNoPrivGroup", storageType_nonVolatile);
vacm->addNewAccessEntry("newGroup",
"other", // context
SNMP_SECURITY_MODEL_USM,
SNMP_SECURITY_LEVEL_NOAUTH_NOPRIV,
match_prefix, // context must mach exactly
// alternatively: match_prefix
"testView", // readView
"testView", // writeView
"testView", // notifyView
storageType_nonVolatile);
vacm->addNewAccessEntry("testNoPrivGroup", "other",
SNMP_SECURITY_MODEL_USM,
SNMP_SECURITY_LEVEL_AUTH_NOPRIV,
match_prefix,
"testView", "testView",
"testView", storageType_nonVolatile);
vacm->addNewAccessEntry("testNoPrivGroup", "other",
SNMP_SECURITY_MODEL_USM,
SNMP_SECURITY_LEVEL_NOAUTH_NOPRIV,
match_prefix,
"testView", "testView",
"testView", storageType_nonVolatile);
view:
vacm->addNewView("testView", "1.3.6.1.4.1.3231", "",
view_included, storageType_nonVolatile);
I'm also seeing these messages:
USMUserTable: No entry for (security name) in table: ()
USMUserNameTable: No entry for (security name) in table: ()
Do you have any idea what I did wrong?
Thanks!
Michelle
More information about the AGENTPP
mailing list