Community in read only mode June 18 & 19
This community will be set in READ ONLY mode for a while on Tuesday June 18 into Wednesday June 19 while we import content and users from our Micro Focus Forums community site. MORE INFORMATION

Request for discovery Hitachi VSP-G200 storage by CIM Protocol

Request for discovery Hitachi VSP-G200 storage by CIM Protocol

We need to discover Hitachi VSP-G200 storage by CIM Protocol, but current discovery (Storage Devices Connection by CIM and Storage Devices Topology by CIM) doesn't support this storage. The discovery supports hitachi arrays, but only arrays with "root/smis/current" namespace . For new Hitachi storages namespace is "root/hitachi/smis".

I'm not first one who needs this feature -

https://community.softwaregrp.com/t5/CMS-UCMDB-and-UD-User/Discovery-of-Hitachi-storage-array/td-p/1626960

https://community.softwaregrp.com/t5/CMS-UCMDB-and-UD-User/Hitatchi-storage-discovery/td-p/231773

 

Ps.

I've already done my own research for this case and I can say that current discovery works fine for Hitachi VSP-G200 with a little bit improvements:

1. add new namespace to cimCategories.xml

            <namespace>
                <name>root/hitachi/smis</name>
                <class>
                    <name>HITACHI_StorageSystem</name>
                    <min-count>1</min-count>
                </class>
            </namespace>

2. change smis_topology.py (I've attached this file)

HITACHINAMESPACENEW = 'root/hitachi/smis'
NAMESPACE2VENDORMAP = {
    DEFAULTNAMESPACE:   'cimv2',
    L3PARNAMESPACE:     'tpd',
    EVANAMESPACE:       'eva',
    LISTARRAY13:        'netapp',
    EMCNAMESPACE:       'emc',
    BROCADENAMESPACE:   'brocade',
    HUAWEINAMESPACE:    'huawei',
    HITACHINAMESPACE:   'hitachi',
    HITACHINAMESPACENEW:'hitachi2',
    IBMNAMESPACE:       'ibm'
}
    def bindNamespace(self, ns):
        vendor = NAMESPACE2VENDORMAP.get(ns)
        if vendor == 'hitachi2':
            vendor = 'hitachi' 
        script =  'smis_'+vendor
        className = 'Namespace'
        logger.debug("Namespace vendor name %s" % vendor)
        module = __import__(script)
        if hasattr(module, className):
            nampespaceClass = getattr(module, className)
            self.namespace = nampespaceClass()
            logger.debug("Imported the module %s" % script)
            logger.debug("Got the namespace %s" % self.namespace)
        else:
            logger.debug("Failed to import the module %s" % script)

I hope it will be useful for RnD. If RnD needs communication log please contact with me by email.

 

 

Tags (1)
4 Comments
Dmitry P Super Contributor.
Super Contributor.
Also the solution works not only for VSP-G200, but for VSP-F800 and VSP-F800 too.
mike_toronto2 Honored Contributor.
Honored Contributor.

Silly question, what do you have to do on the Hitachi side to enable this discovery? is there a user account to create somewhere? I know 0 about storage... 

Micro Focus Expert
Micro Focus Expert
Status changed to: Waiting for Votes

The idea has received an initial review to ensure adherence to our idea submission and community guidelines. More information may be needed at this stage and we expect the community to help prioritize the idea with comments and voting

Dmitry P Super Contributor.
Super Contributor.

mike_toronto2 - if you use Hitachi Storage Manager just create user there with SMI-S read only permission. If not you should create user for each storage device.

Discovered topology will be like this:

storage_topology_sample.JPG

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.