楼主: zh1000000
|
[脚本] PCC断线自动修改脚本遇到问题,寻找解决的方法。 |
| ||
routeros
|
||
发表于 2016-8-5 11:39:23
|
显示全部楼层
| ||
routeros
|
||
| ||
routeros
|
||
发表于 2016-8-5 13:04:06
|
显示全部楼层
| ||
routeros
|
||
点评
do和else裡面都有一個if判斷,假設new-routing-mark不是等於(!=)指定的to_pppoeX ,就把它(do)改成(set)指定的to_pppoeX
所以received不是>0 ,則執行else裡面script (else裡面的script是檢查new-routing-mark是否用adsl)
所以received >0 ,執行do裡面script (do裡面的script是檢查new-routing-mark是否用光纖)
所以這即判段received , >0即代表光纖至少有1次回應代表有在工作,若連1都沒有就讓new-routing-mark換成adsl
有回應1次received就會顯示1,像您的貼的內文received不就是2嗎?
| ||
routeros
|
||
| ||
routeros
|
||
发表于 2016-8-8 14:03:04
|
显示全部楼层
| ||
routeros
|
||
| ||
routeros
|
||
| ||
routeros
|
||
| ||
routeros
|
||
| ||
routeros
|
||
点评
您是對的,我再幫您修改script
| ||
routeros
|
||
发表于 2016-8-9 08:56:30
|
显示全部楼层
| ||
routeros
|
||
| ||
routeros
|
||
| ||
routeros
|
||
|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )
GMT+8, 2025-1-22 21:55 , Processed in 0.146416 second(s), 16 queries , Gzip On, Redis On.
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.