This section provides a sample of querying device reset reasons using the get method.
Operation |
XPATH |
|---|---|
get |
/get-board-reboot-type |
Data Requirements
Item |
Data |
Description |
|---|---|---|
Slot ID |
2 |
If no slot ID is specified, the reset reasons of all slots are returned. |
<?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>
<?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>