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!