Skip to Content.
Sympa Menu

perfsonar-dev - [pS-dev] [GEANT/SA2/SA2T3-OPPD] r762 - in branches/perfsonar-oppd-all-0.53/tools: . perfSONAR-client perfSONAR-client/examples

Subject: perfsonar development work

List archive

[pS-dev] [GEANT/SA2/SA2T3-OPPD] r762 - in branches/perfsonar-oppd-all-0.53/tools: . perfSONAR-client perfSONAR-client/examples


Chronological Thread 
  • From:
  • To:
  • Subject: [pS-dev] [GEANT/SA2/SA2T3-OPPD] r762 - in branches/perfsonar-oppd-all-0.53/tools: . perfSONAR-client perfSONAR-client/examples
  • Date: Thu, 12 Jul 2012 15:23:10 +0100 (BST)

Author: dfn.calim
Date: 2012-07-12 15:23:10 +0100 (Thu, 12 Jul 2012)
New Revision: 762

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/BWCTL-Scheduler.pl

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/BWCTL-reverse-Scheduler.pl
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/EchoRequest.xml
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/OWAMP-Scheduler.pl
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/README

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/auth-request-1.xml

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-iperf-req-more-data.xml

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-iperf-req.xml

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-iperf-req2.xml
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-test

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-test-ARNES

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-test-calim
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-ping

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-request-l4.xml

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-request-win-WORKING.xml

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-request.xml

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/owamp-raw-req-01.xml

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/owamp-raw-req-more-01.xml

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/owamp-summary-req-01.xml

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/psping-selftest.xml
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/psping.xml

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/send_paralellel_echo.sh
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/perfsonar-client.pl

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/template-bwctl-mp.xml

branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/template-owamp-mp.xml
Log:
del old files

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/BWCTL-Scheduler.pl
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/BWCTL-Scheduler.pl
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/BWCTL-Scheduler.pl
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,45 @@
+#!/usr/bin/perl
+
+
+my $port = 8090;
+my $tool = "perfsonar-client.pl";
+my $path = "/usr/lib/perfsonar/services/oppd/tools/perfsonar-client";
+
+my ($src, $dst) = @ARGV;
+
+if (!$src || !$dst){
+ print "usage: BWCTL-Scheduler.pl <src> <dst>";
+ exit;
+}
+
+#check if src and dst are ip-adresses
+if (!($src =~ /\d+\.\d+\.\d+\.\d+/) || !($dst =~ /\d+\.\d+\.\d+\.\d+/)){
+ print "<src> and <dst> must be IP adresses!\n";
+ exit;
+}
+
+
+my $template = "$path/template-bwctl-mp.xml";
+
+#read in template XML file, set src/dst paramters
+my $request;
+open (TEMPLATE, "$template") || die "cannot open template.xml: $!";
+while (<TEMPLATE>){
+ my $line = $_;
+ $line =~ s/endPoint type="ipv4" value="src"/endPoint type="ipv4"
value="$src"/;
+ $line =~ s/src type="ipv4" value="src"/src type="ipv4" value="$src"/;
+ $line =~ s/dst type="ipv4" value="dst"/dst type="ipv4" value="$dst"/;
+ $request .= $line;
+}
+
+print "$request";
+
+my $req_file = "/tmp/$src-$dst-request.xml";
+
+open (REQUEST, "> $req_file");
+print REQUEST $request;
+close REQUEST;
+
+my $status = `$path/$tool --reqfile=$req_file
--uri=http://$src:8090/services/MP/BWCTL --host=$src`;
+print "Status: $status\n";
+unlink $req_file;


Property changes on:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/BWCTL-Scheduler.pl
___________________________________________________________________
Added: svn:executable
+ *

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/BWCTL-reverse-Scheduler.pl
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/BWCTL-reverse-Scheduler.pl
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/BWCTL-reverse-Scheduler.pl
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,45 @@
+#!/usr/bin/perl
+
+
+my $port = 8090;
+my $tool = "perfsonar-client.pl";
+my $path = "/usr/lib/perfsonar/services/oppd/tools/perfsonar-client";
+
+my ($src, $dst) = @ARGV;
+
+if (!$src || !$dst){
+ print "usage: BWCTL-Scheduler.pl <src> <dst>";
+ exit;
+}
+
+#check if src and dst are ip-adresses
+if (!($src =~ /\d+\.\d+\.\d+\.\d+/) || !($dst =~ /\d+\.\d+\.\d+\.\d+/)){
+ print "<src> and <dst> must be IP adresses!\n";
+ exit;
+}
+
+
+my $template = "$path/template-bwctl-mp.xml";
+
+#read in template XML file, set src/dst paramters
+my $request;
+open (TEMPLATE, "$template") || die "cannot open template.xml: $!";
+while (<TEMPLATE>){
+ my $line = $_;
+ $line =~ s/endPoint type="ipv4" value="src"/endPoint type="ipv4"
value="$src"/;
+ $line =~ s/src type="ipv4" value="src"/src type="ipv4" value="$src"/;
+ $line =~ s/dst type="ipv4" value="dst"/dst type="ipv4" value="$dst"/;
+ $request .= $line;
+}
+
+print "$request";
+
+my $req_file = "/tmp/$src-$dst-request.xml";
+
+open (REQUEST, "> $req_file");
+print REQUEST $request;
+close REQUEST;
+
+my $status = `$path/$tool --reqfile=$req_file
--uri=http://$dst:8090/services/MP/BWCTL --host=$dst`;
+print "Status: $status\n";
+unlink $req_file;


Property changes on:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/BWCTL-reverse-Scheduler.pl
___________________________________________________________________
Added: svn:executable
+ *

