This commit is contained in:
Wolfgang Hottgenroth
2025-02-19 21:12:57 +01:00
commit e5bde92bca
4 changed files with 80 additions and 0 deletions

16
snippets/ntp/test.py Normal file
View File

@ -0,0 +1,16 @@
import ntp.packet
session = ntp.packet.ControlSession()
session.openhost('localhost')
peers = session.readstat()
l = session.readvar(0)
print(f"{l=}")
for p in peers:
l = session.readvar(p.associd)
print(f"{p.associd}: {dict(l)}")