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

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

提示

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

升级

CX916, CX916L, CX930 交换模块 V100R001 诊断命令参考 04

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

display netconf data-model

命令功能

display netconf data-model命令用来在设备上查看NETCONF Schema或NETCONF YANG加载状况。

命令格式

display netconf data-model [ [ application-name application-name [ name-space name-space ] [ schema-type { action | cfg | oper | type | method | notification } [ verbose ] ] ] | load-fail | patch | module ]

display netconf data-model module name module-or-submodule-name [ revision revision-id ] [ format format-type ]

参数说明

参数 参数说明 取值
application-name application-name

显示指定应用清单名称的NETCONF数据模块加载的Schema信息。

输入“?”根据设备上的显示选取。
name-space name-space

显示指定XML空间名称的NETCONF数据模块加载的Schema信息。

字符串形式,取值范围是1~63,必须是NETCONF管理的XML空间名称。

缺省情况下,数据模块XML空间名称是http://www.huawei.com/netconf/vrp。

schema-type

显示指定Schema类型的NETCONF数据模块加载的Schema信息。

Schema类型如下:
  • action
  • cfg
  • oper
  • type
  • method
  • notification

缺省情况下,Schema类型是cfg。

verbose

显示NETCONF数据模块加载的Schema详细信息。

-
load-fail

显示NETCONF数据模块加载失败的Schema信息。

-
patch

显示补丁操作的相关信息。

-
module

显示支持YANG模块的相关信息。

-
name module-or-submodule-name

指定YANG支持的模块名或子模块名。

必须是已存在的module-or-submodule-name。

revision revision-id

显示指定版本号的标准YIN模型信息。

如果不指定revision时,则查看设备当前已加载的最新版本号的标准YIN模型信息。

必须是已存在的revision-id。

format format-type

指定数据格式。

显示格式如下:
  • yang
  • yin
  • xsd
  • rnc
  • rng

缺省情况下,数据格式是yang。目前支持YANG和YIN格式。

视图

诊断视图

缺省级别

3:管理级

任务名称和操作类型

任务名称 操作类型
netconf read

使用指南

当用户需要查看NETCONF Schema或NETCONF YANG加载状况,可通过本命令查看。

使用实例

# 查看NETCONF数据模块加载的Schema应用清单。

<HUAWEI> system-view
[~HUAWEI] diagnose
[~HUAWEI-diagnose] display netconf data-model
LIST OF APPLICATIONS MANAGED BY NETCONF :

Application Name : ethernet
Application Namespace : http://www.huawei.com/netconf/vrp
        Schema Type : cfg
        Schema Type : oper
        Schema Type : action
        Schema Type : data-type
        Schema Type : method

Application Name : ftpc
Application Namespace : http://www.huawei.com/netconf/vrp
        Schema Type : cfg
        Schema Type : oper
        Schema Type : action
        Schema Type : data-type

Application Name : timerange
Application Namespace : http://www.huawei.com/netconf/vrp
        Schema Type : cfg
        Schema Type : oper
        Schema Type : data-type

Application Name : devm
Application Namespace : http://www.huawei.com/netconf/vrp
        Schema Type : cfg
        Schema Type : oper
        Schema Type : action
        Schema Type : data-type
        Schema Type : notification
  ---- More ----
说明:

display netconf data-model显示信息请以设备显示为准,以上显示信息仅供参考。

# 查看应用名称是system,Schema类型是cfg的NETCONF数据模块加载的Schema信息。

<HUAWEI> system-view
[~HUAWEI] diagnose
[~HUAWEI-diagnose] display netconf data-model application-name system name-space http://www.huawei.com/netconf/vrp schema-type cfg
<?xml version="1.0" encoding="UTF-8"?>
<system xmlns="http://www.huawei.com/netconf/vrp" format-version="1.0" content-version="1.0" schema-scope="service">
  <systemInfo>
    <sysName/>
    <sysContact/>
    <sysLocation/>
    <sysDesc/>
    <sysObjectId/>
    <sysGmtTime/>
    <sysUpTime/>
    <sysService/>
    <platformName/>
    <platformVer/>
    <productName/>
    <productVer/>
    <patchVer/>
    <esn/>
    <mac/>
    <lsRole/>
    <authenFlag/>
  </systemInfo>
</system>

# 查看应用名称是system,Schema类型是cfg的NETCONF数据模块加载的Schema详细信息。