Added: branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/EchoRequest.xml
===================================================================
--- branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/EchoRequest.xml
(rev 0)
+++ branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/EchoRequest.xml
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <nmwg:message type="EchoRequest" id="id1"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <nmwg:metadata id="meta">
+ <nmwg:eventType>
+ http://schemas.perfsonar.net/tools/admin/echo/2.0
+ </nmwg:eventType>
+ </nmwg:metadata>
+ <nmwg:data id="data" metadataIdRef="meta"/>
+ </nmwg:message>

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/OWAMP-Scheduler.pl
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/OWAMP-Scheduler.pl
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/OWAMP-Scheduler.pl
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,51 @@
+#!/usr/bin/perl
+
+
+my $port = 8090;
+my $tool = "perfsonar-client.pl";
+my $path = "/usr/lib/perfsonar/services/oppd/tools/perfsonar-client";
+my $stand_count=100;
+
+my ($src, $dst, $count) = @ARGV;
+
+if (!$src || !$dst){
+ print "usage: OWAMP-Scheduler.pl <src> <dst> <count>\n";
+ exit;
+}
+
+#check if src and dst are ip-adresses
+if (!($src =~ /\d+\.\d+\.\d+\.\d+/) || !($dst =~ /\d+\.\d+\.\d+\.\d+/)){
+ print "<src> and <dst> must be IP adresses!\n";
+ exit;
+}
+
+if (! $count){
+ print "No <count> defined. Setting it to $stand_count!\n";
+ $count = $stand_count;
+}
+
+my $template = "$path/template-owamp-mp.xml";
+
+#read in template XML file, set src/dst/count paramters
+my $request;
+open (TEMPLATE, "$template") || die "cannot open template-owamp-mp.xml: $!";
+while (<TEMPLATE>){
+ my $line = $_;
+ $line =~ s/endPoint type="ipv4" value="src"/endPoint type="ipv4"
value="$src"/;
+ $line =~ s/src type="ipv4" value="src"/src type="ipv4" value="$src"/;
+ $line =~ s/dst type="ipv4" value="dst"/dst type="ipv4" value="$dst"/;
+ $line =~ s/name="count" value=VALUE/name="count" value="$count"/;
+ $request .= $line;
+}
+
+print "$request";
+
+my $req_file = "/tmp/$src-$dst-request.xml";
+
+open (REQUEST, "> $req_file");
+print REQUEST $request;
+close REQUEST;
+
+my $status = `$path/$tool --reqfile=$req_file
--uri=http://$src:$port/services/MP/OWAMP --host=$src`;
+print "Status: $status\n";
+unlink $req_file;


Property changes on:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/OWAMP-Scheduler.pl
___________________________________________________________________
Added: svn:executable
+ *

