CN101520739A - Method and system for building simulator of device based on storage management plan specification - Google Patents

Method and system for building simulator of device based on storage management plan specification Download PDF

Info

Publication number
CN101520739A
CN101520739A CN200810082238A CN200810082238A CN101520739A CN 101520739 A CN101520739 A CN 101520739A CN 200810082238 A CN200810082238 A CN 200810082238A CN 200810082238 A CN200810082238 A CN 200810082238A CN 101520739 A CN101520739 A CN 101520739A
Authority
CN
China
Prior art keywords
class
service
core
cim
simulator
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200810082238A
Other languages
Chinese (zh)
Inventor
张俊伟
顾春花
徐建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
International Business Machines Corp
Original Assignee
International Business Machines Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by International Business Machines Corp filed Critical International Business Machines Corp
Priority to CN200810082238A priority Critical patent/CN101520739A/en
Publication of CN101520739A publication Critical patent/CN101520739A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a method and a system for building a simulator of an SMI-S device. The method includes the following steps: core profile service is realized according to an SMI-S-related universal equipment type so as to form a core service provider used for the universal equipment type, wherein the core profile service contains a core CIM class used for the universal equipment type; the mode definition and instance data of a specific CIM class are dug from the real service provider of the SMI-S device to be simulated; the specific CIM class and an instance thereof are built in a local repository; and the specific CIM class coming from the real service provider is mapped to the core CIM class contained in the core profile service, so that the core profile service can use the specific CIM class and the instance thereof in the local repository to carry out operation so as to form the simulator of the SMI-S device.

Description

