下载此文档

ROS常用脚本.doc


文档分类:IT计算机 | 页数:约26页 举报非法文档有奖
1/26
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/26 下载此文档
文档列表 文档介绍
ROS 常用脚本 ROS 常用脚本作者: 软路由网┋来源: 网络┋发布用户: admin ┋发布时间: 08年 09月 17日┋阅读: 222 次 RouterOS 监控脚本,断线报警,线路恢复自动解除报警: 在/system script 里添加脚本 name= 你要监控的 ip 内容如下:set i0 :while ($i=0) do={:beep length=2s frequency=2755;:delay 5;:set a abc;\ :foreach i in=[/watch find host= 你要监控的 ip] \ do={:set a [/watch get $i status]};:put $a;:if($a=up) do={:set i 1}} 然后再在/watch 里添加监控 host= 你要监控的 ip 在 down 里填写/system script run 你要监控的 ip :set shendown1 [/system clock get date] :set shendown2 [/system clock get time] :set shendown (" 你要监控的 ip down ". $shendown1 ."". $shendown2) :log warning $shendown ROS 小包策略: / ip firewall mangle add chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=ment="" disabled=no add chain=forwar* *2*=all-p2p action=mark-connection new-connection-mark=p2p_conn passthrough=ment="" disabled=no add chain=forward connection-mark=p2p_conn action=mark-packet new-packet-mark=p2p passthrough=ment="" disabled=no add chain=forward connection-mark=!p2p_conn action=mark-packet new-packet-mark=general passthrough=ment="" disabled=no add chain=forward packet-size=32-512 action=mark-packet new-packet-mark=small passthrough=ment="" disabled=no add chain=forward packet-size=512-1200 action=mark-packet new-packet-mark=big passthrough=ment="" disabled=no / queue tree add name="p2p1" parent=wan packet-mark=p2p limit-at=600000 queue=default priority=8 max-limit=800000 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no add name="p2p2" parent=lan packet-mark=p2p limit-at=800000 queue=default priority=8 max-limit=600000 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no add name="ClassA" parent=lan packet-mark="" limit-at=0 queue=default priority=8 max-limit=100000000 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no add name="ClassB" parent=ClassA packet-mark="" limit-at=0 queue=default priority=8 max-limit=0 burst-limit=0 burst-threshold=0 burst-time=0s disabled=no add name="Leaf1" parent=ClassA packet-mark=general limit-at=0 queue=default priority=7 max-limi

ROS常用脚本 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数26
  • 收藏数0 收藏
  • 顶次数0
  • 上传人xxj16588
  • 文件大小0 KB
  • 时间2016-05-04