Added: branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/README
===================================================================
--- branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/README
(rev 0)
+++ branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/README
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,10 @@
+REQUESTS BY COMMANDLINE
+=========================
+
+At tte moment oppd supports following requests:
+ * BWCTL MP
+ * OWAMP MP
+
+To see if this services are available use the ECHO request.
+For this use a normal request endpoint. For example: MP/BWCTL.
+Look at the files in this directory for more details.

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/auth-request-1.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/auth-request-1.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/auth-request-1.xml
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,111 @@
+ <soapenv:Envelope
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
+ <soapenv:Header><wsse:Security soapenv:actor="ac"
soapenv:mustUnderstand="1"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";><wsse:BinarySecurityToken
+
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";
+
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3";
+ wsu:Id="CertId-16010509"
+
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>
+
MIIElDCCA3ygAwIBAgIBQzANBgkqhkiG9w0BAQUFADBBMRMwEQYKCZImiZPyLGQBGRMDbmV0
+
MRUwEwYKCZImiZPyLGQBGRMFZ2VhbnQxEzARBgNVBAMTCmVkdUdBSU5TQ0EwHhcNMDcwNTI4
+
MDgxNjE2WhcNMDgwNTI3MDgxNjE2WjBbMRMwEQYKCZImiZPyLGQBGRYDbmV0MRUwEwYKCZIm
+
iZPyLGQBGRYFZ2VhbnQxEDAOBgNVBAoTB0ZlZElSSVMxGzAZBgNVBAMTEnRlc3QtYXMucmVk
+
aXJpcy5lczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANQxCW2uup3EDvVgWlpO
+ luEAZ9g/gfp6iwaypIrgp/
+
uk3J3LNT4iAfBg4KscZT4KnY97wHzCRoU2Uqgr3Lgm14RXZgbIl1pDf0XZa9uHVx0A+Q+
+ hnFhNevCbM7Bcw5gBwBEXKRm2aYTlUxrEXYitcyChSqxSqZ/
+
0BWwSe92lYiQxfdYh8k5NWnXrmqiSW3nQHLWGxMNt2qP/f6ih8I2e+D3R97XuHLk/
+
XnhethUwNIYRGtoiuinOr1hFRft1SfO1fAJsAdGiO1ERDXRNHHnTGUXRL5jIHXHl3hEfHd7X
+ TDfpSFB1q3hx0vwL5nLb6n6YpxS5G/
+
QkLtIZunaeS58rAOMCAwEAAaOCAXswggF3MAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFDHi/
+ 4JITDc5MCORoMV6+
+
HWVmYjtMB8GA1UdIwQYMBaAFIsPjyeA0pPXRl2RhLsumGKuBPHSMA4GA1UdDwEB/
+
wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwgZwGA1UdEQSBlDCBkYY3a
+
HR0cDovL3d3dy5yZWRpcmlzLmVzL3BraS9lZHVnYWluL2VlUmVzb2x2ZXI/
+
ZWU9YTNiMThjMYZWaHR0cDovL2VkdWdhaW4uZ2VhbnQubmV0L3Jlc29sdmVyP3Vybj11cm4l
+
M0FnZWFudCUzQWVkdWdhaW4lM0Fjb21wb25lbnQlM0FzcCUzQXRlc3QtYXMwQAYDVR0fBDkw
+
NzA1oDOgMYYvaHR0cDovL3d3dy5yZWRpcmlzLmVzL3BraS9lZHVnYWluL2NybC9jYWNybC5k
+
ZXIwFwYDVR0gBBAwDjAMBgorBgEEAbp7AgACMA0GCSqGSIb3DQEBBQUAA4IBAQAMj0taSdXv
+ 60fFVI/djyqB47LqfhUMz1Ja0zKAjrZsS5H8SU+
+ D3ksOw0b6HR4BO21HFiYIHEB1UffEAgPqHhtcLT/
+
TJ5kiewKOqaHv5QcfgxFMolAiDUsB6i9bCrWdwJIqPePaDG7KHwcpmHB0vLwJihCpRBgdCqi
+ wz8i5VXdAmloMiEtnm1SU+1BfoTioi79/ZUhUBGPJb7GL20W3yyT9c4/
+
5JK5IKrRfXINlutqZgfUGXvyaxNh7Zgl3MpDaw8U5khl5ZSjcyfsBro2qQVMAJCcph1rwKNj
+ gX8MkTb4GYbUpcnVP7p089kz9OTOLteEzVTIi3VKKiykPWcUYlgwY
+ </wsse:BinarySecurityToken>
+ <ds:Signature Id="Signature-11459550"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#";>
+ <ds:SignedInfo>
+ <ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
+ <ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
+ <ds:Reference URI="#STRId-12160993">
+ <ds:Transforms>
+ <ds:Transform
+
Algorithm="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#STR-Transform";>
+ <wsse:TransformationParameters>
+ <ds:CanonicalizationMethod
+
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
+ </wsse:TransformationParameters>
+ </ds:Transform>
+ </ds:Transforms>
+ <ds:DigestMethod
+
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
+ <ds:DigestValue>
+ LPWm9mc4GbU1/+Zf9qK3Abw9GAQ=
+ </ds:DigestValue>
+ </ds:Reference>
+ </ds:SignedInfo>
+ <ds:SignatureValue>
+
ueCF0yGx7Nsda8a+PXkGi6cPBKcr/0ya+YWdkVezs+Rzwvk/++d0S4tl+oAU7zWBPo5f9PRsS8M9
+
CtzRh6RqMIMOorseStILW0do32w8YXGknVK76QH5+e1kVQqAGFHyMM5/mEQs/xXW5l0xiDoWPWfM
+
fTt4hqXv766A2jj3UrxYnKM/1x2qHF7OhydmsIiCasuUyHsQRd010xvpeedZ5kiwnEqQD1/sqDmf
+
WJ5gjs8aiqiVXoO1IYIm/VRHEoOkUmQp9zBBjtlj/aH2dFhxKrIrl4Fp5dsAbdA9iDNSesp7sDG6
+ Rgy/joFVJydp6Bolc8WjDf3r6WK+NDynT9F35g==
+ </ds:SignatureValue>
+ <ds:KeyInfo Id="KeyId-12534898">
+ <wsse:SecurityTokenReference
+ wsu:Id="STRId-12160993"
+
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>
+ <wsse:Reference
+ URI="#CertId-16010509"
+
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>
+ </wsse:SecurityTokenReference>
+ </ds:KeyInfo>
+ </ds:Signature>
+ </wsse:Security>
+ </soapenv:Header>
+ <soapenv:Body>
+<nmwg:message type="SetupDataRequest"
+ id="datarq2-1"
+ xmlns="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1">
+ <nmwgt:endPointPair>
+ <nmwgt:src type="IFname" value="Budapest_GEANT"/>
+ <nmwgt:dst type="IFname" value="Frankfurt_DFN"/>
+ </nmwgt:endPointPair>
+ </perfsonar:subject>
+ <nmwg:eventType>ippm_aggregated</nmwg:eventType>
+ </nmwg:metadata>
+
+ <nmwg:metadata id="meta2">
+ <perfsonar:subject id="subj2" metadataIdRef="meta1"/>
+ <nmwg:eventType>select</nmwg:eventType>
+ <nmwg:parameters id="param2">
+ <nmwg:parameter name="startTime">1182025449</nmwg:parameter>
+ <nmwg:parameter name="endTime">1182025769</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <!-- triggers to indicate head of chains -->
+ <nmwg:data id="1" metadataIdRef="meta2"/>
+
+</nmwg:message>
+
+ </soapenv:Body>
+ </soapenv:Envelope>
+

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-iperf-req-more-data.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-iperf-req-more-data.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-iperf-req-more-data.xml
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<nmwg:message type="SetupDataRequest"
+ id="bwctl-request"
+ xmlns="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/";
+ xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";
+ xmlns:bwctl="http://ggf.org/ns/nmwg/tools/bwctl/2.0/";
+ xmlns:iperf="http://ggf.org/ns/nmwg/tools/iperf/2.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+ <nmwg:metadata id="bwctl-metadata">
+ <bwctl:subject id="bwctl-subject">
+ <nmwgt:endPoint type="ipv4" value="130.59.35.142"/>
+ </bwctl:subject>
+
+ <nmwg:eventType>http://ggf.org/ns/nmwg/tools/bwctl/2.0</nmwg:eventType>
+ <bwctl:parameters id="bwctl-parameters">
+ <nmwg:parameter name="duration" value="5"/>
+ </bwctl:parameters>
+ </nmwg:metadata>
+
+ <nmwg:metadata id="iperf-metadata">
+ <iperf:subject id="iperf-subject" metadataIdRef="bwctl-metadata">
+ <nmwgt:endPointPair>
+ <nmwgt:src type="ipv4" value="130.59.35.142"/>
+ <nmwgt:dst type="ipv4" value="195.111.107.114"/>
+ </nmwgt:endPointPair>
+ </iperf:subject>
+ <iperf:parameters id="iperf-parameters">
+ <nmwg:parameter name="interval" value="2"/>
+ <nmwg:parameter name="protocol" value="tcp"/>
+ </iperf:parameters>
+ <nmwg:eventType>http://ggf.org/ns/nmwg/tools/iperf/2.0</nmwg:eventType>
+ </nmwg:metadata>
+
+ <!-- triggers to indicate head of chains -->
+
+ <nmwg:data id="1" metadataIdRef="iperf-metadata"/>
+ <nmwg:data id="2" metadataIdRef="iperf-metadata"/>
+ <nmwg:data id="3" metadataIdRef="iperf-metadata"/>
+
+</nmwg:message>

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-iperf-req.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-iperf-req.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-iperf-req.xml
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<nmwg:message type="SetupDataRequest"
+ id="bwctl-request"
+ xmlns="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/";
+ xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";
+ xmlns:bwctl="http://ggf.org/ns/nmwg/tools/bwctl/2.0/";
+ xmlns:iperf="http://ggf.org/ns/nmwg/tools/iperf/2.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+ <nmwg:metadata id="bwctl-metadata">
+ <bwctl:subject id="bwctl-subject">
+ <nmwgt:endPoint type="ipv4" value="131.188.81.12"/>
+ </bwctl:subject>
+
+ <nmwg:eventType>http://ggf.org/ns/nmwg/tools/bwctl/2.0/</nmwg:eventType>
+ <bwctl:parameters id="bwctl-parameters">
+ <nmwg:parameter name="duration" value="5"/>
+ </bwctl:parameters>
+ </nmwg:metadata>
+
+ <nmwg:metadata id="iperf-metadata" metadataIdRef="bwctl-metadata">
+ <iperf:subject id="iperf-subject">
+ <nmwgt:endPointPair>
+ <nmwgt:src type="ipv4" value="131.188.81.61"/>
+ <nmwgt:dst type="ipv4" value="131.188.81.12"/>
+ </nmwgt:endPointPair>
+ </iperf:subject>
+ <iperf:parameters id="iperf-parameters">
+ <nmwg:parameter name="interval" value="2"/>
+ <nmwg:parameter name="protocol" value="tcp"/>
+ </iperf:parameters>
+ <nmwg:eventType>http://ggf.org/ns/nmwg/tools/iperf/2.0/</nmwg:eventType>
+ </nmwg:metadata>
+
+ <!-- triggers to indicate head of chains -->
+ <nmwg:data id="1" metadataIdRef="iperf-metadata"/>
+
+
+</nmwg:message>

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-iperf-req2.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-iperf-req2.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-iperf-req2.xml
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<nmwg:message type="SetupDataRequest"
+ id="bwctl-request"
+ xmlns="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/";
+ xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";
+ xmlns:bwctl="http://ggf.org/ns/nmwg/tools/bwctl/2.0/";
+ xmlns:iperf="http://ggf.org/ns/nmwg/tools/iperf/2.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+ <nmwg:metadata id="bwctl-metadata">
+ <bwctl:subject id="bwctl-subject">
+ <nmwgt:endPoint type="ipv4" value="130.59.35.142"/>
+ </bwctl:subject>
+
+ <nmwg:eventType>http://ggf.org/ns/nmwg/tools/bwctl/2.0</nmwg:eventType>
+ <bwctl:parameters id="bwctl-parameters">
+ <nmwg:parameter name="duration" value="5"/>
+ </bwctl:parameters>
+ </nmwg:metadata>
+
+ <nmwg:metadata id="iperf-metadata">
+ <iperf:subject id="iperf-subject" metadataIdRef="bwctl-metadata">
+ <nmwgt:endPointPair>
+ <nmwgt:src type="ipv4" value="130.59.35.142"/>
+ <nmwgt:dst type="ipv4" value="195.111.107.114"/>
+ </nmwgt:endPointPair>
+ </iperf:subject>
+ <iperf:parameters id="iperf-parameters">
+ <nmwg:parameter name="interval" value="2"/>
+ <nmwg:parameter name="protocol" value="tcp"/>
+ </iperf:parameters>
+ <nmwg:eventType>http://ggf.org/ns/nmwg/tools/iperf/2.0</nmwg:eventType>
+ </nmwg:metadata>
+
+ <!-- triggers to indicate head of chains -->
+ <nmwg:data id="1" metadataIdRef="iperf-metadata"/>
+
+
+</nmwg:message>

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-test
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-test
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-test
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1 @@
+./perfsonar-client.pl --reqfile=$1
--uri=http://genesis-vm-centos5-32.rrze.uni-erlangen.de:8090/services/MP/BWCTL
--host=genesis-vm-centos5-32.rrze.uni-erlangen.de --port=8090


