Another question on the SNMP-COMMUNITY-MIB...
Mike Carr
everythingsfree____hotmail.com
Thu Mar 21 17:31:52 CET 2002
I've added the following code to the
snmpCommunityEntry::snmpCommunityEntry() constructor so as to populate the
table and get something working so it's a little crude:
char buf[16];
char communityname[20];
char contextname[20];
for (int i=0; i<2; i++) {
sprintf(buf, "%d", i);
MibTableRow* r = add_row(buf);
sprintf(communityname, "subagentcommunity%d", i);
OctetStr myEngineID;
mpGetLocalEngineID(myEngineID);
sprintf(contextname, "subagent%d", i + 1);
set_row(r, communityname, "public", myEngineID, contextname, "", 1, 1);
}
My question is, is this the correct place to do this and is this the correct
way to do it? If not then where and how?
Thanks,
Mike
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
More information about the AGENTPP
mailing list