用易-小卢 发表于 2016-12-14 17:04:51

ROS脚本,清除DHCP LEASE中存在,但已经不在线 的用户 LEASE数据


{
:local n 0
:local cip
:local cmac
:local cserver
:local cexpire
:foreachi in= do={
:set cip
:set cmac
:set cserver
:set cexpire
:if (="") do={
##:put ($cip . "   " . $cmac . "   " . $cserver . "" . $cexpire)
##/ping address=$cip count=2
:set n (n+1)
/ipdhcp-server lease remove$i
}
}
:put "***********************************\r\n$n off line\r\n**************************************\r\n"
}
页: [1]
查看完整版本: ROS脚本,清除DHCP LEASE中存在,但已经不在线 的用户 LEASE数据