[SNMP4J] Write Only Variables

Frank Fock fock at agentpp.com
Tue May 1 16:43:40 CEST 2007


Hi Nidhin,

The "write-only" access is obsoleted in SMIv1 and not allowed
in SMIv2. So a discussion about the "correct" response
on a GET request is academic. SNMPv1 allows GET operations on
write-only objects, however, the result is "undefined".
So from my point of view, any result is "allowed".

SNMP4J-Agent uses max access WRITE_ONLY in a different way
and as the name suggests. Write-only objects are not in
the "view" of GET operations. Other than configuring this
with VACM, this access value can be used to "hard code"
the behavior into the agent.

Best regards,
Frank

nidhin wrote:
> Hi,
>    
>   I would like to know what error type should be thrown from the agent for V2 get requests if the node is a write only columnar node. Is the below test result correct or wrong?
>    
>    
>    
>   Please find below the test result.
>    
>   # Test Results:     A response value contained an error type 
> #                   (NoSuchInstance) other than NoSuchObject. 
> # Test Rating:      POOR
> # Message Exchange:
> # 
> # (Tue Apr 17 15:51:57 2007):
> # Get Request:  Version = SNMPv2c, Community = private
> # Request Id = 1194, Error Status = No Error , Error Index = 0
> # Oid1 = cpcControllerCommand , Type = NULL, Value = NULL
> # 
> # (Tue Apr 17 15:51:57 2007):
> # Response:  Version = SNMPv2c, Community = private
> # Request Id = 1194, Error Status = No Error , Error Index = 0
> # Oid1 = cpcControllerCommand , Type = NoSuchInstance, Value = NULL
> 
>   where cpcControllerCommand is a write-only variable.
>    
>   Regards
>   Nidhin
> 
>        
> ---------------------------------
> Ahhh...imagining that irresistible "new car" smell?
>  Check outnew cars at Yahoo! Autos.
> _______________________________________________
> 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