Vyatta NOS documentation

Learn how to install, configure, and operate Vyatta Network Operating System (Vyatta NOS), which helps to drive our virtual networking and physical platforms portfolio.

Making a basic RPC twping call

The following example shows the RPC equivalent of the twping localhost CLI command.

<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>
  </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">
    <sid>00000001da3a58d956c9be3a604b90fa</sid>
    <reflector-processing-time>
      <min>0.00191</min>
      <max>0.0181</max>
    </reflector-processing-time>
    <source>
      <address>localhost</address>
      <port>8890</port>
    </source>
    <send-time>
      <min>0.0162</min>
      <pdv>0.0</pdv>
      <max>0.0839</max>
      <median>0.1</median>
      <error>0.0441</error>
    </send-time>
    <packets>
      <reflect-duplicates>0</reflect-duplicates>
      <num-pkts-lost>0</num-pkts-lost>
      <time-of-last>2016-01-08T15:48:49.952+00:00</time-of-last>
      <send-duplicates>0</send-duplicates>
      <time-of-first>2016-01-08T15:48:42.721+00:00</time-of-first>
      <num-pkts-sent>100</num-pkts-sent>
    </packets>
    <round-trip-time>
      <error>0.0882</error>
      <min>0.0234</min>
      <pdv>0.0</pdv>
      <median>0.1</median>
      <max>0.108</max>
    </round-trip-time>
    <reflect-time>
      <max>0.0343</max>
      <error>0.0441</error>
      <min>0.00668</min>
      <pdv>0.0</pdv>
      <median>0.1</median>
    </reflect-time>
    <send-hops>
      <min>0</min>
      <diff-num-ttl>1</diff-num-ttl>
      <max>0</max>
    </send-hops>
    <reflect-hops>
      <diff-num-ttl>1</diff-num-ttl>
      <max>0</max>
      <min>0</min>
    </reflect-hops>
    <destination>
      <port>53612</port>
      <address>localhost</address>
    </destination>
  </results>
</rpc-reply>
]]>]]>