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]>: > I just thought that it can be adjusted with the aid of > netsnmp tools inside, withot extra C-programming. In principle - yes, it can. There is an option '-Z' which can be used to specify the engine boots/time values. But the problem is that these are basically internal "housekeeping" values - they are not reported back by the command-line client commands. And not only would you need to craft a way to retrieve these values initially, you would also need to keep track of *when* the various commands were sent (so that you could update the time field accordingly). So in practise - no, I don't think this is realistic if you are working with the client commands. They are designed as "one-shot" requests, so will probe for this information each time. If you want to avoid these subsequent probes, you are really looking at coding a suitable long-running application. That would be much less work than trying to hack together some method for passing this information to the individual snmpget commands. > Means this that I can not use Nagios as monitoring server > for the switches via SNMPv3, because Nagios uses external > scripts Well, you *can* use individual snmpget requests for this. But only at the cost of an extra probe each time. (Ignore the fact that this appears to be a GET request - it's actually processed as an engine probe). Alternatively, you could have a long-running process to make the requests, and invoke a one-shot command to communicate with this. But it might also be worth asking on the Nagios lists to see if anyone there has run into a similar situation, and has some ideas about how to solve it. 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