Re: SNMPv3: two request needed to get response(msgAuthoritativeEngineTime)?

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/4/22 mike one <[email protected]>:
> The question is how to configure my management application (NetSnmp on the RedHat server)
> that after the first snmpget request all the following snmpget requests are authorized, without the need for another probe.
> So that after first snmpget request (probe) the second and all following snmpget requests will be send with correct engineBoot/Time values.

If you are using separate "snmpget" shell commands for each request,
then these will indeed be regarded as completely separate, and will
probe for the boot/time values every time.

If you code this your management application as a single process,
and use C-level calls to send the GET requests (using the same
netsnmp_session structure), then this will remember and reuse
the boot/time values.   Thus avoiding the re-probe.


> Need snmpd to be run on the server for that ?

No - that is completely irrelevant.
You are talking to the agent on the switch, not the agent on the local system.



> The switches supports snmpEnableAuthenTraps and suppress the generation of authenticationFailure notifications.
> But that won't solve my case. It's still needed two snmpget requests to get response.

That's because you are throwing away the information from the first request,
rather than keeping it for the second.

Use a single netsnmp_session structure to send both requests,
and everything should be fine.

Dave

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.