No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S600-E V200R011C10 NETCONF YANG API Reference

This document describes the NETCONF API functions supported by the switch, including the data model and samples.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Querying Device Status Information

Querying Device Status Information

This section provides a sample of obtaining device status using the get method.

Table 2-4  Displaying device status

Operation

XPATH

get

/device-state

Request example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <get>
    <filter type="subtree">
      <dev:device-state xmlns:dev="urn:huawei:params:xml:ns:yang:huawei-device"/>
    </filter>
  </get>
</rpc>

Response example

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0">
  <data>
    <device-state xmlns="urn:huawei:params:xml:ns:yang:huawei-device">
      <clock>
        <boot-datetime>2016-11-03T02:32:58+00:00</boot-datetime>
        <current-datetime>2016-11-03T02:45:07+00:00</current-datetime>
        <up-times>698</up-times>
      </clock>
      <vendor>huawei</vendor>
      <esn>2102350DLR0425222252</esn>
      <mac-address>00:10:00:20:00:04</mac-address>
      <model>S628-E</model>
      <patch-version>V200R011SPH</patch-version>
      <upstream-interfaces/>
      <version>V200R011C10SPC200</version>
    </device-state>
  </data>
</rpc-reply>
Translation
Download
Updated: 2019-03-30

Document ID: EDOC1000178028

Views: 4333

Downloads: 0

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next