Два визуально одинаковых случая. Первый работает, второй нет:
1.
Код: Выделить всё
:local MyVarLogContent
:local MyVarComment
:local MyVarTemp
:local MyVarLen
:foreach int in=[/log find ] do={
:set MyVarLen [:len [/log get $int message]]
#:set $MyVarTemp [:pick [/log get $int message] 0 17]
:set $MyVarTemp "ХХ:ХХ:ХХ:ХХ:ХХ:ХХ"
:set MyVarComment [/interface wireless access-list get [find mac-address=$MyVarTemp] comment]
:set MyVarTemp [:pick [/log get $int message] 17 $MyVarLen]
:set MyVarTemp ($MyVarComment .$MyVarTemp)
:set MyVarLogContent ("$MyVarLogContent\r\n" .[/log get $int time]. " - " .$MyVarTemp)
}
Код: Выделить всё
:local MyVarLogContent
:local MyVarComment
:local MyVarTemp
:local MyVarLen
:foreach int in=[/log find ] do={
:set MyVarLen [:len [/log get $int message]]
:set $MyVarTemp [:pick [/log get $int message] 0 17]
#:set $MyVarTemp "60:67:20:F7:18:68"
:set MyVarComment [/interface wireless access-list get [find mac-address=$MyVarTemp] comment]
:set MyVarTemp [:pick [/log get $int message] 17 $MyVarLen]
:set MyVarTemp ($MyVarComment .$MyVarTemp)
:set MyVarLogContent ("$MyVarLogContent\r\n" .[/log get $int time]. " - " .$MyVarTemp)
Код: Выделить всё
interface wireless access-list get [find mac-address=$MyVarTemp
Куда копать?
}