/cmr/device
当前显示英文原文,切换到「中文」可查看译文。
device
Devices managed by this CMR server. A device appears in the list as soon as it connects to the server, with the P flag until the pairing is approved. The server itself is shown as the device with the L flag. Use the...
cmr/device
Package: cmr Type: Directory
Devices managed by this CMR server. A device appears in the list as soon as it connects to the server, with the P flag until the pairing is approved. The server itself is shown as the device with the L flag. Use the commands in this menu to operate on the fleet, for example run-script, upgrade, reboot, or pair. See CMR for how devices connect and pair.
| Flag | Name | Description |
|---|---|---|
P | pending | Pairing pending. |
p | remote-pending | Controller requests pairing. |
I | inactive | Device is inactive. |
S | stale | No connection (stale). |
L | controller | The CMR server itself (self-client). |
C | connected | Device is connected. |
U | upgrade-available | The upgrade channel of the device offers a different version than the installed one. The offered version can also be earlier than the installed version. |
| Argument | Type | Description |
|---|---|---|
ids | object { ids: super { his-id: string , [our-id] [ /string] } } | Identities (his-id / our-id) of the managed device. |
pairing-requirement | enum (none | password | confirm) | Pairing requirement applied to this device, overriding the server default: none, password, or confirm. |
labels | multi { array-id, label: enum } | User labels assigned to the device (grouping/filtering). |
port-labels | object { port-and-labels: super { port: string , labels: multi { array-id, label: string } } } | Labels per port. Quote the label, for example port-labels=ether1:"uplink". /cmr/vlan rules can select ports by these labels. |
identity | string | System identity (editable) of the device. |
| Read-only Argument | Type | Description |
|---|---|---|
peer | enum | The management peer this device is connected to. |
board | string | Board name. |
version | string | RouterOS version of the device. |
minimum-version | string | Minimum supported version. |
allowed-versions | string | Safe (safepkg) upgrade indicator. |
address | address (flags=46) | Current connection address. |
auto-labels | multi { array-id, label: string } | Automatically assigned labels. |
packages | multi { array-id, label: string } | Installed packages. |
state | string | Device state. |
upgrade-rule | enum | Upgrade rule covering this device. The first rule in the /cmr/upgrade rule list that covers the device claims it, so a labels=all rule placed at the top covers every device. |
channel | alt | Current upgrade channel/version. |
available-version | string | Newest available upgrade. |
connected-time | time | Time the device has been connected. |
uptime | time | Device uptime. |
disconnected-since | date | Time since the device disconnected. |
alerts | super { on: num , [all] /num , [critical] num , [high] /num , [medium] /num , [low] /num } | Enabled/total alert counts by severity. |
serial | string | Factory serial number. |