On Thu, 2011-11-03 at 23:52 +0000, Dave Shield wrote: > 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.
Also if you use agentxtrap instead of snmptrap then you have the option of not specifying the uptime. In that case the master agent will fill in the uptime so you get the behaviour you are asking for. /MF ------------------------------------------------------------------------------ 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