On 3 November 2011 17:19, Nguyen Dinh Phong <ndph...@yahoo.com> wrote:
> Shouldn't the default uptime for the snmptrap utility
> should also be the agent uptime?

Not really, no.

The uptime value is meant to be the uptime value of the sending SNMP entity.
If you're sending a trap using "snmptrap", then snmptrap is the sending entity,
not the agent.   Who is to say that there *is* an SNMP agent running on
that system anyway?

Strictly speaking, the uptime should probably be the uptime of the snmptrap
command - i.e. probably less than a second every time (since it would be
re-set for each invocation).
    We thought that was not really very helpful, so settled on using the
uptime of the system as a whole.

Dave

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to