From a7638f84b73d205c341db4b03a0be2c6c7ed85cc Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Tue, 21 Jun 2016 17:29:28 +0200 Subject: [PATCH] mpExperienceHTTPS/Siri: with netstat --- src/mpExperienceHTTPS.py | 4 ++++ src/mpExperienceSiri.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/mpExperienceHTTPS.py b/src/mpExperienceHTTPS.py index 2706275..af13544 100644 --- a/src/mpExperienceHTTPS.py +++ b/src/mpExperienceHTTPS.py @@ -70,9 +70,13 @@ class MpExperienceHTTPS(MpExperience): def run(self): cmd = self.getHTTPSServerCmd() + self.mpTopo.commandTo(self.mpConfig.server, "netstat -sn > netstat_server_before") self.mpTopo.commandTo(self.mpConfig.server, cmd) self.mpTopo.commandTo(self.mpConfig.client, "sleep 2") cmd = self.getHTTPSClientCmd() + self.mpTopo.commandTo(self.mpConfig.client, "netstat -sn > netstat_client_before") self.mpTopo.commandTo(self.mpConfig.client, cmd) + self.mpTopo.commandTo(self.mpConfig.server, "netstat -sn > netstat_server_after") + self.mpTopo.commandTo(self.mpConfig.client, "netstat -sn > netstat_client_after") self.mpTopo.commandTo(self.mpConfig.client, "sleep 2") diff --git a/src/mpExperienceSiri.py b/src/mpExperienceSiri.py index 5d49b9d..a2dbb4e 100644 --- a/src/mpExperienceSiri.py +++ b/src/mpExperienceSiri.py @@ -72,9 +72,13 @@ class MpExperienceSiri(MpExperience): def run(self): cmd = self.getSiriServerCmd() + self.mpTopo.commandTo(self.mpConfig.server, "netstat -sn > netstat_server_before") self.mpTopo.commandTo(self.mpConfig.server, cmd) self.mpTopo.commandTo(self.mpConfig.client, "sleep 2") cmd = self.getSiriClientCmd() + self.mpTopo.commandTo(self.mpConfig.client, "netstat -sn > netstat_client_before") self.mpTopo.commandTo(self.mpConfig.client, cmd) + self.mpTopo.commandTo(self.mpConfig.server, "netstat -sn > netstat_server_after") + self.mpTopo.commandTo(self.mpConfig.client, "netstat -sn > netstat_client_after") self.mpTopo.commandTo(self.mpConfig.client, "sleep 2")