所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

CloudEngine 8800, 7800, 6800, 5800 V200R005C10 配置指南-网络管理与监控

本文档介绍了网络管理与监控的配置,具体包括SNMP配置、RMON配置、NETCONF配置、OpenFlow Agent配置、LLDP配置、NQA配置、镜像配置、报文捕获配置、Packet trace、路径/连通性探测配置、NetStream配置、sFlow配置和iPCA配置。

评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
<get>查询数据

<get>查询数据

<get>查询的是设备当前运行的状态数据,即只能从<running/>配置数据库中获取数据。所以,<get>不需要使用source参数指定配置数据库。

<get>操作成功,Server回复的<rpc-reply>元素中含有<data>参数,<data>中封装了获取的结果数据。否则在<rpc-reply>消息中返回<rpc-error>。

<get>和<get-config>区别在于:
  • <get>只能查询<running/>配置数据库的数据,<get-config>可以查询<running/>、<candidate/>和<startup/>中数据。
  • <get>可以查询配置数据和状态数据,<get-config>只能查询配置数据。

示例:查询数据库中IFM特性的接口配置,RPC应答报文返回查询到的接口信息。

  • RPC请求

    <?xml version="1.0" encoding="utf-8"?>
    <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="831">
      <get>
        <filter type="subtree">
          <ifm:ifm xmlns:ifm="urn:huawei:yang:huawei-ifm">
            <ifm:interfaces>
              <ifm:interface/>
            </ifm:interfaces>
          </ifm:ifm>
        </filter>
      </get>
    </rpc>
  • RPC应答

    <?xml version="1.0" encoding="utf-8"?>
    <data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
      <ifm xmlns="urn:huawei:yang:huawei-ifm">
        <interfaces>
          <interface>
            <name>GigabitEthernet1/0/0</name>
            <index>4</index>
            <class>main-interface</class>
            <type>MEth</type>
            <position>0/0/0</position>
            <number>0/0/0</number>
            <admin-status>up</admin-status>
            <link-protocol>ethernet</link-protocol>
            <statistic-enable>true</statistic-enable>
            <mtu>1500</mtu>
            <spread-mtu-flag>false</spread-mtu-flag>
            <vrf-name>_public_</vrf-name>
            <dynamic>
              <oper-status>up</oper-status>
              <physical-status>up</physical-status>
              <link-status>up</link-status>
              <mtu>1500</mtu>
              <bandwidth>100000000</bandwidth>
              <ipv4-status>up</ipv4-status>
              <ipv6-status>down</ipv6-status>
              <is-control-flap-damp>false</is-control-flap-damp>
              <mac-address>3868-f711-1110</mac-address>
              <line-protocol-up-time>2019-05-25T02:33:46Z</line-protocol-up-time>
              <is-offline>false</is-offline>
              <link-quality-grade>good</link-quality-grade>
            </dynamic>
            <mib-statistics>
              <receive-byte>0</receive-byte>
              <send-byte>0</send-byte>
              <receive-packet>363175</receive-packet>
              <send-packet>61660</send-packet>
              <receive-unicast-packet>66334</receive-unicast-packet>
              <receive-multicast-packet>169727</receive-multicast-packet>
              <receive-broad-packet>127122</receive-broad-packet>
              <send-unicast-packet>61363</send-unicast-packet>
              <send-multicast-packet>0</send-multicast-packet>
              <send-broad-packet>299</send-broad-packet>
              <receive-error-packet>0</receive-error-packet>
              <receive-drop-packet>0</receive-drop-packet>
              <send-error-packet>0</send-error-packet>
              <send-drop-packet>0</send-drop-packet>
            </mib-statistics>
            <common-statistics>
              <stati-interval>300</stati-interval>
              <in-byte-rate>40</in-byte-rate>
              <in-bit-rate>320</in-bit-rate>
              <in-packet-rate>2</in-packet-rate>
              <in-use-rate>0.01%</in-use-rate>
              <out-byte-rate>0</out-byte-rate>
              <out-bit-rate>0</out-bit-rate>
              <out-packet-rate>0</out-packet-rate>
              <out-use-rate>0.00%</out-use-rate>
              <receive-byte>0</receive-byte>
              <send-byte>0</send-byte>
              <receive-packet>363183</receive-packet>
              <send-packet>61662</send-packet>
              <receive-unicast-packet>66334</receive-unicast-packet>
              <receive-multicast-packet>169727</receive-multicast-packet>
              <receive-broad-packet>127122</receive-broad-packet>
              <send-unicast-packet>61363</send-unicast-packet>
              <send-multicast-packet>0</send-multicast-packet>
              <send-broad-packet>299</send-broad-packet>
              <receive-error-packet>0</receive-error-packet>
              <receive-drop-packet>0</receive-drop-packet>
              <send-error-packet>0</send-error-packet>
              <send-drop-packet>0</send-drop-packet>
              <send-unicast-bit>0</send-unicast-bit>
              <receive-unicast-bit>0</receive-unicast-bit>
              <send-multicast-bit>0</send-multicast-bit>
              <receive-multicast-bit>0</receive-multicast-bit>
              <send-broad-bit>0</send-broad-bit>
              <receive-broad-bit>0</receive-broad-bit>
              <send-unicast-bit-rate>0</send-unicast-bit-rate>
              <receive-unicast-bit-rate>0</receive-unicast-bit-rate>
              <send-multicast-bit-rate>0</send-multicast-bit-rate>
              <receive-multicast-bit-rate>0</receive-multicast-bit-rate>
              <send-broad-bit-rate>0</send-broad-bit-rate>
              <receive-broad-bit-rate>0</receive-broad-bit-rate>
              <send-unicast-packet-rate>0</send-unicast-packet-rate>
              <receive-unicast-packet-rate>0</receive-unicast-packet-rate>
              <send-multicast-packet-rate>0</send-multicast-packet-rate>
              <receive-multicast-packet-rate>0</receive-multicast-packet-rate>
              <send-broadcast-packet-rate>0</send-broadcast-packet-rate>
              <receive-broadcast-packet-rate>0</receive-broadcast-packet-rate>
            </common-statistics>
          </interface>
      </ifm>
    </data>

翻译
下载文档
更新时间:2020-01-09

文档编号:EDOC1100075464

浏览量:12997

下载量:225

平均得分:
本文档适用于这些产品

相关版本

相关文档

Share
上一页 下一页