Structure is based on the method and apparatus of the simulator of the equipment of storage management plan specification
Technical field
The present invention relates to computer realm, more specifically relate to a kind of be configured to store and test that network device management is used, based on the method and system of the simulator of the equipment of storage management plan specification (SMI-S).
Background technology
Common information model (CIM) by distributed management task groups (DMTF) exploitation is a kind of standard mode that is used to describe about the data of application and equipment, it makes keeper and software manager can control application and the equipment on the different platform in the same manner, has guaranteed in the whole network interoperability on the Internet for example.Because the common architecture of CIM, it has been widely used in managing in the management software of the various types of storages and the network equipment.
The SMI-S of storage networking industry association (snia) uses CIM as implementation model.SMI-S has defined the actuating logic process of the standard class, attribute, method and the method that are used for memory device.SMI-S allows foreign peoples's storage environment is carried out the management of simple, standardized and cost-effective.It allows the IT supvr to use the software of OEM to manage third-party storage products, or opposite.In addition, SMI-S provides public, interoperable and extendible management transmission mechanism, and irrelevant with manufacturer.Object model that is complete, unified and that strictly regulate provides the control to the logical unit number in storage area network (SAN) environment and memory block (zone) etc.SMI-S also comprises an automatic discovery system.By reducing the necessity of management special purpose interface, SMI-S will produce a very large impact total cost that has.
In CIM realizes, CIM Object Manager (CIMOM) management object among the CIM agency, these objects will be managed between CIM agency and CIM client by the CIM agreement.In typical storage management software architecture based on CIM, the CIM agency is what to be realized in the hardware device of low layer, and CIM client realizes in the management software of high level.For the storage management software of the higher level of developing the storage that can manage a lot of foreign peoples and the network equipment, for example have the control desk of graphic user interface, wish that each equipment of being managed all realizes a CIM agency.By this way, high layer software can be by the interface connection with it of CIM agreement.Therefore, low-level hardware and CIM agency is relied on by top management software.In addition, if equipment is supported the SMI-S standard, then equipment should provide SMI-S interface by the CIM agency.
Fig. 1 shows the architecture of the equipment control control desk that uses CIM.Wherein, CIMOM handles and communicates by letter and the CIM-XML coding/decoding with CIM client's HTTP (S).It is responsible for CIM pattern (schema) operation, and example and method request are transmitted to corresponding service provider (being that CIM provides device).Provide the device interface to handle CIMOM and communication between the device is provided.What all main CIMOM had defined oneself provides the device native interface.Service provider is for each equipment development and be registered in service routine among the CIMOM.It is called with operating equipment by CIMOM, and it is responsible for handling all example request, realizes externalist methodology and indication (indication) processing.
In order to realize being used for the storage management software of a lot of universal storage devices, the interface of testing these equipment is absolutely necessary.And, use for development management, importantly test fully.Yet it is difficult testing fully on real equipment and CIM agency who is realized and SMI-S service provider.Problem is: hardware is always very expensive, always hinders everyone work and share limited hardware between many people; Not enough hardware resource also can cause constraint to test more completely, for example, and when attempting to use 4 looping tests volumes to create, and when three dishes are only arranged.When carrying out pressure test, 100 dishes then more are difficult to realize if desired.
Therefore, setting up certain simulator environment, to carry out more effective test be very important.The simulator of the common apparatus by having CIM agency and SMI-S service provider can need not to use real memory device and tests top management software.
Although SMI-S has defined the standard procedure of handling any request and method, different service providers also can define will be by the specific class and the attribute of tension management application access.Therefore, some present solutions are to be the different different simulators of equipment development independently.Specifically, in the prior art,, need manually write simulator program, the behavior of analog machine according to the specification document of this equipment when needs during for an equipment development simulator.For example, if a disk has certain attribute, then set up corresponding virtual device models for this simulator program.
Yet because the quantity of different types of equipment is very big, it is with high costs and consuming time making up simulator individually in these equipment each.And in the prior art, do not exist for the method for a public simulator of a plurality of equipment developments.In addition, in order to make simulator identical with real service provider as far as possible, when this simulator of exploitation, should at first read specification (the AD HOC definition that device is provided especially wherein of real service provider, otherwise this simulator is nonsensical and initialization procedure).Yet this needs very big workload.
Obviously, need a kind of method that can make up the simulator of SMI-S equipment quicker, efficient, automatically and easily in this area.
Summary of the invention
For overcoming the above-mentioned shortcoming that exists in the prior art, and the present invention has been proposed.
According to an aspect of the present invention, a kind of method and device that is used to make up the simulator of SMI-S equipment is provided, this method may further comprise the steps: realize the service of core profile according to SMI-S for relevant common apparatus type, thereby the kernel service that is formed for described common apparatus type provides device, and wherein said core profile service comprises the core CIM class that is used for described common apparatus type; From the real service provider of the SMI-S equipment that will simulated, excavate the mode-definition and the instance data of specific CIM class, and in local storage vault, make up the described specific CIM class and the example; And will be mapped to the core CIM class that described core profile service comprises from the specific CIM class in the described real service provider, make described core profile service can use the described specific CIM class and the example in the described local storage vault to operate, thereby form the simulator of described SMI-S equipment.
Advantage of the present invention comprises:
It provide a kind of automatically, the method that is easy to makes up the simulator that is used for real hardware device (and service provider), this is very important for development﹠ testing based on the device management software of CIM;
This method can be used for being all device build simulators based on SMI-S, and is not limited to the equipment of some device type or some manufacturer;
Real equipment can be converted into virtual unit, and the assembly of virtual unit can be expanded according to user's configuration, helps very much the development﹠ testing of code, and has saved the cost that a large amount of users buys hardware device; And
Do not need expensive resource to come to be the different simulator of distinct device exploitation, thereby saved cost of development.
Description of drawings
Set forth the creative feature that is considered to characteristics of the present invention in the claims.But, below reading by the reference accompanying drawing to the detailed description of illustrative embodiment can understand better invention itself with and preferably use pattern, other target, feature and advantage, in the accompanying drawings:
Fig. 1 shows the architecture of the equipment control control desk that uses CIM;
Fig. 2 shows the design sketch that uses the constructed simulator of method of the present invention;
Fig. 3 shows the device of the simulator that is used to make up SMI-S equipment according to an embodiment of the invention;
Fig. 4 shows the concrete steps that realize the service of core profile according to embodiments of the invention;
Fig. 5 shows the model of the CreateOrModifyStoragePool method that is used for the CIM_StorageConfigurationService service class among the SMI-S;
Fig. 6 shows the exemplary realization of the depth-first class mining algorithm that uses in the embodiments of the invention;
Fig. 7 shows the synoptic diagram of mapping mechanism of the present invention;
Fig. 8 shows and uses automanual mode to come to set up as the core classes in the core services module process of mapping relations according to one embodiment of present invention;
Fig. 9 shows the mode that mapping mechanism according to an embodiment of the invention plays a role in the operational process of simulator of the present invention; And
It is the method for SMI-S device build simulator that Figure 10 shows according to embodiments of the invention.
Embodiment
Embodiments of the invention are described with reference to the accompanying drawings.Yet, should be understood that the present invention is not limited to the specific embodiment introduced.On the contrary, can consider to implement and put into practice the present invention, and no matter whether they relate to different embodiment with the combination in any of following feature and element.Therefore, following aspect, feature, embodiment and advantage for illustrative purposes only usefulness and should not be counted as the key element or the qualification of claims, unless clearly propose in the claim.
The invention provides and a kind ofly set up the quick and easy method and apparatus of the simulator of SMI-S equipment automatically by excavating existing real CIMOM server intelligently, this simulator provides the interface between high-rise storage management software and the low layer memory device.This method and apparatus is extendible virtual unit with real device translates also.Constructed simulator will have the class identical with real SMI-S equipment, attribute and method definition, and can freely be disposed and be expanded the assembly (for example disk drive, battery, storer etc.) of virtual unit by the user.
When having real service provider, do not need the user to encode by hand, do not need reading model definition and initialization data definition.Because, in simulator construction device of the present invention, provide the excavation module, be used for automatic mining and go out all class definitions of real service provider and initialization data.
Mapping relations between the standard core classes model that the present invention relates to define among self-defining expansion class of service provider (or claiming certain kinds) and the SMI-S.Mapping block in the simulator construction device of the present invention can make the expansion class model of service provider can be associated with on the core services module of having set up, thereby makes that the simulator that is generated also can operate as normal when operation expansion class model.
Fig. 2 shows the design sketch that uses the constructed simulator of method of the present invention.As shown in the figure, except that the parts such as CIMOM that comprise prior art, also comprising the SMI-S kernel service provides device, and virtual unit in this simulator.Wherein, core profile (profile) service that described SMI-S kernel service provides device to be used for providing to CIMOM the common apparatus type that is used to be correlated with that meets SMI-S, and in this process, virtual unit is operated.Described virtual unit is to form according to the relevant CIM class and the instance data thereof that are stored in the virtual unit storage vault in the simulator operational process.In the virtual unit shown in the figure, disk1, disk2 and memory1 are corresponding to assembly existing in the real equipment, and disk3 and memory2 then are the assemblies that expansion is set according to the user.
I. the device that is used to make up the simulator of SMI-S equipment of the present invention
The device that is used to make up the simulator of SMI-S equipment of the present invention is described with reference to the accompanying drawings.
Fig. 3 shows the device of the simulator that is used to make up SMI-S equipment according to an embodiment of the invention.As shown in the figure, this device 300 that is used to make up the simulator of SMI-S equipment comprises core services module 301, excavates module 302, mapping block 303, and preferably also comprise device management module 304, virtual unit storage vault 305, and CIMOM 306.Respectively each module of the device 300 of the simulator that is used for making up SMI-S equipment according to an embodiment of the invention is elaborated below.
A. core services module
Core services module 301 is used for realizing the service of core profile according to SMI-S for relevant common apparatus type, thereby the kernel service that is formed for described common apparatus type provides device, wherein said core profile service comprises the core CIM class that is used for described common apparatus, promptly is the CIM class of the standard of this common apparatus defined among the SMI-S.In a preferred embodiment of the invention, described core services module is used to following four types common apparatus type to realize the service of core profile: disk array, tape pool, switch and HBA.
In other words, will realize the service of core profile according to the SMI-S process of standard, promptly the standard feature of related hardware equipment for example, is realized the implementation that volume is created.Four kinds of type of hardwares in present SMI-S, have been defined, therefore, core services module 301 according to a preferred embodiment of the invention will comprise that following four types kernel service provides device: the kernel service of disk array, tape pool, switch and HBA provides device, and every type kernel service provides device to comprise to be used for one group of kernel service of relevant device type.The core profile service of every kind of equipment is stipulated in SMI-S.
Fig. 4 shows the concrete steps that realize the service of core profile according to embodiments of the invention.
As shown in the figure,, read the profile among the SMI-S, for example the profile of disk array, tape pool, switch and HBA etc. in step 401.
In step 402, select the profile service of required simulation in each profile.
In step 403, realize the function in these profile services, i.e. the order of (establishment/deletion/modification) related class example is handled in definition.In a preferred embodiment of the invention, realize function in the profile service by programming in the manner known to persons skilled in the art.
In step 404, with the data storage of class example in local storage vault.
Wherein, step 403 and 404 can be overlapped.In other words, in the function course in realizing the profile service, may create and in storage vault the storage class example, and may delete or revise the class example that is stored in the storage vault.
Only as example, the disk array kernel service in the core services module 301 provides the kernel service of device to comprise according to an embodiment of the invention:
■CIM_StoreageConfigurationService
■CIM_SoftwareInstallationService
■CIM_StorageHardwareManagementService
■CIM_ControllerConfigurationService
■CIM_StoragePool
■...
Therefore, in core services module 301 of the present invention, will support the method (being function) in these services, for example, the CreateOrModifyStoragePool method among the CIM_StorageConfigurationService.
Fig. 5 shows the model that is used for this CreateOrModifyStoragePool method among the SMI-S.According to this model, realize that the step of this CreateOrModifyStoragePool method (promptly handling relevant CIM class example) can be as follows:
1. create the CIM_StoragePool example;
2. inquire about parent CIM_ComputerSystem example;
3. create association class example: CIM_AllocatedFromStoragePool;
4. create association class example: CIM_HostedStoragePool;
5. the attribute of the CIM_StoragePool example of being created is set;
6. create the ConcreteJob example;
7. create CIM_AffectedJobElement.
Similarly, for the additive method among the described CIM_StorageConfigurationService, described disk array kernel service provides the additive method of other services in the device, and each method of each service in other device core service providers, also can realize, thereby be formed for the device core service provider of each common apparatus type according to the model about this method among the SMI-S.
Be to be noted that the above only is example, rather than limitation of the present invention.For example, in other embodiments of the invention, described core services module 301 can be used for for more than, be less than or be different from described four types device type and realize the service of core profile.As long as there is specification about the standard profile service of certain device type, just can use said method, according in this specification about the related description of each method in the service of the standard profile of this device type, realization is used for the various functions of the various services of this device type, and and then realizes the service provider of this device type.
B. excavate module
Excavation module 302 is used for excavating from the real service provider of the SMI-S equipment that will simulated the mode-definition and the instance data of specific CIM class, and in local virtual equipment storage vault, make up described specific CIM class and the example (in this article, described specific CIM class should be understood to include all classes in the real service provider, the expansion class that had both comprised this service provider that the SMI-S standard class is expanded and obtained, also comprise service provider the SMI-S standard class that directly adopts).Preferably, described excavation module 302 uses the depth-first class mining algorithm of the correct order that can obtain class to carry out described excavation, and carries out described structure according to the correct order of the class of described acquisition.
For example, when desire is that the service provider of the hardware device of a certain type in described four types is when generating simulator, to excavate the real service provider that module 302 is connected to this hardware device, and use depth-first class mining algorithm to excavate the storage vault of this real service provider.Mining process has two targets: excavate quasi-mode definition all in the real service provider, and it is building up in the storage vault; And excavate all examples under each class, and it is copied in the local storage vault.Therefore, after excavation, will there be the duplicate complete storage vault of storage vault in this locality with real service provider.By excavating, obtained the mode-definition of all the CIM classes in the real service provider, and obtained the instance data in the real service provider.
When making up class and copying to instance data in the local simulator storage vault, need to solve following several problems:
At first, some class among the CIM is used as superclass, or is used as the data type of another kind of attribute, method rreturn value or method parameter.For example:
class?CIM_StorageConfigurationService:CIM_Service{
uint32?CreateOrModifyStoragePool(
string?ElementName,
CIM_ConcreteJob?REF?Job,
CIM_StorageSetting?REF?Goal,
unit64?Size,
string?InPools[],
string?InExtents[],
CIM_StoragePool?REF?Pool);
……
}
Therefore, when CIM_StorageConfigurationService being building up in the local storage vault, CIM_Service should exist, and in other words, should make up CIM_Service before making up CIM_StorageConfiguration.
Secondly, also have some association classes in CIM, these association classes are used for the example of two classes is associated, and object path (being taken as the key word of example) will be placed in the example of association class.Therefore, this requires the example of these two classes to be replicated before should being replicated at the example of association class.
For addressing these problems, used following scheme in the present invention: at first, in mining process of the present invention, obtain the correct order of class; Secondly, after excavating, use the correct class order that is obtained that class is building up in the local storage vault; At last, also use this correct class order that the example of class is copied in the local storage vault.
According to a preferred embodiment of the invention, in mining process, use depth-first class mining algorithm to excavate class and obtain its correct order.Fig. 6 shows the exemplary realization of this depth-first class mining algorithm.
As shown in the figure, in step 601, excavate the service provider (the existing C IMOM that passes through) that module 302 is connected to real hardware device.
In step 602, excavate module 302 and from real service provider, obtain any one class, and such is pushed storehouse.
Whether in step 603, judging has class to need to excavate in the storehouse.If the result that should judge is for denying then process end.If the result of this judgement is for being then to forward step 604 to.
In step 604, from storehouse, take out a class.
In step 605, judge whether such is excavated.If the result of this judgement is for being then to turn back to step 603.If the result that should judge then forwards step 606 to for not.
In step 606, enumerate all properties in such, and it is pushed storehouse.
Whether in step 607, judging has attribute to need to excavate in the storehouse.If the result of this judgement is for being then to change step 608 over to.If the result that should judge then forwards step 611 to for not.
In step 608, from storehouse, take out an attribute.
In step 609, judge whether the data type of this attribute is the class of not excavated.If the result that should judge then turns back to step 607 for not.If the result of this judgement is for being then to forward step 610 to.
In step 610, this class of not excavated is pushed storehouse, and then turn back to step 604, thereby this class of not excavated is carried out processing same as described above.
In step 611, enumerate all methods in the current class, and these methods are pushed storehouse.
Whether in step 612, judging has method to need to excavate in the storehouse.If the result that should judge then forwards step 621 to for not.If the result of this judgement is for being then to forward step 613 to.
In step 613, take out a method from storehouse.
In step 614, judge whether the return type of this method is the class of not excavated.If the result of this judgement is for being then to forward step 615 to.If the result that should judge then forwards step 616 to for not.
In step 615, the described class of not excavated is pushed storehouse, and then turn back to step 604, thereby this class of not excavated is carried out the processing identical with the above.
In step 616, enumerate all parameters of this method, and these parameters are pushed storehouse.
Whether in step 617, judging has parameter to need to excavate in the storehouse.If the result that should judge then turns back to step 612 for not, need the next method (if any) excavated in the storehouse so that handle.If the result of this judgement is for being then to forward step 618 to.
In step 618, from storehouse, take out a parameter.
In step 619, judge whether the data type of this parameter is the class of not excavated.If the result that should judge then turns back to step 617 for not, so that handle presumable next parameter in the storehouse.If the result of this judgement is for being then to forward step 620 to.
In step 620, this class of not excavated is pushed storehouse, and then turn back to step 604, thereby such is carried out processing same as described above.
In step 621, current class is put into sequential list.
After above process was complete, if the class of not excavated in addition in real service provider then repeats above process, classes all in real service provider were all excavated.
Through such mining process, in described sequential list, will preserve all classes of from real service provider, excavating with correct order, thereby excavate module 302 and can in local storage vault, make up all classes of from real service provider, excavating, excavate module 302 then and can from real service provider, excavate and in local storage vault, duplicate the instance data of each CIM class according to this order.Like this, the simulator that makes up according to embodiments of the invention can form a virtual unit according to the class instance data of being stored in this this locality storage vault in operational process, this virtual unit will have and real hardware device and identical characteristic and the behavior of service provider thereof.
Be to be noted that above-mentioned depth-first class mining algorithm only is an example, rather than limitation of the present invention.In other embodiments of the invention, the concrete steps of described depth-first class mining algorithm can be with above-mentioned different.For example, can current class not put into sequential list in the step 621 of this algorithm, but directly such is structured in the local storage vault.In brief, excavate module 302 and can use any other can from real service provider, excavate the class and the example that wherein comprises, and in the correct order it is building up to algorithm or the method in the local storage vault.
In addition, although in the above description, from real service provider, excavate the mode-definition and the instance data of specific CIM class, obtain the correct order of these classes, and the function that makes up the described specific CIM class and the example in local storage vault is finished by described excavation module 302, but this only is an example, rather than limitation of the present invention.In other embodiments of the invention, these functions can be finished by different modules respectively.
C. mapping block
Mapping block 303 is used for the specific CIM class from described real service provider is mapped to the core CIM class that comprises in the described core profile service, make that described core profile service can be according to the request from CIM client, use the described specific CIM class and the example in the described local storage vault to operate, thereby form the simulator of described SMI-S equipment.Wherein, described mapping comprises and will be mapped to the kernel service class of described core profile service from the specific CIM service class in the real service provider, and will be mapped to the corresponding core CIM class that comprises in the described core profile service from other the specific CIM classes in the real service provider.Preferably, described mapping step also comprises provides device to be registered among the CIMOM explicitly specific CIM service class and described kernel service.
In other words, device 300 at the simulator that is used for making up SMI-S equipment according to an embodiment of the invention, used the core CIM class that kernel service comprised in the core services module 301 to represent with operated specific CIM class, therefore after the performed mining process of above-mentioned excavation module 302, mapping block 303 is mapped to described core CIM class with the corresponding specific CIM class in the real service provider, like this, when CIM client operates SMI-S equipment by the CIMOM request, specific CIM class rather than core CIM class in the virtual unit will be operated.
In a preferred embodiment of the invention, mapping block 303 by the title of the core CIM class in mapped file, set up and specific CIM class to realizing described mapping.
This mapping is important, this be because, specific service provider will define it and inherit certain kinds standard C IM class, that have AD HOC, for example, in SMI-S, CIM_ComputerSystem is the standard class that is used for the overlay device object, but in StorageBlade, for it has defined subclass Aristos_ControllerSystem, and in DS4000, subclass is LSISSI_StorageSubsystem.Again for example, in StorageBlade, Aristos_StoragePool has inherited the standard class CIM_StoragePool among the SMI-S.In order to make simulator of the present invention have the behavior identical with the equipment that simulated, should make the specific class of simulator operation, rather than the core classes in the core services module 301.
In addition, specific service provider will define its specific service class, therefore, when when kernel service of CIMOM registration provides device, should use specific service class title, rather than kernel service provide the title of the standards service class in the device.For example, in StorageBlade, Aristos_StorageConfigurationService has inherited CIM_StorageConfigurationService, therefore when the registration kernel service provides device in CIMOM, should use Aristos_StorageConfigurationService, rather than CIM_StorageConfigurationService.Only in this way, when the user called the method for specific service, kernel service of the present invention provided device just can obtain notice, and carries out desired operation.
Fig. 7 shows the synoptic diagram of mapping mechanism of the present invention.As shown in the figure, provide the device set to have some kernel services in the kernel service that is used for a common apparatus of the present invention, some core classes are operated in each kernel service.Mapping block 303 of the present invention will be mapped as the specific service from the true CIM service provider that simulated equipment kernel service corresponding core service in the device set will be provided, and being mapped as the corresponding core classes that kernel service comprises from other certain kinds in the real service provider that simulated equipment.
In a preferred embodiment of the invention, use simple title that mapping mode is set up mapping relations, its form is as follows:
Delegate_Class_Name=Target_Class_Name
For example " CIM_ComputerSystem=Aristos_ControllerSystem ".
Preferably, described title is to being stored in the mapped file, and like this, simulator of the present invention will read the certain kinds corresponding with needed core classes from this mapped file when operation.If do not provide mapping, then, will use this core classes (standard class among the SMI-S) itself as acquiescence for certain core classes.This mapped file both can also can be formed by automatic or automanual mode by the specification edit of user according to real service provider.
Fig. 8 shows and uses automanual mode to come to provide core classes in the device to set up the process of mapping relations as kernel service according to one embodiment of present invention.
As shown in the figure, in step 801, the acquisition kernel service provides the core classes in the device.
In step 802, search for the certain kinds in the current real service provider.Preferably, this search step is after described excavation module 302 is excavated the certain kinds in the service provider of real equipment in the local storage vault 305, carries out in described local storage vault.Certainly, also can be directly from the service provider search certain kinds wherein of real equipment.
In step 803, judge whether to exist the certain kinds of having inherited this core classes.If the result of this judgement is for being then to forward step 804 to.If the result that should judge then forwards step 805 to for not.
In step 804, judge whether the certain kinds that only exists to inherit this core classes.If the result of this judgement is for being then to forward step 807 to.If the result that should judge then forwards step 806 to for not.
In step 805, core classes is mapped to self.This step both can by in a mapped file, set up this core classes to self title to realizing, it is right to the title of self also can not set up core classes in mapped file, but when simulator moves, as acquiescence, will in mapped file, not exist corresponding title that the core classes of mapping is mapped as self.
In step 806, specify a certain kinds by the user.The user can specify a certain kinds, the certain kinds of perhaps specifying needs to operate on it arbitrarily.
In step 807, this certain kinds is mapped to core classes.Preferably, this step be by in a mapped file, set up this certain kinds to the title of this core classes to realizing.
In step 808,, then provide device to be registered among the CIMOM explicitly this specific service class and kernel service if this certain kinds is a service class.
Preferably, above process is for providing each the core classes iteration in the device to carry out with current device-dependent each kernel service that will simulate.
Be to be noted that said process only is example, rather than limitation of the present invention.In brief, anyly can set up the core classes in the core services module 301 and the method for the mapping relations between the certain kinds in the service provider of equipment of simulation all is suitable for.For example, also can in core services module 301, search corresponding core classes and shine upon at current with each certain kinds in each service provider of equipment of simulation.Again for example, said process also may fully automatically be carried out, and wherein in step 303, selects a certain kinds automatically by mapping block 303.
Fig. 9 shows the mode that mapping mechanism according to an embodiment of the invention plays a role in the operational process of simulator of the present invention.
As shown in the figure, in step 901, CIMOM receives the client requests for the specific service of certain hardware device from CIM client.
In step 902, CIMOM searches corresponding kernel service device is provided.
In step 903, CIMOM judges whether to find corresponding kernel service that device is provided.If the result that should judge is for denying then process end.If the result of this judgement is for being then to forward step 904 to.
In step 904, this kernel service that brings into operation provides device.
In step 905, provide in the operational process of device in this kernel service, judge according to the mapping relations of having set up whether the core classes that this kernel service provides device to use has corresponding certain kinds.If the result of this judgement is for being then to forward step 906 to.If the result that should judge then forwards step 907 to for not.
In step 906, handle the example of pairing certain kinds.
In step 907, handle the example of core classes.
D. device management module
Device management module 304 is used for being provided with according to the user, the instance data in the described local storage vault is configured, thereby can expands and be configured in virtual unit and the assembly thereof that is generated when simulator moves.Preferably, described device management module 304 carries out described configuration according to the configuration file of being created or being revised by the user.
In other words, this device management module 304 is responsible for the virtual component of configuration virtual hardware device.For example, for a storage blade equipment, dispose 10 dishes, each coils 100G.Configuration preferably carries out according to configuration file, and this configuration file XML form preferably.
Device management module 304 can be provided with the instance data in the local storage vault according to configuration file, like this, in the operational process of simulator of the present invention, just can obtain to have the virtual memory device of the configuration that requires.
This configuration file both can be created by the user fully, also can be after from the service provider of real SMI-S equipment, excavating class and instance data thereof by excavation module 302 of the present invention, when being stored in described class and instance data thereof in the local storage vault, generate the configuration file of the configuration of this SMI-S equipment of reflection according to described class and instance data, make amendment on the basis of this configuration file that has generated by the user then, thereby virtual unit and assembly thereof are configured and expand.
Be to be noted that described configuration file also can be an extended formatting.In addition, described device management module 304 also can not use configuration file, but adopts other modes, for example according to from the user command of user interface, comes virtual unit and assembly is configured and expansion etc.In addition, in some embodiments of the invention, the described device 300 that is used to make up the simulator of SMI-S equipment also can not comprise described device management module 304.
E. storage vault
Storage vault 305 is used for storing in this locality the specific CIM class and the example of described excavation and structure, so that when simulator of the present invention moves, form virtual unit according to the class instance data of being stored, and by the kernel service in the described core services module 301 according to this virtual unit being operated from the request of client, and the result of operation will be stored in this storage vault.
This storage vault 305 can use the file system of standard, also can be positioned at outside the device 300 of the simulator that is used to make up SMI-S equipment of the present invention.
F.CIMOM
CIMOM is used to handle and the communicating by letter of CIM client, reception is from CIM client's operation requests, and request is transmitted in the core services module 301 corresponding kernel service device is provided, and receive the result that device is provided from kernel service, and send this result to CIM client in response.CIMOM is existing C IMOM, also can be positioned at outside the device 300 that is used to make up the simulator that is used for SMI-S equipment of the present invention.
More than described the device 300 of the simulator that is used to make up SMI-S equipment according to an embodiment of the invention, be to be noted that the above only is example, rather than limitation of the present invention.That the device that is used to make up the simulator of SMI-S equipment of the present invention can have is more, still less or different modules, some modules can be merged into bigger module, or further are divided into littler module, or the like.
II. simulator of the present invention
By operating the above-mentioned device 300 that is used to make up the simulator of SMI-S equipment according to an embodiment of the invention, can generate the simulator of SMI-S equipment according to an embodiment of the invention.
Specifically, use described core services module 301, the kernel service that can form common apparatus provides device, and described kernel service provides device to comprise core CIM class (being the standard C IM class among the SMI-S).
Use described excavation module 302, the instance data of the mode-definition of all classes (being certain kinds) and all classes will be excavated in the service provider of real hardware device, and is structured in the local storage vault 305.
Use described mapping block 303, can set up described certain kinds and kernel service mapping relations between the core classes in the device are provided, certain kinds is mapped as core classes, thereby make described kernel service provide device to operate certain kinds and instance data thereof in the local storage vault 305 according to request from CIM client.
Use described device management module 304, can the class instance data in the local storage vault 305 be provided with, thereby the virtual unit that forms according to the class instance data stored when simulator moves and assembly thereof are further disposed and expand.
Like this, just made up the simulator of the SMI-S of being used for equipment of the present invention.The user can start this simulator, and the core services module and the storage vault that use simulator of the present invention to provide, further operates, and for example uses this simulator that storage device management is used and tests etc.
When needs during for another SMI-S device build simulator, owing in core services module 301, existed the kernel service of relevant common apparatus that device is provided, therefore only need usage mining module 302 to excavate certain kinds in the service provider of these SMI-S equipment, and use mapping block 303 that described certain kinds is mapped as kernel service core classes in the device is provided, and use device management module 304 to be configured alternatively and expand.
The simulator of the SMI-S equipment that is made up by the above-mentioned device 300 that is used to make up the simulator of SMI-S equipment according to an embodiment of the invention will comprise: kernel service provides device, be used to provide the core profile service of the common apparatus type that is used to be correlated with that meets SMI-S, wherein said core profile service comprises the core CIM class that is used for described common apparatus type; And storage vault, be used for storing mode-definition and instance data from the specific CIM class of the real service provider of the SMI-S equipment that will simulated; Wherein, described kernel service provide device in when operation the mapping relations according to the core CIM class that comprises in the described core profile service from the specific CIM class in the described real service provider, the described specific CIM class and the example in the described local storage vault are operated.
Preferably, the data of the described example that is stored in the described specific CIM class in the described storage vault can be provided with according to the user and be configured, thereby can expand and dispose virtual unit and assembly thereof.
Preferably, described kernel service provides device to comprise to be used to following four types common apparatus type to provide the kernel service of core profile service that device is provided: disk array, tape pool, switch and HBA.
Preferably, this simulator also comprises CIMOM, and specific CIM service class in the wherein said specific CIM class and corresponding described core profile service provider are registered among this CIMOM explicitly.This CIMOM is preferably existing C IMOM.
III. the method that is used to make up the simulator of SMI-S equipment of the present invention
The method of the simulator be used to make up SMI-S equipment is according to an embodiment of the invention described with reference to the accompanying drawings.This method is preferably realized by the aforementioned device 300 that is used to make up the simulator of SMI-S equipment according to an embodiment of the invention, but also can be realized by other devices.For simplicity's sake, in the following description, omitted the part that some and aforementioned content repeat, therefore can obtain more complete understanding with reference to aforementioned content to this method.
It is the method for SMI-S device build simulator that Figure 10 shows according to embodiments of the invention.
As shown in the figure, this method may further comprise the steps:
In step 1001, realize the service of core profile according to SMI-S for relevant common apparatus type, thereby the kernel service that is formed for described common apparatus type provides device, wherein said core profile service comprises the core CIM class that is used for described common apparatus type.
Preferably, described is that relevant common apparatus type realizes that the service of core profile is included as following four types common apparatus type realization core profile and serves: disk array, tape pool, switch and HBA.
In step 1002, from the real service provider of the SMI-S equipment that will simulated, excavate the mode-definition and the instance data of specific CIM class, and in local storage vault, make up the described specific CIM class and the example.
Preferably, described excavation step 1002 is to use the depth-first class mining algorithm of the correct order that can obtain class to carry out, and described construction step is to carry out according to the correct order of the class of described acquisition.
In step 1003, to be mapped to the core CIM class that described core profile service comprises from the specific CIM class in the described real service provider, make described core profile service can use the described specific CIM class and the example in the described local storage vault to operate, thereby form the simulator of described SMI-S equipment.
Preferably, described mapping step 1003 also comprises provides device to be registered among the CIMOM explicitly specific CIM service class in the described specific CIM class and corresponding described kernel service.
Preferably, described mapping step 1003 is that title by the core CIM class set up in mapped file and specific CIM class is to realizing.
Preferably, this method also comprises optional step 1004, in this step, be provided with according to the user, instance data in the described local storage vault is configured, thereby the virtual unit that forms according to the class instance data stored when simulator moves and assembly thereof are further disposed and expand.
Preferably, described configuration step 1004 is to carry out according to the configuration file of being created or being revised by the user.
The present invention can hardware, software or hardware are realized with the mode that combines of software.The present invention can realize in a computer system in a concentrated manner, or realize that with distribution mode in this distribution mode, different component distribution is in the computer system of several interconnected.Any computer system or other device that are suitable for carrying out the method for describing herein all are suitable.Preferably, the present invention realizes in the mode of the combination of computer software and multi-purpose computer hardware, in this implementation, when this computer program is loaded and carries out, control this computer system and make it carry out method of the present invention, and constitute device of the present invention.
Present invention may also be embodied in the computer program, this program product comprises all features that enable to realize the method described herein, and when it is loaded in the computer system, can carry out described method.
Although specifically illustrated and illustrated the present invention with reference to preferred embodiment, those technician in this area should be understood that and can carry out various changes and can not deviate from the spirit and scope of the present invention it in form and details.

