script from a HTML (or javascript)-page?

hi everyone!

I was wondering about the following. Is it possible to:

  1. Run a script from an HTML-page (or perhaps Javascript)
  2. Let that script obtain a certain system value (I think I figured out how to do this part already…)
  3. Return the obtained value to the HTML-page (or the Javascript)


    Anyone any suggestions/ideas on this? :sunglasses:


    Regards,
    Evert

wouldn’t it be easier to use SNMP for retrieving specific values from the mikrotik router ?

http://www.mikrotik.com/docs/ros/2.8/root/snmp.main
http://www.mikrotik.com/docs/ros/2.8/appex/mrtg1.main

That would require a separate machine with a SNMP-client. I was hoping to get it all within the Mikrotik router… :sunglasses:

You can try SSH (not sure JS can do this, but JSP page or a servlet will handle this task easily)

That sounds interesting! :smiley:

Doe you/someone else happen to have an example that shows how to proceed on this? :wink: