home

Supported platforms

Vyatta documentation

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

Get state information — <get>

An example of how to use the <get> RPC to get state information. State information is marked in YANG as config: false and is read-only.
In this example we get the system platform information.
Use the <get> RPC.
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <get>
    <filter type="subtree">
      <system>
        <state>
          <platform xmlns="urn:vyatta.com:mgmt:vyatta-system:1"/>
        </state>
      </system>
    </filter>
  </get>
</rpc>
]]>]]>
The reply will look something like this (an unreleased build in this case):
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <data>
    <system xmlns="urn:vyatta.com:mgmt:vyatta-system:1">
      <state>
        <platform>
          <os-name>DANOS - Vyatta NOS Edition</os-name>
          <os-release>Vyatta:Master</os-release>
          <os-version>9999</os-version>
        </platform>
      </state>
    </system>
  </data>
</rpc-reply>
]]>]]>