Claims (17)

1. method that is used to make up based on the simulator of the equipment of storage management plan specification may further comprise the steps:
Realize the service of core profile according to storage management plan specification for relevant common apparatus type, thereby the kernel service that is formed for described common apparatus type provides device, wherein said core profile service comprises the core CIM class that is used for described common apparatus type;
From will simulated based on the mode-definition and the instance data that excavate specific CIM class the real service provider of the equipment of storage management plan specification, and in local storage vault, make up the described specific CIM class and the example; And
To be mapped to the core CIM class that described core profile service comprises from the specific CIM class in the described real service provider, make described core profile service can use the described specific CIM class and the example in the described local storage vault to operate, thereby form the simulator of described SMI-S equipment.
2. provide device to be registered among the CIMOM explicitly specific CIM service class in the described specific CIM class and corresponding described kernel service according to the process of claim 1 wherein that described mapping step also comprises.
3. according to the method for claim 1, comprise also according to the user being provided with that to the step that the instance data in the described local storage vault is configured, wherein said configuration step is to carry out according to the configuration file of being created or being revised by the user.
4. according to the process of claim 1 wherein that described is that relevant common apparatus type realizes that the service of core profile is included as following four types common apparatus type realization core profile and serves: disk array, tape pool, switch and HBA.
5. according to the process of claim 1 wherein that described excavation step is to use the depth-first class mining algorithm of the correct order that can obtain class to carry out, and described construction step is to carry out according to the correct order of the class of described acquisition.
6. according to the process of claim 1 wherein that described mapping step is that title by the core CIM class set up and specific CIM class is to realizing in mapped file.
7. device that is used to make up based on the simulator of the equipment of storage management plan specification comprises:
Core services module, be used for realizing the service of core profile for relevant common apparatus type according to storage management plan specification, thereby the kernel service that is formed for described common apparatus type provides device, and wherein said core profile service comprises the core CIM class that is used for described common apparatus type;
Excavate module, be used for excavating the mode-definition and the instance data of specific CIM class, and in local storage vault, make up the described specific CIM class and the example from the real service provider based on the equipment of storage management plan specification that will simulated; And
Mapping block, be used for to be mapped to the core CIM class that comprises in the described core profile service from the specific CIM class of described real service provider, make that described core profile service can be according to the request from CIM client, use the described specific CIM class and the example in the described local storage vault to operate, thereby form the simulator of described SMI-S equipment.
8. according to the device of claim 7, wherein said mapping block also is used for providing device to be registered among the CIMOM explicitly the specific CIM service class of described specific CIM class and corresponding described kernel service.
9. according to the device of claim 7, also comprise device management module, be used for being provided with that the instance data in the described local storage vault is configured, and wherein said device management module carries out described configuration according to the configuration file of being created or being revised by the user according to the user.
10. according to the device of claim 7, wherein said core services module is used to following four types common apparatus type to realize the service of core profile: disk array, tape pool, switch and HBA.
11. according to the device of claim 7, wherein said excavation module uses the depth-first class mining algorithm of the correct order that can obtain class to carry out described excavation, and carries out described structure according to the correct order of the class of described acquisition.
12. according to the device of claim 7, the title of wherein said mapping block by the core CIM class set up in mapped file and specific CIM class is to realizing described mapping.
13., also comprise being used to store the specific CIM class of described excavation and structure and the local storage vault of the example according to the device of claim 7.
14. the simulator based on the equipment of storage management plan specification comprises:
Kernel service provides device, is used to provide the core profile service of the common apparatus type that is used to be correlated with that meets storage management plan specification, and wherein said core profile service comprises the core CIM class that is used for described common apparatus type;
Storage vault is used to store from the mode-definition and the instance data based on the specific CIM class of the real service provider of the equipment of storage management plan specification that will simulated;
Wherein, described kernel service provides the mapping relations of the core CIM class that device comprises in the described core profile service according to described specific CIM class from real service provider in when operation, and the described specific CIM class and the example in the described local storage vault are operated.
15. according to the simulator of claim 14, the data that wherein are stored in the example of the described specific CIM class in the described storage vault can be provided with according to the user and be configured.
16. according to the simulator of claim 14, wherein said kernel service provides device to comprise to be used to following four types common apparatus type that the service provider of core profile service is provided: disk array, tape pool, switch and HBA.
17. according to the simulator of claim 14, also comprise CIMOM, specific CIM service class in the wherein said specific CIM class and corresponding described core profile service provider are registered among this CIMOM explicitly.
CN200810082238A 2008-02-26 2008-02-26 Method and system for building simulator of device based on storage management plan specification Pending CN101520739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810082238A CN101520739A (en) 2008-02-26 2008-02-26 Method and system for building simulator of device based on storage management plan specification

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810082238A CN101520739A (en) 2008-02-26 2008-02-26 Method and system for building simulator of device based on storage management plan specification

