diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-12-10 17:19:18 -0800 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-12-10 17:19:18 -0800 |
commit | 32927e013922e1a79b0f214773e2500a1260871a (patch) | |
tree | 990ad11c177a74e9fa250ce5f696e45b08dba349 /templates/show/vpn/ipsec/status/node.def | |
parent | dfe4041f35fdfc7d9909c297396cd40bcf3d2d21 (diff) | |
download | vyatta-op-vpn-kenwood-strongswan.tar.gz vyatta-op-vpn-kenwood-strongswan.zip |
fix show vpn commands to work with strongswankenwood-strongswan
Diffstat (limited to 'templates/show/vpn/ipsec/status/node.def')
-rw-r--r-- | templates/show/vpn/ipsec/status/node.def | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/show/vpn/ipsec/status/node.def b/templates/show/vpn/ipsec/status/node.def index ac82328..4611fdd 100644 --- a/templates/show/vpn/ipsec/status/node.def +++ b/templates/show/vpn/ipsec/status/node.def @@ -1,2 +1,7 @@ help: Show status of IPsec process -run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ipsec_status.xsl +run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ipsec_status.xsl + if pgrep pluto >&/dev/null; then + active_tunnels=`ipsec status 2> /dev/null | grep -i "ipsec sa established" | wc -l | sed s/\ //g` + echo "$active_tunnels Active IPsec Tunnels" + echo + fi |