Hi, Wes,

I am trying to get the engine time (esp. the engineBoots) of the remote
agent, by using get_enginetime_ex api.  The api call fails.

I also tried another api, get_enginetime (though I think this one is
actually returning the local engine time).  It also fails.*
*
Thanks,
Zongjun
On Tue, Feb 15, 2011 at 11:26 AM, Wes Hardaker <
harda...@users.sourceforge.net> wrote:

> >>>>> On Tue, 15 Feb 2011 09:31:17 -0800, Zongjun <qizong...@gmail.com>
> said:
>
> >> *I am using netsnmp 5.3.1.  I am trying to get the authoritative engine
> >> time by calling to get_enginetime(), but the function always fails.
>
> Z> *Is there a configuration option to the NET-SNMP Agent in order to
> Z> *expose* this information?
>
> If you're doing it from within the API to retrieve the local engineID
> for the engine you're using is:
>
>  char buf[SNMP_MAXBUF];
>  int actual_length;
>
>  actual_length = snmpv3_get_engineID(buf, SNMP_MAXBUF);
>
> But your description doesn't really show what you're trying to
> accomplish, so I'm only guessing at what you actually want to do.
>
> --
> Wes Hardaker
> Cobham Analytic Solutions
>
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to