Api queries

Hello, I’m new in RouterOS API. I’m copied and modified a script from the manual to obtain information of transfer of the interface of my Mikrotik. Casually i include a name incorrect and script returns values anyway. I think that my script has a error. The query is:

<<< /interface/monitor-traffic
<<< ?name=etherx-nameincorrect
=once=

And the return:

!re
=rx-packets-per-second=2626
=rx-bits-per-second=12127232
=fp-rx-packets-per-second=0
=fp-rx-bits-per-second=0
=rx-drops-per-second=0
=rx-errors-per-second=0
=tx-packets-per-second=2301
=tx-bits-per-second=5805240
=fp-tx-packets-per-second=0
=fp-tx-bits-per-second=0
=tx-drops-per-second=0
=tx-errors-per-second=0

But the interface etherx-nameincorrect not exist !

Queries are only supported by “print” commands. If you specify them on other commands, they are silently ignored.

In the case of monitor-traffic, you have the “interface” argument, to which you can give the interface name or ID, e.g.

/interface/monitor-traffic
=interface=etherx-nameincorrect
=once=

I’m very grateful for his help. My script works now!!!