找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5021|回复: 10

[脚本] 3.X脚本语法问题

[复制链接]
发表于 2008-6-11 17:57:49 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
:global oldAddress [/ip route get [/ip route find comm="adsl"] gateway  ]
这一句在3.X 下要怎么写?
routeros
 楼主| 发表于 2008-6-12 21:46:30 | 显示全部楼层
顶一下!!!!
routeros
回复

使用道具 举报

发表于 2008-6-12 23:14:08 | 显示全部楼层
:global oldAddress [/ip route get [/ip route find comment="adsl"] gateway  ]


严格点
routeros
回复

使用道具 举报

 楼主| 发表于 2008-6-13 11:38:00 | 显示全部楼层
楼上不对啊,还是提示
invalid item number
出错啊
routeros
回复

使用道具 举报

发表于 2008-6-13 14:32:14 | 显示全部楼层
comment="adsl"
注意标注内容.

3.10测试通过

:global oldAddress [/ip route get [/ip route find comment="adsl"] gateway  ]
:log info $oldAddress
routeros
回复

使用道具 举报

 楼主| 发表于 2008-6-14 20:01:04 | 显示全部楼层
我在3.9上面不行..
routeros
回复

使用道具 举报

发表于 2009-3-6 17:47:33 | 显示全部楼层
:global oldAddress [/ip route get [/ip route find comment=adsl]]
:log info $oldAddress

这样就对了。3.20上测试通过。
routeros
回复

使用道具 举报

发表于 2009-3-6 17:50:11 | 显示全部楼层
:global oldAddress [/ip route get [/ip route find comment=link1] gateway]
:log info $oldAddress 这样,
routeros
回复

使用道具 举报

发表于 2009-3-6 19:55:45 | 显示全部楼层
嗯測試是對的!
routeros
回复

使用道具 举报

发表于 2009-3-6 22:29:27 | 显示全部楼层
3.x不用这个脚本了啊
routeros
回复

使用道具 举报

发表于 2009-3-6 22:40:43 | 显示全部楼层
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-6-8 02:37 , Processed in 0.079176 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表