<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
I'm trying to fill out the MIB for ntpsnmpd and have several items
that I do not know how to get data for. This also effects ntpq as so
far my primary method of discovering what to poke mode 6 with to get
what I need has been to see how ntpq does it. A side effect of
ntpsnmpd will probably be to expand ntpq's capabilities, or even
mode 6's.<br>
<br>
Time Resolution (as distinct from time *precision*, which I can get
from the "precision" variable).<br>
<br>
Time distance: From the MIB: "The distance from this NTP entity to
the root time reference (stratum 0) source". The closest thing I can
find that sounds like match is the synchd() method in
packet.py/SyncPacket. It is only used by ntpdig.<br>
<br>
Current mode: There is a "peermode" variable, but I don't think it
is giving the information that the MIB wants. "hostmode" or "hmode"
do not exist.<br>
<br>
Active reference source ID: pretty sure this means which one is the
syspeer. I can get the address with "peeradr", but not the associd.
This could be brute forced by getting all of the peers and finding
the right one....<br>
<br>
Uptime: well there is an uptime variable. But I do not know the
format (it *looks* like seconds since start), and the MIB wants a
very specific and unusual format.<br>
<br>
Date of next leap second: from what I can gather from the 2-bit leap
second code this is predicted a day in advance?<br>
<br>
Next leap second direction: so long as the 2-bit code is a usable
source this is a simple one.<br>
<br>
Heartbeat interval.<br>
<br>
<div class="moz-signature">-- <br>
<i>"In the end; what separates a Man, from a Slave? Money? Power?
No. A Man Chooses, a Slave Obeys."</i> -- Andrew Ryan
<p>
<i>"Utopia cannot precede the Utopian.
It will exist the moment we are fit to occupy it."</i> --
Sophia Lamb
</p>
</div>
</body>
</html>