资源管理接口
设置设备信息查询条件
功能说明
设置查询设备信息的条件,条件包括三个:
- 设置需要查询的资源DN。
- 设置需要查询的管理对象树的范围。
- 设置需要查询的管理对象树的深度。
MIB节点定义
设置设备信息查询条件的节点是hwIMAPNorthboundI2000Topo,节点OID为1.3.6.1.4.1.2011.2.15.2.101.5.1。其中包含三个子节点,如表4-7所示。
节点名称 |
子节点名称 |
操作权限 |
描述 |
---|---|---|---|
hwIMAPNorthboundI2000Topo |
iMAPNorthboundTopoBaseDN |
read-write |
设置需要查询的资源DN。 |
iMAPNorthboundTopoScope |
read-write |
设置需要查询的管理对象树的范围。 |
|
iMAPNorthboundTopoLevel |
read-write |
设置需要查询的管理对象树的深度。 |
(1) 设置需要查询的资源DN。
节点OID为1.3.6.1.4.1.2011.2.15.2.101.5.1.1 。
完整路径为:iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).huawei(2011).products(2).hwNetManagement(15).iMAPNorthbound(2).hwIMAPNorthboundDeviceinfo(101).hwIMAPNorthboundI2000Deviceinfo(5).hwIMAPNorthboundI2000Topo(1).iMAPNorthboundTopoBaseDN(1)
节点名称 |
数据类型 |
最大访问权限 |
含义 |
---|---|---|---|
iMAPNorthboundTopoBaseDN |
OCTET STRING |
read-write |
设置需要查询的资源DN。 |
(2) 设置需要查询的管理对象树的范围。
节点OID为1.3.6.1.4.1.2011.2.15.2.101.5.1.2 。
完整路径为:iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).huawei(2011).products(2).hwNetManagement(15).iMAPNorthbound(2).hwIMAPNorthboundDeviceinfo(101).hwIMAPNorthboundI2000Deviceinfo(5).hwIMAPNorthboundI2000Topo(1).iMAPNorthboundTopoScope(2)
节点名称 |
数据类型 |
最大访问权限 |
含义 |
---|---|---|---|
iMAPNorthboundTopoScope |
INTEGER |
read-write |
设置需要查询的管理对象树的范围。 |
(3) 设置需要查询的管理对象树的深度。
节点OID为1.3.6.1.4.1.2011.2.15.2.101.5.1.3 。
完整路径为:iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).huawei(2011).products(2).hwNetManagement(15).iMAPNorthbound(2).hwIMAPNorthboundDeviceinfo(101).hwIMAPNorthboundI2000Deviceinfo(5).hwIMAPNorthboundI2000Topo(1).iMAPNorthboundTopoLevel(3)
节点名称 |
数据类型 |
最大访问权限 |
含义 |
---|---|---|---|
iMAPNorthboundTopoLevel |
INTEGER |
read-write |
设置需要查询的管理对象树的深度。 |
设置方法
- 设置需要查询的资源DN。
操作MIB节点iMAPNorthboundTopoBaseDN,使用set方式设置值为需要查询的资源DN。资源DN是字符串类型,默认值为/。
- 设置需要查询的管理对象树的范围。
操作MIB节点iMAPNorthboundTopoScope,使用set方式设置值为需要设置的级别类型。
1:仅查询指定的DN。
2:在iMAPNorthboundTopoLevel参数中设置管理对象的深度层次为n,仅获取第n层的管理对象。
3:在iMAPNorthboundTopoLevel参数中设置管理对象的深度层次为n,则获取前n层的管理对象。
4:查询指定资源包含的所有资源。
- 设置需要查询的管理对象树的深度。
操作MIB节点iMAPNorthboundTopoLevel,使用set方式设置值为需要设置的级别。级别可以是1到10之间的数字。
获取设备信息表
功能说明
使用SNMP北向查询设备信息。
MIB节点定义
节点OID为1.3.6.1.4.1.2011.2.15.2.101.5.1.4 。
完整路径为:iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).iMAP(2011).products(2).hwNetManagement(15).iMAPNorthbound(2).hwIMAPNorthboundDeviceinfo(101).hwIMAPNorthboundI2000Deviceinfo(5).hwIMAPNorthboundI2000Topo(1).iMAPNorthboundTopologyAuditTable(4).iMAPNorthboundTopologyAuditEntry(1)
节点名称 |
数据类型 |
最大访问权限 |
含义 |
---|---|---|---|
iMAPNorthboundTopologyAuditEntry |
OBJECT-IDENTIFIER |
read |
查询设备信息。 iMAPNorthboundTopologyAuditEntry.0为该节点的实例。 |
获取设备信息是通过表操作查看,表中各列的数据如表4-8所示。
节点名称 |
子节点名称 |
操作权限 |
描述 |
---|---|---|---|
iMAPNorthboundTopologyAuditEntry |
iMAPNorthboundTopoDn |
read |
管理对象的DN。 |
iMAPNorthboundTopoDeviceName |
read |
管理对象的设备名称。 |
|
iMAPNorthboundTopoIpAddress |
read |
设备的IP地址。 |
|
iMAPNorthboundTopoVendor |
read |
管理对象的卖方。 |
|
iMAPNorthboundTopoVersion |
read |
设备的版本号。 |
|
iMAPNorthboundTopoDeviceType |
read |
设备类型。 |
|
iMAPNorthboundTopoAdminStatus |
read |
管理对象的管理状态。 返回值范围:
|
|
iMAPNorthboundTopoConnectStatus |
read |
管理对象的连接状态。 返回值范围:
|
|
iMAPNorthboundTopoParentDN |
read |
管理对象父节点的DN。 |
设置方法
对节点OID为1.3.6.1.4.1.2011.2.15.2.101.5.1.4进行表查看操作。
获取链路信息表
功能说明
使用SNMP北向查询链路信息。
MIB节点定义
节点OID为:1.3.6.1.4.1.2011.2.15.2.101.5.3.1.1
完整路径为:iso(1).org(3).dod(6).internet(1).private(4).enterprises(1).iMAP(2011).products(2).hwNetManagement(15).iMAPNorthbound(2).hwIMAPNorthboundDeviceinfo(101).hwIMAPNorthboundI2000Deviceinfo(5).hwIMAPNorthboundLinkInfo(3).hwIMAPNorthboundLink(1).hwIMAPNorthboundLinkTable(1). hwIMAPNorthboundLinkEntry(1)
节点名称 |
数据类型 |
最大访问权限 |
含义 |
---|---|---|---|
hwIMAPNorthboundLinkEntry |
OBJECT-IDENTIFIER |
read |
查询链路信息。 |
获取链路信息是通过表查询操作,表中各列的数据如表4-9所示。
节点名称 |
子节点名称 |
操作权限 |
描述 |
---|---|---|---|
hwIMAPNorthboundLinkEntry |
hwIMAPNorthboundLinkDN |
只读 |
链路DN。 |
hwIMAPNorthboundLinkStatusDesc |
只读 |
链路状态,取值范围如下: 0:正常 1:未知 2:重要 3:紧急 4:离线 5:未管理 |
|
hwIMAPNorthboundLinkNameAlias |
只读 |
链路别名。 |
|
hwIMAPNorthboundLinkCategorystr |
只读 |
链路类型。 |
|
hwIMAPNorthboundLinkSrcNodeName |
只读 |
源网元别名。 |
|
hwIMAPNorthboundLinkSrcNodeIP |
只读 |
源网元IP地址。 |
|
hwIMAPNorthboundLinkSrcPortName |
只读 |
源端口名称。 |
|
hwIMAPNorthboundLinkSrcPortAlias |
只读 |
源端口别名。 |
|
hwIMAPNorthboundLinkSrcPortIP |
只读 |
源端口IP地址。 |
|
hwIMAPNorthboundLinkSrcPortOpStatus |
只读 |
源端口运行态,取值范围如下:
|
|
hwIMAPNorthboundLinkSrcPortAdminStatus |
只读 |
源端口管理态,取值范围如下:
|
|
hwIMAPNorthboundLinkDstNodeName |
只读 |
宿网元别名。 |
|
hwIMAPNorthboundLinkDstNodeIP |
只读 |
宿网元IP地址。 |
|
hwIMAPNorthboundLinkDstPortName |
只读 |
宿端口名称。 |
|
hwIMAPNorthboundLinkDstPortAlias |
只读 |
宿端口别名。 |
|
hwIMAPNorthboundLinkDstPortIP |
只读 |
宿端口IP地址。 |
|
hwIMAPNorthboundLinkDstPortOpStatus |
只读 |
宿端口运行态,取值范围如下:
|
|
hwIMAPNorthboundLinkDstPortAdminStatus |
只读 |
宿端口管理态,取值范围如下:
|
|
hwIMAPNorthboundLinkSpeed |
只读 |
链路带宽。单位:Mbit/s |
|
hwIMAPNorthboundLinkSrcNodeDN |
只读 |
源网元DN。 |
|
hwIMAPNorthboundLinkDstNodeDN |
只读 |
宿网元DN。 |
设置方法
对节点OID为1.3.6.1.4.1.2011.2.15.2.101.5.3.1.1的MIB节点进行表查看操作。