Community discussions

MikroTik App
 
luberfly
just joined
Topic Author
Posts: 13
Joined: Fri Jun 02, 2017 12:31 am
Location: Italy

Script monitoring ipsec ph2-state

Sat Feb 26, 2022 1:47 am

Dear friends,
I have 3 ipsec vpn and I would like to monitor the phe-state.
I would like to log the ph2-state with dst-address.

why the following command do not work?

:log info ('99.88.77.66 - " . [/ip ipsec policy find where dst-address=99.88.77.66] get ph2-state])
I would like the following result in lo: "99.88.77.66 - estabilished"

What is the right syntax?
Regards
Luca

Who is online

Users browsing this forum: Bing [Bot], rogerioqueiroz and 19 guests