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

Configuration Guide - Network Management and Monitoring

CloudEngine 8800, 7800, 6800, and 5800 V200R005C10

This document describes the configurations of Network Management and Monitoring, including SNMP, RMON, NETCONF, OpenFlow, LLDP, NQA, Mirroring, Packet Capture, Packet Trace, Path and Connectivity Detection Configuration, NetStream, sFlow, and iPCA.
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).
<lock>

<lock>

The <lock> operation locks a configuration database. A locked configuration database cannot be modified by other clients. The locks eliminate errors caused by simultaneous database modifications by the NETCONF manager and other NETCONF managers or Simple Network Management Protocol (SNMP) or command-line interface (CLI) scripts.

If the specified configuration database is already locked by a client, the <error-tag> element will be "lock-denied" and the <error-info> element will include the <session-id> of the lock owner.

If the <lock> operation is successful:

  • RPC request:

    <rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
      <lock> 
        <target> 
          <running/> 
        </target> 
      </lock> 
    </rpc> 
  • RPC reply:

    <rpc-reply message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
      <ok/>
    </rpc-reply>

If the <lock> operation is unsuccessful:

  • RPC request:

    <rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
      <lock> 
        <target>
          <running/> 
        </target> 
      </lock> 
    </rpc> 
  • RPC reply:

    <rpc-reply message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
      <rpc-error>
        <error-type>protocol</error-type>
        <error-tag>lock-denied</error-tag>
        <error-severity>error</error-severity>
        <error-app-tag>43</error-app-tag>
        <error-message>The configuration is locked by other user. [Session ID = 629] </error-message>
        <error-info>
          <session-id>629</session-id>
          <error-paras>
            <error-para>629</error-para>
          </error-paras>
        </error-info>
      </rpc-error>
    </rpc-reply>
Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100075365

Views: 41006

Downloads: 127

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