how can I create a new context in snmpv3?
Luigi Tura
luigi.tura____cefriel.it
Wed Apr 16 09:53:57 CEST 2003
Everything seems Ok till I try to use a context the is not the predefined: "".
What's the problem?
Here is the code I 'm trying to use to introduce a new context:
//
-------------------------------------------------------------------------------------
#ifdef _SNMPv3
Vacm* vacm = new Vacm(*mib);
reqList->set_vacm(vacm);
vacm->addNewContext("testContext");
vacm->addNewGroup(SecurityModel_USM,
"testGroup",
"newtestGroup",
storageType_volatile);
vacm->addNewAccessEntry("newtestGroup",
"testContext",
SecurityModel_USM,
SecurityLevel_authPriv,
match_exact,
"testView",
"testView",
"testView",
storageType_nonVolatile);
vacm->addNewView("testView",
"1.3",
"",
view_included,
storageType_nonVolatile);
#endif
//
-------------------------------------------------------------------------------------
Any suggestion is truly appreciated.
Thanks a lot.
Luigi
More information about the AGENTPP
mailing list