Using an RB953 with two LTE modules.
For reasons I'd prefer not to go into detail, I need to run /system routerboard usb power-reset duration=3s bus=1 command for a specific interface, say lte1.
The command requires the bus interface to reset power to.
Is there a way to get the bus a specific LTE interface is on, in a scriptable manner?
Interface name, lte1, lte2 etc does not seem to always coincide with which bus/slot it's plugged in.
You could possible get it via /system resource usb print, but this does not work if both modules are the same.
Code: Select all
[admin@LTE1-2] > sys resource usb print detail
0 device="1-0" vendor="Linux 3.3.5 ehci_hcd" name="RB400 EHCI" serial-number="rb400_usb" vendor-id="0x1d6b" device-id="0x0002" speed="480" ports=1 usb-version=" 2.00"
1 device="2-0" vendor="Linux 3.3.5 ehci_hcd" name="RB400 EHCI" serial-number="rb400_usb" vendor-id="0x1d6b" device-id="0x0002" speed="480" ports=1 usb-version=" 2.00"
2 device="2-1" vendor="MikroTik" name="R11e-LTE6" serial-number="000000000000" vendor-id="0x2cd2" device-id="0x0004" speed="480" usb-version=" 2.00"
3 device="1-1" vendor="MikroTik" name="R11e-LTE6" serial-number="000000000000" vendor-id="0x2cd2" device-id="0x0004" speed="480" usb-version=" 2.00"