Привет! У меня проблема со скриптом. Кто-нибудь знает, где я ошибся?
{ :foreach i in [/ip hotspot user find] do={ :if ([/ip hotspot user get $i limit-bytes-out]<=[/ip hotspot user get $i bytes-out]) do={ /ip hotspot user set [/ip hotspot user get $i name] profile=OtherProfile } } }
Проблема в этой строке: /ip hotspot user set [/ip hotspot user get $i name] profile=OtherProfile, но мне кажется, что она верная, и я, конечно же, ошибаюсь, потому что это не работает. Использую RouterOS 2.9.4.
Спасибо,
Radu
{ :foreach i in [/ip hotspot user find] do={ :if ([/ip hotspot user get $i limit-bytes-out]<=[/ip hotspot user get $i bytes-out]) do={ /ip hotspot user set [/ip hotspot user get $i name] profile=OtherProfile } } }
Проблема в этой строке: /ip hotspot user set [/ip hotspot user get $i name] profile=OtherProfile, но мне кажется, что она верная, и я, конечно же, ошибаюсь, потому что это не работает. Использую RouterOS 2.9.4.
Спасибо,
Radu