Property changes on:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-test
___________________________________________________________________
Added: svn:executable
+ *

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-test-ARNES
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-test-ARNES
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-test-ARNES
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1 @@
+./perfsonar-client.pl --reqfile=$1
--uri=http://193.2.63.2:8090/services/MP/BWCTL


Property changes on:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-test-ARNES
___________________________________________________________________
Added: svn:executable
+ *

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-test-calim
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-test-calim
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-test-calim
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1 @@
+./perfsonar-client.pl --reqfile=$1
--uri=http://calim.rrze.uni-erlangen.de:8090/services/MP/BWCTL
--host=calim.rrze.uni-erlangen.de --port=80900


Property changes on:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/bwctl-test-calim
___________________________________________________________________
Added: svn:executable
+ *

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-ping
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-ping
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-ping
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,2 @@
+/home/unrz170/trunk/tools/perfSONAR-client/perfsonar-client.pl
--reqfile=/home/unrz170/trunk/tools/perfSONAR-client/psping.xml
--uri=http://radagast.rrze.uni-erlangen.de:8090/services/MA/HADES/GEANT
--host=radagast.rrze.uni-erlangen.de
+


Property changes on:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-ping
___________________________________________________________________
Added: svn:executable
+ *

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-request-l4.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-request-l4.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-request-l4.xml
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <nmwg:message xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+ xmlns="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+ xmlns:hades="http://ggf.org/ns/nmwg/tools/hades/";
+
xmlns:summary="http://ggf.org/ns/nmwg/characteristic/delay/summary/";
+ xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";
+
xmlns:nmtl4="http://ogf.org/schema/network/topology/l4/20070707/";
+ type="SetupDataRequest">
+ <nmwg:metadata id="hades_meta">
+ <hades:subject id="hades_subject">
+ <nmtl4:endPointPair>
+ <nmtl4:src value="62.40.122.123" type="ipv4"/>
+ <nmtl4:dst value="62.40.122.11" type="ipv4"/>
+ </nmtl4:endPointPair>
+ </hades:subject>
+ <nmwg:eventType>http://ggf.org/ns/nmwg/tools/hades</nmwg:eventType>
+ <hades:parameters id="param1">
+ <nmwg:parameter value="41" name="packetsize"/>
+ <nmwg:parameter value="0x0" name="precedence"/>
+ <nmwg:parameter value="9" name="groupsize"/>
+ <nmwg:parameter value="60" name="interval"/>
+ </hades:parameters>
+ </nmwg:metadata>
+ <nmwg:metadata id="select_meta" metadataIdRef="hades_meta">
+ <select:subject id="select_subject"/>
+
<nmwg:eventType>http://ggf.org/ns/nmwg/ops/select/2.0</nmwg:eventType>
+ <select:parameters id="param2">
+ <nmwg:parameter name="startTime">1210001700</nmwg:parameter>
+ <nmwg:parameter name="endTime">1210002000</nmwg:parameter>
+ </select:parameters>
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="select_meta"/>
+ </nmwg:message>

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-request-win-WORKING.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-request-win-WORKING.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-request-win-WORKING.xml
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,36 @@
+<nmwg:message xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+ xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";
+ xmlns:hades="http://ggf.org/ns/nmwg/tools/hades/";
+ id="datarq2-1" type="SetupDataRequest">
+
+ <nmwg:metadata id="meta1">
+ <hades:subject id="subj1">
+ <nmwgt:endPointPair>
+ <nmwgt:src type="IFname" value="Erlangen_DFN"/>
+ <nmwgt:dst type="IFname" value="Frankfurt_DFN"/>
+ </nmwgt:endPointPair>
+ </hades:subject>
+ <hades:parameters id="param1">
+ <nmwg:parameter value="41" name="packetsize"/>
+ <nmwg:parameter value="0x0" name="precedence"/>
+ <nmwg:parameter value="9" name="groupsize"/>
+ <nmwg:parameter value="60" name="interval"/>
+ </hades:parameters>
+
+ <nmwg:eventType>http://ggf.org/ns/nmwg/tools/hades/</nmwg:eventType>
+ </nmwg:metadata>
+
+ <nmwg:metadata id="meta2">
+ <select:subject id="subj2" metadataIdRef="meta1"/>
+ <nmwg:eventType>http://ggf.org/ns/nmwg/ops/select/</nmwg:eventType>
+ <select:parameters id="param2">
+ <nmwg:parameter name="startTime">1210001700</nmwg:parameter>
+ <nmwg:parameter name="endTime">1210002000</nmwg:parameter>
+ </select:parameters>
+ </nmwg:metadata>
+
+
+ <nmwg:data id="data1" metadataIdRef="meta2"/>
+</nmwg:message>

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-request.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-request.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/hades-request.xml
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <nmwg:message xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+ xmlns="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+ xmlns:hades="http://ggf.org/ns/nmwg/tools/hades/";
+
xmlns:summary="http://ggf.org/ns/nmwg/characteristic/delay/summary/";
+ xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";
+ type="SetupDataRequest">
+ <nmwg:metadata id="hades_meta">
+ <hades:subject id="hades_subject">
+ <nmwgt:endPointPair>
+ <nmwgt:src value="Poznan_GEANT" type="IFName"/>
+ <nmwgt:dst value="Frankfurt_GEANT" type="IFName"/>
+ </nmwgt:endPointPair>
+ </hades:subject>
+ <nmwg:eventType>http://ggf.org/ns/nmwg/tools/hades</nmwg:eventType>
+ <hades:parameters id="param1">
+ <nmwg:parameter value="41" name="packetsize"/>
+ <nmwg:parameter value="0x0" name="precedence"/>
+ <nmwg:parameter value="9" name="groupsize"/>
+ <nmwg:parameter value="60" name="interval"/>
+ </hades:parameters>
+ </nmwg:metadata>
+ <nmwg:metadata id="select_meta" metadataIdRef="hades_meta">
+ <select:subject id="select_subject"/>
+
<nmwg:eventType>http://ggf.org/ns/nmwg/ops/select/2.0</nmwg:eventType>
+ <select:parameters id="param2">
+ <nmwg:parameter name="startTime">1210001700</nmwg:parameter>
+ <nmwg:parameter name="endTime">1210002000</nmwg:parameter>
+ </select:parameters>
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="select_meta"/>
+ </nmwg:message>

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/owamp-raw-req-01.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/owamp-raw-req-01.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/owamp-raw-req-01.xml
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<nmwg:message type="SetupDataRequest"
+ id="datarq2-1"
+ xmlns="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+ xmlns:owamp="http://ggf.org/ns/nmwg/tools/owamp/2.0/";
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/";
+ xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1">
+ <nmwgt:endPointPair>
+ <nmwgt:src type="ipv4" value="131.188.81.234"/> <!-- The host
where is OWAMP M -->
+ <nmwgt:dst type="ipv4" value="198.124.252.101"/> <!--
destination host -->
+ </nmwgt:endPointPair>
+ </perfsonar:subject>
+
+ <nmwg:eventType>http://ggf.org/ns/nmwg/tools/owamp/2.0</nmwg:eventType>
+ <nmwg:parameters id="param1">
+ <nmwg:parameter name="count" value="10"/>
+ <nmwg:parameter name="size" value="10"/>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <!-- triggers to indicate head of chains -->
+ <nmwg:data id="1" metadataIdRef="meta1"/>
+
+</nmwg:message>

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/owamp-raw-req-more-01.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/owamp-raw-req-more-01.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/owamp-raw-req-more-01.xml
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<nmwg:message type="SetupDataRequest"
+ id="datarq2-1"
+ xmlns="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+ xmlns:owamp="http://ggf.org/ns/nmwg/tools/owamp/2.0/";
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/";
+ xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+
+ <nmwg:metadata id="meta2">
+ <perfsonar:subject id="subj2">
+ <nmwgt:endPointPair>
+ <nmwgt:src type="ipv4" value="131.188.81.34"/>
+ <nmwgt:dst type="ipv4" value="82.130.1.234:861"/>
+ </nmwgt:endPointPair>
+ </perfsonar:subject>
+
+ <nmwg:eventType>http://ggf.org/ns/nmwg/tools/owamp/2.0</nmwg:eventType>
+ <nmwg:parameters id="param1">
+ <nmwg:parameter name="output" value="summary"/>
+ <nmwg:parameter name="count" value="20"/>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <!-- triggers to indicate head of chains -->
+ <nmwg:data id="1" metadataIdRef="meta2"/>
+ <nmwg:data id="2" metadataIdRef="meta2"/>
+ <nmwg:data id="3" metadataIdRef="meta2"/>
+ <nmwg:data id="4" metadataIdRef="meta2"/>
+
+</nmwg:message>
+

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/owamp-summary-req-01.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/owamp-summary-req-01.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/owamp-summary-req-01.xml
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<nmwg:message type="SetupDataRequest"
+ id="datarq2-1"
+ xmlns="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+ xmlns:owamp="http://ggf.org/ns/nmwg/tools/owamp/2.0/";
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/";
+ xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1">
+ <nmwgt:endPointPair>
+ <nmwgt:src type="ipv4" value="131.188.81.230"/> <!-- The host
where is OWAMP M -->
+ <nmwgt:dst type="ipv4" value="198.124.252.101"/> <!--
destination host -->
+ </nmwgt:endPointPair>
+ </perfsonar:subject>
+
+ <nmwg:eventType>http://ggf.org/ns/nmwg/tools/owamp/2.0</nmwg:eventType>
+ <nmwg:parameters id="param1">
+ <nmwg:parameter name="count" value="10"/>
+ <nmwg:parameter name="size" value="10"/>
+ <nmwg:parameter name="output" value="summary"/>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <!-- triggers to indicate head of chains -->
+ <nmwg:data id="1" metadataIdRef="meta1"/>
+
+</nmwg:message>

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/psping-selftest.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/psping-selftest.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/psping-selftest.xml
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<nmwg:message id="message1213971959" type="EchoRequest"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/selftest/1.0</nmwg:eventType>
+ </nmwg:metadata>
+ <nmwg:data id="data" metadataIdRef="meta"/>
+</nmwg:message>

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/psping.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/psping.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/psping.xml
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<nmwg:message id="message1215438214" type="EchoRequest"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/echo/2.0</nmwg:eventType>
+ </nmwg:metadata>
+ <nmwg:data id="data" metadataIdRef="meta"/>
+</nmwg:message>

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/send_paralellel_echo.sh
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/send_paralellel_echo.sh
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/send_paralellel_echo.sh
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,7 @@
+#!/bin/bash
+for i in {10..50}
+ do
+ OUTFILE="$i.txt"
+ ./bwctl-test ../../lib/NMWG/examples/2.0/EchoRequest.xml > $OUTFILE &
+ done
+


