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 V200R012C00 NETCONF YANG API Reference

This document describes the NETCONF YANG 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 Reset Reasons

Querying Device Reset Reasons

This section provides a sample of querying device reset reasons using the get method.

Table 2-5  Querying device reset reasons

Operation

XPATH

get

/get-board-reboot-type

Data Requirements

Table 2-6  Querying device reset reasons

Item

Data

Description

Slot ID

2

If no slot ID is specified, the reset reasons of all slots are returned.

Request Example
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <dev:get-board-reboot-type xmlns:dev="urn:huawei:params:xml:ns:yang:huawei-device">
    <dev:slot-index>2</dev:slot-index>
  </dev:get-board-reboot-type>
</rpc>
Response Example
<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <get-board-reboot-type xmlns="urn:huawei:params:xml:ns:yang:huawei-device">
    <reboot-type-list>
      <slot-index>2</slot-index>
      <time>2018/01/15 21:26:49</time>
      <reboot-type>MANUAL</reboot-type>
    </reboot-type-list>
    <reboot-type-list>
      <slot-index>2</slot-index>
      <time>2017/07/22 11:27:48</time>
      <reboot-type>VRP</reboot-type>
    </reboot-type-list>
  </get-board-reboot-type>
</rpc-reply>
Translation
Download
Updated: 2018-09-01

Document ID: EDOC1100037962

Views: 6991

Downloads: 8

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