← centrs docs

routeros/unknown-path

RouterOS has no command at the requested path, so it refused that statement. Either a menu in the path does not exist, or the menu exists but has no such command (verb). A single command did not run; in a multi-statement script, the statements before the refused one already ran.

Emitted by

retrieve, execute, api and transfer over --via rest-api and --via native-api, and execute over --via ssh and --via mac-telnet. RouterOS gives the same answer on each transport, so switching does not help. With validation on, most unknown paths stop before sending as validation/unknown-path; this code is what the router itself says, for example with --no-validate.

Context

Typical triggers

Fix

  1. Check the path and verb with centrs explain <router> '<command>', which asks the router's command tree. A menu path alone is not a command: add a verb such as print, or read the menu with centrs retrieve <router> <menu>.
  2. If the menu belongs to a package, check /system/package on the device.
  3. Before running a script again, check what its earlier statements changed: a rerun repeats them.