MikroTik API icon

MikroTik API

Community Node for MikroTik RouterOS API

Actions67

System Clock → Set

AI-generated

Summary

Sets the system clock on a MikroTik device.

Inputs

  • clockDate — Date in format jan/01/2020
  • clockTime — Time in format 12:00:00
  • clockZone — Time zone name, e.g. Europe/London or manual
  • connectionAttempts — Number of times to try connecting
  • connectionDelay — Delay between attempts in seconds
  • cleanKeys — Replace - and / with _ in response keys
  • tag — Custom tag for the command

Output shape

Each returned item contains { resource, operation, count, data } as produced by the node's execute method.

The MikroTik API command /system/clock/set is invoked with params {date, time, time-zone-name} mapped from the provided fields. If tag > 0, it is appended as .tag=<value>. Connection retries use connectionAttempts and connectionDelay from the options collection. If cleanKeys is true, response keys have - and / replaced with _.

Links

Discussion