CN113703852B - Out-of-band management method and device of server, electronic equipment and readable storage medium - Google Patents

Out-of-band management method and device of server, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113703852B
CN113703852B CN202110930687.9A CN202110930687A CN113703852B CN 113703852 B CN113703852 B CN 113703852B CN 202110930687 A CN202110930687 A CN 202110930687A CN 113703852 B CN113703852 B CN 113703852B
Authority
CN
China
Prior art keywords
option
band
name
option name
file
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
CN202110930687.9A
Other languages
Chinese (zh)
Other versions
CN113703852A (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 CN202110930687.9A priority Critical patent/CN113703852B/en
Publication of CN113703852A publication Critical patent/CN113703852A/en
Application granted granted Critical
Publication of CN113703852B publication Critical patent/CN113703852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application discloses a server out-of-band management method, a server out-of-band management device, an electronic device and a readable storage medium. Generating an option name standard for out-of-band management in advance based on the option name for in-band management; the option name criteria satisfy conditions that identify options, are common to industry, and are written using standard code. Modifying each option name in the defined option name file according to the option name standard; out-of-band option names for out-of-band management are automatically generated by scanning the definition option name file. And carrying out-of-band option management based on the out-of-band option name, so that the out-of-band management efficiency of the server can be effectively improved.

Description

服务器的带外管理方法、装置、电子设备及可读存储介质Server out-of-band management method, device, electronic device and readable storage medium

技术领域technical field

本申请涉及计算机技术领域,特别是涉及一种服务器的带外管理方法、装置、电子设备及可读存储介质。The present application relates to the field of computer technology, in particular to a server out-of-band management method, device, electronic equipment and readable storage medium.

背景技术Background technique

服务器管理方式包括带外管理方式和带内管理方式,带外管理方式通过BMC(Baseboard Management Controller,基板管理控制器)等带外管理控制器来管理服务器的方式,带外管理无需登录被管理设备的操作系统和配置界面,不影响服务器工作和安全性,是提升计算机管理效率的重要手段。带内管理方式是在本机上操作或执行管理程序管理本计算机的方式,其对计算机性能有扰动,并可能威胁计算机安全性。由于带外管理方式的优势,大多服务器采用带外管理方式,高效的带外管理可以提升服务器的可用性和可服务性,大幅缩减服务器部署和管理的人力成本和时间成本。Server management methods include out-of-band management and in-band management. The out-of-band management method uses out-of-band management controllers such as BMC (Baseboard Management Controller) to manage servers. Out-of-band management does not require logging in to the managed device The unique operating system and configuration interface will not affect the work and security of the server, and it is an important means to improve the efficiency of computer management. The in-band management method is to operate or execute a management program on the local computer to manage the computer, which disturbs the performance of the computer and may threaten the security of the computer. Due to the advantages of out-of-band management, most servers adopt out-of-band management. Efficient out-of-band management can improve server availability and serviceability, and greatly reduce labor and time costs for server deployment and management.

Redfish是一种应用广泛,通用性好且适用于服务器的带外管理标准,该标准通过Json(JavaScript Object Notation,JavaScript对象简谱)文件交互数据,通过统一的Restful(Representational State Transfer)对外提供服务。Redfish的其中一项重要功能是BIOS(Basic Input Output System,基本输入输出系统)设置管理功能,包括BIOS设置的显示,修改和保留配置升级BIOS,通过脚本可以批量修改BIOS、导入BIOS设置,效率较高。在BIOS设置管理中存在BIOS选项的命名功能。相关技术通常采用手动方式为每个选择创建用于带外管理方式的选项名。Redfish is an out-of-band management standard with wide application, good versatility and suitable for servers. This standard provides external services through Json (JavaScript Object Notation, JavaScript Object Notation) file interaction data and unified Restful (Representational State Transfer). One of the important functions of Redfish is BIOS (Basic Input Output System, basic input and output system) setting management function, including the display of BIOS settings, modification and retention of configuration upgrade BIOS, batch modification of BIOS and import of BIOS settings through scripts, which is more efficient high. There is a naming function of the BIOS option in the BIOS setting management. The related art usually manually creates an option name for each option for out-of-band management.

但是,手动创建每个选项的选项名不仅耗费大量时间和大量人力,效率低下,而且选项名可能随版本变更。在服务器带外管理中,带外选项管理要通过选项名和选项值两个信息共同完成的,选项名变化会导致使用原选项名的脚本执行带外选项修改失败,脚本要频繁修改,影响带外管理的效率。However, manually creating the option name for each option is not only time-consuming and labor-intensive, but also inefficient, and the option name may change from version to version. In server out-of-band management, out-of-band option management is accomplished through both the option name and the option value. The change of the option name will cause the script using the original option name to fail to modify the out-of-band option. The script needs to be modified frequently, which affects the out-of-band management efficiency.

鉴于此,如何提升服务器的带外管理效率,是所属领域技术人员需要解决的技术问题。In view of this, how to improve the out-of-band management efficiency of the server is a technical problem to be solved by those skilled in the art.

发明内容Contents of the invention

本申请提供了一种服务器的带外管理方法、装置、电子设备及可读存储介质,有效提升服务器的带外管理效率。The present application provides a server out-of-band management method, device, electronic equipment and readable storage medium, which effectively improves the out-of-band management efficiency of the server.

为解决上述技术问题,本发明实施例提供以下技术方案:In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:

本发明实施例一方面提供了一种服务器的带外管理方法,包括:On the one hand, an embodiment of the present invention provides an out-of-band management method for a server, including:

预先基于带内管理的选项名生成带外管理的选项名标准;所述选项名标准满足标识选项、业界通用且使用标准代码编写的条件;An option name standard for out-of-band management is generated in advance based on an option name for in-band management; the option name standard satisfies the conditions of identifying options, being common in the industry, and using standard codes;

按照所述选项名标准,对定义选项名称文件中的各选项名称进行修改;Modify each option name in the file defining option names according to the option name standard;

通过扫描所述定义选项名称文件,自动生成带外管理的带外选项名,以基于所述带外选项名进行带外选项管理。An out-of-band option name for out-of-band management is automatically generated by scanning the defined option name file, so as to perform out-of-band option management based on the out-of-band option name.

可选的,所述通过扫描所述定义选项名称文件,自动生成带外管理的带外选项名的过程,包括:Optionally, the process of automatically generating the out-of-band option name of the out-of-band management by scanning the defined option name file includes:

扫描所述定义选项名称文件,得到各选项的初始选项名称;Scanning the defined option name file to obtain the initial option name of each option;

对每个选项,判断当前选项是否为预设类型选项;For each option, determine whether the current option is a preset type option;

若所述当前选项为所述预设类型选项,根据设备标识信息和所述当前选项的初始选项名称自动生成所述当前选项的带外选项名;If the current option is the preset type option, automatically generate the out-of-band option name of the current option according to the device identification information and the initial option name of the current option;

若所述当前选项不为所述预设类型选项,将所述当前选项的初始选项名称作为所述当前选项的带外选项名。If the current option is not the preset type option, use the initial option name of the current option as the out-of-band option name of the current option.

可选的,所述通过扫描所述定义选项名称文件,自动生成带外管理的带外选项名的过程,包括:Optionally, the process of automatically generating the out-of-band option name of the out-of-band management by scanning the defined option name file includes:

扫描所述定义选项名称文件,得到各选项的初始选项名称;Scanning the defined option name file to obtain the initial option name of each option;

对每个选项,判断当前选项是否为预设类型选项;For each option, determine whether the current option is a preset type option;

若所述当前选项为所述预设类型选项,根据所述当前选项的丝印信息生成所述带外选项名;If the current option is the preset type option, generating the out-of-band option name according to the silk screen information of the current option;

若所述当前选项不为所述预设类型选项,将所述当前选项的初始选项名称作为所述当前选项的带外选项名进行生成。If the current option is not the preset type option, generate the initial option name of the current option as the out-of-band option name of the current option.

可选的,所述通过扫描所述定义选项名称文件,自动生成带外管理的带外选项名的过程,包括:Optionally, the process of automatically generating the out-of-band option name of the out-of-band management by scanning the defined option name file includes:

预先创建带外选项名自动生成功能模块;Pre-create the out-of-band option name automatic generation function module;

调用所述带外选项名自动生成功能模块的make文件,在所述make文件中调用脚本扫描所述定义选项名称文件,得到各选项的初始选项名称,并根据各选项的初始选项名称自动生成带外管理的带外选项名。Call the make file of the out-of-band option name to automatically generate a function module, call the script in the make file to scan the definition option name file, obtain the initial option name of each option, and automatically generate the band Out-of-band option name for out-of-band management.

可选的,所述根据各选项的选项名称自动生成带外管理的带外选项名,包括:Optionally, the out-of-band option name of the out-of-band management is automatically generated according to the option name of each option, including:

对每个选项,判断所述带外选项名自动生成功能模块是否携带当前选项的手动指定标识;For each option, it is judged whether the automatic generation function module of the out-of-band option name carries the manual designation of the current option;

若所述带外选项名自动生成功能模块携带当前选项的手动指定标识,将用户输入的自定义选项名称作为所述带外选项名;If the out-of-band option name automatic generation function module carries the manually specified identifier of the current option, use the user-defined option name input by the user as the out-of-band option name;

若所述带外选项名自动生成功能模块没有携带当前选项的手动指定标识,将所述初始选项名称作为所述带外选项名。If the out-of-band option name automatic generation function module does not carry the manually specified identifier of the current option, use the initial option name as the out-of-band option name.

可选的,所述按照所述选项名标准,对定义选项名称文件中的各选项名称进行修改的过程,包括:Optionally, the process of modifying each option name in the option name file according to the option name standard includes:

判断UNI文件和BIOS设置页面描述文件是否存在不符合所述选项名标准的选项名称;Judging whether there is an option name that does not meet the option name standard in the UNI file and the BIOS setup page description file;

若UNI文件和BIOS设置页面描述文件存在不符合所述选项名标准的目标选项名称,则按照所述选项名标准修改各目标选项名称。If there are target option names that do not conform to the option name standard in the UNI file and the BIOS setting page description file, then modify each target option name according to the option name standard.

本发明实施例另一方面提供了一种服务器的带外管理装置,包括:Another aspect of the embodiment of the present invention provides an out-of-band management device for a server, including:

选项名标准制定模块,用于预先基于带内管理的选项名生成带外管理的选项名标准;所述选项名标准满足标识选项、业界通用且使用标准代码编写的条件;The option name standard formulation module is used to generate the option name standard for out-of-band management based on the option name for in-band management in advance; the option name standard meets the conditions of identifying options, being common in the industry, and using standard codes;

带内名称统一模块,用于按照所述选项名标准,对定义选项名称文件中的各选项名称进行修改;The in-band name unification module is used to modify each option name in the file defining the option name according to the option name standard;

带外名称生成模块,用于通过扫描所述定义选项名称文件,自动生成带外管理的带外选项名,以基于所述带外选项名进行带外选项管理。The out-of-band name generating module is configured to automatically generate an out-of-band option name for out-of-band management by scanning the defined option name file, so as to perform out-of-band option management based on the out-of-band option name.

可选的,所述带外名称生成模块进一步用于:扫描所述定义选项名称文件,得到各选项的初始选项名称;对每个选项,判断当前选项是否为预设类型选项;若所述当前选项为所述预设类型选项,根据设备标识信息和所述当前选项的初始选项名称自动生成所述当前选项的带外选项名;若所述当前选项不为所述预设类型选项,将所述当前选项的初始选项名称作为所述当前选项的带外选项名。Optionally, the out-of-band name generation module is further used to: scan the defined option name file to obtain the initial option name of each option; for each option, determine whether the current option is a preset type option; if the current The option is the preset type option, and the out-of-band option name of the current option is automatically generated according to the device identification information and the initial option name of the current option; if the current option is not the preset type option, the The initial option name of the current option is used as the out-of-band option name of the current option.

本发明实施例还提供了一种电子设备,包括处理器,所述处理器用于执行存储器中存储的计算机程序时实现如前任一项所述服务器的带外管理方法的步骤。An embodiment of the present invention also provides an electronic device, including a processor, and the processor is configured to implement the steps of the out-of-band management method for the server described in any one of the preceding items when executing the computer program stored in the memory.

本发明实施例最后还提供了一种可读存储介质,所述可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如前任一项所述服务器的带外管理方法的步骤。Finally, the embodiment of the present invention also provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor, the out-of-band management method for the server as described in the preceding item is implemented. step.

本申请提供的技术方案的优点在于,以带内选项名为标准,基于可读性好和通用性好为原则制定选项名标准,并按照该选项名标准修订各选项的带内选项名称,因为选项名标准是以带内选项名为蓝本制作,所以检查和改造的工作量不大,主要是确保版本升级是改动部分要符合版本命名标准。基于修改后的带内选项名称可自动生成可读性好、带内带外选项名一致,且可保持跨代兼容的选项名,克服了带外BIOS选项管理中由选项名引起的各种问题,从而可有效提升了服务器带外管理效率,缩减了服务器管理的时间成本和人力成本,提升了服务器的可服务性和可用性。The advantage of the technical solution provided by the application is that, with the in-band option name standard, the option name standard is formulated based on the principles of good readability and versatility, and the in-band option name of each option is revised according to the option name standard, because The option name standard is based on the in-band option name blueprint, so the workload of inspection and modification is not large. The main thing is to ensure that the changed part of the version upgrade conforms to the version naming standard. Based on the modified in-band option name, it can automatically generate an option name with good readability, consistent in-band and out-of-band option names, and can maintain cross-generation compatibility, overcoming various problems caused by option names in out-of-band BIOS option management , thus effectively improving the out-of-band management efficiency of the server, reducing the time cost and labor cost of server management, and improving the serviceability and availability of the server.

此外,本发明实施例还针对服务器的带外管理方法提供了相应的实现装置、电子设备及可读存储介质,进一步使得所述方法更具有实用性,所述装置、电子设备及可读存储介质具有相应的优点。In addition, the embodiment of the present invention also provides a corresponding implementation device, electronic device and readable storage medium for the out-of-band management method of the server, which further makes the method more practical. The device, electronic device and readable storage medium has corresponding advantages.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure.

附图说明Description of drawings

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

图1为本发明实施例提供的一种服务器的带外管理方法的流程示意图;FIG. 1 is a schematic flowchart of an out-of-band management method for a server provided by an embodiment of the present invention;

图2为本发明实施例提供的服务器的带外管理装置的一种具体实施方式结构图;FIG. 2 is a structural diagram of a specific implementation manner of an out-of-band management device of a server provided by an embodiment of the present invention;

图3为本发明实施例提供的电子设备的一种具体实施方式结构图。FIG. 3 is a structural diagram of a specific implementation manner of an electronic device provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等是用于区别不同的对象,而不是用于描述特定的顺序。此外术语“包括”和“具有”以及他们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可包括没有列出的步骤或单元。The terms "first", "second", "third" and "fourth" in the specification and claims of this application and the above drawings are used to distinguish different objects, rather than to describe a specific order . Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device comprising a series of steps or units is not limited to the listed steps or units, but may include unlisted steps or units.

在介绍了本发明实施例的技术方案后,下面详细的说明本申请的各种非限制性实施方式。After introducing the technical solutions of the embodiments of the present invention, various non-limiting implementations of the present application will be described in detail below.

首先参见图1,图1为本发明实施例提供的一种服务器的带外管理方法的流程示意图,本发明实施例可包括以下内容:First, referring to FIG. 1, FIG. 1 is a schematic flowchart of an out-of-band management method for a server provided by an embodiment of the present invention. The embodiment of the present invention may include the following:

S101:预先基于带内管理的选项名生成带外管理的选项名标准。S101: Generate an option name standard for out-of-band management based on the option name for in-band management in advance.

为保持选项名可跨版本,跨平台,跨代兼容,需要制定一个选项名标准,各选项均按照选项名标准进行选项名的命名。本步骤中的选项名标准需要满足可标识选项、业界通用且使用标准代码编写的条件。可标识选项是为了实现选项名的可读性好,业界通用是为了实现选项名通用性好,基于带内管理的选项名为基准,是为了使带内带外的选项名保持一致。可读性好是指看到选项名后可以识别是哪个选项,需要修改某个选项时,可以通过很容易找到对应的选项名。通用性好是指如果业界有通用的名称则需要采用通行的名称,通用性好才能保持选项名的生命力,从而保持跨代兼容性,如果没有通用性则需要经常修改标准。带内带外保持一致是指带内BIOS设置页面显示的选项名和带外选项名相同,而不是各有一个不同的选项名。保持跨版本,跨平台,跨代兼容是指选项名保持不变,避免选项名不断变更,导致客户需要随变更修改带外管理脚本,从而增加不必要的工作量。也就是说,选项名标准以带内选项名为蓝本,原则为:可读性好,通用性好,可使用诸如Ascii码等标准代码并避免使用特殊字符,带内带外保持一致,保持跨版本,跨平台,跨代兼容。In order to keep option names cross-version, cross-platform, and cross-generation compatibility, it is necessary to formulate an option name standard, and each option is named according to the option name standard. The option name standard in this step needs to meet the conditions of identifiable options, common in the industry, and written in standard code. The identifiable option is to achieve good readability of the option name, the common use in the industry is to achieve the commonality of the option name, and the option name based on in-band management is the benchmark to make the in-band and out-of-band option names consistent. Good readability means that you can identify which option it is after seeing the option name. When you need to modify an option, you can easily find the corresponding option name. Good versatility means that if there is a common name in the industry, you need to use a common name. Good versatility can maintain the vitality of the option name, thereby maintaining cross-generation compatibility. If there is no universality, the standard needs to be revised frequently. Consistent in-band and out-of-band means that the option name displayed on the in-band BIOS setting page is the same as that of the out-of-band option, instead of each having a different option name. Maintaining cross-version, cross-platform, and cross-generation compatibility means that the option name remains unchanged, avoiding constant changes in the option name, causing customers to modify the out-of-band management script with the change, thereby increasing unnecessary workload. That is to say, the option name standard is based on the in-band option name. The principles are: good readability, good versatility, standard codes such as Ascii codes can be used and special characters can be avoided, the in-band and out-of-band are consistent, and cross- Version, cross-platform, cross-generation compatibility.

S102:按照选项名标准,对定义选项名称文件中的各选项名称进行修改。S102: Modify each option name in the option name definition file according to the option name standard.

本实施例的定义选项名称文件是指包含所有选项名称的文件,包括但并不限制于为UNI文件和Vfr/Hfr/Sd文件,UNI文件提供了一系列的标记(Token)用来表示文本,这些文本可以有不同的实现(比如可以使用不同的语言,不同的编码格式),但是在代码调用中都可以使用统一的标记来表示。Vfr(a high-level Visual Forms Representation)为一种可视化表格表示语言,在UEFI(Unified Extensible Firmware Interface,统一可扩展固件接口)中用来描述BIOS设置页面,Hfr和Sd文件为Vfr文件的变种。也即本实施例可先判断UNI文件和BIOS设置页面描述文件是否存在不符合选项名标准的选项名称;若UNI文件和BIOS设置页面描述文件存在不符合选项名标准的目标选项名称,则按照选项名标准修改各目标选项名称。若UNI文件和BIOS设置页面描述文件不存在不符合选项名标准的目标选项名称,则结束。The definition option name file of the present embodiment refers to the file that includes all option names, including but not limited to UNI file and Vfr/Hfr/Sd file, and UNI file provides a series of mark (Token) to be used for representing text, These texts can have different implementations (for example, different languages and different encoding formats can be used), but they can be represented by a unified mark in the code call. Vfr (a high-level Visual Forms Representation) is a visual form representation language, which is used in UEFI (Unified Extensible Firmware Interface, Unified Extensible Firmware Interface, Unified Extensible Firmware Interface) to describe the BIOS setting page, and the Hfr and Sd files are variants of the Vfr file. That is to say, the present embodiment can first judge whether the UNI file and the BIOS setting page description file have an option name that does not meet the option name standard; if the UNI file and the BIOS setting page description file have a target option name that does not meet the option name standard, then according to the option Modify each target option name according to the name standard. If there is no target option name that does not meet the option name standard in the UNI file and the BIOS setting page description file, then end.

因为选项名标准是以带内选项名为蓝本制作,所以检查和改造的工作量不大,主要是确保版本升级是改动部分要符合版本命名标准,不会增加整个技术方案的难度和繁琐程度,更易于实现。Because the option name standard is based on the blueprint of the in-band option name, the workload of inspection and modification is not large. The main purpose is to ensure that the modified part of the version upgrade must comply with the version naming standard, and will not increase the difficulty and cumbersomeness of the entire technical solution. Easier to implement.

S103:通过扫描定义选项名称文件,自动生成带外管理的带外选项名,以基于带外选项名进行带外选项管理。S103: Automatically generate an out-of-band option name for out-of-band management by scanning the definition option name file, so as to perform out-of-band option management based on the out-of-band option name.

在本步骤中,由于在上个步骤中已经对定义选项名称文件中的所有选项的选项名称进行了标注化处理,通过扫描定义选项名称文件,可以提取各选项的标准化的选项名,将该选项名作为带外管理的选项名进行生成,而带内管理的选项名是从定义选项名称文件中获取的,同时保证带内和带外的选项名一致性。基于标准化的选项名对服务器进行带外管理,不会存在由于选项名可读性不好所导致很难找到需要修改的选项的选项名,带外BIOS设置界面也很难看出是什么选项。也不会因为选项名变化导致使用原选项名的脚本执行带外选项修改失败的问题。也不会由于带外管理的选项名和BIOS设置界面显示的选项名不一致给客户造成困扰,自然也不会增加产品说明书的带外管理的表的制作难度。In this step, since the option names of all options in the defined option name file have been annotated in the previous step, by scanning the defined option name file, the standardized option name of each option can be extracted, and the option The option name of the out-of-band management is generated as the option name of the out-of-band management, and the option name of the in-band management is obtained from the file defining the option name, while ensuring the consistency of the option names of the in-band and out-of-band. The out-of-band management of the server based on standardized option names does not have the option names that make it difficult to find the options that need to be modified due to poor readability of the option names, and it is also difficult to see what options are in the out-of-band BIOS setting interface. There is also no problem that the script using the original option name fails to modify the out-of-band option due to the change of the option name. It will not cause trouble to the customer because the option name of the out-of-band management is inconsistent with the option name displayed on the BIOS setting interface, and naturally it will not increase the difficulty of making the out-of-band management table in the product manual.

在本发明实施例提供的技术方案中,以带内选项名为标准,基于可读性好和通用性好为原则制定选项名标准,并按照该选项名标准修订各选项的带内选项名称,因为选项名标准是以带内选项名为蓝本制作,所以检查和改造的工作量不大,主要是确保版本升级是改动部分要符合版本命名标准。基于修改后的带内选项名称可自动生成可读性好、带内带外选项名一致,且可保持跨代兼容的选项名,克服了带外BIOS选项管理中由选项名引起的各种问题,从而可有效提升了服务器带外管理效率,缩减了服务器管理的时间成本和人力成本,提升了服务器的可服务性和可用性。In the technical solution provided by the embodiment of the present invention, the in-band option name is standard, and the option name standard is formulated based on the principles of good readability and good versatility, and the in-band option name of each option is revised according to the option name standard, Because the option name standard is based on the in-band option name blueprint, the workload of inspection and modification is not large. The main thing is to ensure that the modified part of the version upgrade must comply with the version naming standard. Based on the modified in-band option name, it can automatically generate an option name with good readability, consistent in-band and out-of-band option names, and can maintain cross-generation compatibility, overcoming various problems caused by option names in out-of-band BIOS option management , thus effectively improving the out-of-band management efficiency of the server, reducing the time cost and labor cost of server management, and improving the serviceability and availability of the server.

需要说明的是,本申请中各步骤之间没有严格的先后执行顺序,只要符合逻辑上的顺序,则这些步骤可以同时执行,也可按照某种预设顺序执行,图1只是一种示意方式,并不代表只能是这样的执行顺序。It should be noted that there is no strict order of execution among the steps in this application, as long as they conform to the logical order, these steps can be executed at the same time, or in a certain preset order, and Figure 1 is only a schematic way , does not mean that it can only be executed in this order.

在上述实施例中,对于如何执行步骤S102并不做限定,本实施例中给出带外管理的带外选项名的一种可选的实施方式,可包括如下步骤:In the above embodiment, there is no limitation on how to execute step S102. In this embodiment, an optional implementation manner of the out-of-band option name of the out-of-band management is given, which may include the following steps:

预先创建带外选项名自动生成功能模块;Pre-create the out-of-band option name automatic generation function module;

调用带外选项名自动生成功能模块的make文件,在make文件中调用脚本扫描定义选项名称文件,如扫描Vfr/Hfr/Sd和UNI文件,得到各选项的初始选项名称,并根据各选项的初始选项名称自动生成带外管理的带外选项名。Call the make file of the out-of-band option name to automatically generate the function module, call the script in the make file to scan the definition option name file, such as scanning Vfr/Hfr/Sd and UNI files, to obtain the initial option name of each option, and according to the initial option name of each option The option name automatically generates the out-of-band option name for out-of-band management.

因为UNI文件中的选项名适用于带内显示的,所以使用UNI文件中定义的选项名字符串来作为带外配置的选项名可以保持选项名带内带外一致性。Because the option names in the UNI file are suitable for in-band display, using the option name string defined in the UNI file as the option name of the out-of-band configuration can maintain the consistency of the option name in-band and out-of-band.

可以理解的是,一个工程中的源文件不计其数,其按类型、功能、模块分别放在若干个目录中,make文件定义了一系列的规则来指定哪些文件需要先编译,哪些文件需要后编译,哪些文件需要重新编译,甚至于进行更复杂的功能操作,因为make文件就像一个Shell脚本一样,也可以执行操作系统的命令。在本实施例中,可用make文件将脚本加入编译过程,自动产生选项的带外选项名,生成的选项名可读性好,带内带外一致,且保持跨代兼容。It is understandable that there are countless source files in a project, which are placed in several directories according to type, function, and module. The make file defines a series of rules to specify which files need to be compiled first and which files need to be compiled later. Compilation, which files need to be recompiled, and even more complex functional operations, because the make file is like a shell script, which can also execute operating system commands. In this embodiment, the make file can be used to add the script to the compilation process, and the out-of-band option name of the option is automatically generated. The generated option name is readable, consistent in-band and out-of-band, and maintains cross-generation compatibility.

可以理解的是,对于某些特殊的选项,例如某些选项使用自动生成方案会产生重复的选项名,而产生重复的选项名不利于带外选项管理,为了解决这个特殊情况,可对某些重要和常用选项使用手动指定选项名的方式,确保选项名不重复。基于上述实施例,本申请还提供了兼容手动指定的技术方案,可包括下述内容:It is understandable that for some special options, for example, using the automatic generation scheme for some options will generate repeated option names, and the repeated option names are not conducive to out-of-band option management. In order to solve this special situation, some Important and commonly used options use the method of manually specifying option names to ensure that option names are not repeated. Based on the above embodiments, this application also provides a technical solution compatible with manual designation, which may include the following:

调用预先创建的带外选项名自动生成功能模块的make文件,在make文件中调用脚本扫描Vfr/Hfr/Sd和UNI文件,得到各选项的初始选项名称。Call the pre-created make file that automatically generates the function module with the name of the out-of-band option, call the script in the make file to scan the Vfr/Hfr/Sd and UNI files, and obtain the initial option name of each option.

对每个选项,判断带外选项名自动生成功能模块是否携带当前选项的手动指定标识;若带外选项名自动生成功能模块携带当前选项的手动指定标识,将用户输入的自定义选项名称作为带外选项名;若带外选项名自动生成功能模块没有携带当前选项的手动指定标识,将初始选项名称作为带外选项名。For each option, determine whether the out-of-band option name automatic generation function module carries the manually specified identifier of the current option; Out-of-band option name; if the out-of-band option name automatic generation function module does not carry the manually specified identifier of the current option, the initial option name will be used as the out-of-band option name.

在本实施例中,带外选项名自动生成功能模块可加一个FixedStrings.uni,通过FixedStrings.uni设置相应的标识值和选项标识来告诉系统是否对某个选项进行手动指定选项名。淡然以直接在选项所在的UNI中手动指定带外选项名,这均不影响本申请的实现。In this embodiment, a FixedStrings.uni can be added to the out-of-band option name automatic generation function module, and the corresponding identification value and option identification can be set through FixedStrings.uni to tell the system whether to manually specify an option name for an option. You can manually specify the name of the out-of-band option directly in the UNI where the option is located, which will not affect the implementation of this application.

此外,对于某些特别选项,带内选项名向用户展示时是不同的,但按照上述方案提取带内选项名再生成带外选项名,会使得带外选项名重复。举例来说,Pcie(peripheralcomponent interconnect express,高速串行计算机扩展总线标准)root port(Pcie根端口)相关的选项,每颗Cpu(中央处理器)有多个Stack(Cpu中为IO设备分组,每一组称为一个Stack),每个Stack下有多个root port(根端口)。对于多路服务器来说,pcie root port的数量很多,从而会有很多选项名相同的选项。例如PCI-E Port这个选项,用来使能和关闭pcie root port,每个root port都有一个名字为PCI-E Port的选项。在带内BIOS设置页面,因为这些选项名相同的选项会出现在不同的Cpu、Stack和Root Port的配置页面,所以不会造成误解。带外选项名如果和带内选项名相同,则会导致带外选项名重复,从而使某些选项无法修改。为了解决这个特殊问题,本申请提供了两种实施方式,可包括下述内容:In addition, for some special options, the in-band option names are different when displayed to the user, but extracting the in-band option names and regenerating the out-of-band option names according to the above solution will cause the out-of-band option names to be duplicated. For example, options related to Pcie (peripheral component interconnect express, high-speed serial computer expansion bus standard) root port (Pcie root port), each Cpu (central processing unit) has multiple Stacks (IO devices are grouped in the Cpu, each A group is called a Stack), and there are multiple root ports (root ports) under each Stack. For multi-way servers, there are many pcie root ports, so there will be many options with the same option name. For example, the option PCI-E Port is used to enable and disable the pcie root port, and each root port has an option named PCI-E Port. On the in-band BIOS setting page, because the options with the same name will appear in different configuration pages of Cpu, Stack and Root Port, so there will be no misunderstanding. If the name of the out-of-band option is the same as the name of the in-band option, the name of the out-of-band option will be repeated, so that some options cannot be modified. In order to solve this special problem, this application provides two implementation modes, which may include the following content:

作为一种可选的实施方式,可先扫描定义选项名称文件,得到各选项的初始选项名称;对每个选项,判断当前选项是否为预设类型选项;若当前选项为预设类型选项,根据设备标识信息和当前选项的初始选项名称自动生成当前选项的带外选项名;若当前选项不为预设类型选项,将当前选项的初始选项名称作为当前选项的带外选项名。As an optional implementation, firstly scan the definition option name file to obtain the initial option name of each option; for each option, judge whether the current option is a preset type option; if the current option is a preset type option, according to The device identification information and the initial option name of the current option automatically generate the out-of-band option name of the current option; if the current option is not a preset type option, the initial option name of the current option is used as the out-of-band option name of the current option.

作为与上述实施例并列的一种可选的实施方式,同样可先扫描定义选项名称文件,得到各选项的初始选项名称;对每个选项,判断当前选项是否为预设类型选项;若当前选项为预设类型选项,根据当前选项的丝印信息生成带外选项名;若当前选项不为预设类型选项,将当前选项的初始选项名称作为当前选项的带外选项名进行生成。As an optional implementation in parallel with the above-mentioned embodiment, it is also possible to scan the definition option name file first to obtain the initial option name of each option; for each option, determine whether the current option is a preset type option; if the current option If it is a preset type option, generate an out-of-band option name according to the silkscreen information of the current option; if the current option is not a preset type option, use the initial option name of the current option as the out-of-band option name of the current option.

在上述实施例中,预设类型选项例如可为Pcie root port。对于第一种实施方式,再根据上述实施例生成带外选项名,可在该选项名前添加Cpu#Stack#Port#,通过设备标识信息来区分各个不同的选项,这种方案自动生成工作量小,可读性好,可以看出是选项是哪个root port的选项。但是,这种方案下的带外选项名和带内选项名不一致,也即用于带外管理的选项名和BIOS设置界面显示的选项名不一致,会造成使用上的困扰。在服务器带外管理中,带外选项管理要通过选项名和选项值两个信息共同完成的,选项名变化会导致使用原选项名的脚本执行带外选项修改失败,脚本要频繁修改。用于带外管理的选项名和BIOS设置界面显示的选项名不一致,同一个选项有不同的名字会为客户使用造成部件,且产品说明书上要附一个带外管理表用于将带外管理选项和带内管理选项对应起来,而服务器BIOS选项有几千项之多,带外管理和带内管理选项名不同不仅会增加表格制作难度,还容易出错。这些问题都会影响带外管理的效率。而第二个技术方案,采用专案的丝印信息手动指定带外选项名,这种方案需要根据专案设计适配,可以保持带内带外一致,但是手动指定会为用户带来不便。本实施例提供了特殊选项的带外选项名称的多种生成方式以及每种生成方式的利弊,所属领域技术人员可根据实际情况灵活选择,这均不影响本申请的实现。In the above embodiment, the preset type option may be Pcie root port, for example. For the first implementation mode, according to the above-mentioned embodiment to generate the out-of-band option name, you can add Cpu#Stack#Port# before the option name, and use the device identification information to distinguish each different option. This solution automatically generates a small workload , with good readability, it can be seen which root port option is the option. However, the name of the out-of-band option under this scheme is inconsistent with the name of the in-band option, that is, the name of the option used for out-of-band management is inconsistent with the name of the option displayed on the BIOS setting interface, which will cause trouble in use. In server out-of-band management, out-of-band option management is accomplished through both the option name and the option value. The change of the option name will cause the script using the original option name to fail to execute the out-of-band option modification, and the script needs to be modified frequently. The option name for out-of-band management is inconsistent with the option name displayed on the BIOS setting interface. Different names for the same option will cause parts for customers to use, and an out-of-band management table must be attached to the product manual to use the out-of-band management option and The in-band management options correspond to each other, and there are thousands of server BIOS options. The different names of the out-of-band management and in-band management options will not only increase the difficulty of making the form, but also be prone to errors. These problems will affect the efficiency of out-of-band management. The second technical solution uses the silk screen information of the project to manually specify the name of the out-of-band option. This solution needs to be adapted according to the project design and can keep the in-band and out-of-band consistent, but manual designation will bring inconvenience to users. This embodiment provides multiple ways of generating the out-of-band option names of special options and the advantages and disadvantages of each generation way, which can be flexibly selected by those skilled in the art according to the actual situation, which will not affect the implementation of the present application.

此外,还需要说明的是,本申请所提供的技术方案也适用于带外管理的其他问题,可以对带外管理进行优化和评估,使得带外管理的效果和带内管理区域一致,且保持了带外管理更加便捷和安全的特性,对于提升带外管理的效率,缩减了服务器带外管理的时间成本和人力成本,提升服务器的可服务性和可用性有重要意义。除了用于带外管理的选项名外,带外选项管理中的选项联动问题也可以使用这种方法和思想处理。使得带外修改的效果和带内修改一致,从而提升了带外管理的能力。In addition, it should be noted that the technical solution provided by this application is also applicable to other issues of out-of-band management, and can optimize and evaluate out-of-band management, so that the effect of out-of-band management is consistent with that of in-band management, and maintains The more convenient and secure feature of out-of-band management is of great significance for improving the efficiency of out-of-band management, reducing the time cost and labor cost of server out-of-band management, and improving the serviceability and availability of servers. In addition to the option names used for out-of-band management, the option linkage problem in out-of-band option management can also be handled with this method and idea. The effect of the out-of-band modification is consistent with that of the in-band modification, thus improving the out-of-band management capability.

本发明实施例还针对服务器的带外管理方法提供了相应的装置,进一步使得方法更具有实用性。其中,装置可从功能模块的角度和硬件的角度分别说明。下面对本发明实施例提供的服务器的带外管理装置进行介绍,下文描述的服务器的带外管理装置与上文描述的服务器的带外管理方法可相互对应参照。The embodiment of the present invention also provides a corresponding device for the out-of-band management method of the server, which further makes the method more practical. Wherein, the device can be described separately from the perspective of functional modules and hardware. The out-of-band management device of the server provided by the embodiment of the present invention is introduced below, and the out-of-band management device of the server described below and the out-of-band management method of the server described above can be referred to in correspondence.

基于功能模块的角度,参见图2,图2为本发明实施例提供的服务器的带外管理装置在一种具体实施方式下的结构图,该装置可包括:Based on the perspective of functional modules, refer to FIG. 2 . FIG. 2 is a structural diagram of an out-of-band management device for a server provided in an embodiment of the present invention in a specific implementation manner. The device may include:

选项名标准制定模块201,用于预先基于带内管理的选项名生成带外管理的选项名标准;选项名标准满足标识选项、业界通用且使用标准代码编写的条件。The option name standard formulation module 201 is configured to pre-generate the option name standard for out-of-band management based on the option name for in-band management; the option name standard meets the conditions of identifying options, being common in the industry, and using standard codes.

带内名称统一模块202,用于按照选项名标准,对定义选项名称文件中的各选项名称进行修改。The in-band name unification module 202 is configured to modify each option name in the option name definition file according to the option name standard.

带外名称生成模块203,用于通过扫描定义选项名称文件,自动生成带外管理的带外选项名,以基于带外选项名进行带外选项管理。The out-of-band name generating module 203 is configured to automatically generate an out-of-band option name for out-of-band management by scanning the definition option name file, so as to perform out-of-band option management based on the out-of-band option name.

可选的,在本实施例的一些实施方式中,上述带外名称生成模块203可用于:扫描定义选项名称文件,得到各选项的初始选项名称;对每个选项,判断当前选项是否为预设类型选项;若当前选项为预设类型选项,根据设备标识信息和当前选项的初始选项名称自动生成当前选项的带外选项名;若当前选项不为预设类型选项,将当前选项的初始选项名称作为当前选项的带外选项名。Optionally, in some implementations of this embodiment, the above-mentioned out-of-band name generation module 203 can be used to: scan the definition option name file to obtain the initial option name of each option; for each option, determine whether the current option is preset Type option; if the current option is a default type option, the out-of-band option name of the current option is automatically generated according to the device identification information and the initial option name of the current option; if the current option is not a preset type option, the initial option name of the current option is The out-of-band option name that is the current option.

作为本实施例的一种可选的实施方式,上述带外名称生成模块203还可进一步用于:扫描定义选项名称文件,得到各选项的初始选项名称;对每个选项,判断当前选项是否为预设类型选项;若当前选项为预设类型选项,根据当前选项的丝印信息生成带外选项名;若当前选项不为预设类型选项,将当前选项的初始选项名称作为当前选项的带外选项名进行生成。As an optional implementation of this embodiment, the above-mentioned out-of-band name generation module 203 can also be further used to: scan the definition option name file to obtain the initial option name of each option; for each option, determine whether the current option is Default type option; if the current option is a preset type option, generate an out-of-band option name according to the silkscreen information of the current option; if the current option is not a preset type option, use the initial option name of the current option as the out-of-band option of the current option name to generate.

作为本实施例的另一种可选的实施方式,上述带外名称生成模块203例如还可进一步用于:预先创建带外选项名自动生成功能模块;调用带外选项名自动生成功能模块的make文件,在make文件中调用脚本扫描定义选项名称文件,得到各选项的初始选项名称,并根据各选项的初始选项名称自动生成带外管理的带外选项名。As another optional implementation manner of this embodiment, the above-mentioned out-of-band name generation module 203 may be further used for example to: create an out-of-band option name automatic generation function module in advance; call the make of the out-of-band option name automatic generation function module file, call the script in the make file to scan the definition option name file, obtain the initial option name of each option, and automatically generate the out-of-band option name of the out-of-band management according to the initial option name of each option.

作为本实施例的其他可选的实施方式,上述带外名称生成模块203例如还可进一步用于:对每个选项,判断带外选项名自动生成功能模块是否携带当前选项的手动指定标识;若带外选项名自动生成功能模块携带当前选项的手动指定标识,将用户输入的自定义选项名称作为带外选项名;若带外选项名自动生成功能模块没有携带当前选项的手动指定标识,将初始选项名称作为带外选项名。As other optional implementations of this embodiment, the above-mentioned out-of-band name generation module 203 can also be further used for example: for each option, determine whether the out-of-band option name automatic generation function module carries the manually specified identifier of the current option; The out-of-band option name automatic generation function module carries the manually specified identifier of the current option, and uses the custom option name input by the user as the out-of-band option name; if the out-of-band option name automatic generation function module does not carry the manually specified identifier of the current option, the initial The option name is used as the out-of-band option name.

可选的,在本实施例的一些实施方式中,上述带内名称统一模块202可用于:判断UNI文件和BIOS设置页面描述文件是否存在不符合选项名标准的选项名称;若UNI文件和BIOS设置页面描述文件存在不符合选项名标准的目标选项名称,则按照选项名标准修改各目标选项名称。Optionally, in some implementations of this embodiment, the above-mentioned in-band name unification module 202 can be used to: determine whether there is an option name that does not meet the option name standard in the UNI file and the BIOS setting page description file; if the UNI file and the BIOS setting If there are target option names in the page description file that do not meet the option name standard, modify each target option name according to the option name standard.

本发明实施例所述服务器的带外管理装置的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。The functions of each functional module of the out-of-band management device of the server described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment, and the specific implementation process can refer to the relevant description of the above method embodiment, and will not be repeated here.

由上可知,本发明实施例可有效提升服务器的带外管理效率。It can be known from the above that the embodiment of the present invention can effectively improve the out-of-band management efficiency of the server.

上文中提到的服务器的带外管理装置是从功能模块的角度描述,进一步的,本申请还提供一种电子设备,是从硬件角度描述。图3为本申请实施例提供的电子设备在一种实施方式下的结构示意图。如图3所示,该电子设备包括存储器30,用于存储计算机程序;处理器31,用于执行计算机程序时实现如上述任一实施例提到的服务器的带外管理方法的步骤。The out-of-band management device of the server mentioned above is described from the perspective of functional modules. Further, the present application also provides an electronic device, which is described from the perspective of hardware. FIG. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application in an implementation manner. As shown in FIG. 3 , the electronic device includes a memory 30 for storing a computer program; a processor 31 for implementing the steps of the out-of-band management method for a server mentioned in any of the above embodiments when executing the computer program.

其中,处理器31可以包括一个或多个处理核心,比如4核心处理器、8核心处理器,处理器31还可为控制器、微控制器、微处理器或其他数据处理芯片等。处理器31可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable GateArray,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器31也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器31可以集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器31还可以包括AI(ArtificialIntelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。Wherein, the processor 31 may include one or more processing cores, such as a 4-core processor or an 8-core processor, and the processor 31 may also be a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 31 can be realized by at least one hardware form in DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, programmable logic array) . Processor 31 may also include a main processor and a coprocessor, the main processor is a processor for processing data in a wake-up state, and is also called a CPU (Central Processing Unit, central processing unit); the coprocessor is Low-power processor for processing data in standby state. In some embodiments, the processor 31 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 31 may further include an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is configured to process computing operations related to machine learning.

存储器30可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器30还可包括高速随机存取存储器以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。存储器30在一些实施例中可以是电子设备的内部存储单元,例如服务器的硬盘。存储器30在另一些实施例中也可以是电子设备的外部存储设备,例如服务器上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(SecureDigital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器30还可以既包括电子设备的内部存储单元也包括外部存储设备。存储器30不仅可以用于存储安装于电子设备的应用软件及各类数据,例如:执行漏洞处理方法的程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。本实施例中,存储器30至少用于存储以下计算机程序301,其中,该计算机程序被处理器31加载并执行之后,能够实现前述任一实施例公开的服务器的带外管理方法的相关步骤。另外,存储器30所存储的资源还可以包括操作系统302和数据303等,存储方式可以是短暂存储或者永久存储。其中,操作系统302可以包括Windows、Unix、Linux等。数据303可以包括但不限于服务器的带外管理结果对应的数据等。Memory 30 may include one or more computer-readable storage media, which may be non-transitory. The memory 30 may also include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices. In some embodiments, the storage 30 may be an internal storage unit of an electronic device, such as a hard disk of a server. The memory 30 may also be an external storage device of the electronic device in other embodiments, such as a plug-in hard disk equipped on a server, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash memory card (Flash Card) etc. Further, the memory 30 may also include both an internal storage unit of the electronic device and an external storage device. The memory 30 can not only be used to store application software and various data installed in the electronic device, such as: program codes for executing the vulnerability handling method, etc., but also can be used to temporarily store data that has been output or will be output. In this embodiment, the memory 30 is at least used to store the following computer program 301, wherein, after the computer program is loaded and executed by the processor 31, it can realize the relevant steps of the out-of-band management method of the server disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 30 may also include an operating system 302 and data 303, etc., and the storage method may be temporary storage or permanent storage. Wherein, the operating system 302 may include Windows, Unix, Linux and so on. Data 303 may include, but is not limited to, data corresponding to out-of-band management results of the server, and the like.

在一些实施例中,上述电子设备还可包括有显示屏32、输入输出接口33、通信接口34或者称为网络接口、电源35以及通信总线36。其中,显示屏32、输入输出接口33比如键盘(Keyboard)属于用户接口,可选的用户接口还可以包括标准的有线接口、无线接口等。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。显示器也可以适当的称为显示屏或显示单元,用于显示在电子设备中处理的信息以及用于显示可视化的用户界面。通信接口34可选的可以包括有线接口和/或无线接口,如WI-FI接口、蓝牙接口等,通常用于在电子设备与其他电子设备之间建立通信连接。通信总线36可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extendedindustry standard architecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图3中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。In some embodiments, the above-mentioned electronic device may further include a display screen 32 , an input/output interface 33 , a communication interface 34 or network interface, a power supply 35 and a communication bus 36 . Wherein, the display screen 32 and the input/output interface 33 such as a keyboard are user interfaces, and optional user interfaces may also include standard wired interfaces, wireless interfaces, and the like. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, Organic Light-Emitting Diode) touch device, and the like. A display may also be properly called a display screen or a display unit, and is used for displaying information processed in an electronic device and for displaying a visualized user interface. The communication interface 34 may optionally include a wired interface and/or a wireless interface, such as a WI-FI interface, a Bluetooth interface, etc., and is generally used to establish a communication connection between an electronic device and other electronic devices. The communication bus 36 may be a peripheral component interconnect (PCI for short) bus or an extended industry standard architecture (EISA for short) bus or the like. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 3 , but it does not mean that there is only one bus or one type of bus.

本领域技术人员可以理解,图3中示出的结构并不构成对该电子设备的限定,可以包括比图示更多或更少的组件,例如还可包括实现各类功能的传感器37。Those skilled in the art can understand that the structure shown in FIG. 3 does not constitute a limitation to the electronic device, and may include more or less components than shown in the figure, for example, may also include a sensor 37 for implementing various functions.

本发明实施例所述电子设备的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。The functions of each functional module of the electronic device described in the embodiment of the present invention can be specifically implemented according to the method in the above method embodiment, and the specific implementation process can refer to the relevant description of the above method embodiment, and will not be repeated here.

由上可知,本发明实施例可有效提升服务器的带外管理效率。It can be known from the above that the embodiment of the present invention can effectively improve the out-of-band management efficiency of the server.

可以理解的是,如果上述实施例中的服务器的带外管理方法以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、电可擦除可编程ROM、寄存器、硬盘、多媒体卡、卡型存储器(例如SD或DX存储器等)、磁性存储器、可移动磁盘、CD-ROM、磁碟或者光盘等各种可以存储程序代码的介质。It can be understood that, if the out-of-band management method of the server in the above embodiment is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , executing all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), electrically erasable programmable ROM, register, hard disk, multimedia Cards, card-type memories (such as SD or DX memories, etc.), magnetic memories, removable disks, CD-ROMs, magnetic disks, or optical disks, and other media that can store program codes.