Property changes on:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/examples/send_paralellel_echo.sh
___________________________________________________________________
Added: svn:executable
+ *

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/perfsonar-client.pl
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/perfsonar-client.pl
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/perfsonar-client.pl
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,451 @@
+#!/usr/bin/perl
+
+#TODO
+# - Improvements depend on improvements to SOAP::Lite
+# Can we somehow use doc/lit support of SOAP::Lite??
+
+use warnings;
+use strict;
+
+use Data::Dumper;
+
+use Getopt::Long 2.32 qw(:config auto_help auto_version bundling);
+use Pod::Usage;
+
+# The following modules are only for testing/diffing, but they should be
+# available on all Perl installations.
+use IO::File;
+use POSIX qw(tmpnam);
+
+use FindBin;
+use lib "$FindBin::RealBin/../../lib";
+
+my $ns_nmwg = "http://ggf.org/ns/nmwg/base/2.0/";;
+
+
+my $soap_prefix = <<__PREFIX__;
+<?xml version="1.0" encoding="UTF-8"?>
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
+<soapenv:Body>
+__PREFIX__
+my $soap_suffix = '</soapenv:Body>\n</soapenv:Envelope>';
+
+my ($tmpname,$tmpfh); # variables for tmp files used in END{}
+
+# Parse command line parameters
+
+my $module = "soap";
+my $host = "";
+my $port = "";
+my $endpoint = "";
+my $uri = "";
+my $reqfile = undef;
+my $test = undef;
+
+GetOptions(
+ "module|m=s" => \$module,
+ "host|h=s" => \$host,
+ "port|p=i" => \$port,
+ "endpoint|e=s" => \$endpoint,
+ "uri|u=s" => \$uri,
+ "reqfile|f=s" => \$reqfile,
+ "test|t=s" => \$test,
+) or pod2usage(2);
+
+my @reqfiles = @ARGV;
+push @reqfiles,$reqfile if $reqfile;
+pod2usage("Mandatory parameter missing.\n")
+ unless @reqfiles && ($host || $uri);
+
+unless ($uri) {
+ # Build URI from other parameters
+ $uri = "http://$host";; # $host || $uri - see above
+ $uri .= ":$port" if $port;
+ if ($endpoint) {
+ $endpoint = "/$endpoint" unless $endpoint =~ m#^/#;
+ $uri .= $endpoint;
+ } else {
+ $uri .= "/";
+ }
+}
+
+my $diff;
+if ($test && $test ne "set") {
+ if ($test && ($test eq "XmlDiff" || $test eq "default")) {
+ require XML::Diff;
+ $diff = XML::Diff->new();
+ }
+ open LOG, ">perfsonar-client-test.log";
+}
+
+foreach my $reqfile (@reqfiles) {
+ # Read (and parse) request file
+ open REQ, $reqfile or die "Could not open $reqfile\n";
+ my $req = "";
+ foreach my $line (<REQ>) {
+ $req .= $line unless $line =~ m/^<\?xml.*/;
+ }
+ close REQ;
+
+
+ # Now do the hard work
+ my $result;
+ if ($module eq "soap") {
+ require "NMWG.pm";
+ require "NMWG/Message.pm";
+ require "perfSONAR.pm";
+ require "perfSONAR/SOAP.pm";
+ require "perfSONAR/SOAP/Message.pm";
+ require "perfSONAR/SOAP/HTTP/Request.pm";
+ require "perfSONAR/SOAP/HTTP/Response.pm";
+ require "perfSONAR/SOAP/HTTP/UserAgent.pm";
+
+ my $request = perfSONAR::SOAP::Message->new(body => $req, uri => $uri);
+ my $userAgent = perfSONAR::SOAP::HTTP::UserAgent->new;
+ my $http_request = perfSONAR::SOAP::HTTP::Request->new(message =>
$request);
+ my $http_response = $userAgent->request($http_request);
+ unless ($http_response->is_success) {
+ my $code = $http_response->code();
+ my $message = $http_response->message();
+ print "HTTP Error: $code, $message\n";
+ exit;
+ }
+ my $soap_response = $http_response->soap_message;
+ if ($soap_response->is_fault) {
+ die "SOAP Error!\n" .
+ " faultstring: ". ($soap_response->{fault}->faultstring || "") .
+ " faultcode: ". join(" - ", $soap_response->{fault}->faultcode)
."\n";
+ }
+ $result = $soap_response->as_string;
+
+ } elsif ($module eq "sendReceive") {
+ require "NMWG.pm";
+ require "NMWG/Message.pm";
+ require "perfSONAR.pm";
+ require "perfSONAR/SOAP.pm";
+ require "perfSONAR/SOAP/Message.pm";
+ require "perfSONAR/SOAP/HTTP/Request.pm";
+ require "perfSONAR/SOAP/HTTP/Response.pm";
+ require "perfSONAR/SOAP/HTTP/UserAgent.pm";
+ my $request = NMWG::Message->new($req);
+ my $response = perfSONAR::sendReceive(
+ message => $request,
+ uri => $uri
+ );
+
+ $result = $response->as_string(2);
+
+ } elsif ($module eq "http") {
+ require LWP::UserAgent;
+ require HTTP::Request;
+ require HTTP::Response;
+
+ my $httpEndpoint = $uri || "http://$host:$port$endpoint";;
+
+ my $userAgent = LWP::UserAgent->new(timeout => 5000);
+
+ my $sendSoap = HTTP::Request->new(
+ POST => $httpEndpoint,
+ new HTTP::Headers,
+ $soap_prefix . $req . $soap_suffix
+ );
+ $sendSoap->header('SOAPAction' => '""');
+ $sendSoap->content_type ('text/xml');
+ $sendSoap->content_length(length($req));
+ $sendSoap->protocol("HTTP/1.0");
+ $sendSoap->header('pragma' => 'no-cache');
+ $sendSoap->header('cache-control' => 'no-cache');
+ $sendSoap->header('accept' => 'application/soap+xml, application/dime,
multipart/related, text/*');
+ my $httpResponse = $userAgent->request($sendSoap);
+ my $responseCode = $httpResponse->code();
+ my $responseContent = $httpResponse->content();
+ $result = $httpResponse->as_string(2);
+
+ } elsif ($module eq "raw"){
+
+ require LWP::UserAgent;
+ require HTTP::Request;
+ require HTTP::Response;
+
+ my $httpEndpoint = $uri || "http://$host:$port$endpoint";;
+
+ my $userAgent = LWP::UserAgent->new(timeout => 5000);
+
+ my $sendSoap = HTTP::Request->new(
+ POST => $httpEndpoint,
+ new HTTP::Headers,
+ $req
+ );
+ $sendSoap->header('SOAPAction' => '""');
+ $sendSoap->content_type ('text/xml');
+ $sendSoap->content_length(length($req));
+ $sendSoap->protocol("HTTP/1.0");
+ $sendSoap->header('pragma' => 'no-cache');
+ $sendSoap->header('cache-control' => 'no-cache');
+ $sendSoap->header('accept' => 'application/soap+xml, application/dime,
multipart/related, text/*');
+ my $httpResponse = $userAgent->request($sendSoap);
+ my $responseCode = $httpResponse->code();
+ my $responseContent = $httpResponse->content();
+ $result = $httpResponse->as_string(2);
+
+
+ } else {
+ pod2usage("Unkown module type: $module.\n");
+ }
+
+ if ($test) {
+ my $testfile = "test/$reqfile";
+ if ($test eq "set") {
+ open TESTFILE, ">$testfile"
+ or die "Could not create test file $testfile\n";
+ print TESTFILE $result;
+ close TESTFILE;
+ } elsif ($test eq "XmlDiff" || $test eq "default") {
+ print "Testing $reqfile ... ";
+ unless (open TESTFILE, "<$testfile") {
+ print LOG ">>> $testfile NOT FOUND\n";
+ print "NOT FOUND\n";
+ next;
+ }
+ my $save = $/;
+ $/ = undef;
+ my $old_xml = <TESTFILE>;
+ $/ = $save;
+ close TESTFILE;
+ my $diffgram;
+ eval {
+ $diffgram = $diff->compare(-old => $old_xml, -new => $result);
+ };
+ if ($@) {
+ print LOG ">>> Error parsing XML:\n$@";
+ print "ERROR\n";
+ next;
+ }
+ if ($diffgram->documentElement()->hasChildNodes()) {
+ print LOG ">>> Diff for $reqfile:\n" . $diffgram->toString(2);
+ print "CHANGED\n";
+ next;
+ }
+ print "ok\n";
+ } elsif ($test eq "xmldiff" || $test eq "diff" || $test eq "3dm" ||
+ $test eq "diffxml" || $test eq "XmlSemanticDiff") {
+ print "Testing $reqfile ... ";
+ my ($out,$err);
+ if ($test eq "xmldiff" || $test eq "3dm" || $test eq "diffxml" ||
+ $test eq "XmlSemanticDiff" ) {
+ # try new temporary filenames until we get one that didn't already
exist
+ do { $tmpname = tmpnam() }
+ until $tmpfh = IO::File->new($tmpname, O_RDWR|O_CREAT|O_EXCL);
+ $tmpfh->print($result);
+ $tmpfh->close();
+ } elsif ($test eq "diff") {
+ require IPC::Run;
+ IPC::Run::run(['diff',"--version"],\undef,\$out,\$err,
+ IPC::Run::timeout(10))
+ or die "Cannot execute diff: $?\n";
+ }
+ if (! -e $testfile) {
+ $err = "File not found: $testfile\n";
+ } elsif (! -r $testfile) {
+ $err = "File not readable: $testfile\n";
+ } else {
+ if ($test eq "xmldiff") {
+ # Seems like 'xmldiff' does not use stderr!
+ # Return codes are also strange.
+ require IPC::Run;
+ IPC::Run::run(['xmldiff',$testfile,$tmpname],
+ \undef, \$out, \$err, IPC::Run::timeout(10));
+ if ($?>>8 == 255) {
+ $err = $out;
+ $out = "";
+ }
+ } elsif ($test eq "diff") {
+ # If $testfile doesn't exist, "run" reports only a "broken pipe"
+ # => We really need the check for the test file from above
+ require IPC::Run;
+ IPC::Run::run(['diff',"-u","-d","-w",$testfile,"-"],
+ \$result, \$out, \$err, IPC::Run::timeout(10));
+ if ($?) {
+ my $result = $? >> 8;
+ my $signal = $? & 127;
+ if ($result >= 2) {
+ $err = $out;
+ $out = "";
+ } elsif ($signal) {
+ $err = "Caught signal: $signal\n";
+ }
+ } else {
+ # No differences
+ $out = "";
+ }
+ } elsif ($test eq "3dm") {
+ # Seems to just throw exceptions on failure...
+ # Return code always "0" ...
+ require IPC::Run;
+ IPC::Run::run(['3dm',"-d",$testfile,$tmpname],
+ \undef, \$out, \$err, IPC::Run::timeout(10));
+ if ($out =~ m#<diff />$#) {
+ $out = "";
+ }
+ } elsif ($test eq "diffxml") {
+ # TODO for "-x":
+ # Exception in thread "main" java.lang.NoClassDefFoundError:
+ # org/apache/xpath/XPathAPI
+ # Return code seems to be "1" for "changes" and Exception. Error
+ # lead to "2". But it's easier to distinguish using stdout<->stderr
+ require IPC::Run;
+ IPC::Run::run(['diffxml',"-f",$testfile,$tmpname],
+ \undef, \$out, \$err, IPC::Run::timeout(10));
+ if ($?>>8 == 0) { # or: ($out =~ m#<delta/>$#)
+ $out = "";
+ }
+ } elsif ($test eq "XmlSemanticDiff") {
+ require XML::SemanticDiff;
+ my $diff = XML::SemanticDiff->new(keeplinenums => 1);
+ foreach my $change ($diff->compare($testfile,$tmpname)) {
+ $out .= "lines $change->{startline}-$change->{endline}: " .
+ $change->{message};
+ }
+ }
+ }
+ if ($err) {
+ print LOG ">>> Error calling $test:\n$err";
+ print "ERROR\n";
+ next;
+ }
+ if ($out) {
+ print LOG ">>> Diff for $reqfile:\n" . $out;
+ print "CHANGED\n";
+ next;
+ }
+ print "ok\n";
+ } else {
+ pod2usage("Unknown test module: $test.\n");
+ }
+ } else {
+ print "Response for $reqfile:\n\n";
+ print $result;
+ print "\n\n\n";
+ }
+}
+
+close LOG;
+
+exit 0;
+
+
+## END OF MAIN ##
+
+
+END {
+ if ($tmpname) {
+ undef $tmpfh; # automatically closes the file if it's open
+ -e $tmpname && unlink($tmpname) or die "Couldn't unlink $tmpname : $!";
+ }
+}
+
+
+__END__
+
+
+
+=head1 NAME
+
+B<perfsonar-client.pl> - Send request to a perfSONAR service
+
+=head1 SYNOPSIS
+
+B<perfsonar-client.pl> S<[B<--help>]> S<[B<--module>|B<-m>=nmwg|soap|http]>
+ ( S<B<--host>|B<-h>=HOSTNAME> S<B<--port>|B<-p>=PORT>
S<B<--endpoint>|B<-p>=ENDPOINT> ) |
+ ( S<B<--uri>|B<-u>=URI> )
+ S<[B<--test>=set|xmldiff|...]>
+ S<B<--reqfile>|B<-f>=F<REQFILE>> | REQFILE1 REQFILE2 ...
+
+
+
+=head1 DESCRIPTION
+
+Sends a request to a perfSONAR service and displays response.
+
+
+
+=head1 OPTIONS
+
+
+=over
+
+
+=item B<--help>
+
+Prints a help message and exits.
+
+
+=item B<--module>|B<-m>=soap|http|nmwg
+
+Use Perl module SOAP::Lite (soap) or Perl module LWP::UserAgent (http) for
+accessing the service.
+
+IMPORTANT: SOAP::Lite only does rpc/encoded and LWP::UserAgent only does
+document/literal SOAP requests!
+
+
+=item B<--host>|B<-h>=HOST
+
+Connect to service on host HOST. You have to at least set B<--host> or
+B<--uri>.
+
+
+=item B<--port>|B<-p>=PORT
+
+Use port PORT to connect. Default is to use default HTTP port (80).
+
+
+=item B<--endpoint>|B<-u>=ENDPOINT
+
+Use ENDPOINT as endpoint of the service.
+
+
+=item B<--uri>|B<-u>=URI
+
+Use URI as service uri. You have to at least set B<--host> or
+B<--uri>. If B<--uri> is not set it is build based on
http://HOST:PORT/ENDPOINT.
+If B<--uri> is set, B<--host>, B<--port>, and B<--endpoint> are ignored!
+
+
+=item B<--reqfile>|B<-f>=F<REQFILE>
+
+Use content of F<REQFILE> as request.
+
+=item B<--test>|B<-t>=MODE
+
+Simple test of responses by "diffing" with result from previous run.
+Available values for MODE:
+ set Save result for testing.
+ No diffing done!
+ XmlDiff Use XML::Diff.
+ Often very verbose...
+ XmlSemanticDiff Use XML::SemanticDiff.
+ Looks very promising!
+ xmldiff Use xmldiff (http://www.logilab.org/projects/xmldiff/).
+ Very famous Python tool. Seems to produce live locks
+ and quite long deltas.
+ 3dm Use 3dm (http://www.cs.hut.fi/~ctl/3dm/).
+ Fast and small, but "unreadable" deltas. Java.
+ diffxml Use diffxml (http://diffxml.sourceforge.net/)
+ Java. Two algorithms:
+ FMES algorithm (seems to produce live locks)
+ xmdiff (produces exceptions).
+ diff Yes, "diff". Nothing more, but also nothing less.
+Binaries/scripts have to be in your PATH, of course!
+
+
+=head1 EXAMPLES
+
+
+S<perfsonar-client.pl> S<--host=localhost> S<--port=5000> \
+ S<--uri=http://test/Hades/perfSONAR/MA> S<--reqfile=SetupData-Req.xml>
+
+S<perfsonar-client.pl> S<-h selena.acad.bg> S<-p 8090> \
+ S<-f SetupDataRequest-FilterRRDSelect-ACAD.xml>


Property changes on:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/perfsonar-client.pl
___________________________________________________________________
Added: svn:executable
+ *

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/template-bwctl-mp.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/template-bwctl-mp.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/template-bwctl-mp.xml
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<nmwg:message type="SetupDataRequest"
+ id="bwctl-request"
+ xmlns="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/";
+ xmlns:bwctl="http://ggf.org/ns/nmwg/tools/bwctl/2.0/";
+ xmlns:iperf="http://ggf.org/ns/nmwg/tools/iperf/2.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+ <nmwg:metadata id="bwctl-metadata">
+ <bwctl:subject id="bwctl-subject">
+ <nmwgt:endPoint type="ipv4" value="src"/>
+ </bwctl:subject>
+
+ <nmwg:eventType>http://ggf.org/ns/nmwg/tools/bwctl/2.0</nmwg:eventType>
+ <bwctl:parameters id="bwctl-parameters">
+ <nmwg:parameter name="duration" value="30"/>
+ </bwctl:parameters>
+ </nmwg:metadata>
+
+ <nmwg:metadata id="iperf-metadata">
+ <iperf:subject id="iperf-subject" metadataIdRef="bwctl-metadata">
+ <nmwgt:endPointPair>
+ <nmwgt:src type="ipv4" value="src"/>
+ <nmwgt:dst type="ipv4" value="dst"/>
+ </nmwgt:endPointPair>
+ </iperf:subject>
+ <iperf:parameters id="iperf-parameters">
+ <nmwg:parameter name="interval" value="6"/>
+ <nmwg:parameter name="protocol" value="tcp"/>
+ </iperf:parameters>
+ <nmwg:eventType>http://ggf.org/ns/nmwg/tools/iperf/2.0</nmwg:eventType>
+ </nmwg:metadata>
+
+ <!-- triggers to indicate head of chains -->
+ <nmwg:data id="1" metadataIdRef="iperf-metadata"/>
+
+
+</nmwg:message>

Added:
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/template-owamp-mp.xml
===================================================================
---
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/template-owamp-mp.xml
(rev 0)
+++
branches/perfsonar-oppd-all-0.53/tools/perfSONAR-client/template-owamp-mp.xml
2012-07-12 14:23:10 UTC (rev 762)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<nmwg:message type="SetupDataRequest"
+ id="owamp-req-1.0 "
+ xmlns:owamp="http://ggf.org/ns/nmwg/tools/owamp/2.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+ xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/";>
+
+
+
+
+
+ <nmwg:metadata id="owamp-metadata">
+ <owamp:subject id="owamp-subject">
+ <nmwgt:endPointPair>
+ <nmwgt:src type="ipv4" value="src"/>
+ <nmwgt:dst type="ipv4" value="dst"/>
+ </nmwgt:endPointPair>
+ </owamp:subject>
+
+ <nmwg:eventType>http://ggf.org/ns/nmwg/tools/owamp/2.0</nmwg:eventType>
+ <nmwg:parameters id="owamp-parameters">
+ <!-- count number of test packets-->
+ <nmwg:parameter name="count" value=VALUE/>
+ <!-- wait mean average time between packets (seconds)
+ <nmwg:parameter name="wait" value="VALUE"/> -->
+ <!-- timeout maximum time to wait for a packet before
declaring it lost (seconds)
+ <nmwg:parameter name="timeout" value="VALUE"/> -->
+ <!-- padding size of the padding added to each packet (bytes)
+ <nmwg:parameter name="padding" value="VALUE"/> -->
+ <!-- delayStart time to wait before executing test (seconds)
+ <nmwg:parameter name="delayStart" value="VALUE"/> -->
+ <!-- output set here the outputtype of response data (raw or
summary)
+ <nmwg:parameter name="output" value="summary"/> -->
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <!-- triggers to indicate head of chains -->
+ <nmwg:data id="1" metadataIdRef="owamp-metadata"/>
+
+</nmwg:message>



  • [pS-dev] [GEANT/SA2/SA2T3-OPPD] r762 - in branches/perfsonar-oppd-all-0.53/tools: . perfSONAR-client perfSONAR-client/examples, svn-noreply, 07/12/2012

Archive powered by MHonArc 2.6.16.

Top of Page