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).
Configuring Whether to Enable Performance Reporting

Configuring Whether to Enable Performance Reporting

This section provides a sample of configuring whether to enable performance reporting using the create method.

Table 2-11  Configuring whether to enable performance reporting

Operation

XPATH

edit-config:create

/huawei-system-performance:pm-config

Data requirement

Table 2-12  Configuring whether to enable performance reporting

Item

Data

Description

Connection name CloudManagerCollectConnection

The following packet is used to enable performance reporting.

Server IP address

10.1.1.1

Server port

10031

Policy name CloudManagerCollectPolicy
Interval for reporting performance data 5

Type of collected performance data

performance-data

Whether performance data collection is enabled

true

Interval at which the system collects performance data 5

Request example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <error-option>rollback-on-error</error-option>
    <config>
      <pm:pm-config xmlns:pm="urn:huawei:params:xml:ns:yang:huawei-system-performance" xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="create">
        <pm:server-connection-parameters>
          <pm:connections>
            <pm:name>CloudManagerCollectConnection</pm:name>
            <pm:server-url>10.1.1.1</pm:server-url>
            <pm:server-port>10031</pm:server-port>
            <pm:collection-polices>
              <pm:collection-items>CloudManagerCollectPolicy</pm:collection-items>
              <pm:default-upload-interval>5</pm:default-upload-interval>
            </pm:collection-polices>
          </pm:connections>
        </pm:server-connection-parameters>
        <pm:collection-item-policy>
          <pm:policies>
            <pm:name>CloudManagerCollectPolicy</pm:name>
            <pm:data-collection-item>
              <pm:type>performance-data</pm:type>
              <pm:collection-enable>true</pm:collection-enable>
              <pm:item-collection-interval>5</pm:item-collection-interval>
            </pm:data-collection-item>
          </pm:policies>
        </pm:collection-item-policy>
      </pm:pm-config>
    </config>
  </edit-config>
</rpc>

Response example

Sample of successful response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>
Translation
Download
Updated: 2019-10-18

Document ID: EDOC1000178028

Views: 5127

Downloads: 0

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