I want to compare time of a device with my time server(other device) and if they are not synchronize I want to know how much time. I already know what is the oid for the windows time (1.3.6.1.2.1.25.1.2.0). I just want to know how I compare the 2 device, probably with a functions but I am not very good with that.
I looked at the oid for windows time and it is in the format of “2011-1-27,7:42:10.9” The field is updated every 10th of a second.
It will be hard to build a probe that compares times, maybe just put the time on the device label of each device and visually compare them?
Time:[oid(“1.3.6.1.2.1.25.1.2.0”)]
Here is how OID works; returns value of given snmp OID. Only first parameter mandatory. First parameter - oid string, second - cache time - default 5 seconds (5.0), third - negative cache time - default 5 minutes (300.0), forth - ip address (overrides context device), fifth - snmp profile (overrides context device)
So you might put this on a device label;
Time:[oid(“1.3.6.1.2.1.25.1.2.0”,192.168.0.1)]
Time:[oid(“1.3.6.1.2.1.25.1.2.0”,192.168.0.2)]
If you don’t mind me asking what do you need to know the difference in time for? Maybe there is some other thing that should be focused on.
I could see a use for a function or probe like this.
We have a cluster of Access Points that need to have the same uptime. I would like to be alerted if one reboots for whatever reason and comparing the time seems like the easiest way. It’s too time consuming to look through all the towers though just to compare times, I’d rather be alerted if it happens.
I don’t know if is useful but i found that.
There show us only the time and not the date.
Can we Find the code of this variable? If we can it will probably be more easy to compare with my time server device.
This is useless because it will show your workstation (workstation you are connetcted to The Dude server from) time.
This task is easy to solve with The dude. You can check sysUpTimeInstance OID = “1.3.6.1.2.1.1.3.0” on cluster devices and compare it. This OID returns number of seconds from last system startup.
I will explain my issue. I have a time server but sometimes I have some device that are not synchronizes with it. Now I want to know which device are not synchronizes. I don’t want to do the command net time on each device and I don’t want to put the date (oid) on each device in the dude because it will take to much place. I want to view quickly if some device are not synchronizes. If someone have any idea it will be appreciate.