Community discussions

MikroTik App
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

showing interface name on the dude

Tue Aug 23, 2016 6:43 pm

Hello ,
is there any way to make the dude to show me name of interface inside the device?
so if in the RB have a ppp-client interface called Modem
I want to see it under the name\status of the device
[quote
][Device.Name]
[Device.Status]
[???Device.Modem\ppp???] - this is what i'm searching for
[/quote]

Thanks ,
 
krisjanis
MikroTik Support
MikroTik Support
Posts: 432
Joined: Tue Feb 05, 2013 5:00 pm

Re: showing interface name on the dude

Wed Aug 24, 2016 11:16 am

Best option is probably to display status/name with SNMP oid.

* In device look for right interface and it's oid: /interface print oid where name=(SomeInterface)
and get the "name" and "admin-status" oid.
* In device label add: INT_something: [oid("(name_oid)")] - [oid("(admin_status_oid)")]

Note: Just make sure that interface that you want to monitor is static and not dynamic or else oids will change on each interface down/up event.

Example (with just status oid):
*
[admin@crs109.lan] > int pr oid where name=vlan204-hs   
Flags: D - dynamic, X - disabled, R - running, S - slave 
 0  RS name=.1.3.6.1.2.1.2.2.1.2.17 actual-mtu=.1.3.6.1.2.1.2.2.1.4.17 mac-address=.1.3.6.1.2.1.2.2.1.6.17 
       admin-status=.1.3.6.1.2.1.2.2.1.7.17 oper-status=.1.3.6.1.2.1.2.2.1.8.17 
       bytes-in=.1.3.6.1.2.1.31.1.1.1.6.17 packets-in=.1.3.6.1.2.1.31.1.1.1.7.17 
       discards-in=.1.3.6.1.2.1.2.2.1.13.17 errors-in=.1.3.6.1.2.1.2.2.1.14.17 
       bytes-out=.1.3.6.1.2.1.31.1.1.1.10.17 packets-out=.1.3.6.1.2.1.31.1.1.1.11.17 
       discards-out=.1.3.6.1.2.1.2.2.1.19.17 errors-out=.1.3.6.1.2.1.2.2.1.20.
*
vlan204 status: [oid("1.3.6.1.2.1.2.2.1.7.17")]
Result:
link-status.png
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: No registered users and 19 guests