##Bäst hittills == dåligt
KillPackets # show system ntp
config system ntp
set ntpsync enable
end
configure , then you get
config system ntp
set ntpsync enable
set type custom
config ntpserver
edit 1
set server "ntp.hv.se"
next
end
set server-mode enable
set interface "fortilink"
end
ntp
method : "PUT"
url : "/api/v2/cmdb/system/ntp"
params :
datasource : 1
vdom : "root"
data :
authentication : "disable"
interface :
0 :
interface-name : "fortilink"
key : ""
key-id : 0
key-type : "MD5"
ntpserver :
0 :
authentication : "disable"
id : 1
interface : ""
interface-select-method : "auto"
key : ""
key-id : 0
ntpv3 : "disable"
server : "ntp.hv.se"
ntpsync : "enable"
server-mode : "enable"
source-ip : "0.0.0.0"
source-ip6 : "::"
syncinterval : 60
type : "custom"
KillPackets # diagnose sys ntp status
ipv4 server(ntp.hv.se) 193.10.199.83 -- reachable(0xff) S:3 T:5 selected
server-version=4, stratum=2
reference time is e7179248.fbc84a4f -- UTC Thu Nov 10 15:07:52 2022
clock offset is -0.012920 sec, root delay is 0.007278 sec
root dispersion is 0.016693 sec, peer dispersion is 283 msec
bye