Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] Get EMPTY throughput test results from most server.

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] Get EMPTY throughput test results from most server.


Chronological Thread 
  • From: Andrew Lake <>
  • To: Jialu Pu <>
  • Cc: <>
  • Subject: Re: [perfsonar-user] Get EMPTY throughput test results from most server.
  • Date: Fri, 16 Jul 2010 15:59:21 -0400

Hi,

What are the URLs of the services you tried but failed? Also, what time range were you looking at. If you try a server like http://chic-pt1.es.net:8085/perfSONAR_PS/services/pSB with a source of 198.124.238.42 and destination of 198.124.252.141 do you get data? I as able to verify that worked with the attached script. Let me know and I will see if I can help you find the cause of the issue.

Thanks,
Andy Lake
#!/usr/bin/perl
use FindBin;
use lib ("$FindBin::Bin/lib");
use perfSONAR_PS::Client::MA;
use XML::Twig;

# Create client
my $ma = new perfSONAR_PS::Client::MA( { instance => 'http://chic-pt1.es.net:8085/perfSONAR_PS/services/pSB' } );

# Define subject
my $subject = "<iperf:subject xmlns:iperf=\"http://ggf.org/ns/nmwg/tools/iperf/2.0\"; id=\"subject\">\n";
$subject .=   "    <nmwgt:endPointPair xmlns:nmwgt=\"http://ggf.org/ns/nmwg/topology/2.0/\";>";
$subject .=   "        <nmwgt:src type=\"ipv4\" value=\"198.124.238.42\"/>";
$subject .=   "        <nmwgt:dst type=\"ipv4\" value=\"198.124.252.141\"/>";
$subject .=   "    </nmwgt:endPointPair>";
$subject .=   "</iperf:subject>\n";

# Set eventType
my @eventTypes = ("http://ggf.org/ns/nmwg/tools/iperf/2.0";);

# Set time range
my $end = time;
my $start = $end - 24*3600*200; #1 day ago

# Send request
my $result = $ma->setupDataRequest(
        {
            subject    => $subject,
            eventTypes => \@eventTypes,
            start      => $start,
            end        => $end,
        }
    );

#Output XML
my $parser = XML::LibXML->new();
my $twig= XML::Twig->new(pretty_print => 'indented');
foreach $metadata(@{$result->{"metadata"}}){
	$twig->parse($metadata);
	$twig->print();
}
foreach $data(@{$result->{"data"}}){
	$twig->parse($data);
	$twig->print();
}

On Jul 16, 2010, at 3:48 PM, Jialu Pu wrote:

I'm try to follow the doc at http://psps.perfsonar.net/client-doc.html#MA_BWOW_3 to get throughput data.
It used to work and was able to query data from most server.
But for now I tried many sites and only successfully get throughput results from
tcp://iperf.its.vanderbilt.edu:4823
SRC:129.59.197.62
DST:192.111.110.34

tcp://issf-perfsonar.alcf.anl.gov:4823
SRC:192.31.99.110
DST:140.221.83.201

For others, it returns empty xml file.
For some sites, it even returns empty endpoints.
Is it because there's no data in the server or should I modify the query script?

Thanks.
Jialu Pu






Archive powered by MHonArc 2.6.16.

Top of Page