CN113064793B - Method, system, terminal and storage medium for polling and collecting bus device location information - Google Patents
Method, system, terminal and storage medium for polling and collecting bus device location information Download PDFInfo
- Publication number
- CN113064793B CN113064793B CN202110338463.9A CN202110338463A CN113064793B CN 113064793 B CN113064793 B CN 113064793B CN 202110338463 A CN202110338463 A CN 202110338463A CN 113064793 B CN113064793 B CN 113064793B
- Authority
- CN
- China
- Prior art keywords
- bus device
- location information
- variable
- variable structure
- value
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3027—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a bus
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本发明大数据服务平台技术领域,具体涉及一种总线设备位置信息轮询收集方法、系统、终端及存储介质。The present invention relates to the technical field of big data service platforms, in particular to a method, system, terminal and storage medium for polling and collecting bus device location information.
背景技术Background technique
PCIE资产信息功能,是通过BIOS收集PCIE设备的相关信息,发送给BMC,然后由BMC显示到WebUI界面的功能,这个功能中的一项重要信息就是设备的位置信息,通过位置信息,用户可以把具体的设备,与机器上的丝印对应起来,从而对应到机器上的具体位置,便于机器检修、故障件定位、更换配件等。The PCIE asset information function is to collect the relevant information of the PCIE device through the BIOS, send it to the BMC, and then display it to the WebUI interface by the BMC. An important information in this function is the location information of the device. Through the location information, the user can The specific equipment corresponds to the silk screen on the machine, so as to correspond to the specific position on the machine, which is convenient for machine maintenance, fault location, and replacement of accessories.
现有方案的设计,资产信息功能会由加载和执行启动设备的事件触发,收集相关信息,发送给BMC,再由BMC显示到它的WebUI界面。总线设备的位置信息数据结构里设计有一个布尔变量,用来记录该条位置信息是否已经跟设备匹配关联上过,如果已经关联,则该条信息后续不再参与处理,防止信息因被重复使用又匹配上其它设备,造成信息不准确。In the design of the existing solution, the asset information function will be triggered by the event of loading and executing the startup device, collect relevant information, send it to the BMC, and then display it on its WebUI interface by the BMC. A boolean variable is designed in the location information data structure of the bus device to record whether the location information has been associated with the device. It is matched with other devices, resulting in inaccurate information.
在服务器启动后第一次加载启动项便找到启动的总线设备,并成功进行启动的情况下,资产信息功能仅被触发一次,现有技术方案是可以达到预期效果的,但是在启动中首次没有加载到某个总线设备,需要进行轮询启动总线设备加载时(包括并不限于触发BIOS提供的启动项轮询功能),资产信息功能会随着每次轮询都执行一次,而资产信息在重新执行之后会刷新之前的数据。由于总线设备位置信息数据结构里的布尔变量设计,在第一次尝试启动之后,所有实际总线设备的位置信息因被标记为已处理,而不再参与后续处理,导致后续启动都得不到总线设备的位置信息,BMC WebUI上的PCIE设备资产信息位置信息栏位会全部显示为空白。When the startup item is loaded for the first time after the server is started, the startup bus device is found and the startup is successful, and the asset information function is only triggered once. When loading to a bus device, polling is required to start the bus device loading (including but not limited to triggering the startup item polling function provided by the BIOS), the asset information function will be executed once with each polling, and the asset information will be in The previous data will be refreshed after re-execution. Due to the design of Boolean variables in the bus device location information data structure, after the first attempt to start, the location information of all actual bus devices is marked as processed, and no longer participates in subsequent processing, resulting in subsequent startups without getting the bus The location information of the device, the location information field of the PCIE device asset information on the BMC WebUI will all be blank.
发明内容SUMMARY OF THE INVENTION
针对现有技术的上述不足,本发明提供一种总线设备位置信息轮询收集方法、系统、终端及存储介质,以解决上述技术问题。In view of the above-mentioned shortcomings of the prior art, the present invention provides a method, system, terminal and storage medium for polling and collecting bus device location information to solve the above-mentioned technical problems.
第一方面,本发明提供一种总线设备位置信息轮询收集方法,包括:In a first aspect, the present invention provides a method for polling and collecting bus device location information, including:
构建各总线设备的变量结构体;Build the variable structure of each bus device;
通过设置变量结构体的存储值标记各总线设备的位置信息采集情况;Mark the location information collection of each bus device by setting the storage value of the variable structure;
根据位置信息采集情况判断是否采集相应总线设备的位置信息。Determine whether to collect the location information of the corresponding bus device according to the location information collection situation.
进一步的,所述构建各总线设备的变量结构体,包括:Further, the construction of the variable structure of each bus device includes:
根据总线设备的设备序列号生产对应的结构体编号;According to the device serial number of the bus device, the corresponding structure number is produced;
以结构体编号作为所述总线设备的变量结构体名字;Use the structure number as the variable structure name of the bus device;
定义变量结构体的属性均为在开机阶段和启动阶段可以访问,并将变量结构体保存至指定目录下。The attributes that define the variable structure are accessible in the boot phase and the startup phase, and the variable structure is saved to the specified directory.
进一步的,所述通过设置变量结构体的存储值标记各总线设备的位置信息采集情况,包括:Further, the location information collection situation of each bus device is marked by setting the storage value of the variable structure, including:
预先设置变量结构体的初始值和变化值;Preset the initial value and change value of the variable structure;
在位置信息收集之前将所有变量结构体的存储值初始化为初始值;Initialize the stored values of all variable structures to initial values before location information is collected;
在收集目标总线设备的位置信息之后将目标总线设备对应的变量结构体的存储值修改为变化值,所述目标总线设备为所有总线设备中的任一个。After the location information of the target bus device is collected, the stored value of the variable structure corresponding to the target bus device is modified to a changed value, and the target bus device is any one of all the bus devices.
进一步的,所述根据位置信息采集情况判断是否采集相应总线设备的位置信息,包括:Further, judging whether to collect the location information of the corresponding bus device according to the location information collection situation includes:
在采集目标总线设备的位置信息之前,读取目标总线设备对应的变量结构体的当前存储值;Before collecting the location information of the target bus device, read the current stored value of the variable structure corresponding to the target bus device;
若所述当前存储值为初始值,则采集所述目标总线设备的位置信息,并将所述位置信息上报BMC;If the current stored value is the initial value, collect the location information of the target bus device, and report the location information to the BMC;
若所述当前存储值为变化值,则跳过所述目标总线设备,询问下个总线设备。If the current stored value is a changed value, the target bus device is skipped, and the next bus device is inquired.
第二方面,本发明提供一种总线设备位置信息轮询收集系统,包括:In a second aspect, the present invention provides a system for polling and collecting bus device location information, including:
变量构建单元,配置用于构建各总线设备的变量结构体;The variable construction unit is configured to construct the variable structure of each bus device;
状态标记单元,配置用于通过设置变量结构体的存储值标记各总线设备的位置信息采集情况;A state marking unit, configured to mark the location information collection situation of each bus device by setting the storage value of the variable structure;
信息采集单元,配置用于根据位置信息采集情况判断是否采集相应总线设备的位置信息。The information collection unit is configured to judge whether to collect the position information of the corresponding bus device according to the position information collection situation.
进一步的,所述变量构建单元包括:Further, the variable construction unit includes:
编号生成模块,配置用于根据总线设备的设备序列号生产对应的结构体编号;The number generation module is configured to generate the corresponding structure number according to the device serial number of the bus device;
编号命名模块,配置用于以结构体编号作为所述总线设备的变量结构体名字;The number naming module is configured to use the structure number as the variable structure name of the bus device;
变量保存模块,配置用于定义变量结构体的属性均为在开机阶段和启动阶段可以访问,并将变量结构体保存至指定目录下。The variable storage module is configured to define the attributes of the variable structure that can be accessed in the boot phase and the startup phase, and save the variable structure to the specified directory.
进一步的,所述状态标记单元包括:Further, the state marking unit includes:
预先设置模块,配置用于预先设置变量结构体的初始值和变化值;The preset module is configured to preset the initial value and change value of the variable structure;
初始设置模块,配置用于在位置信息收集之前将所有变量结构体的存储值初始化为初始值;The initial setting module is configured to initialize the stored values of all variable structures to initial values before the location information is collected;
变量变更模块,配置用于在收集目标总线设备的位置信息之后将目标总线设备对应的变量结构体的存储值修改为变化值,所述目标总线设备为所有总线设备中的任一个。The variable changing module is configured to modify the stored value of the variable structure corresponding to the target bus device to a changed value after collecting the location information of the target bus device, where the target bus device is any one of all the bus devices.
进一步的,所述信息采集单元包括:Further, the information collection unit includes:
变量查看模块,配置用于在采集目标总线设备的位置信息之前,读取目标总线设备对应的变量结构体的当前存储值;The variable viewing module is configured to read the current stored value of the variable structure corresponding to the target bus device before collecting the location information of the target bus device;
信息采集模块,配置用于若所述当前存储值为初始值,则采集所述目标总线设备的位置信息,并将所述位置信息上报BMC;an information collection module, configured to collect the location information of the target bus device if the current stored value is an initial value, and report the location information to the BMC;
跳过处理模块,配置用于若所述当前存储值为变化值,则跳过所述目标总线设备,询问下个总线设备。The skipping processing module is configured to skip the target bus device and inquire the next bus device if the current stored value is a changed value.
第三方面,提供一种终端,包括:In a third aspect, a terminal is provided, including:
处理器、存储器,其中,processor, memory, which,
该存储器用于存储计算机程序,The memory is used to store computer programs,
该处理器用于从存储器中调用并运行该计算机程序,使得终端执行上述的终端的方法。The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned method of the terminal.
第四方面,提供了一种计算机存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。In a fourth aspect, a computer storage medium is provided, and instructions are stored in the computer-readable storage medium, which, when executed on a computer, cause the computer to perform the methods described in the above aspects.
本发明的有益效果在于,The beneficial effect of the present invention is that,
本发明提供的总线设备位置信息轮询收集方法、系统、终端及存储介质,可以有效解决利用启动项轮询功能来触发的BIOS资产信息方案在第一次启动没能进启动项,后轮询其它启动项的情况下资产信息位置信息会显示为空白的问题,完善了服务器的资产信息构建功能,增强了功能的健壮性,并完善了BMC WebUI上对应信息的完整性和正确性。The method, system, terminal and storage medium for polling and collecting bus device location information provided by the present invention can effectively solve the problem that the BIOS asset information scheme triggered by the polling function of the boot item fails to enter the boot item at the first boot, and then polls after the first boot. In the case of other startup items, the asset information location information will be displayed as blank. This improves the server's asset information construction function, enhances the robustness of the function, and improves the integrity and correctness of the corresponding information on the BMC WebUI.
此外,本发明设计原理可靠,结构简单,具有非常广泛的应用前景。In addition, the present invention has reliable design principle and simple structure, and has a very wide application prospect.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. In other words, other drawings can also be obtained based on these drawings without creative labor.
图1是本发明一个实施例的方法的示意性流程图。FIG. 1 is a schematic flowchart of a method according to an embodiment of the present invention.
图2是本发明一个实施例的系统的示意性框图。FIG. 2 is a schematic block diagram of a system according to an embodiment of the present invention.
图3为本发明实施例提供的一种终端的结构示意图。FIG. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
下面对本发明中出现的关键术语进行解释。Key terms appearing in the present invention are explained below.
BIOS:Base Input/Output System基本输入输出系统BIOS: Base Input/Output System
BMC:Baseboard Management Controller基板管理控制器BMC:Baseboard Management Controller
WebUI:Web User Interface网络用户界面WebUI: Web User Interface
PCIE:Peripheral Component Interconnect Express总线PCIE: Peripheral Component Interconnect Express bus
UEFI:UEFI:Unified Extensible Firmware Interface统一的可扩展固件接口UEFI: UEFI: Unified Extensible Firmware Interface Unified Extensible Firmware Interface
EVENT:UEFI规范定义的事件,不同类型的事件由不同的触发形式触发后执行EVENT: The event defined by the UEFI specification, different types of events are triggered by different trigger forms and executed
Boot Option:可供启动的启动项Boot Option: Boot items available for startup
EFI_EVENT_GROUP_READY_TO_BOOT:This event group is notified by thesystem when the Boot Manager is about to load and execute a boot option.一种EVENT类型,在加载和执行一个启动项时被触发EFI_EVENT_GROUP_READY_TO_BOOT: This event group is notified by the system when the Boot Manager is about to load and execute a boot option. An EVENT type that is fired when a boot item is loaded and executed
Variable:UEFI规范中的概念,为一个有变量名称、标识、属性、数据、大小等成员的变量结构体Variable: The concept in the UEFI specification, which is a variable structure with members such as variable name, identifier, attribute, data, size, etc.
Boolean变量:布尔变量,它的值只有两种情况,0(假)和1(真)Boolean variable: Boolean variable, its value has only two cases, 0 (false) and 1 (true)
图1是本发明一个实施例的方法的示意性流程图。其中,图1执行主体可以为一种总线设备位置信息轮询收集系统。FIG. 1 is a schematic flowchart of a method according to an embodiment of the present invention. Wherein, the executive body of FIG. 1 may be a polling and collection system for bus device location information.
如图1所示,该方法包括:As shown in Figure 1, the method includes:
步骤110,构建各总线设备的变量结构体;
步骤120,通过设置变量结构体的存储值标记各总线设备的位置信息采集情况;
步骤130,根据位置信息采集情况判断是否采集相应总线设备的位置信息。Step 130: Determine whether to collect the location information of the corresponding bus device according to the location information collection situation.
为了便于对本发明的理解,下面以本发明总线设备位置信息轮询收集方法的原理,结合实施例对本发明提供的总线设备位置信息轮询收集方法做进一步的描述。In order to facilitate the understanding of the present invention, the method for polling and collecting bus device location information provided by the present invention is further described below based on the principle of the method for polling and collecting bus device location information according to the present invention and in conjunction with the embodiments.
具体的,所述总线设备位置信息轮询收集方法包括:Specifically, the method for polling and collecting bus device location information includes:
S1、构建各总线设备的变量结构体。S1, construct the variable structure of each bus device.
为总线设备定义一个变量结构体(UEFI Variable),服务器内存在多个总线设备时,需要为各总线设备均创建一个变量结构体,并且根据总线设备的设备序列号(或设备名)生成对应的变量结构体的结构体编号,并以结构体编号为对应变量结构体命名。这样就通过结构体编号-设备序列号建立总线设备与变量结构体的一一映射的对应关系。Define a variable structure (UEFI Variable) for the bus device. When there are multiple bus devices in the server, you need to create a variable structure for each bus device, and generate the corresponding device serial number (or device name) according to the bus device. The structure number of the variable structure, and the structure number is used as the corresponding variable structure name. In this way, a one-to-one mapping relationship between the bus device and the variable structure is established through the structure number-device serial number.
变量结构体的属性为可以在Run Time和Boot Service阶段都可以访问,并且在内存和BIOS NVRAM区域都做保存,以便于随时可以访问该Variable数据。The attribute of the variable structure is that it can be accessed in both Run Time and Boot Service phases, and is saved in the memory and BIOS NVRAM area, so that the Variable data can be accessed at any time.
S2、通过设置变量结构体的存储值标记各总线设备的位置信息采集情况。S2. Mark the location information collection situation of each bus device by setting the storage value of the variable structure.
本实施例设定变量结构体的初始值为0,变化值为1。首先在位置信息收集之前把这个变量结构体的值初始化为0。该变量结构体用于在启动事件的处理函数中记录资产信息功能是否已经被执行过的状态,轮询启动项的过程中该全局变量的值会保持。当某个总线设备的位置信息被采集完成,则用SetVariable函数把该变量结构体赋值为1。In this embodiment, the initial value of the variable structure is set to 0, and the change value is 1. First initialize the value of this variable structure to 0 before the location information is collected. The variable structure is used to record the status of whether the asset information function has been executed in the handler function of the startup event, and the value of the global variable will be maintained during the process of polling the startup item. When the location information of a bus device is collected, use the SetVariable function to assign the variable structure to 1.
S3、根据位置信息采集情况判断是否采集相应总线设备的位置信息。S3. Determine whether to collect the location information of the corresponding bus device according to the location information collection situation.
每轮询一个总线设备,启动事件的处理函数都会被执行一次,在处理函数中,执行资产信息功能前,利用UEFI规范提供的GetVariable函数,读取该变量结构体的值,如果是0,则执行资产信息处理(即读取该总线设备的位置信息,并将位置信息上传BMC,由BMC根据位置信息生成该总线设备的资产信息),并用SetVariable函数把该变量赋值为1;如果获取到该变量结构体的值为1,则不再执行资产信息处理,达到资产信息功能在轮询启动中只执行一次,从而保证位置信息正确传递和显示的效果,不会被清空;这里的0和1,也可以用其它不同的数据来代替。Each time a bus device is polled, the processing function of the start event will be executed once. In the processing function, before executing the asset information function, use the GetVariable function provided by the UEFI specification to read the value of the variable structure. If it is 0, then Perform asset information processing (that is, read the location information of the bus device, upload the location information to the BMC, and the BMC will generate the asset information of the bus device according to the location information), and use the SetVariable function to assign the variable to 1; If the value of the variable structure is 1, the asset information processing will no longer be performed, so that the asset information function is executed only once in the polling startup, so as to ensure the correct transmission and display of the location information, and will not be emptied; here 0 and 1 , can also be replaced by other different data.
如图2所示,该系统200包括:As shown in Figure 2, the system 200 includes:
变量构建单元210,配置用于构建各总线设备的变量结构体;The variable construction unit 210 is configured to construct the variable structure of each bus device;
状态标记单元220,配置用于通过设置变量结构体的存储值标记各总线设备的位置信息采集情况;The state marking unit 220 is configured to mark the location information collection situation of each bus device by setting the storage value of the variable structure;
信息采集单元230,配置用于根据位置信息采集情况判断是否采集相应总线设备的位置信息。The information collection unit 230 is configured to determine whether to collect the position information of the corresponding bus device according to the collection situation of the position information.
可选地,作为本发明一个实施例,所述变量构建单元包括:Optionally, as an embodiment of the present invention, the variable construction unit includes:
编号生成模块,配置用于根据总线设备的设备序列号生产对应的结构体编号;The number generation module is configured to generate the corresponding structure number according to the device serial number of the bus device;
编号命名模块,配置用于以结构体编号作为所述总线设备的变量结构体名字;The number naming module is configured to use the structure number as the variable structure name of the bus device;
变量保存模块,配置用于定义变量结构体的属性均为在开机阶段和启动阶段可以访问,并将变量结构体保存至指定目录下。The variable storage module is configured to define the attributes of the variable structure that can be accessed in the boot phase and the startup phase, and save the variable structure to the specified directory.
可选地,作为本发明一个实施例,所述状态标记单元包括:Optionally, as an embodiment of the present invention, the status marking unit includes:
预先设置模块,配置用于预先设置变量结构体的初始值和变化值;The preset module is configured to preset the initial value and change value of the variable structure;
初始设置模块,配置用于在位置信息收集之前将所有变量结构体的存储值初始化为初始值;The initial setting module is configured to initialize the stored values of all variable structures to initial values before the location information is collected;
变量变更模块,配置用于在收集目标总线设备的位置信息之后将目标总线设备对应的变量结构体的存储值修改为变化值,所述目标总线设备为所有总线设备中的任一个。The variable changing module is configured to modify the stored value of the variable structure corresponding to the target bus device to a changed value after collecting the location information of the target bus device, where the target bus device is any one of all the bus devices.
可选地,作为本发明一个实施例,所述信息采集单元包括:Optionally, as an embodiment of the present invention, the information collection unit includes:
变量查看模块,配置用于在采集目标总线设备的位置信息之前,读取目标总线设备对应的变量结构体的当前存储值;The variable viewing module is configured to read the current stored value of the variable structure corresponding to the target bus device before collecting the location information of the target bus device;
信息采集模块,配置用于若所述当前存储值为初始值,则采集所述目标总线设备的位置信息,并将所述位置信息上报BMC;an information collection module, configured to collect the location information of the target bus device if the current stored value is an initial value, and report the location information to the BMC;
跳过处理模块,配置用于若所述当前存储值为变化值,则跳过所述目标总线设备,询问下个总线设备。The skipping processing module is configured to skip the target bus device and inquire the next bus device if the current stored value is a changed value.
图3为本发明实施例提供的一种终端300的结构示意图,该终端300可以用于执行本发明实施例提供的总线设备位置信息轮询收集方法。FIG. 3 is a schematic structural diagram of a terminal 300 according to an embodiment of the present invention. The terminal 300 may be used to execute the method for polling and collecting bus device location information provided by the embodiment of the present invention.
其中,该终端300可以包括:处理器310、存储器320及通信单元330。这些组件通过一条或多条总线进行通信,本领域技术人员可以理解,图中示出的服务器的结构并不构成对本发明的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The terminal 300 may include: a
其中,该存储器320可以用于存储处理器310的执行指令,存储器320可以由任何类型的易失性或非易失性存储终端或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。当存储器320中的执行指令由处理器310执行时,使得终端300能够执行以下上述方法实施例中的部分或全部步骤。Wherein, the
处理器310为存储终端的控制中心,利用各种接口和线路连接整个电子终端的各个部分,通过运行或执行存储在存储器320内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行电子终端的各种功能和/或处理数据。所述处理器可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器310可以仅包括中央处理器(Central Processing Unit,简称CPU)。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。The
通信单元330,用于建立通信信道,从而使所述存储终端可以与其它终端进行通信。接收其他终端发送的用户数据或者向其他终端发送用户数据。The
本发明还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时可包括本发明提供的各实施例中的部分或全部步骤。所述的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。The present invention also provides a computer storage medium, wherein the computer storage medium can store a program, and when the program is executed, it can include some or all of the steps in the embodiments provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, ROM for short) or a random access memory (English: random access memory, RAM for short).
因此,本发明可以有效解决利用启动项轮询功能来触发的BIOS资产信息方案在第一次启动没能进启动项,后轮询其它启动项的情况下资产信息位置信息会显示为空白的问题,完善了服务器的资产信息构建功能,增强了功能的健壮性,并完善了BMC WebUI上对应信息的完整性和正确性,本实施例所能达到的技术效果可以参见上文中的描述,此处不再赘述。Therefore, the present invention can effectively solve the problem that the asset information location information will be displayed as blank when the BIOS asset information scheme triggered by the startup item polling function fails to enter the startup item at the first startup and polls other startup items afterward. , improves the asset information construction function of the server, enhances the robustness of the function, and improves the integrity and correctness of the corresponding information on the BMC WebUI. The technical effect that this embodiment can achieve can refer to the description above. No longer.
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中如U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,包括若干指令用以使得一台计算机终端(可以是个人计算机,服务器,或者第二终端、网络终端等)执行本发明各个实施例所述方法的全部或部分步骤。Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention can be embodied in the form of software products in essence or in the parts that make contributions to the prior art. The computer software products are stored in a storage medium such as a USB flash drive, a mobile Hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes, including several instructions to make a computer terminal (It may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.
本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于终端实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。It is sufficient to refer to each other for the same and similar parts among the various embodiments in this specification. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the description in the method embodiment.
在本发明所提供的几个实施例中,应该理解到,所揭露的系统和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,系统或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed system and method may be implemented in other manners. For example, the system embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection between systems or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
尽管通过参考附图并结合优选实施例的方式对本发明进行了详细描述,但本发明并不限于此。在不脱离本发明的精神和实质的前提下,本领域普通技术人员可以对本发明的实施例进行各种等效的修改或替换,而这些修改或替换都应在本发明的涵盖范围内/任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。Although the present invention has been described in detail in conjunction with the preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, those of ordinary skill in the art can make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions should all fall within the scope of the present invention/any Those skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should all be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110338463.9A CN113064793B (en) | 2021-03-30 | 2021-03-30 | Method, system, terminal and storage medium for polling and collecting bus device location information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110338463.9A CN113064793B (en) | 2021-03-30 | 2021-03-30 | Method, system, terminal and storage medium for polling and collecting bus device location information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113064793A CN113064793A (en) | 2021-07-02 |
CN113064793B true CN113064793B (en) | 2022-06-14 |
Family
ID=76564391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110338463.9A Active CN113064793B (en) | 2021-03-30 | 2021-03-30 | Method, system, terminal and storage medium for polling and collecting bus device location information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113064793B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118642763B (en) * | 2024-08-14 | 2024-12-03 | 苏州元脑智能科技有限公司 | Method and device for controlling starting of server, storage medium and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106126394A (en) * | 2016-08-22 | 2016-11-16 | 浪潮(北京)电子信息产业有限公司 | Out of band supervision management obtains the method and system of PCIE device assets information |
CN109523650A (en) * | 2018-11-27 | 2019-03-26 | 武汉瑞莱保能源技术有限公司 | A kind of method for inspecting and device of equipment working condition |
CN109800121A (en) * | 2018-12-06 | 2019-05-24 | 珠海西山居移动游戏科技有限公司 | A kind of asset equipment management system and its method |
CN111427597A (en) * | 2020-03-13 | 2020-07-17 | 苏州浪潮智能科技有限公司 | BMC and BIOS information interaction decoupling method, device, equipment and medium |
CN111563055A (en) * | 2019-02-14 | 2020-08-21 | 深圳市共济科技股份有限公司 | IT equipment information acquisition method and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7103684B2 (en) * | 2003-12-02 | 2006-09-05 | Super Talent Electronics, Inc. | Single-chip USB controller reading power-on boot code from integrated flash memory for user storage |
US9631934B2 (en) * | 2012-10-23 | 2017-04-25 | Bmc Software, Inc. | Management of annotated location aware assets |
CN110489407A (en) * | 2019-07-29 | 2019-11-22 | 南方电网数字电网研究院有限公司 | Data filling mining method, apparatus, computer equipment and storage medium |
-
2021
- 2021-03-30 CN CN202110338463.9A patent/CN113064793B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106126394A (en) * | 2016-08-22 | 2016-11-16 | 浪潮(北京)电子信息产业有限公司 | Out of band supervision management obtains the method and system of PCIE device assets information |
CN109523650A (en) * | 2018-11-27 | 2019-03-26 | 武汉瑞莱保能源技术有限公司 | A kind of method for inspecting and device of equipment working condition |
CN109800121A (en) * | 2018-12-06 | 2019-05-24 | 珠海西山居移动游戏科技有限公司 | A kind of asset equipment management system and its method |
CN111563055A (en) * | 2019-02-14 | 2020-08-21 | 深圳市共济科技股份有限公司 | IT equipment information acquisition method and device |
CN111427597A (en) * | 2020-03-13 | 2020-07-17 | 苏州浪潮智能科技有限公司 | BMC and BIOS information interaction decoupling method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN113064793A (en) | 2021-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105144074B (en) | It is stored using the block of hybrid memory device | |
CN111669284A (en) | OpenStack automatic deployment method, electronic device, storage medium and system | |
CN112463239A (en) | BIOS and BMC interaction option default value modification method, system, terminal and storage medium | |
CN109032888A (en) | A kind of server start-up course fault detection method, device and controlled terminal | |
US20240264914A1 (en) | Method and device for recovering self-test exception of server component, system and medium | |
CN109976926A (en) | Method, circuit, terminal and the storage medium of protection BMC renewal process are restarted in a kind of shielding | |
CN111949216A (en) | Method, system, terminal and storage medium for automatic expansion of cloud platform storage volume | |
CN111338862A (en) | A GPU mode switching stability test method, system, terminal and storage medium | |
CN114064133A (en) | Hardware information processing method and device and storage system | |
CN113064793B (en) | Method, system, terminal and storage medium for polling and collecting bus device location information | |
CN113076225B (en) | External storage medium detection method, device and equipment and storage medium | |
CN113407394B (en) | Method, device, equipment and medium for server RAS function test | |
CN113626276B (en) | Identification method, system, terminal and storage medium of server HBA card model | |
CN113608939A (en) | Server starting timing method, device, terminal and storage medium in performance test | |
CN114461286A (en) | A server startup method, device and readable storage medium | |
CN117270977A (en) | Method, system, electronic equipment and storage medium for updating SMBIOS power supply information | |
CN112003730A (en) | A method, system, terminal and storage medium for rapid cluster deployment | |
CN113220353B (en) | Hard disk startup item sorting method, system, terminal and storage medium | |
CN114117446A (en) | BIOS (basic input output System) image file refreshing and checking method, device, terminal and storage medium | |
CN114124524A (en) | Cloud platform permission setting method and device, terminal equipment and storage medium | |
CN113656378A (en) | A server management method, device and medium | |
CN113900934A (en) | Multi-image hybrid refresh test method, system, terminal and storage medium | |
CN111475208A (en) | Disk device naming method, system, terminal and storage medium | |
CN114785789B (en) | Database fault management method and device, electronic equipment and storage medium | |
CN114443446B (en) | Hard disk indicator lamp control method, system, terminal and storage medium |
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 |