/testing/guestbin/swan-prep
east #
 ipsec start
Redirecting to: [initsystem]
east #
 ../../guestbin/wait-until-pluto-started
east #
 ipsec auto --add westnet-eastnet-ipv4-psk-ikev2
002 "westnet-eastnet-ipv4-psk-ikev2": added IKEv2 connection
east #
 echo "initdone"
initdone
east #
 # should be empty if east triggered
east #
 hostname | grep west > /dev/null || ipsec whack --trafficstatus
006 #2: "westnet-eastnet-ipv4-psk-ikev2", type=ESP, add_time=1234567890, inBytes=84, outBytes=84, id='@west'
east #
 grep "Message ID: [0-9][0-9]* " /tmp/pluto.log
|    Message ID: 0 (00 00 00 00)
|    Message ID: 0 (00 00 00 00)
|    Message ID: 1 (00 00 00 01)
|    Message ID: 1 (00 00 00 01)
|    Message ID: 0 (00 00 00 00)
|    Message ID: 0 (00 00 00 00)
|    Message ID: 1 (00 00 00 01)
|    Message ID: 1 (00 00 00 01)
|    Message ID: 2 (00 00 00 02)
|    Message ID: 2 (00 00 00 02)
|    Message ID: 2 (00 00 00 02)
|    Message ID: 2 (00 00 00 02)
|    Message ID: 2 (00 00 00 02)
|    Message ID: 2 (00 00 00 02)
|    Message ID: 2 (00 00 00 02)
|    Message ID: 2 (00 00 00 02)
|    Message ID: 2 (00 00 00 02)
east #
 # grep on east
east #
 hostname | grep west > /dev/null || grep -A 1 "has not responded in" /tmp/pluto.log
east #
 
