Community discussions

 
User avatar
nabilx
just joined
Topic Author
Posts: 18
Joined: Thu Jul 06, 2017 11:19 pm
Location: Syria, Hama
Contact:

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

Mon Jul 16, 2018 4:42 am

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.
Not English , Ignore bad grammar :)
 
User avatar
k6ccc
Member
Member
Posts: 479
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)

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

Mon Jul 16, 2018 5:38 am

I think you need to be asking that on a Ubiquiti forum - not here.
RB750Gr3, RB750r2, CRS326-24G-2S (in SwitchOS), CSS326-24G-2S, CSS106-5G-1S, RB260GS
Not sure if I beat them in submission, or they beat me into submission


Jim
 
User avatar
nabilx
just joined
Topic Author
Posts: 18
Joined: Thu Jul 06, 2017 11:19 pm
Location: Syria, Hama
Contact:

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

Mon Jul 16, 2018 5:47 am

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?
Not English , Ignore bad grammar :)
 
User avatar
k6ccc
Member
Member
Posts: 479
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)

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

Mon Jul 16, 2018 5:57 am

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)?
RB750Gr3, RB750r2, CRS326-24G-2S (in SwitchOS), CSS326-24G-2S, CSS106-5G-1S, RB260GS
Not sure if I beat them in submission, or they beat me into submission


Jim
 
User avatar
nabilx
just joined
Topic Author
Posts: 18
Joined: Thu Jul 06, 2017 11:19 pm
Location: Syria, Hama
Contact:

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

Mon Jul 16, 2018 6:05 am

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 :)
Thanks a lot for your replays
Not English , Ignore bad grammar :)
 
User avatar
nabilx
just joined
Topic Author
Posts: 18
Joined: Thu Jul 06, 2017 11:19 pm
Location: Syria, Hama
Contact:

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

Mon Jul 16, 2018 6:08 am

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.
Not English , Ignore bad grammar :)
 
User avatar
k6ccc
Member
Member
Posts: 479
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)

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

Mon Jul 16, 2018 6:17 am

Are you asking if the router can send a command to the AirFiber and then do something with the result?
RB750Gr3, RB750r2, CRS326-24G-2S (in SwitchOS), CSS326-24G-2S, CSS106-5G-1S, RB260GS
Not sure if I beat them in submission, or they beat me into submission


Jim
 
User avatar
nabilx
just joined
Topic Author
Posts: 18
Joined: Thu Jul 06, 2017 11:19 pm
Location: Syria, Hama
Contact:

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

Mon Jul 16, 2018 6:23 am

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
Not English , Ignore bad grammar :)
 
User avatar
nabilx
just joined
Topic Author
Posts: 18
Joined: Thu Jul 06, 2017 11:19 pm
Location: Syria, Hama
Contact:

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

Mon Jul 16, 2018 6:03 pm

@normis
Any ideas? :(
Not English , Ignore bad grammar :)
 
antonsb
MikroTik Support
MikroTik Support
Posts: 195
Joined: Sun Jul 24, 2016 3:12 pm
Location: Riga, Latvia

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

Mon Jul 16, 2018 6:27 pm

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....

Who is online

Users browsing this forum: No registered users and 100 guests