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

NETCONF YANG API Reference

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

NETCONF YANG API Reference
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 the Function of Reporting Data to Controllers

Configuring the Function of Reporting Data to Controllers

Data Model

The data model file matching data reporting is huawei-system-performance.yang. The value of name in policies of data-collection-item must be the same as that of huawei-system-performance/pm-config/server-connection-parameters/connections/collection-polices/collection-items.

Table 3-2205 Data model of reporting data to controllers

Object

Description

huawei-system-performance:pm-config/collection-item-policy/policies/data-collection-item

Indicates that the request operation (enabling, modification, or disabling) object is a data collection item. This object is only used to contain sub-objects, but does not have any data meaning.

huawei-system-performance:pm-config/collection-item-policy/policies/data-collection-item/type

Indicates the data collection item type. The value is of the character string type:

  • log-data
  • voice-log-data
  • ups-log-data
  • nqa-data
  • netstream-data
  • tcpfpm-data
  • device-data

huawei-system-performance:pm-config/collection-item-policy/policies/data-collection-item/collection-enable

Indicates the enabling status of a data collection item.

The value is of the Boolean type:

  • true
  • false

Modifying the Function of Reporting Data to Controllers

This section provides a sample of configuring the function of reporting data to controllers.

Table 3-2206 Configuring the function of reporting data to controllers

Operation

XPATH

edit-config:merge

huawei-system-performance/pm-config/server-connection-parameters/connections/name

huawei-system-performance/pm-config/server-connection-parameters/connections/collection-polices/collection-items

huawei-system-performance/pm-config/collection-item-policy/policies/name

huawei-system-performance/pm-config/collection-item-policy/policies/data-collection-item/type

huawei-system-performance/pm-config/collection-item-policy/policies/data-collection-item/collection-enable

Data Requirements
Table 3-2207 Configuring the function of reporting data to controllers

Item

Data

Description

Controllers connection name

1

Configure the function of reporting data to controllers for the following packets.

Data statistics policy type

test

Data statistics policy name

test

Data collection item type

log-data and ups-log-data

Data collection item enabling status

true

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1031">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <pm-config xmlns="urn:huawei:params:xml:ns:yang:huawei-system-performance">
    <server-connection-parameters>
     <connections>
      <name>1</name>
      <collection-polices>
       <collection-items>test</collection-items>
      </collection-polices>
     </connections>
    </server-connection-parameters>
    <collection-item-policy>
     <policies xc:operation="replace">
      <name>test</name>
      <data-collection-item>
       <type>log-data</type>
       <collection-enable>false</collection-enable>
      </data-collection-item>
     </policies>
    </collection-item-policy>
   </pm-config>
  </config>
 </edit-config>
</rpc>
Response Example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1031"> 
 <ok/> 
</rpc-reply>

Configuring the Function of Reporting Data to Controllers

This section provides a sample of modifying the function of reporting data to controllers.

Table 3-2208 Modifying the function of reporting data to controllers

Operation

XPATH

edit-config:replace

huawei-system-performance/pm-config/server-connection-parameters/connections/name

huawei-system-performance/pm-config/server-connection-parameters/connections/collection-polices/collection-items

huawei-system-performance/pm-config/collection-item-policy/policies/name

huawei-system-performance/pm-config/collection-item-policy/policies/data-collection-item/type

huawei-system-performance/pm-config/collection-item-policy/policies/data-collection-item/collection-enable

Data Requirements
Table 3-2209 Modifying the function of reportingdata to controllers

Item

Data

Description

Controllers connection name

1

Modify the function of reporting data to controllers for the following packets.

Data statistics policy type

test

Data statistics policy name

test

Data collection item type

log-data

Data collection item enabling status

false

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1031">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <pm-config xmlns="urn:huawei:params:xml:ns:yang:huawei-system-performance">
    <server-connection-parameters>
     <connections>
      <name>1</name>
      <collection-polices>
       <collection-items>test</collection-items>
      </collection-polices>
     </connections>
    </server-connection-parameters>
    <collection-item-policy>
     <policies xc:operation="replace">
      <name>test</name>
      <data-collection-item>
       <type>log-data</type>
       <collection-enable>false</collection-enable>
      </data-collection-item>
     </policies>
    </collection-item-policy>
   </pm-config>
  </config>
 </edit-config>
</rpc>
Response Example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1031"> 
 <ok/> 
</rpc-reply>

Deleting the Function of Reporting Data to Controllers

This section provides a sample of deleting the function of reporting data to controllers.

Table 3-2210 Deleting the function of reporting data to controllers

Operation

XPATH

edit-config:remove

huawei-system-performance/pm-config/server-connection-parameters/connections/name

huawei-system-performance/pm-config/server-connection-parameters/connections/collection-polices/collection-items

huawei-system-performance/pm-config/collection-item-policy/policies/name

huawei-system-performance/pm-config/collection-item-policy/policies/data-collection-item/type

huawei-system-performance/pm-config/collection-item-policy/policies/data-collection-item/collection-enable

Data Requirements
Table 3-2211 Deleting the function of reporting data to controllers

Item

Data

Description

Controllers connection name

1

Delete the function of reporting data to controllers for the following packets.

Data statistics policy type

test

Data statistics policy name

test

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1031"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <pm-config xmlns="urn:huawei:params:xml:ns:yang:huawei-system-performance" xc:operation="remove"> 
    <server-connection-parameters> 
     <connections> 
      <name>1</name> 
      <collection-polices> 
       <collection-items>test</collection-items> 
      </collection-polices> 
     </connections> 
    </server-connection-parameters> 
    <collection-item-policy> 
     <policies> 
      <name>test</name> 
     </policies> 
    </collection-item-policy> 
   </pm-config> 
  </config> 
 </edit-config> 
</rpc>
Response Example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1031"> 
 <ok/> 
</rpc-reply>
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 8167

Downloads: 69

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