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]