Making an RPC twping call with all possible input parameters
The following example shows the RPC equivalent of the twping localhost session-count 1 padding 1000 interval 2.0 count 10 test-dscp-value 0 auth-mode authenticate user v control-port 862 port-range 6000 CLI command. This RPC call uses all the possible input parameters.
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="3">
<twping xmlns="urn:vyatta.com:mgmt:vyatta-service-twamp:1">
<host>localhost</host>
<count>10</count>
<control-port>862</control-port>
<interval>2.0</interval>
<padding>1000</padding>
<port-range>
<start>6000</start>
<end>6000</end>
</port-range>
<session-count>1</session-count>
<test-dscp-value>0</test-dscp-value>
<authentication>
<mode>authenticate</mode>
<user>v</user>
<passphrase>v</passphrase>
</authentication>
</twping>
</rpc>]]>]]>
<?xml version="1.0"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="3">
<results xmlns="urn:vyatta.com:mgmt:vyatta-service-twamp:1">
<source>
<address>localhost</address>
<port>6000</port>
</source>
<round-trip-time>
<median>0.1</median>
<pdv>0.0</pdv>
<error>8.79</error>
<min>0.0591</min>
<max>0.0968</max>
</round-trip-time>
<sid>00000001da3a5bac42f2882ee23c8231</sid>
<destination>
<port>52123</port>
<address>localhost</address>
</destination>
<reflect-hops>
<diff-num-ttl>1</diff-num-ttl>
<min>0</min>
<max>0</max>
</reflect-hops>
<send-time>
<max>0.0701</max>
<error>4.39</error>
<pdv>0.0</pdv>
<min>0.0467</min>
<median>0.1</median>
</send-time>
<reflector-processing-time>
<max>0.0401</max>
<min>0.00906</min>
</reflector-processing-time>
<packets>
<num-pkts-sent>10</num-pkts-sent>
<time-of-first>2016-01-08T16:00:46.270+00:00</time-of-first>
<num-pkts-lost>0</num-pkts-lost>
<send-duplicates>0</send-duplicates>
<time-of-last>2016-01-08T16:01:05.768+00:00</time-of-last>
<reflect-duplicates>0</reflect-duplicates>
</packets>
<reflect-time>
<error>4.39</error>
<min>0.0119</min>
<max>0.0286</max>
<median>0.1</median>
<pdv>0.0</pdv>
</reflect-time>
<send-hops>
<max>0</max>
<diff-num-ttl>1</diff-num-ttl>
<min>0</min>
</send-hops>
</results>
</rpc-reply>
]]>]]>