ros_command() and charts

Hi,
I’m searching the way to plot a chart using “ros_command” function to print out wireless values as snr, ccq, etc… not in snmp pool.

Example,
Charts → data sources → +
code:

ros_command(":put [/interface wireless registration-table get number=0 signal-to-noise]")

but “last value” is always 0.

How can I print snr chart?

Thanks.

Can anybody help me please?

Very interesting question. I want to chart wireless clients:

/interface wireless registration-table print count-only

Also I want to show this count on device label.

Add Custom function:
**Name:**ros_wireless_clients_count
Description:ROS wireless clients count via ROS
Code:

ros_command("/interface wireless registration-table print count-only")

Now we can add this to the device label:

MU Connected:      [ros_wireless_clients_count()]

Add custom probe:
**Name:**ros_wireless_clients_count
**Type:**Function
**Agent:**default

Available:

ros_wireless_clients_count()

Error:

if (ros_wireless_clients_count()<>"", "", "")

Value:

ros_wireless_clients_count()

Unit:

Clients

But sometimes Dude show that probe is down - not available, why ?
Label show correct number - 0

this works

ros_command(":put [/interface wireless registration-table get number=0 signal-to-noise]")

but TCP 8291 port must be open.

Sometimes values drop to 0 until press again “ok” button. Maybe is a disk space issue…

Ciambot
What is put ?

to understand, try in new terminal

/interface wireless registration-table get number=0 signal-to-noise

and

:put [/interface wireless registration-table get number=0 signal-to-noise]

Also, rebooting the monitored device, dude gets the right last value instead “0”.
It is a bug of the system, I don’t know if it is in dude or in the device, but i’d like to see it fixed.

Testing on

  • Dude 4b3 in 411AH
  • Six RB711 with RoS 5.14
:put [/interface wireless registration-table get number=0 signal-to-noise]
/interface wireless registration-table get number=0 signal-to-noise



no such item


/interface wireless registration-table print count-only



1


:put [/interface wireless registration-table print count-only]



1
1