routeros/mac-telnet-error
The device sent a MAC-Telnet error packet, and centrs ended the
session. The packet's text is in summary. If the session
was already running a command, that command may or may not have run.
Emitted by
execute --via mac-telnet and terminal.
Typical triggers
- The device sends an error packet (control type 7) (code). Which conditions make RouterOS send one has not been reproduced on a device (unverified).
Failed logins are not this code. A wrong user or password, and a
RADIUS-only user with no local login, fail as transport/auth-failed
(CHR 7.25.1).
Fix
- Read the device's text in
summary. - Check that MAC-Telnet is allowed on the interface you reach the
device on:
/tool/mac-server printshows itsallowed-interface-list(allon a fresh CHR 7.25.1). - Before you repeat a write, over MAC-Telnet or any other transport, check the device's state: the command may already have run.
- Then try again, or use an IP transport (
--via ssh,--via native-api).
If this looks wrong
Open an issue with the command, the --json envelope (its
summary holds the device's text), the RouterOS version and
centrs --version. Remove passwords
(--password, --cdb-password) and other secrets
from both first. A device string that recurs should get its own
code.
Related
transport/auth-failedrouteros/mac-telnet-protocol: a packet centrs could not decode.routeros/mac-telnet-unsupported-auth