基于此,本发明实施例还提供了一种可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时如上任意一实施例所述服务器的带外管理方法的步骤。Based on this, an embodiment of the present invention further provides a readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps of the out-of-band management method for a server described in any one of the above embodiments are described.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的硬件包括装置及电子设备而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other. As for the hardware including devices and electronic equipment disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and for related details, please refer to the description of the methods.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

以上对本申请所提供的一种服务器的带外管理方法、装置、电子设备及可读存储介质进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。The out-of-band management method, device, electronic equipment, and readable storage medium of a server provided in this application have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention, and the descriptions of the above embodiments are only used to help understand the method and core idea of the present invention. It should be pointed out that those skilled in the art can make several improvements and modifications to the application without departing from the principle of the present invention, and these improvements and modifications also fall within the protection scope of the claims of the application.

Claims (9)

1.一种服务器的带外管理方法,其特征在于,包括:1. A method for out-of-band management of a server, comprising: 预先基于带内管理的选项名生成带外管理的选项名标准;所述选项名标准满足标识选项、业界通用且使用标准代码编写的条件;An option name standard for out-of-band management is generated in advance based on an option name for in-band management; the option name standard satisfies the conditions of identifying options, being common in the industry, and using standard codes; 按照所述选项名标准,对定义选项名称文件中的各选项名称进行修改;Modify each option name in the file defining option names according to the option name standard; 通过扫描所述定义选项名称文件,自动生成带外管理的带外选项名,以基于所述带外选项名进行带外选项管理;Automatically generate an out-of-band option name for out-of-band management by scanning the defined option name file, so as to perform out-of-band option management based on the out-of-band option name; 其中,所述通过扫描所述定义选项名称文件,自动生成带外管理的带外选项名的过程,包括:Wherein, the process of automatically generating the out-of-band option name for out-of-band management by scanning the defined option name file includes: 预先创建带外选项名自动生成功能模块;Pre-create the out-of-band option name automatic generation function module; 调用所述带外选项名自动生成功能模块的make文件,在所述make文件中调用脚本扫描所述定义选项名称文件,得到各选项的初始选项名称,并根据各选项的初始选项名称自动生成带外管理的带外选项名。Call the make file of the out-of-band option name to automatically generate a function module, call the script in the make file to scan the definition option name file, obtain the initial option name of each option, and automatically generate the band Out-of-band option name for out-of-band management. 2.根据权利要求1所述的服务器的带外管理方法,其特征在于,所述通过扫描所述定义选项名称文件,自动生成带外管理的带外选项名的过程,包括:2. The out-of-band management method of the server according to claim 1, wherein the process of automatically generating an out-of-band option name for out-of-band management by scanning the defined option name file includes: 扫描所述定义选项名称文件,得到各选项的初始选项名称;Scanning the defined option name file to obtain the initial option name of each option; 对每个选项,判断当前选项是否为预设类型选项;For each option, determine whether the current option is a preset type option; 若所述当前选项为所述预设类型选项,根据设备标识信息和所述当前选项的初始选项名称自动生成所述当前选项的带外选项名;If the current option is the preset type option, automatically generate the out-of-band option name of the current option according to the device identification information and the initial option name of the current option; 若所述当前选项不为所述预设类型选项,将所述当前选项的初始选项名称作为所述当前选项的带外选项名。If the current option is not the preset type option, use the initial option name of the current option as the out-of-band option name of the current option. 3.根据权利要求1所述的服务器的带外管理方法,其特征在于,所述通过扫描所述定义选项名称文件,自动生成带外管理的带外选项名的过程,包括:3. The out-of-band management method of the server according to claim 1, wherein the process of automatically generating an out-of-band option name for out-of-band management by scanning the defined option name file includes: 扫描所述定义选项名称文件,得到各选项的初始选项名称;Scanning the defined option name file to obtain the initial option name of each option; 对每个选项,判断当前选项是否为预设类型选项;For each option, determine whether the current option is a preset type option; 若所述当前选项为所述预设类型选项,根据所述当前选项的丝印信息生成所述带外选项名;If the current option is the preset type option, generating the out-of-band option name according to the silk screen information of the current option; 若所述当前选项不为所述预设类型选项,将所述当前选项的初始选项名称作为所述当前选项的带外选项名进行生成。If the current option is not the preset type option, generate the initial option name of the current option as the out-of-band option name of the current option. 4.根据权利要求1所述的服务器的带外管理方法,其特征在于,所述根据各选项的选项名称自动生成带外管理的带外选项名,包括:4. The out-of-band management method of the server according to claim 1, wherein the out-of-band option name for out-of-band management is automatically generated according to the option name of each option, comprising: 对每个选项,判断所述带外选项名自动生成功能模块是否携带当前选项的手动指定标识;For each option, it is judged whether the automatic generation function module of the out-of-band option name carries the manual designation of the current option; 若所述带外选项名自动生成功能模块携带当前选项的手动指定标识,将用户输入的自定义选项名称作为所述带外选项名;If the out-of-band option name automatic generation function module carries the manually specified identifier of the current option, use the user-defined option name input by the user as the out-of-band option name; 若所述带外选项名自动生成功能模块没有携带当前选项的手动指定标识,将所述初始选项名称作为所述带外选项名。If the out-of-band option name automatic generation function module does not carry the manually specified identifier of the current option, use the initial option name as the out-of-band option name. 5.根据权利要求1所述的服务器的带外管理方法,其特征在于,所述按照所述选项名标准,对定义选项名称文件中的各选项名称进行修改的过程,包括:5. The out-of-band management method of the server according to claim 1, characterized in that, the process of modifying each option name in the option name file according to the option name standard includes: 判断UNI文件和BIOS设置页面描述文件是否存在不符合所述选项名标准的选项名称;Judging whether there is an option name that does not meet the option name standard in the UNI file and the BIOS setup page description file; 若UNI文件和BIOS设置页面描述文件存在不符合所述选项名标准的目标选项名称,则按照所述选项名标准修改各目标选项名称。If there are target option names that do not conform to the option name standard in the UNI file and the BIOS setting page description file, then modify each target option name according to the option name standard. 6.一种服务器的带外管理装置,其特征在于,包括:6. An out-of-band management device for a server, comprising: 选项名标准制定模块,用于预先基于带内管理的选项名生成带外管理的选项名标准;所述选项名标准满足标识选项、业界通用且使用标准代码编写的条件;The option name standard formulation module is used to generate the option name standard for out-of-band management based on the option name for in-band management in advance; the option name standard meets the conditions of identifying options, being common in the industry, and using standard codes; 带内名称统一模块,用于按照所述选项名标准,对定义选项名称文件中的各选项名称进行修改;The in-band name unification module is used to modify each option name in the file defining the option name according to the option name standard; 带外名称生成模块,用于通过扫描所述定义选项名称文件,自动生成带外管理的带外选项名,以基于所述带外选项名进行带外选项管理;An out-of-band name generation module, configured to automatically generate an out-of-band option name for out-of-band management by scanning the defined option name file, so as to perform out-of-band option management based on the out-of-band option name; 其中,所述带外名称生成模块进一步用于:预先创建带外选项名自动生成功能模块;调用所述带外选项名自动生成功能模块的make文件,在所述make文件中调用脚本扫描所述定义选项名称文件,得到各选项的初始选项名称,并根据各选项的初始选项名称自动生成带外管理的带外选项名。Wherein, the out-of-band name generating module is further used for: pre-creating the out-of-band option name automatic generation function module; calling the make file of the out-of-band option name automatic generation function module, calling the script in the make file to scan the Define the option name file, obtain the initial option name of each option, and automatically generate the out-of-band option name of the out-of-band management according to the initial option name of each option. 7.根据权利要求6所述的服务器的带外管理装置,其特征在于,所述带外名称生成模块进一步用于:扫描所述定义选项名称文件,得到各选项的初始选项名称;对每个选项,判断当前选项是否为预设类型选项;若所述当前选项为所述预设类型选项,根据设备标识信息和所述当前选项的初始选项名称自动生成所述当前选项的带外选项名;若所述当前选项不为所述预设类型选项,将所述当前选项的初始选项名称作为所述当前选项的带外选项名。7. The out-of-band management device of the server according to claim 6, wherein the out-of-band name generation module is further configured to: scan the file of defined option names to obtain the initial option names of each option; options, judging whether the current option is a preset type option; if the current option is the preset type option, automatically generating the out-of-band option name of the current option according to the device identification information and the initial option name of the current option; If the current option is not the preset type option, use the initial option name of the current option as the out-of-band option name of the current option. 8.一种电子设备,其特征在于,包括处理器和存储器,所述处理器用于执行所述存储器中存储的计算机程序时实现如权利要求1至5任一项所述服务器的带外管理方法的步骤。8. An electronic device, characterized in that it includes a processor and a memory, and the processor is used to implement the out-of-band management method of the server according to any one of claims 1 to 5 when executing the computer program stored in the memory A step of. 9.一种可读存储介质,其特征在于,所述可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述服务器的带外管理方法的步骤。9. A readable storage medium, wherein a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the out-of-band The steps of the management method.
CN202110930687.9A 2021-08-13 2021-08-13 Out-of-band management method and device of server, electronic equipment and readable storage medium Active CN113703852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110930687.9A CN113703852B (en) 2021-08-13 2021-08-13 Out-of-band management method and device of server, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110930687.9A CN113703852B (en) 2021-08-13 2021-08-13 Out-of-band management method and device of server, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113703852A CN113703852A (en) 2021-11-26
CN113703852B true CN113703852B (en) 2023-08-08

