SSH or SNMP , How to get UBNT AF capacity and send it through Mikrotik

Hi all
My idea is simple but i don’t know if it’s possible
Can I get some value from ssh or snmp from ubnt Airfiber and send it to email or telegram with Mikrotik? , in my case i want to get ubnt airfiber capacity and send it or just an alarm if the capacity is down
Any Ideas?
Thanks in advance.

I think you need to be asking that on a Ubiquiti forum - not here.

You are right in case if i needed the CLI commands for ssh
but in my case i need to know the way to enter ssh from mikrotik
for example after i log in through ssh i type:

AF06.v4.0.2# af get txcapacity
311082880

i need to transport that number to mikrotik
any ideas?

Maybe I’m not understanding your request. How does the MikroTik have anything to do with the AirFiber (other than presumably riding on the ethernet path that the Air Fiber provides)?

Maybe my request is not possible
Anyway my request is to login to any ssh host and write a command and get the resault
is that possible or not that’s the question
i’ve posted several times on mikrotik and ubnt forums with no reply so i will keep posting till some staff tells me how or it’s not possible at all :slight_smile:
Thanks a lot for your replays

Or to get it from SNMP if ssh is not an option
I have the MIB file for AirFiber and is working on DUDE
Just need to be alerted if my link get worse.

Are you asking if the router can send a command to the AirFiber and then do something with the result?

Yes I am afraid i do

@normis
Any ideas? :frowning:

if You have SNMP active on other device You can use snmp-get feature from RouterOS:
/tool snmp-get address=192.168.88.1 oid=.1.3.6.1.2…