Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Precise time in traps

0 views
Skip to first unread message

Christopher Nelson

unread,
Dec 15, 2009, 4:38:03 PM12/15/09
to
If I have two systems running PTP (precision time protocol) which send
traps to a third system, should I expect that the times in the traps
when the server sees them are fairly accurate and coordinated and
allows me to tell which trapped event happened first? Or is the time
in the traps SNMPd uptime or something that won't be adjusted as PTP
updates the system clock?

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Dave Shield

unread,
Dec 16, 2009, 5:36:26 AM12/16/09
to
2009/12/15 Christopher Nelson <chris.ne...@gmail.com>:

> If I have two systems running PTP (precision time protocol) which send
> traps to a third system, should I expect that the times in the traps
> when the server sees them are fairly accurate and coordinated and
> allows me to tell which trapped event happened first?  Or is the time
> in the traps SNMPd uptime or something that won't be adjusted as PTP
> updates the system clock?

The sysUpTime value in a notification is the time that the SNMP
agent has been running. This will not be coordinated between
separate systems. (This value may also be affected by tweaks
to the system clock).
So no - this timestamp is not going to be useful in ordering events.

You haven't said anything about the payload of these traps.
If they include timestamp varbinds provided by the PTP module,
then it's quite possible that the values will be more accurate.
But the standard SNMP trap information won't really help you here.

Dave

Christopher Nelson

unread,
Dec 16, 2009, 7:48:01 AM12/16/09
to
>> If I have two systems running PTP (precision time protocol) which send
>> traps to a third system, should I expect that the times in the traps
>> when the server sees them are fairly accurate and coordinated and
>> allows me to tell which trapped event happened first?  Or is the time
>> in the traps SNMPd uptime or something that won't be adjusted as PTP
>> updates the system clock?
>
> The sysUpTime value in a notification is the time that the SNMP
> agent has been running.   This will not be coordinated between
> separate systems.    (This value may also be affected by tweaks
> to the system clock).
>   So no - this timestamp is not going to be useful in ordering events.
>
> You haven't said anything about the payload of these traps.
> If they include timestamp varbinds provided by the PTP module,
> then it's quite possible that the values will be more accurate.
> But the standard SNMP trap information won't really help you here.

No doubt I could create a PTP-based trap but I was thinking of things
like cold start and link up. Sounds like I don't gain anything in
trap analysis by having highly-coordinated clocks. Thanks.

Mike Ayers

unread,
Dec 16, 2009, 2:54:52 PM12/16/09
to
> From: Christopher Nelson [mailto:chris.ne...@gmail.com]
> Sent: Wednesday, December 16, 2009 4:48 AM

> No doubt I could create a PTP-based trap but I was thinking of things
> like cold start and link up. Sounds like I don't gain anything in
> trap analysis by having highly-coordinated clocks. Thanks.

Hmmm... if you can find an object for the system clock time, then you could perform gets on sysUpTime and sysClockTime in the same packet. A little jitter interpolation and you could quickly get very close to the coordinated time value of received traps.


HTH,

Mike

0 new messages