This article describes a way to check the IPsec tunnel status using PCLI.
IPsec client plugin 3.6.0: [root@ro123 t128]# ipsec status whack: Pluto is not running (no "/run/pluto/pluto.ctl") IPsec client plugin 3.5.0: [root@ro123 t128]# ipsec status 000 Total IPsec connections: loaded 2, active 2
The ipsec status command from the shell was working till IPsec client plugin 3.5.0.In the recent versions it is recommended to use the options available available from PCLI and GUI:To check the status of the IPsec tunnels for a given ingress KNI, extra IPsec tunnel related output will be found in the show device-interface command as well as the show plugin state command.From the conductor UI, the command can be accessed by navigating:Login to SSR > Administration > Plugins > Select the installed IPsec Plugin > Click on DetailsPlease refer for more details: https://www.juniper.net/documentation/us/en/software/session-smart-router/docs/plugin_ipsec_client/#pcli-enhancements
ipsec status
show device-interface
show plugin state
If incase you want to still shell command, something like below can be attempted
# ipsec --rundir $(dirname $(find /run/128technology/plugins -name pluto.ctl)) status
However official recommendation is to use GUI or PCLI to check the status.
https://www.juniper.net/documentation/us/en/software/session-smart-router/docs/plugin_ipsec_client/#pcli-enhancements