htqt 发表于 2008-5-17 18:52:52

脚本求助

写了个一个脚本,想检测当某个PPP帐号拨入时启用一个VLAN,断开时关闭,没成功请大虾指点下
:if( ppp active find name=htqt5) do={:interface vlan enable vlan60} else={:interface vlan disable vlan60}

htqt 发表于 2008-5-17 18:54:07

我想做好后,用日程每隔一分钟检测一次

lhn1324 发表于 2008-5-17 20:18:03

:if (!="") do={
/interface vlan set disabled=no
} else={
/interface vlan set disabled=yes
}

htqt 发表于 2008-5-19 10:26:02

可以了,非常非常感谢楼上的~
页: [1]
查看完整版本: 脚本求助