开始新对话

此帖子已超过 5 年

Solved!

Go to Solution

4476

2015年5月26日 19:00

EMC SMI 查询主机信息

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

1.png

2.png

4K 消息

2015年5月27日 02:00

手动注册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为啥给移除了...

4K 消息

2015年5月26日 20:00

存储是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

29 消息

2015年5月26日 23:00

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

29 消息

2015年5月27日 02:00

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

29 消息

2015年5月27日 02:00

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

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

见下面图:

123123.png

321321.png

4K 消息

2015年5月27日 02:00

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.6PG.pdf

或者

https://developer-content.emc.com/developer/devcenters/storage/snia/smi-s/downloads/SMIProvider_ProgrammersGuide_V4.5.pd…

29 消息

2015年5月27日 03:00

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

29 消息

2015年5月27日 04:00

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

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

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

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

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

非常感谢!

4K 消息

2015年5月28日 00:00

手动注册的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" ++++

29 消息

2015年5月28日 02:00

谢谢回复,

请问ClientSettingData这个是做什么用的?一直没有明白这个,谢谢!

4K 消息

2015年5月28日 02:00

可以用来获得Initiator的Failover Mode和Initiator Type设定,这两个参数的概念参考:

故障转移模式(Failover Mode)简介

各种主机部署故障转移Failover的详细配置

29 消息

2015年5月28日 03:00

谢谢,请问你知道怎么创建一个storaggroup吗?通过smi。是用LunMaskingSCSIProtocolController?吗,调用那个方法?

谢谢!

4K 消息

2015年5月28日 23:00

Masking and Mapping里就三个命令,ExposePaths、ExposePathsWithNameAndHostType和HidePaths。分别是创建和删除Storage Group,指南里都有介绍,你照着use case试一下吧。

找不到事件!

Top