On 31/01/07, sarathy <[EMAIL PROTECTED]> wrote:
> But why is then an snmp ERROR code "authorizationError (16)"
> exist if the agent does not respond ?
>From RFC 1901, Section 3:
Note that with this administrative framework, the
'authorizationError(16)' value defined for the error-status component
of an SNMPv2 PDU [4] is unused. It may, however, be used with future
administrative frameworks.
This is exactly what happened with SNMPv3 (see RFC 3413)
> Also is there a straight way to get the error code from the execution of an
> SNMP command, rather than processing from the debug output/raw packet
> hexdump ?
Not with the command-line tools, no.
But if you wrote a simple C-based application to make the request, you'd have
access to the 'pdu->error_status' field, which holds this value.
> > > 3. While specifying incorrect agent port in an snmpget.
>
> I added this option to mean that the error message is valid for this and not
> the other two :-). i.e The error reporting is incorrect ..
No - the error reporting is correct.
If the client application doesn't receive a response, then that's what it
should report. It can't exactly make up an error code!
Now you might well wish to take issue with the behaviour when a
community-based agent receives a request with an unknown community.
But that's a complaint for the group that defined SNMP - not us. :-)
We're just following the specification of the protocol!
I'm actually surprised that you get a timeout with SNMPv3 though.
I thought that should return a REPORT PDU. But Wes is the SNMPv3
expert, not me - and I don't really have the time to investigate properly
just at the moment.
Dave
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users