【RouterOS】—— Scripting
[i=s] 本帖最後由 角色 於 2014-12-29 01:24 編輯 [/i]因为想分析log file里的信息,所以不想再Windows里做,而在RouterOS里自己做,看看是否能成功。
资源:
[url]http://wiki.mikrotik.com/wiki/Manual:Scripting[/url]
[url]http://wiki.mikrotik.com/wiki/Scripts[/url]
[url]http://wiki.mikrotik.com/wiki/Manual:Scripting-examples[/url]
RouterOS (old version)
[url]https://www.mikrotik.com/documentation[/url]
In particular V2.9
[url]https://www.mikrotik.com/testdocs/ros/2.9[/url] [i=s] 本帖最後由 角色 於 2014-12-28 12:46 編輯 [/i]
Just find a good way to have a full-screen editor using the following thread:
[url]http://www.telecom-cafe.com/forum/viewthread.php?tid=6490[/url]
Resources:
[url]http://wiki.mikrotik.com/wiki/Manual:Console[/url]
[url]http://forum.mikrotik.com/viewtopic.php?f=9&t=81868&hilit=sublime#p409140[/url]
[url]https://sublime.wbond.net/installation[/url]
[url]https://sublime.wbond.net/packages/MikrotikScript[/url]
[url]http://forum.mikrotik.com/viewtopic.php?f=9&t=82832[/url] [i=s] 本帖最後由 角色 於 2014-12-28 14:51 編輯 [/i]
How to run the script in folder "/file"?[code]
/import file-name=sample.rsc
[/code]Or simply[code]
/import sample.rsc
[/code] [i=s] 本帖最後由 角色 於 2014-12-28 19:46 編輯 [/i]
How to read a file:
[url]http://forum.mikrotik.com/viewtopic.php?f=9&t=64659[/url]
[url]http://wiki.mikrotik.com/wiki/Using_Fetch_and_Scripting_to_add_IP_Address_Lists[/url] How to remove a global variable[code]
/system script environment print
[/code][code]
/system remove (the number in the above print)
[/code] In order to master the scripting techniques, we have to learn how to save a line operation and assign the result to a global variable.
[url]http://wiki.mikrotik.com/wiki/Manual:Console[/url]
頁:
[1]