Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: from RouterOS device: no such command or directory (wireless) #155

Open
siretart opened this issue Apr 10, 2023 · 1 comment
Open

Comments

@siretart
Copy link

siretart commented Apr 10, 2023

When trying to export wireless statistics for my new haP ax3 device, the mikrotik-exporter just produces this error:

error: from RouterOS device: no such command or directory (wireless)

and checking on the console, there is indeed no /interface/wireless menu available. All wireless operations happen in the /interface/wifiwave menu, as described at https://help.mikrotik.com/docs/display/ROS/WifiWave2

I suspect this error to happen for every router that replaces the wireless stack with wifiwave2, which includes all wifi6 capable routers from mikrotik

@siretart siretart changed the title device":"ax3","error":"from RouterOS device: no such command or directory (wireless) error: from RouterOS device: no such command or directory (wireless) Apr 10, 2023
@siretart
Copy link
Author

Poking a bit more at this, I see from https://github.com/nshttpd/mikrotik-exporter/blob/trunk/collector/wlanif_collector.go#L25 and https://github.com/nshttpd/mikrotik-exporter/blob/trunk/collector/wlanif_collector.go#L74 that the code is relying on the output of this command:

[admin@rb4011] > /interface/wireless/monitor 0 once
                 status: running-ap
      wireless-protocol: 802.11
     registered-clients: 4
  authenticated-clients: 4
            wmm-enabled: yes
    notify-external-fdb: no

Unfortunately, the output on my haP ax3 device looks slightly different:

[admin@ax3] > /interface/wifiwave2/monitor 0 once
             state: running
           channel: 5500/ax/Ceee
  registered-peers: 2
  authorized-peers: 2
          tx-power: 20

It seems similar enough to me that the code could attempt to cover the new wifiwave2 routers as well as old APIs to make the exporter easier to use.

What do you think?

siretart pushed a commit to siretart/mikrotik-exporter that referenced this issue Oct 14, 2023
from https://forum.mikrotik.com/viewtopic.php?t=195124#p999722: wifiwave2
is an implementation of drivers from the manufacturer of the chipset, rather
than an in-house written driver (which wireless is). So there are many small
details that are missing or incomplete...

wifiwave2 has a slightly different API and has fewer properties to query.
This means that not all metrics are available for wifiwave2 devices. Also,
the implementation aims at keeping the name metric names for wifiwave2
devices to ensure that existing dashboard continue to work without any
modification.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant