[SNMP4J] Agent 1.0 beta 1 problem

Matthieu Casanova chocolat.mou at gmail.com
Mon Apr 24 10:51:36 CEST 2006


thanks it seems to work fine

Matthieu

2006/4/21, Earle, Erik <Erik.Earle at dig.com>:
>
> There are no communities set up by default.
>
> I've been able to get it to work with the below (but haven't figured out
> how
> to use the source filtering yet)
>
>     BaseAgent agent = ...;
>     agent.init();
>
>     Variable[] com2sec = new Variable[] {
>         new OctetString("public"),              // community name
>         new OctetString("public"),              // security name
>         agent.getAgent().getContextEngineID(),  // duh
>         new OctetString(),                      // context name
>         new OctetString(),                      // transport tag
>         new Integer32(StorageType.nonVolatile), // storage type
>         new Integer32()                         // row status
>     };
>
>     SnmpCommunityMIB snmpCommunityMIB = agent.getSnmpCommunityMIB();
>
>     MOTable table = snmpCommunityMIB.getSnmpCommunityEntry();
>     MOTableRow row = table.createRow(new OID("1"), com2sec);
>     if(row==null) {
>         agent.mLog.error("could not create community entry table row");
>     } else {
>         agent.mLog.debug("community entry table row created");
>         table.addRow(row);
>     }
>
>
>
> On 4/21/06 6:47 AM, "Matthieu Casanova" <chocolat.mou at gmail.com> wrote:
>
> > Hi, my agent doesn't work anymore. When I try the TestAgent (like that)
> >
> > java -cp SNMP4J-agent.jar:SNMP4J.jar:log4j-1.2.9.jar
> > org.snmp4j.agent.test.TestAgent
> >
> >
> > If I do a walk anywhere the logs says that it cannot find public
> community.
> > Is there something I missed that was changed agent 1.0 beta 1 ?
> >
> > Matthieu
> > _______________________________________________
> > SNMP4J mailing list
> > SNMP4J at agentpp.org
> > http://lists.agentpp.org/mailman/listinfo/snmp4j
>
> --
> Erik Earle     206.664.4016     tie line: 8.664.4016
> erik.earle at dig.com
> Walt Disney Internet Group - Distribution Platforms
> 506 2nd Avenue - Suite 2100 - Seattle - 98104
>
>
>
>
>
>



More information about the SNMP4J mailing list