Antwort: Re: [AGENT++] MibTable Problem: Destroy a non-existing Row

Fedja Jeleskovic mrawd2 at gmail.com
Thu Mar 2 16:41:03 CET 2006


> Jens> the MibTable implementation has a problem when a SNMP client tries 
> to
> Jens> destroy a non-existing row, ala:
> Jens>
> Jens>       snmpset myRowStatus.123 = destroy
> Jens>
> Jens> The row is marked as destroyed but will never be removed.
> Jens> In addition, it is not possible to destroy anymore by trying it a
> second
> Jens> time (causes a SNMP response error).

Why don't you just check in the prepare_set_request method of the RowStatus 
object whether you have that index or not. That way if the index doesn't 
exist you can return SNMP_ERROR_INCONSIST_VAL and it will never be 
set/destroyed later on!

Fedja




More information about the AGENTPP mailing list