[SNMP4J] How to remove rows in snmpTargetAddrTable from within the agent?

Frank Fock fock at agentpp.com
Wed Jan 18 19:56:00 CET 2006


Murali,

The following method adds the desired functionality to SnmpTargetMIB.java:

  public MOTableRow removeTargetAddress(OctetString name) {
    OID index = MOTableIndex.createSubIndex(name, true);
    return snmpTargetAddrEntryModel.removeRow(index);
  }

Best regards,
Frank

Muralidharan Narayanan wrote:

>Martin,
>
>This was an issue I faced as well. I was also interested in configuring the
>SNMP managers (trap receivers) from the agent I had implemented. I was able
>to add IP addresses of trap receivers but unable to remove them from the
>internal SNMPAgent library. Frank (author) also acknowledged in past email
>about the inability to remove trap receivers from the configurable agent.
>However, he has promised to include in first beta release of SNMPAgent
>library methods for removing trap receivers as well. I guess we have to hold
>tight until then.
>The work around I have used till beta release is available is to restart the
>agent and that way the new refreshed list of trap receivers will be used. I
>know this restarting procedure may not work for many cases. If you have
>other workarounds that work for now, please let me know.
>
>Frank can add more to this, if any, to help us here.
>
>Murali
>
>
>
>_______________________________________________
>SNMP4J mailing list
>SNMP4J at agentpp.org
>http://lists.agentpp.org/mailman/listinfo/snmp4j
>
>
>  
>


-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com





More information about the SNMP4J mailing list