Publications (1)

Publication Number Publication Date
CN101520739A true CN101520739A (en) 2009-09-02

Family

ID=41081342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810082238A Pending CN101520739A (en) 2008-02-26 2008-02-26 Method and system for building simulator of device based on storage management plan specification

Country Status (1)

Country Link
CN (1) CN101520739A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215142A (en) * 2010-04-09 2011-10-12 英业达股份有限公司 System and method for generating provider supporting storage area network equipment
CN102298601A (en) * 2011-05-23 2011-12-28 北京捷成世纪科技股份有限公司 Conversion method of monitoring data of storage device oriented to radio and TV industry and converter
WO2014176989A1 (en) * 2013-09-17 2014-11-06 中兴通讯股份有限公司 Network management method and system, virtual network entity and network device
CN104461553A (en) * 2014-12-18 2015-03-25 山东超越数控电子有限公司 Storage management method in conformity with SMI-S (storage management initiative specification) standard
US9081614B2 (en) 2010-06-30 2015-07-14 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Managing shared resources in a multi-computer system with failover support
CN105337865A (en) * 2014-06-03 2016-02-17 华为技术有限公司 Method, apparatus and system for establishing forwarding table item
CN107231256A (en) * 2017-05-27 2017-10-03 郑州云海信息技术有限公司 A kind of multi-apparatus management method and system based on SMI S agreements
CN109446103A (en) * 2018-11-14 2019-03-08 郑州云海信息技术有限公司 A kind of CIM Provider test method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215142A (en) * 2010-04-09 2011-10-12 英业达股份有限公司 System and method for generating provider supporting storage area network equipment
US9081614B2 (en) 2010-06-30 2015-07-14 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Managing shared resources in a multi-computer system with failover support
CN102298601A (en) * 2011-05-23 2011-12-28 北京捷成世纪科技股份有限公司 Conversion method of monitoring data of storage device oriented to radio and TV industry and converter
WO2014176989A1 (en) * 2013-09-17 2014-11-06 中兴通讯股份有限公司 Network management method and system, virtual network entity and network device
CN104468162A (en) * 2013-09-17 2015-03-25 中兴通讯股份有限公司 Method and system for network management, virtual network entity, and network device
CN105337865A (en) * 2014-06-03 2016-02-17 华为技术有限公司 Method, apparatus and system for establishing forwarding table item
CN105337865B (en) * 2014-06-03 2018-09-21 华为技术有限公司 A kind of methods, devices and systems for establishing forwarding-table item
CN104461553A (en) * 2014-12-18 2015-03-25 山东超越数控电子有限公司 Storage management method in conformity with SMI-S (storage management initiative specification) standard
CN107231256A (en) * 2017-05-27 2017-10-03 郑州云海信息技术有限公司 A kind of multi-apparatus management method and system based on SMI S agreements
CN109446103A (en) * 2018-11-14 2019-03-08 郑州云海信息技术有限公司 A kind of CIM Provider test method and device