<HUAWEI> system-view
[~HUAWEI] diagnose
[~HUAWEI-diagnose] display netconf data-model application-name system name-space http://www.huawei.com/netconf/vrp schema-type cfg verbose
<?xml version="1.0" encoding="UTF-8"?>                                                                                              
<system xmlns="http://www.huawei.com/netconf/vrp" format-version="1.0" content-version="1.0" module-name="huawei-system" schema-scop
e="service">                                                                                                                        
  <systemInfo mim-class-id="0xd404071" access="readCreate" task-id="54" independent-transaction="false" lsn_access="read-write" vsn_
attached_access="read-write" ps_admin_access="read-write" ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write
" vs0_access="read-write" vs_deattached_access="read-write" clear-config-disabled="false">                                          
    <sysName id="1" access="readWrite" data-type="TEXT" key="false" mandatory="false" unique="false" auto-key="false" key-ref="false
" key-ref-only="false" min-length="1" length="246" default-val="HUAWEI" lsn_access="read-write" vsn_attached_access="read-write" ps_
admin_access="read-write" ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write" vs0_access="read-write" vs_dea
ttached_access="read-write"/>                                                                                                       
    <sysContact id="2" access="readWrite" data-type="TEXT" key="false" mandatory="false" unique="false" auto-key="false" key-ref="fa
lse" key-ref-only="false" min-length="1" length="255" default-val="R&amp;D Beijing, Huawei Technologies co.,Ltd." lsn_access="read-w
rite" vsn_attached_access="read-write" ps_admin_access="read-write" ps_access="read-write" ls_admin_access="read-write" ls0_access="
read-write" vs0_access="read-write" vs_deattached_access="read-write"/>                                                             
    <sysLocation id="3" access="readWrite" data-type="TEXT" key="false" mandatory="false" unique="false" auto-key="false" key-ref="f
alse" key-ref-only="false" min-length="1" length="255" default-val="Beijing China" lsn_access="read-write" vsn_attached_access="read
-write" ps_admin_access="read-write" ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write" vs0_access="read-wr
ite" vs_deattached_access="read-write"/>                                                                                            
    <sysDesc id="4" access="readOnly" data-type="STRING" key="false" mandatory="false" unique="false" auto-key="false" key-ref="fals
e" key-ref-only="false" min-length="1" length="254" lsn_access="read-write" vsn_attached_access="read-write" ps_admin_access="read-w
rite" ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write" vs0_access="read-write" vs_deattached_access="read
-write"/>                                                                                                                           
    <sysObjectId id="5" access="readOnly" data-type="STRING" key="false" mandatory="false" unique="false" auto-key="false" key-ref="
false" key-ref-only="false" min-length="1" length="254" lsn_access="read-write" vsn_attached_access="read-write" ps_admin_access="re
ad-write" ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write" vs0_access="read-write" vs_deattached_access="
read-write"/>                                                                                                                       
    <sysGmtTime id="6" access="readOnly" data-type="UINT32" key="false" mandatory="false" unique="false" auto-key="false" key-ref="f
alse" key-ref-only="false" min-val="0" max-val="0" default-val="0" lsn_access="read-write" vsn_attached_access="read-write" ps_admin
_access="read-write" ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write" vs0_access="read-write" vs_deattach
ed_access="read-write"/>                                                                                                            
    <sysUpTime id="7" access="readOnly" data-type="UINT32" key="false" mandatory="false" unique="false" auto-key="false" key-ref="fa
lse" key-ref-only="false" min-val="0" max-val="0" default-val="0" lsn_access="read-write" vsn_attached_access="read-write" ps_admin_
access="read-write" ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write" vs0_access="read-write" vs_deattache
d_access="read-write"/>                                                                                                             
    <sysService id="8" access="readOnly" data-type="UINT32" key="false" mandatory="false" unique="false" auto-key="false" key-ref="f
alse" key-ref-only="false" min-val="0" max-val="127" lsn_access="read-write" vsn_attached_access="read-write" ps_admin_access="read-
write" ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write" vs0_access="read-write" vs_deattached_access="rea
d-write"/>                                                                                                                          
    <platformName id="9" access="readOnly" data-type="STRING" key="false" mandatory="false" unique="false" auto-key="false" key-ref=
"false" key-ref-only="false" min-length="1" length="254" lsn_access="read-write" vsn_attached_access="read-write" ps_admin_access="r
ead-write" ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write" vs0_access="read-write" vs_deattached_access=
"read-write"/>                                                                                                                      
    <platformVer id="10" access="readOnly" data-type="STRING" key="false" mandatory="false" unique="false" auto-key="false" key-ref=
