There is a Dude function with the description:
“returns output of routerOS script passed as first argument”
I am new to ROS scripting, but is it possible to pass a parameter (like an IP or MAC address) to a RouterOS script running on an RB532 from an external program like the Dude, and then use that ‘returned output’ as a result of the input passed to the script as a parameter.
I have written quite a few custom functions within theDude, but found I have a requirement that it would seem the result of a RouterOS script would fulfill. I am attempting to send an SNMP oid value from a device to the Mikrotik to perform a specific task (which would be easy for a MT ROS to perform). Need the answer returned in the Dude device display.
By the description, it seems this is the purpose as described but I am missing something regarding how to externally initiate the ROS script, or mis-interpreting the description of ‘ros_command’. If it will only return the output of scheduled or event driven scripts, I guess I could figure out a workaround, but calling the ROS script from theDude would be very cool.
Is this even possible, or out of context?
Thanks in advance for any help…