ntp_client
Retrieve NTP client configuration and sync status from a MikroTik RouterOS device, including enabled state, mode, and configured servers. Returns an empty result if unsupported.
Instructions
NTP client configuration/status (/system/ntp/client) - a
single-row menu, same shape as container_config. Every field
RouterOS's own reply carries is returned as-is (.get-based,
nothing invented) - only enabled is normalized to bool | None
(formatting.coerce_ros_bool).
ROS7 fields: enabled, mode, servers (a comma-joined string of
every configured NTP server - left exactly as RouterOS sends it, NOT
split into a list; same "no invented shape" convention
bridge_vlans' tagged/untagged fields already follow),
freq-drift, status, synced-server, synced-stratum.
ROS6 fields: enabled, primary-ntp, secondary-ntp,
server-dns-names, mode. See set_ntp_servers for how a write
detects and targets whichever of these two shapes a device actually
speaks.
Returns an empty dict (never an error) for a device with no NTP client menu at all.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||