perfsonar-user - Re: [perfsonar-user] Get EMPTY throughput test results from most server.
Subject: perfSONAR User Q&A and Other Discussion
List archive
- 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:
|
- [perfsonar-user] Get EMPTY throughput test results from most server., Jialu Pu, 07/16/2010
- Re: [perfsonar-user] Get EMPTY throughput test results from most server., Andrew Lake, 07/16/2010
- Re: [perfsonar-user] Get EMPTY throughput test results from most server., Jason Zurawski, 07/16/2010
Archive powered by MHonArc 2.6.16.