Family

ID=78652646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110930687.9A Active CN113703852B (en) 2021-08-13 2021-08-13 Out-of-band management method and device of server, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113703852B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119376802A (en) * 2024-10-12 2025-01-28 百信信息技术有限公司 A method for batch modifying BIOS option values based on redfish interface

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9122501B1 (en) * 2014-09-08 2015-09-01 Quanta Computer Inc. System and method for managing multiple bios default configurations
CN109445865A (en) * 2018-11-09 2019-03-08 郑州云海信息技术有限公司 A kind of BIOS option remote batch setting method, device, terminal and storage medium
CN109815721A (en) * 2019-01-30 2019-05-28 郑州云海信息技术有限公司 A method, device, terminal and storage medium for modifying BIOS Setup option password through BMC
CN110399169A (en) * 2019-07-19 2019-11-01 苏州浪潮智能科技有限公司 Method, device, equipment and readable storage medium for modifying BIOS option

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9122501B1 (en) * 2014-09-08 2015-09-01 Quanta Computer Inc. System and method for managing multiple bios default configurations
CN109445865A (en) * 2018-11-09 2019-03-08 郑州云海信息技术有限公司 A kind of BIOS option remote batch setting method, device, terminal and storage medium
CN109815721A (en) * 2019-01-30 2019-05-28 郑州云海信息技术有限公司 A method, device, terminal and storage medium for modifying BIOS Setup option password through BMC
CN110399169A (en) * 2019-07-19 2019-11-01 苏州浪潮智能科技有限公司 Method, device, equipment and readable storage medium for modifying BIOS option