"false" key-ref-only="false" min-length="1" length="254" lsn_access="read-write" vsn_attached_access="read-write" ps_admin_access="r
ead-write" ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write" vs0_access="read-write" vs_deattached_access=
"read-write"/>                                                                                                                      
    <productName id="11" access="readOnly" data-type="STRING" key="false" mandatory="false" unique="false" auto-key="false" key-ref=
"false" key-ref-only="false" min-length="1" length="254" lsn_access="read-write" vsn_attached_access="read-write" ps_admin_access="r
ead-write" ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write" vs0_access="read-write" vs_deattached_access=
"read-write"/>                                                                                                                      
    <productVer id="12" access="readOnly" data-type="STRING" key="false" mandatory="false" unique="false" auto-key="false" key-ref="
false" key-ref-only="false" min-length="1" length="254" lsn_access="read-write" vsn_attached_access="read-write" ps_admin_access="re
ad-write" ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write" vs0_access="read-write" vs_deattached_access="
read-write"/>                                                                                                                       
    <patchVer id="13" access="readOnly" data-type="STRING" key="false" mandatory="false" unique="false" auto-key="false" key-ref="fa
lse" key-ref-only="false" min-length="1" length="254" lsn_access="read-write" vsn_attached_access="read-write" ps_admin_access="read
-write" ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write" vs0_access="read-write" vs_deattached_access="re
ad-write"/>                                                                                                                         
    <esn id="14" access="readOnly" data-type="STRING" key="false" mandatory="false" unique="false" auto-key="false" key-ref="false" 
key-ref-only="false" min-length="1" length="254" lsn_access="read-write" vsn_attached_access="read-write" ps_admin_access="read-writ
e" ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write" vs0_access="read-write" vs_deattached_access="read-wr
ite"/>                                                                                                                              
    <mac id="15" access="readOnly" data-type="STRING" key="false" mandatory="false" unique="false" auto-key="false" key-ref="false" 
key-ref-only="false" min-length="1" length="49" lsn_access="read-write" vsn_attached_access="read-write" ps_admin_access="read-write
" ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write" vs0_access="read-write" vs_deattached_access="read-wri
te"/>                                                                                                                               
    <lsRole id="16" access="readOnly" data-type="ENUMTYPE" key="false" mandatory="false" unique="false" auto-key="false" key-ref="fa
lse" key-ref-only="false" data-type-name="systemLsRoleType" lsn_access="read-write" vsn_attached_access="read-write" ps_admin_access
="read-write" ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write" vs0_access="read-write" vs_deattached_acce
ss="read-write"/>                                                                                                                   
    <authenFlag id="17" access="readOnly" data-type="BOOL" key="false" mandatory="false" unique="false" auto-key="false" key-ref="fa
lse" key-ref-only="false" default-val="false" lsn_access="read-write" vsn_attached_access="read-write" ps_admin_access="read-write" 
ps_access="read-write" ls_admin_access="read-write" ls0_access="read-write" vs0_access="read-write" vs_deattached_access="read-write
"/>                                                                                                                                 
  </systemInfo>                                                                                                                     
</system> 
说明:

display netconf data-model application-name system name-space http://www.huawei.com/netconf/vrp schema-type cfg verbose显示信息请以设备显示为准,以上显示信息仅供参考。

# NETCONF数据模块加载失败的Schema信息。

<HUAWEI> system-view
[~HUAWEI] diagnose
[~HUAWEI-diagnose] display netconf data-model load-fail
Number of applications present                      : 120
Number of applications loaded                       : 120
The following are the list of failed application schema files information
-------------------------------------------------------------------------
Filename              : AAA_cfg.ncf
Application Name      : aaa
Application Namespace : http://www.huawei.com/netconf/vrp
Schema Type           : cfg
Class ID              : 0x827407a
Attribute ID          : 2
Error Info            : Attr recordingTacacsGroup in instance recordingScheme with incorrect key-ref flag

Filename              : AAA_oper.ncf
Application Name      : aaa
Application Namespace : http://www.huawei.com/netconf/vrp
Schema Type           : oper
Class ID              : 0x8274076
Error Info            : Instance domain have name-id 1 as KEY, but should set index-id 8 as key
---- More ----
表13-13 display netconf data-model命令输出信息描述

项目

描述

Application Name

NETCONF数据模块加载的Schema应用清单名称。

Application Namespace

