Highlighted
Cookie_Wang
1 Nickel

EMC SMI 查询主机信息

转到解答

大家谁知道怎么通过smi查询vnx上面的主机列表?我在vnx上面都能看到主机列表信息。我通过查询:SE_StorageHardwareID出来的只有wwpn,主机的名字,IP都是null。

1.png

2.png

标记 (3)
0 项奖励
1 个已接受解答

已接受的解答
Roger_Wu
4 Ruthenium

Re: EMC SMI 查询主机信息

转到解答

手动注册initiator的方法在老版本的guide中有举例,你用老的method试试看:

Clar_StorageHardwareIDManagementService::EMCManuallyRegisterHostInitiators

Note: : All information supplied to EMCManuallyRegisterHostInitiators MUST EXACTLY

match the host and HBA hardware. If incorrect registration information is supplied to this

method, the host will NOT have the correct registration to recognize any CLARiiON storage

devices that were specifically provisioned to this host in the storage area network.

The following is the MOF for EMCManuallyRegisterHostInitiators:

uint32 EMCManuallyRegisterHostInitiators

( [ IN]

string Hostname,

[ IN,

Description( "The type of unregistered StorageID where Fibre=2

and iSCSI=5.")]

uint16 UnRegisteredStorageIDType,

[ IN]

string UnRegisteredStorageIDs[],

[ IN]

string UnRegisteredNodeIDs[],

[ IN]

CIM_ProtocolEndpoint REF TargetEndpoints[],

[ IN(false),

OUT]

CIM_StorageHardwareID REF RegisteredStorageIDs[] );

总之最新的guide移除了VNX、CLARiiON的内容肯定有原因的,我去问问product team为啥给移除了...

0 项奖励
13 条回复13
Roger_Wu
4 Ruthenium

Re: EMC SMI 查询主机信息

转到解答

存储是VNX?你参考这篇文档SMI-S Programmer Guide for VNX试试,有公网下载链接:http://www.emc.com/collateral/TechnicalDocument/docu47566.pdf


和EMC SMI-S Provider Programmer’s Guide内容略有不同(案例以VMAX为主)。里面还有不少use case可以参考。


另外一些可用资源可以在EMC Developer Network上找到:

https://developer-content.emc.com/developer/devcenters/storage/snia/smi-s/index.htm

0 项奖励
Cookie_Wang
1 Nickel

Re: EMC SMI 查询主机信息

转到解答

请问你知道调用按个path吗?这个文档看了,没找到...谢谢了!

0 项奖励
Roger_Wu
4 Ruthenium

Re: EMC SMI 查询主机信息

转到解答

StorageHardwareID对应的就是Initiator,只获得WWN也正常。

最新的SMI-S Provider Guide移除了对VNX、CLARiiON支持的内容,Release Notes里也不再注明支持VNX/CLARiiON,VNX上一些功能不正常也是有可能的。

可以去EMC Developer Network上的下载一些老版本的Programmer Guide对比一下:

https://developer-content.emc.com/developer/devcenters/storage/snia/smi-s/downloads/SMIProvider_V4.6...

或者

https://developer-content.emc.com/developer/devcenters/storage/snia/smi-s/downloads/SMIProvider_Prog...

0 项奖励
Cookie_Wang
1 Nickel

Re: EMC SMI 查询主机信息

转到解答

StorageHardwareID是能获取到wwn,但是我想注册一个StorageHardwareID,注册显示成功但是在vnx界面上不显示我注册的资源。

有没有文档指明有没有支持查询主机这块?谢谢!

见下面图:

123123.png

321321.png

0 项奖励
Roger_Wu
4 Ruthenium

Re: EMC SMI 查询主机信息

转到解答

手动注册initiator的方法在老版本的guide中有举例,你用老的method试试看:

Clar_StorageHardwareIDManagementService::EMCManuallyRegisterHostInitiators

Note: : All information supplied to EMCManuallyRegisterHostInitiators MUST EXACTLY

match the host and HBA hardware. If incorrect registration information is supplied to this

method, the host will NOT have the correct registration to recognize any CLARiiON storage

devices that were specifically provisioned to this host in the storage area network.

The following is the MOF for EMCManuallyRegisterHostInitiators:

uint32 EMCManuallyRegisterHostInitiators

( [ IN]

string Hostname,

[ IN,

Description( "The type of unregistered StorageID where Fibre=2

and iSCSI=5.")]

uint16 UnRegisteredStorageIDType,

[ IN]

string UnRegisteredStorageIDs[],

[ IN]

string UnRegisteredNodeIDs[],

[ IN]

CIM_ProtocolEndpoint REF TargetEndpoints[],

[ IN(false),

OUT]

CIM_StorageHardwareID REF RegisteredStorageIDs[] );

总之最新的guide移除了VNX、CLARiiON的内容肯定有原因的,我去问问product team为啥给移除了...

0 项奖励
Cookie_Wang
1 Nickel

Re: EMC SMI 查询主机信息

转到解答

这个方法我测试了不报错,但是成功之后接口能查询出来,VNX的管理界面没有显示。而且没有办法删除EMCManuallyRegisterHostInitiators或者StorageHardwareID

0 项奖励
Cookie_Wang
1 Nickel

Re: EMC SMI 查询主机信息

转到解答

请问这个UnRegisteredNodeIDs是怎么获取的?是什么值?不太明白,非常感谢你的支持!

0 项奖励
Cookie_Wang
1 Nickel

Re: EMC SMI 查询主机信息

转到解答

大侠:我用EMCManuallyRegisterHostInitiators创建成功了,非常感谢!

但是有两个问题麻烦给咨询一下:

1.EMCManuallyRegisterHostInitiators这里面没有办法设置IpAddress

2.VNX上的主机信息没有办法获取到,不知道怎么获取

3.在vnx操作界面有个initiators,里面有显示status,这个请问是怎么获取?

非常感谢!

0 项奖励
Roger_Wu
4 Ruthenium

Re: EMC SMI 查询主机信息

转到解答

手动注册的host, IP意义不大(特指FC initiator,iSCSI注册有专门的use case)。所以我想开发人员可能在早期版本就给忽略了,毕竟不影响后期LUN划分等使用。

后面的问题你试一下老版本Guide里的其他use case。你能下载不?我试了下应该不需要权限。

Clar_StorageHardwareIDManagementService::EMCGetRegistrationState
SMI-S Provider provides information that indicates whether or not an HBA is registered in a
CLARiiON system. This allows a CIM client to determine if a StorageHardwareID is
registered in the CLARiiON Access Logix database. Below is the MOF for
EMCGetRegistrationState.
uint32 EMCGetRegistrationState
( [ IN]
CIM_StorageHardwareID REF HardwareID,
   [ IN(false),
     OUT,
     ValueMap { "0", "1", "2", "3" },
    Values { "Unknown", "Other", "Registered", "Unregistered" } ]
   uint16 EMCRegistrationState );


Clar_ControllerConfigurationService::ExposePathsWithNameAndHostType
A client can associate StorageHardwareIDs to a StorageClientSettingData instance to
request that the element exhibits setting-specific behavior.
The method ExposePathsWithNameAndHostType can include the ClientSettingData
parameter containing the required OS-specific behavior:
(EMCProvider:5988) ? im
ObjectPath:
Clar_ControllerConfigurationService.CreationClassName="Clar_Control
lerConfigurationService",Name="
EMCControllerConfigurationService",SystemCreationClassName="Clar_Stora
geSystem",SystemName="CLARiiON+FNM00104500225"
Method Name[?]: ExposePathsWithNameAndHostType
Input parameter name ('-' to quit) [?]: ClientSettingData
Type[?]: reference
Value [?]:
Clar_StorageClientSettingData.InstanceID="CLARiiON+FNM00104500225+3
+1+Windows+Cluster"
Input parameter name ('-' to quit) [?]: InitiatorPortIDs
Parameter InitiatorPortIDs is an array parameter.
Types supported: uint16, uint32, uint64, string, reference, instance,
datetime
Type[?]: string
Value []: EEEEDDDDEEEEDDDD:12341234EEEEDDDD
Value []:
Input parameter name ('-' to quit) [?]: ProtocolControllers
Parameter ProtocolControllers is an array parameter.
Types supported: uint16, uint32, uint64, string, reference, instance,
datetime
Type[?]: reference
Value []:
//10.238.51.79/root/emc:Clar_LunMaskingSCSIProtocolController.Creat
ionClassName="Clar_LunMaskingSCSI
ProtocolController",DeviceID="CLARiiON+FNM00104500225+68833d6f4b1be111
8910db37168fafa0",SystemCreationClassNam
e="Clar_StorageSystem",SystemName="CLARiiON+FNM00104500225"
Value []:
Input parameter name ('-' to quit) [?]: -
++++ Testing invokeMethod:
Clar_ControllerConfigurationService.CreationClassName="Clar_Control
lerConfiguration
Service",Name="EMCControllerConfigurationService",SystemCreationClassN
ame="Clar_StorageSystem",SystemName="CLARiiON+FNM00104500225" ++++