Also Published As

Publication number Publication date
CN113703852A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
CN109976761B (en) Software development kit generation method and device and terminal equipment
CN113704301B (en) Data processing method, device, system, equipment and medium of heterogeneous computing platform
US11768757B2 (en) Kernel debugging system and method
US10445072B1 (en) Execution order block for graphical programming
CN113703781B (en) Storage system interface generation method, device, electronic device and readable storage medium
WO2022142035A1 (en) System language internationalization maintenance method, apparatus, and computer-readable storage medium
CN114866424B (en) Server management method, device, system, electronic equipment and readable storage medium
CN110244983A (en) Method for fixing serial number, terminal equipment and storage medium
CN117171042B (en) Development and debugging system and method based on parameter configuration method for graphic program
CN113434467B (en) Network file transmission method, device and computer-readable storage medium
CN112559337A (en) Code coverage rate testing method and device, electronic equipment and storage medium
WO2023092942A1 (en) Data storage method and apparatus, and electronic device and readable storage medium
CN113703852B (en) Out-of-band management method and device of server, electronic equipment and readable storage medium
CN114860268A (en) Operating system installation method, device, electronic device and readable storage medium
CN109614094B (en) Drawing method of GPU glCallList view model based on UML
CN102193804A (en) Loading method of drivers in single board and communication equipment
CN114610340A (en) Project deployment method, device, equipment and storage medium
WO2025002053A1 (en) Parameter configuration method for graphics program and development and debugging system for vehicle
CN111399871B (en) System updating method, device, equipment and medium of HBA card
CN106293697A (en) A kind of method and device realizing virsh order
US7664776B1 (en) Methods and apparatus for dynamic form definition
CN116226563A (en) Rich text editing method, rich text editing device, electronic equipment and computer readable storage medium
CN114416103A (en) Code compilation method and apparatus, computer readable medium, electronic device
CN115169294A (en) A data conversion method, device and medium
CN112104544B (en) Method and device for sending dynamic mail based on Freemarker

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