Similar Documents

Publication Publication Date Title
CN101520739A (en) Method and system for building simulator of device based on storage management plan specification
KR101219875B1 (en) Method and apparatus for metadata driven business logic processing
JP5350712B2 (en) On-demand access to virtual representations of physical computer systems
CN1120606C (en) Glient-server system for maintaining application preferences in hierarchical data structure
US7813911B2 (en) Model based testing language and framework
US20110010613A1 (en) System and method for building mixed mode execution environment for component applications
CN102236835B (en) For the conformable frame of enterprise content management system
US20040167975A1 (en) Method, system, and program for managing devices in a network
CN101316183B (en) Human-machine interaction interface generation method and system of digital home network
US20040237066A1 (en) Software design system and method
US20130047138A1 (en) Systems and methods for building and distributing software packages
MX2007015887A (en) Data centric workflows.
CN101763043B (en) For the method and system of automation collaborative framework
US8260897B2 (en) System and method for automatically managing IT-resources in a heterogeneous environment
US9553765B2 (en) Geospatial based management of configuration profiles
CN106886568B8 (en) One kind divides table method, apparatus and electronic equipment
US20050172264A1 (en) Architecture for converting control types in a data bound user interface
CN102004742A (en) Multilayer database access structure
CN100507871C (en) Method and system for testing embedded file system
US8145724B1 (en) Method of, system for, and computer program product for providing a data structure for configuring connections between a local workstation file system and a remote host file system
US20060173893A1 (en) System and methods for capturing structure of data models using entity patterns
CN104461553A (en) Storage management method in conformity with SMI-S (storage management initiative specification) standard
CN116227448A (en) Intelligent form generation method and intelligent form system
CN109358972A (en) Blog management method, device and the computer system of middleware client
US7499992B1 (en) Association traversal translation for common information model

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20090902

C20 Patent right or utility model deemed to be abandoned or is abandoned