Community discussions

MikroTik App
 
pantimo
just joined
Topic Author
Posts: 1
Joined: Mon Apr 03, 2023 10:24 pm

Scripting issue

Mon Apr 03, 2023 10:33 pm

I'm new to scripting and have ran into an issue I need assistance with. I found this script online and it works on v6.46.1 but not on 6.48.6

:if ([/ip ipsec active-peers get value-name=ph2-total [find remote-address=1.1.1.1]] >= "1") do={ :put 1 } else= { :put 0 }
:if ([/ip ipsec policy get value-name=ph2-state [find sa-dst-address=1.1.1.1]] = "established") do={ :put 1 } else= { :put 0 }

I've attached a screenshot of the results. Thanks in advance for the help!
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: No registered users and 15 guests