[go: up one dir, main page]

CN111722846B - A method and device for CIM interface customization compatible with multiple OEM products - Google Patents

A method and device for CIM interface customization compatible with multiple OEM products Download PDF

Info

Publication number
CN111722846B
CN111722846B CN202010472255.3A CN202010472255A CN111722846B CN 111722846 B CN111722846 B CN 111722846B CN 202010472255 A CN202010472255 A CN 202010472255A CN 111722846 B CN111722846 B CN 111722846B
Authority
CN
China
Prior art keywords
oem
cim
information
cim interface
code
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.)
Active
Application number
CN202010472255.3A
Other languages
Chinese (zh)
Other versions
CN111722846A (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010472255.3A priority Critical patent/CN111722846B/en
Publication of CN111722846A publication Critical patent/CN111722846A/en
Application granted granted Critical
Publication of CN111722846B publication Critical patent/CN111722846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method and equipment for customizing a CIM interface compatible with multiple OEM products, wherein the method comprises the following steps: defining a compiling configuration file; carrying out macro control on OEM custom fields in each CIM interface, and compiling the OEM custom fields according to the macro control; modifying OEM information of a static file in a CIM interface code library according to the compiling configuration file; and converting the OEM information and the original manufacturer information mutually. By using the scheme of the invention, a plurality of OEM edition packages can be simultaneously constructed under the condition of one set of codes and integrated into the system ISO mirror image of the corresponding OEM edition, thereby avoiding the conditions of modifying the codes for many times, maintaining a plurality of code branches and constructing CIM interfaces for many times, greatly improving the development efficiency, saving the code maintenance cost, ensuring the information safety and the software stable operation of the OEM manufacturer because the CIM interfaces of the OEM edition can only operate on the corresponding OEM product platform.

Description

一种兼容多种OEM产品的CIM接口定制的方法和设备A method and device for CIM interface customization compatible with multiple OEM products

技术领域technical field

本领域涉及计算机领域,并且更具体地涉及一种兼容多种OEM产品的CIM接口定制的方法和设备。The art relates to the computer field, and more particularly to a method and device for CIM interface customization compatible with various OEM products.

背景技术Background technique

存储系统对外提供CIM(Common Information Model,公共信息模型)接口,以便用户对存储系统进行管理和监控。由于存储系统会进行OEM(Original EquipmentManufacturer,贴牌生产或原始设备制造商)定制,因此CIM接口也需要进行OEM定制修改或开发。在目前的开发过程中,针对每一个OEM厂商的需求,都需要单独建立代码分支,修改现有源代码中的厂商信息,并在此基础上开发OEM定制功能。完成功能开发后,需要单独编译构建安装包,并在相应的OEM平台上安装。随着OEM厂商个数越多,维护的代码量代码分支也逐渐增大。如果代码版本更新,需要针对每个OEM代码分支更新代码,并单独构建软件安装包,增加代码维护和软件版本构建工作量。The storage system provides a CIM (Common Information Model, common information model) interface externally, so that users can manage and monitor the storage system. Since the storage system will be customized by OEM (Original Equipment Manufacturer, OEM or original equipment manufacturer), the CIM interface also needs to be modified or developed by OEM. In the current development process, according to the needs of each OEM manufacturer, it is necessary to establish a separate code branch, modify the manufacturer information in the existing source code, and develop OEM customization functions on this basis. After completing the function development, you need to compile and build the installation package separately and install it on the corresponding OEM platform. As the number of OEM manufacturers increases, the amount of code to be maintained increases gradually. If the code version is updated, it is necessary to update the code for each OEM code branch, and build the software installation package separately, which increases the workload of code maintenance and software version construction.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明实施例的目的在于提出一种兼容多种OEM产品的CIM接口定制的方法和设备,通过使用本发明的方法,能够在一套代码情况下同时构建多个OEM版本包,并集成到相应OEM版本的系统ISO镜像中,避免了多次修改代码,维护多个代码分支,多次构建CIM接口的情况,大大提高了开发效率,节省代码维护成本,OEM版本的CIM接口只可在对应的OEM产品平台上运行,保证了OEM厂商信息安全和软件稳定运行。In view of this, the purpose of the embodiments of the present invention is to propose a method and device for CIM interface customization compatible with multiple OEM products. By using the method of the present invention, multiple OEM version packages can be simultaneously constructed under a set of codes, And integrated into the system ISO image of the corresponding OEM version, avoiding the need to modify the code multiple times, maintain multiple code branches, and build the CIM interface multiple times, which greatly improves the development efficiency and saves the cost of code maintenance. The OEM version of the CIM interface is only It can run on the corresponding OEM product platform, which ensures the information security of the OEM manufacturer and the stable operation of the software.

基于上述目的,本发明的实施例的一个方面提供了一种兼容多种OEM产品的CIM接口定制的方法,包括以下步骤:Based on the above object, an aspect of the embodiments of the present invention provides a method for customizing a CIM interface compatible with multiple OEM products, including the following steps:

定义编译配置文件;Define the compilation configuration file;

对各个CIM接口中的OEM定制字段进行宏控制,并根据宏控制对OEM定制字段进行编译;Perform macro control on the OEM custom fields in each CIM interface, and compile the OEM custom fields according to the macro control;

根据编译配置文件修改CIM接口代码库中的静态文件的OEM信息;Modify the OEM information of the static files in the CIM interface code base according to the compilation configuration file;

将OEM信息和原厂商信息进行相互转换。Convert OEM information and original manufacturer information to each other.

根据本发明的一个实施例,编译配置文件包含OEM厂商信息、静态文件列表、原有厂商术语和OEM术语。According to one embodiment of the present invention, the compilation configuration file contains OEM manufacturer information, a static file list, original manufacturer terms, and OEM terms.

根据本发明的一个实施例,对各个CIM接口中的OEM定制字段进行宏控制,并根据宏控制对OEM定制字段进行编译包括:According to an embodiment of the present invention, performing macro control on the OEM customized fields in each CIM interface, and compiling the OEM customized fields according to the macro control includes:

在CIM接口功能开发阶段,通过宏控制判断OEM定制字段对应的代码是否需要进行编译;In the development stage of the CIM interface function, judge whether the code corresponding to the OEM custom field needs to be compiled through macro control;

响应于OEM定制字段对应的代码需要进行编译,宏对上述代码进行编译,并使CIM接口功能支持编译后的OEM定制字段。In response to the need to compile the code corresponding to the OEM custom field, the macro compiles the above code, and enables the CIM interface function to support the compiled OEM custom field.

根据本发明的一个实施例于,根据编译配置文件修改CIM接口代码库中的静态文件的OEM信息包括:According to an embodiment of the present invention, modifying the OEM information of the static file in the CIM interface code base according to the compilation configuration file includes:

根据编译配置文件,依次对已配置的每一种OEM产品进行静态文件的修改和编译;According to the compilation configuration file, modify and compile the static files for each configured OEM product in turn;

将每一种OEM产品打包成CIM接口软件包;Package each OEM product into a CIM interface software package;

将CIM接口软件包解压调用并集成到相应的OEM版本的系统ISO镜像中。Decompress the CIM interface software package and integrate it into the system ISO image of the corresponding OEM version.

根据本发明的一个实施例,将OEM信息和原厂商信息进行相互转换包括:According to an embodiment of the present invention, the mutual conversion between the OEM information and the original manufacturer information includes:

CIM接口处理请求时,将请求中的OEM信息替换为原厂商信息;When the CIM interface processes the request, replace the OEM information in the request with the original manufacturer information;

CIM接口返回结果时,将返回结果中的原厂商信息替换为相应的OEM厂商信息。When the CIM interface returns the result, replace the original manufacturer information in the returned result with the corresponding OEM manufacturer information.

本发明的实施例的另一个方面,还提供了一种兼容多种OEM产品的CIM接口定制的设备,设备包括:Another aspect of the embodiments of the present invention also provides a CIM interface customization device compatible with multiple OEM products, the device includes:

定义模块,定义模块配置为定义编译配置文件;Define the module, define the module configuration to define the compilation configuration file;

编译模块,编译模块配置为对各个CIM接口中的OEM定制字段进行宏控制,并根据宏控制对OEM定制字段进行编译;The compilation module is configured to perform macro control on the OEM customized fields in each CIM interface, and compile the OEM customized fields according to the macro control;

修改模块,修改模块配置为根据编译配置文件修改CIM接口代码库中的静态文件的OEM信息;Modify the module, modify the module configuration to modify the OEM information of the static file in the CIM interface code base according to the compilation configuration file;

转换模块,转换模块配置为将OEM信息和原厂商信息进行相互转换。The conversion module, the conversion module is configured to convert the OEM information and the original manufacturer information to each other.

根据本发明的一个实施例,编译配置文件包含OEM厂商信息、静态文件列表、原有厂商术语和OEM术语。According to one embodiment of the present invention, the compilation configuration file contains OEM manufacturer information, a static file list, original manufacturer terms, and OEM terms.

根据本发明的一个实施例于,编译模块还配置为:According to an embodiment of the present invention, the compilation module is further configured to:

在CIM接口功能开发阶段,通过宏控制判断OEM定制字段对应的代码是否需要进行编译;In the development stage of the CIM interface function, judge whether the code corresponding to the OEM custom field needs to be compiled through macro control;

响应于OEM定制字段对应的代码需要进行编译,宏对上述代码进行编译,并使CIM接口功能支持编译后的OEM定制字段。In response to the need to compile the code corresponding to the OEM custom field, the macro compiles the above code, and enables the CIM interface function to support the compiled OEM custom field.

根据本发明的一个实施例,修改模块还配置为:According to an embodiment of the present invention, the modification module is further configured to:

根据编译配置文件,依次对已配置的每一种OEM产品进行静态文件的修改和编译;According to the compilation configuration file, modify and compile the static files for each configured OEM product in turn;

将每一种OEM产品打包成CIM接口软件包;Package each OEM product into a CIM interface software package;

将CIM接口软件包解压调用并集成到相应的OEM版本的系统ISO镜像中。Decompress the CIM interface software package and integrate it into the system ISO image of the corresponding OEM version.

根据本发明的一个实施例,转换模块还配置为:According to an embodiment of the present invention, the conversion module is further configured to:

CIM接口处理请求时,将请求中的OEM信息替换为原厂商信息;When the CIM interface processes the request, replace the OEM information in the request with the original manufacturer information;

CIM接口返回结果时,将返回结果中的原厂商信息替换为相应的OEM厂商信息。When the CIM interface returns the result, replace the original manufacturer information in the returned result with the corresponding OEM manufacturer information.

本发明具有以下有益技术效果:本发明实施例提供的兼容多种OEM产品的CIM接口定制的方法,通过定义编译配置文件;对各个CIM接口中的OEM定制字段进行宏控制,并根据宏控制对OEM定制字段进行编译;根据编译配置文件修改CIM接口代码库中的静态文件的OEM信息;将OEM信息和原厂商信息进行相互转换的技术方案,能够在一套代码情况下同时构建多个OEM版本包,并集成到相应OEM版本的系统ISO镜像中,避免了多次修改代码,维护多个代码分支,多次构建CIM接口的情况,大大提高了开发效率,节省代码维护成本,OEM版本的CIM接口只可在对应的OEM产品平台上运行,保证了OEM厂商信息安全和软件稳定运行。The present invention has the following beneficial technical effects: the method for customizing a CIM interface compatible with multiple OEM products provided by the embodiment of the present invention compiles a configuration file by defining it; performs macro control on the OEM custom fields in each CIM interface, and controls the OEM customization fields according to the macro control. Compile the OEM custom field; modify the OEM information of the static file in the CIM interface code base according to the compilation configuration file; the technical scheme of converting the OEM information and the original manufacturer information to each other, can build multiple OEM versions at the same time under a set of codes package, and integrated into the system ISO image of the corresponding OEM version, avoiding the need to modify the code multiple times, maintain multiple code branches, and build the CIM interface multiple times, which greatly improves the development efficiency and saves the cost of code maintenance. The OEM version of CIM The interface can only run on the corresponding OEM product platform, which ensures the information security of the OEM manufacturer and the stable operation of the software.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other embodiments can also be obtained according to these drawings without creative efforts.

图1为根据本发明一个实施例的兼容多种OEM产品的CIM接口定制的方的示意性流程图;FIG. 1 is a schematic flowchart of a CIM interface customization method compatible with multiple OEM products according to an embodiment of the present invention;

图2为根据本发明一个实施例的兼容多种OEM产品的CIM接口定制的设备的示意图。FIG. 2 is a schematic diagram of a CIM interface customization device compatible with multiple OEM products according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention will be further described in detail below with reference to the specific embodiments and the accompanying drawings.

基于上述目的,本发明的实施例的第一个方面,提出了一种兼容多种OEM产品的CIM接口定制的方法的一个实施例。图1示出的是该方法的示意性流程图。Based on the above objective, in a first aspect of the embodiments of the present invention, an embodiment of a method for customizing a CIM interface compatible with multiple OEM products is provided. Figure 1 shows a schematic flow chart of the method.

如图1中所示,该方法可以包括以下步骤:As shown in Figure 1, the method may include the following steps:

S1定义编译配置文件,该编译配置文件用于快速修改源代码中的OEM信息;S1 defines a compilation configuration file, which is used to quickly modify the OEM information in the source code;

S2对各个CIM接口中的OEM定制字段进行宏控制,并根据宏控制对OEM定制字段进行编译;S2 performs macro control on the OEM customized fields in each CIM interface, and compiles the OEM customized fields according to the macro control;

S3根据编译配置文件修改CIM接口代码库中的静态文件的OEM信息,静态文件包括CIM接口运行所需的配置文件(命名空间、请求协议及端口、安全等级、日志级别等)、CIM接口运行相关的脚本文件(启动、停止、监控)、约束CIM接口的MOF文件、CIM接口源代码文件;S3 modifies the OEM information of the static files in the CIM interface code base according to the compilation configuration file. The static files include the configuration files (namespace, request protocol and port, security level, log level, etc.) required for the operation of the CIM interface, and related to the operation of the CIM interface. Script files (start, stop, monitor), MOF files that constrain the CIM interface, and CIM interface source code files;

S4将OEM信息和原厂商信息进行相互转换。S4 converts OEM information and original manufacturer information to each other.

本发明首先定义OEM编译配置文件,用于快速修改源代码中的OEM信息,从而保证OEM版本的CIM接口代码正确编译并运行,并提供静态的OEM信息。然后在CIM接口开发阶段,通过对各个接口代码的OEM定制字段进行宏控制,实现对宏控制代码是否被编译打包控制,达到一套代码在不同OEM平台提供不同功能的目的。通过在CIM接口运行过程中提供中转代理服务,实现动态的接收和返回OEM信息。在CIM接口编译打包阶段,根据OEM编译配置文件内容生成相应OEM版本代码文件及其他文件,并编译打包成相应的OEM版本CIM接口软件包,并用于集成在后续生成相应OEM版本存储系统ISO镜像中。本发明通过以上合理有效的方法,实现一套CIM接口代码一次编译构建生成多个OEM版本CIM接口,并保障其在对应OEM产品上安全可靠运行。The invention firstly defines an OEM compilation configuration file, which is used to quickly modify the OEM information in the source code, so as to ensure that the CIM interface code of the OEM version is correctly compiled and run, and provides static OEM information. Then in the CIM interface development stage, through macro control of the OEM custom fields of each interface code, the control of whether the macro control code is compiled and packaged is realized, and the purpose of a set of codes providing different functions on different OEM platforms is achieved. By providing a transit agent service during the operation of the CIM interface, it can dynamically receive and return OEM information. In the CIM interface compilation and packaging stage, the corresponding OEM version code files and other files are generated according to the content of the OEM compilation configuration file, and then compiled and packaged into the corresponding OEM version CIM interface software package, and used for integration in the subsequent generation of the corresponding OEM version storage system ISO image . Through the above reasonable and effective method, the present invention realizes that a set of CIM interface codes is compiled and constructed at one time to generate CIM interfaces of multiple OEM versions, and the safe and reliable operation of the corresponding OEM products is ensured.

通过本发明的技术方案,能够在一套代码情况下同时构建多个OEM版本包,并集成到相应OEM版本的系统ISO镜像中,避免了多次修改代码,维护多个代码分支,多次构建CIM接口的情况,大大提高了开发效率,节省代码维护成本,OEM版本的CIM接口只可在对应的OEM产品平台上运行,保证了OEM厂商信息安全和软件稳定运行。Through the technical scheme of the present invention, multiple OEM version packages can be simultaneously constructed under one set of codes, and integrated into the system ISO image of the corresponding OEM version, thereby avoiding multiple code modification, maintenance of multiple code branches, and multiple constructions. The case of the CIM interface greatly improves the development efficiency and saves the cost of code maintenance. The OEM version of the CIM interface can only be run on the corresponding OEM product platform, which ensures the information security of the OEM manufacturer and the stable operation of the software.

在本发明的一个优选实施例中,编译配置文件包含OEM厂商信息、静态文件列表、原有厂商术语和OEM术语。In a preferred embodiment of the present invention, the compilation configuration file contains OEM manufacturer information, a static file list, original manufacturer terms and OEM terms.

在本发明的一个优选实施例中,对各个CIM接口中的OEM定制字段进行宏控制,并根据宏控制对OEM定制字段进行编译包括:In a preferred embodiment of the present invention, performing macro control on the OEM customized fields in each CIM interface, and compiling the OEM customized fields according to the macro control includes:

在CIM接口功能开发阶段,通过宏控制判断OEM定制字段对应的代码是否需要进行编译;In the development stage of the CIM interface function, judge whether the code corresponding to the OEM custom field needs to be compiled through macro control;

响应于OEM定制字段对应的代码需要进行编译,宏对上述代码进行编译,并使CIM接口功能支持编译后的OEM定制字段。在CIM接口功能开发阶段,对于OEM定制的字段,通过编译宏控制该字段对应的代码是否进行编译,并由编译模块在编译各OEM版本CIM接口时,传输相应OEM版本的编译宏。如果传入了某个OEM版本的编译宏,则通过该宏控制的代码段会进行编译,最终的CIM接口功能会支持该字段;被其他OEM版本的编译宏控制的代码段不会进行编译,最终的CIM接口功能不支持这些字段。In response to the need to compile the code corresponding to the OEM custom field, the macro compiles the above code, and enables the CIM interface function to support the compiled OEM custom field. In the CIM interface function development stage, for the fields customized by the OEM, whether the code corresponding to the field is compiled is controlled by the compilation macro, and the compilation module transmits the compilation macros of the corresponding OEM version when compiling the CIM interface of each OEM version. If a compilation macro of an OEM version is passed in, the code segment controlled by the macro will be compiled, and the final CIM interface function will support this field; the code segment controlled by the compilation macro of other OEM versions will not be compiled. The final CIM interface function does not support these fields.

在本发明的一个优选实施例中,根据编译配置文件修改CIM接口代码库中的静态文件的OEM信息包括:In a preferred embodiment of the present invention, modifying the OEM information of the static files in the CIM interface code base according to the compilation configuration file includes:

根据编译配置文件,依次对已配置的每一种OEM产品进行静态文件的修改和编译;According to the compilation configuration file, modify and compile the static files for each configured OEM product in turn;

将每一种OEM产品打包成CIM接口软件包;Package each OEM product into a CIM interface software package;

将CIM接口软件包解压调用并集成到相应的OEM版本的系统ISO镜像中。在软件代码编译阶段,根据编译配置文件内容,依次对已配置的每一种OEM产品进行静态文件的OEM术语修改和编译。输出内容包含适用于各OEM平台类型的编译后文件、脚本文件、MOF文件、配置文件等,并对每一种OEM版本打包一个CIM接口软件包。这些OEM版本CIM接口软件包由更上层的系统ISO镜像打包模块解压调用并集成到相应的OEM版本的系统ISO镜像中。这些系统ISO镜像在相应OEM版本的产品上完成系统罐装后,CIM接口即可正常提供相应OEM版本的服务。Decompress the CIM interface software package and integrate it into the system ISO image of the corresponding OEM version. In the software code compilation stage, according to the content of the compilation configuration file, modify and compile the OEM terminology of the static file for each configured OEM product in turn. The output content includes compiled files, script files, MOF files, configuration files, etc. suitable for each OEM platform type, and a CIM interface software package is packaged for each OEM version. These OEM version CIM interface software packages are decompressed and invoked by the higher-level system ISO image packaging module and integrated into the corresponding OEM version system ISO image. After these system ISO images are canned on the products of the corresponding OEM version, the CIM interface can normally provide services of the corresponding OEM version.

在本发明的一个优选实施例中于,将OEM信息和原厂商信息进行相互转换包括:In a preferred embodiment of the present invention, the mutual conversion between the OEM information and the original manufacturer information includes:

CIM接口处理请求时,将请求中的OEM信息替换为原厂商信息;When the CIM interface processes the request, replace the OEM information in the request with the original manufacturer information;

CIM接口返回结果时,将返回结果中的原厂商信息替换为相应的OEM厂商信息。在CIM接口运行阶段,由动态OEM信息代理模块对请求和响应中的原厂商信息和OEM厂商信息进行转换。由于CIM接口处理请求和返回响应依赖于系统命令行(CLI),而系统命令行返回的信息未进行OEM适配,因此需要在CIM接口运行时,动态实时地对这些信息进行转换。具体如下:CIM接口处理请求时,由动态OEM信息代理模块将请求中的参数信息中的OEM信息替换为原厂商信息,并根据原厂商信息进一步处理请求;CIM接口返回响应时,由动态OEM信息代理模块将返回结果中的原厂商信息替换为相应OEM厂商信息。When the CIM interface returns the result, replace the original manufacturer information in the returned result with the corresponding OEM manufacturer information. In the running phase of the CIM interface, the original manufacturer information and the OEM manufacturer information in the request and response are converted by the dynamic OEM information agent module. Since the CIM interface processes requests and returns responses relying on the system command line (CLI), and the information returned by the system command line is not adapted to the OEM, it is necessary to dynamically convert these information in real time when the CIM interface is running. The details are as follows: when the CIM interface processes the request, the dynamic OEM information proxy module replaces the OEM information in the parameter information in the request with the original manufacturer information, and further processes the request according to the original manufacturer information; when the CIM interface returns a response, the dynamic OEM information The proxy module replaces the original manufacturer information in the returned result with the corresponding OEM manufacturer information.

通过本发明的技术方案,能够在一套代码情况下同时构建多个OEM版本包,并集成到相应OEM版本的系统ISO镜像中,避免了多次修改代码,维护多个代码分支,多次构建CIM接口的情况,大大提高了开发效率,节省代码维护成本,OEM版本的CIM接口只可在对应的OEM产品平台上运行,保证了OEM厂商信息安全和软件稳定运行。Through the technical scheme of the present invention, multiple OEM version packages can be simultaneously constructed under one set of codes, and integrated into the system ISO image of the corresponding OEM version, thereby avoiding multiple code modification, maintenance of multiple code branches, and multiple constructions. The case of the CIM interface greatly improves the development efficiency and saves the cost of code maintenance. The OEM version of the CIM interface can only be run on the corresponding OEM product platform, which ensures the information security of the OEM manufacturer and the stable operation of the software.

需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关硬件来完成,上述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中存储介质可为磁碟、光盘、只读存储器(Read-Only Memory,ROM)或随机存取存储器(Random AccessMemory,RAM)等。上述计算机程序的实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。It should be noted that those of ordinary skill in the art can understand that all or part of the processes in the methods of the above-mentioned embodiments can be implemented by instructing relevant hardware through a computer program. The above-mentioned programs can be stored in a computer-readable storage medium. When the program is executed, it may include the flow of the embodiments of the above-mentioned methods. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like. The above computer program embodiments can achieve the same or similar effects as any of the foregoing method embodiments corresponding thereto.

此外,根据本发明实施例公开的方法还可以被实现为由CPU执行的计算机程序,该计算机程序可以存储在计算机可读存储介质中。在该计算机程序被CPU执行时,执行本发明实施例公开的方法中限定的上述功能。In addition, the methods disclosed according to the embodiments of the present invention may also be implemented as a computer program executed by the CPU, and the computer program may be stored in a computer-readable storage medium. When the computer program is executed by the CPU, the above-mentioned functions defined in the methods disclosed in the embodiments of the present invention are executed.

基于上述目的,本发明的实施例的第二个方面,提出了一种兼容多种OEM产品的CIM接口定制的设备,如图2所示,设备200包括:Based on the above purpose, the second aspect of the embodiments of the present invention provides a CIM interface customization device compatible with multiple OEM products. As shown in FIG. 2 , the device 200 includes:

定义模块,定义模块配置为定义编译配置文件;Define the module, define the module configuration to define the compilation configuration file;

编译模块,编译模块配置为对各个CIM接口中的OEM定制字段进行宏控制,并根据宏控制对OEM定制字段进行编译;The compilation module is configured to perform macro control on the OEM customized fields in each CIM interface, and compile the OEM customized fields according to the macro control;

修改模块,修改模块配置为根据编译配置文件修改CIM接口代码库中的静态文件的OEM信息;Modify the module, modify the module configuration to modify the OEM information of the static file in the CIM interface code base according to the compilation configuration file;

转换模块,转换模块配置为将OEM信息和原厂商信息进行相互转换。The conversion module, the conversion module is configured to convert the OEM information and the original manufacturer information to each other.

在本发明的一个优选实施例中,编译配置文件包含OEM厂商信息、静态文件列表、原有厂商术语和OEM术语。In a preferred embodiment of the present invention, the compilation configuration file contains OEM manufacturer information, a static file list, original manufacturer terms and OEM terms.

在本发明的一个优选实施例中,编译模块还配置为:In a preferred embodiment of the present invention, the compilation module is further configured to:

在CIM接口功能开发阶段,通过宏控制判断OEM定制字段对应的代码是否需要进行编译;In the development stage of the CIM interface function, judge whether the code corresponding to the OEM custom field needs to be compiled through macro control;

响应于OEM定制字段对应的代码需要进行编译,宏对上述代码进行编译,并使CIM接口功能支持编译后的OEM定制字段。In response to the need to compile the code corresponding to the OEM custom field, the macro compiles the above code, and enables the CIM interface function to support the compiled OEM custom field.

在本发明的一个优选实施例中,修改模块还配置为:In a preferred embodiment of the present invention, the modification module is further configured to:

根据编译配置文件,依次对已配置的每一种OEM产品进行静态文件的修改和编译;According to the compilation configuration file, modify and compile the static files for each configured OEM product in turn;

将每一种OEM产品打包成CIM接口软件包;Package each OEM product into a CIM interface software package;

将CIM接口软件包解压调用并集成到相应的OEM版本的系统ISO镜像中。Decompress the CIM interface software package and integrate it into the system ISO image of the corresponding OEM version.

在本发明的一个优选实施例中,转换模块还配置为:In a preferred embodiment of the present invention, the conversion module is further configured to:

CIM接口处理请求时,将请求中的OEM信息替换为原厂商信息;When the CIM interface processes the request, replace the OEM information in the request with the original manufacturer information;

CIM接口返回结果时,将返回结果中的原厂商信息替换为相应的OEM厂商信息。When the CIM interface returns the result, replace the original manufacturer information in the returned result with the corresponding OEM manufacturer information.

需要特别指出的是,上述系统的实施例采用了上述方法的实施例来具体说明各模块的工作过程,本领域技术人员能够很容易想到,将这些模块应用到上述方法的其他实施例中。It should be particularly pointed out that the embodiments of the above system use the embodiments of the above method to specifically describe the working process of each module, and those skilled in the art can easily think of applying these modules to other embodiments of the above method.

此外,上述方法步骤以及系统单元或模块也可以利用控制器以及用于存储使得控制器实现上述步骤或单元或模块功能的计算机程序的计算机可读存储介质实现。In addition, the above-mentioned method steps and system units or modules can also be implemented by using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the functions of the above-mentioned steps or units or modules.

本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。为了清楚地说明硬件和软件的这种可互换性,已经就各种示意性组件、方块、模块、电路和步骤的功能对其进行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现的功能,但是这种实现决定不应被解释为导致脱离本发明实施例公开的范围。Those skilled in the art will also appreciate that the various exemplary logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends on the specific application and design constraints imposed on the overall system. Those skilled in the art may implement the functions in various ways for each specific application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.

上述实施例,特别是任何“优选”实施例是实现的可能示例,并且仅为了清楚地理解本发明的原理而提出。可以在不脱离本文所描述的技术的精神和原理的情况下对上述实施例进行许多变化和修改。所有修改旨在被包括在本公开的范围内并且由所附权利要求保护。The above-described embodiments, particularly any "preferred" embodiments, are possible examples of implementations, and are presented merely for a clear understanding of the principles of the invention. Numerous changes and modifications may be made to the above-described embodiments without departing from the spirit and principles of the technology described herein. All modifications are intended to be included within the scope of this disclosure and protected by the appended claims.

Claims (10)

1.一种兼容多种OEM产品的CIM接口定制的方法,其特征在于,包括以下步骤:1. a method for customizing the CIM interface compatible with multiple OEM products, is characterized in that, comprises the following steps: 定义编译配置文件;Define the compilation configuration file; 对各个所述CIM接口中的OEM定制字段进行宏控制,并根据所述宏控制对所述OEM定制字段进行编译;Perform macro control on the OEM customized fields in each of the CIM interfaces, and compile the OEM customized fields according to the macro control; 根据所述编译配置文件修改所述CIM接口代码库中的静态文件的OEM信息;Modify the OEM information of the static file in the CIM interface code base according to the compilation configuration file; 将所述OEM信息和原厂商信息进行相互转换。The OEM information and the original manufacturer information are converted into each other. 2.根据权利要求1所述的方法,其特征在于,所述编译配置文件包含OEM厂商信息、静态文件列表、原有厂商术语和OEM术语。2 . The method according to claim 1 , wherein the compilation configuration file contains OEM manufacturer information, a static file list, original manufacturer terms and OEM terms. 3 . 3.根据权利要求1所述的方法,其特征在于,对各个所述CIM接口中的OEM定制字段进行宏控制,并根据所述宏控制对所述OEM定制字段进行编译包括:3. The method according to claim 1, wherein performing macro control on the OEM customized fields in each of the CIM interfaces, and compiling the OEM customized fields according to the macro control comprises: 在所述CIM接口功能开发阶段,通过所述宏控制判断所述OEM定制字段对应的代码是否需要进行编译;In the development stage of the CIM interface function, determine whether the code corresponding to the OEM custom field needs to be compiled through the macro control; 响应于所述OEM定制字段对应的代码需要进行编译,所述宏对上述代码进行编译,并使所述CIM接口功能支持编译后的所述OEM定制字段。In response to the need to compile the code corresponding to the OEM custom field, the macro compiles the above code, and enables the CIM interface function to support the compiled OEM custom field. 4.根据权利要求1所述的方法,其特征在于,根据所述编译配置文件修改所述CIM接口代码库中的静态文件的OEM信息包括:4. The method according to claim 1, wherein modifying the OEM information of the static file in the CIM interface code base according to the compilation configuration file comprises: 根据所述编译配置文件,依次对已配置的每一种OEM产品进行静态文件的修改和编译;According to the compiling configuration file, modify and compile the static file for each configured OEM product in turn; 将每一种OEM产品打包成CIM接口软件包;Package each OEM product into a CIM interface software package; 将所述CIM接口软件包解压调用并集成到相应的OEM版本的系统ISO镜像中。The CIM interface software package is decompressed, invoked, and integrated into the system ISO image of the corresponding OEM version. 5.根据权利要求1所述的方法,其特征在于,将所述OEM信息和原厂商信息进行相互转换包括:5. The method according to claim 1, wherein the mutual conversion of the OEM information and the original manufacturer information comprises: 所述CIM接口处理请求时,将请求中的所述OEM信息替换为原厂商信息;When the CIM interface processes the request, replace the OEM information in the request with the original manufacturer information; 所述CIM接口返回结果时,将所述返回结果中的原厂商信息替换为相应的OEM厂商信息。When the CIM interface returns a result, the original manufacturer information in the returned result is replaced with the corresponding OEM manufacturer information. 6.一种兼容多种OEM产品的CIM接口定制的设备,其特征在于,所述设备包括:6. A CIM interface customized equipment compatible with multiple OEM products, wherein the equipment comprises: 定义模块,所述定义模块配置为定义编译配置文件;a definition module, the definition module is configured to define a compilation configuration file; 编译模块,所述编译模块配置为对各个所述CIM接口中的OEM定制字段进行宏控制,并根据所述宏控制对所述OEM定制字段进行编译;a compiling module, the compiling module is configured to perform macro control on the OEM custom fields in each of the CIM interfaces, and compile the OEM custom fields according to the macro control; 修改模块,所述修改模块配置为根据所述编译配置文件修改所述CIM接口代码库中的静态文件的OEM信息;a modification module, the modification module is configured to modify the OEM information of the static file in the CIM interface code base according to the compilation configuration file; 转换模块,所述转换模块配置为将所述OEM信息和原厂商信息进行相互转换。A conversion module, the conversion module is configured to convert the OEM information and the original manufacturer information to each other. 7.根据权利要求6所述的设备,其特征在于,所述编译配置文件包含OEM厂商信息、静态文件列表、原有厂商术语和OEM术语。7 . The device according to claim 6 , wherein the compilation configuration file contains OEM manufacturer information, a static file list, original manufacturer terms and OEM terms. 8 . 8.根据权利要求6所述的设备,其特征在于,所述编译模块还配置为:8. The device according to claim 6, wherein the compiling module is further configured to: 在所述CIM接口功能开发阶段,通过所述宏控制判断所述OEM定制字段对应的代码是否需要进行编译;In the development stage of the CIM interface function, determine whether the code corresponding to the OEM custom field needs to be compiled through the macro control; 响应于所述OEM定制字段对应的代码需要进行编译,所述宏对上述代码进行编译,并使所述CIM接口功能支持编译后的所述OEM定制字段。In response to the need to compile the code corresponding to the OEM custom field, the macro compiles the above code, and enables the CIM interface function to support the compiled OEM custom field. 9.根据权利要求6所述的设备,其特征在于,所述修改模块还配置为:9. The device according to claim 6, wherein the modification module is further configured to: 根据所述编译配置文件,依次对已配置的每一种OEM产品进行静态文件的修改和编译;According to the compiling configuration file, modify and compile the static file for each configured OEM product in turn; 将每一种OEM产品打包成CIM接口软件包;Package each OEM product into a CIM interface software package; 将所述CIM接口软件包解压调用并集成到相应的OEM版本的系统ISO镜像中。The CIM interface software package is decompressed, invoked, and integrated into the system ISO image of the corresponding OEM version. 10.根据权利要求6所述的设备,其特征在于,所述转换模块还配置为:10. The device according to claim 6, wherein the conversion module is further configured to: 所述CIM接口处理请求时,将请求中的所述OEM信息替换为原厂商信息;When the CIM interface processes the request, replace the OEM information in the request with the original manufacturer information; 所述CIM接口返回结果时,将所述返回结果中的原厂商信息替换为相应的OEM厂商信息。When the CIM interface returns a result, the original manufacturer information in the returned result is replaced with the corresponding OEM manufacturer information.
CN202010472255.3A 2020-05-29 2020-05-29 A method and device for CIM interface customization compatible with multiple OEM products Active CN111722846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010472255.3A CN111722846B (en) 2020-05-29 2020-05-29 A method and device for CIM interface customization compatible with multiple OEM products

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010472255.3A CN111722846B (en) 2020-05-29 2020-05-29 A method and device for CIM interface customization compatible with multiple OEM products

Publications (2)

Publication Number Publication Date
CN111722846A CN111722846A (en) 2020-09-29
CN111722846B true CN111722846B (en) 2022-05-31

Family

ID=72565206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010472255.3A Active CN111722846B (en) 2020-05-29 2020-05-29 A method and device for CIM interface customization compatible with multiple OEM products

Country Status (1)

Country Link
CN (1) CN111722846B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114003293B (en) * 2021-12-30 2022-03-08 云账户技术(天津)有限公司 Interface management method, device, electronic equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1399737A (en) * 1999-09-24 2003-02-26 凤凰技术有限公司 Software development system for facilitating selection of components
CN1957328A (en) * 2000-03-20 2007-05-02 凤凰技术有限公司 A software development system that presents a logical view of solution components, facilitates their selection, and signal omission links before compilation
CN103593183A (en) * 2013-11-01 2014-02-19 浪潮电子信息产业股份有限公司 Construction method for system compatible with mainline version and OEM versions

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1399737A (en) * 1999-09-24 2003-02-26 凤凰技术有限公司 Software development system for facilitating selection of components
CN1957328A (en) * 2000-03-20 2007-05-02 凤凰技术有限公司 A software development system that presents a logical view of solution components, facilitates their selection, and signal omission links before compilation
CN103593183A (en) * 2013-11-01 2014-02-19 浪潮电子信息产业股份有限公司 Construction method for system compatible with mainline version and OEM versions

Also Published As

Publication number Publication date
CN111722846A (en) 2020-09-29

Similar Documents

Publication Publication Date Title
JP5965080B2 (en) System, method and computer program product for software build and load processing using compilation and deployment services
CN111736954B (en) Multi-intelligent contract virtual machine implementation method, multi-intelligent contract virtual machine and system
US5872977A (en) Object-oriented method and apparatus for creating a makefile
JP5165886B2 (en) Extensible user interface extension method for componentized application environment, componentized application environment data processing system, and computer program
CN111399840B (en) Module development method and device
CN113504914B (en) Operating system construction compiling method and device, electronic equipment and storage medium
JPH0561683A (en) Information processing system and software maintenance system based on object
CN111610974B (en) Cross-system platform compiling method for edge computing
US20090144711A1 (en) System and method for common compiler services based on an open services gateway initiative architecture
JP2004503866A (en) Modular computer system and related methods
CN100489777C (en) Intelligent platform management interface firmware architecture and establishing method thereof
CN111683005B (en) Internet of things intelligent gateway equipment and construction method thereof
CN111722846B (en) A method and device for CIM interface customization compatible with multiple OEM products
KR20230073229A (en) Disassembly calling method and calling system of third-party library functions for software platforms
EP3866443A1 (en) Opc ua server, system operating using opc ua, and method of executing opc ua system
CN116436794A (en) OPC real-time data integration and control method based on Internet of things model
CN116755788A (en) On-line rule modification method, device, equipment and storage medium
CN106951357A (en) A kind of server end application issue monitoring method and device based on finger daemon
CN119597344A (en) System migration method, device and related products
CN118550275A (en) Vehicle-side fault prediction method, device, equipment and storage medium
CN113961232A (en) Terminal, method and platform server for providing integrated development environment
US7519719B2 (en) Automatic creation of protocol dependent control path for instrument application
CN116450234A (en) C++ model library service packaging framework system and method
CN115454575A (en) Method, device, equipment and storage medium for conversion and automatic loading of jar package
CN115509531A (en) Micro front end implementation method, device, terminal and storage medium based on front end technology

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant