I am just using a test setup on my laptop at this stage so don't have any ospf routes to test with but have added the following line to the appearance of the the CHR device that runs The Dude in my test environment:Function
Name: NC
Code: ros_command("/routing ospf neighbor print count")
[ros_command("/interface ethernet print count")]
[Device.Name]
# of Routes: [ros_command("/ip route print count")][device_performance()][Device.ServicesDown]
[admin@MikroTik] > /ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 D 192.168.1.125/24 192.168.1.0 ether1
1 10.10.10.2/24 10.10.10.0 ether2
[admin@MikroTik] > dude print
enabled: yes
data-directory: dude
status: running
[admin@MikroTik] > interface ethernet print count
2
[admin@MikroTik] > /ip route print count
3
[Device.Name]
[device_performance()][Device.ServicesDown]
Interfaces: [ros_command("interface ethernet print count")]
Routes: [ros_command("/ip route print count")]
# WHEN NAME ADDRESS VIA
0 R apr/01/2018 16:28:49 uuuu xxx.yy.z.aa dude
ros_command(":put [/interface wireless get wlan1 frequency];");
ros_command(":put [/interface wireless get wlan1 frequency]")