def run_stats_gather
      stats_tcl = File.open("/var/tmp/stats-#{@buildtime}", 'w')
      stats_tcl.write finish
      stats_tcl.close
      system "#@ixia_exe /var/tmp/stats-#{@buildtime}"
      File.delete stats_tcl
      ftp = Net::FTP.new(@host)
      ftp.login
      file = "#{@csv_file}.csv"
      Dir.chdir "#{$log_path}/ixia" do
        ftp.get "Reports/#{file}"
      end
      ftp.delete "Reports/#{file}"
      ftp.delete "Reports/#{file}.columns"
      ftp.close
      CSV.read("#{$log_path}/ixia/#{file}", headers: true)
    end
def run_stats_gather
      stats_tcl = File.open("/var/tmp/stats-#{@buildtime}", 'w')
      stats_tcl.write finish
      stats_tcl.close
      system "#@ixia_exe /var/tmp/stats-#{@buildtime}"
      File.delete stats_tcl
      ftp = Net::FTP.new(@host)
      ftp.login
      file = "#{@csv_file}.csv"
      Dir.chdir "#{$log_path}/ixia" do
        ftp.get "Reports/#{file}"
      end
      ftp.delete "Reports/#{file}"
      ftp.delete "Reports/#{file}.columns"
      ftp.close
      CSV.read("#{$log_path}/ixia/#{file}", headers: true)
    end
Stop Ixia traffic flows and gather Ixia stats