NETCONF数据模块加载的Schema的XML空间名称。

Schema Type

NETCONF数据模块加载的Schema的类型。

  • action
  • cfg
  • oper
  • data-type
  • method
  • notification

Number of applications present

Schema文件出现的数量。

Number of applications loaded

加载成功的Schema文件数量。

Filename

Schema文件名称。

Class ID

Schema文件加载失败的类ID。

Attribute ID

Schema文件加载失败的属性ID。

Error Info

Schema文件加载失败的原因。

# 查看补丁操作的相关信息。

<HUAWEI> system-view
[~HUAWEI] diagnose
[~HUAWEI-diagnose] display netconf data-model patch
--------------------------------------------------------------------------------------------------------------------------------------------------
OperationTime : 2015-12-08, 01:02:50:365
OperationType : 0
PatchType : 0
resultType : 0
errorInfo : --

OperationTime : 2015-12-08, 01:02:50:374
OperationType : 1
PatchType : 0
resultType : 4195920
errorInfo : Proc binFile failed!/FileName: AAA_cfg.xml FilePath: patch/lib read scheam bin file failed/ Dyn res files updata failed!

OperationTime : 2015-12-08, 01:02:50:376
OperationType : 1
PatchType : 0
resultType : 4195920
errorInfo : Patch file not exist!/FileName: AAA_cfg.xml FilePath: patch/lib read scheam bin file failed/Patch file not exist!/FileName: AAA

OperationTime : 2015-12-08, 01:02:50:650
OperationType : 5
PatchType : 0
resultType : 0
errorInfo : --
--------------------------------------------------------------------------------------------------------------------------------------------------
表13-14 display netconf data-model patch命令输出信息描述

项目

描述

OperationTime

补丁执行时间。

OperationType

补丁运行类型:
  • 0:补丁使能前。
  • 1:补丁使能。
  • 2:补丁去使能前。
  • 3:补丁去使能。
  • 4:补丁删除前。
  • 5:补丁删除。
PatchType
补丁类型:
  • 0:schema补丁。
  • 1:ml补丁。
说明:
当前只支持0。

resultType

执行结果:
  • 0:成功。
  • 非0:失败。

errorInfo

执行失败时的具体信息。

# 查看支持YANG格式的APP信息。
<HUAWEI> system-view
[~HUAWEI] diagnose
[~HUAWEI-diagnose] display netconf data-model module
------------------------------------------------------------------------------------------------------------------------------------
Name            : huawei-aaa
Revision        : 2017-03-23
Namespace       : http://www.huawei.com/netconf/vrp/huawei-aaa
HostNamespace   : http://www.huawei.com/netconf/vrp
HostAppName     : aaa

Name            : huawei-aaa-action
Revision        : 2017-03-23
Namespace       : http://www.huawei.com/netconf/vrp/huawei-aaa
HostNamespace   : --
HostAppName     : --

Name            : huawei-aaa-lam
Revision        : 2017-03-23
Namespace       : http://www.huawei.com/netconf/vrp/huawei-aaa
HostNamespace   : --
HostAppName     : --

Name            : huawei-aaa-lam-action
Revision        : 2017-03-23
Namespace       : http://www.huawei.com/netconf/vrp/huawei-aaa
HostNamespace   : --
HostAppName     : --
  ---- More ----
# 查看指定版本号的YANG支持模块的相关信息。
<HUAWEI> system-view
[~HUAWEI] diagnose
[~HUAWEI-diagnose] display netconf data-model module name huawei-ifm revision 2017-03-23 format yang
module huawei-ifm {
  namespace "http://www.huawei.com/netconf/vrp/huawei-ifm";
  prefix ifm;
  import huawei-pub-type {
    prefix pub-type;
  }
  import ietf-inet-types {
    prefix inet;
  }
  import huawei-extension {
    prefix ext;
  }
  ---- More ----
说明:

display netconf data-model module name huawei-ifm revision 2017-03-23 format yang显示信息请以设备显示为准,以上显示信息仅供参考。

表13-15 display netconf data-model module命令输出信息描述

项目

描述

Name

模块名称。

Revision

版本号。

Namespace

NETCONF数据模块加载的schema的XML空间名称。

HostNamespace

主机命令空间。

HostAppName

主机APP名称。

翻译
下载文档
更新时间:2019-08-09

文档编号:EDOC1000178140

浏览量:5536

下载量:56

平均得分:
本文档适用于这些产品
相关版本
相关文档
Share
上一页 下一页