A server configuration information collection method, device, equipment and storage medium

CN116302172BActive Publication Date: 2026-10-27INSPUR BUSINESS MACHINE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310109919.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-10
Publication Date
2026-10-27
Estimated Expiration
2043-02-10

AI Technical Summary

Technical Problem

整个过程全部手动输入相关命令,很多命令需要单独安装软件包,拷贝第三方查询工具,配置BMC带外管理,较为繁琐,且在一些场景下,用户无法配置BMC,导致一些信息无法被收集

Benefits of technology

[0029]本申请中,通过运行预设状态检测脚本的方式对服务器运行状态进行检测以确定所述服务器的当前运行环境是否处于petiboot状态;若所述服务器的当前运行环境处于petiboot状态,则通过调用预设信息采集命令进行服务器的配置信息采集操作;按照预设信息记录规则将所述配置信息采集操作中得到的所述服务器的配置信息进行记录保存。本申请通过对服务器运行状态进行检测,在所述服务器处于petiboot环境下通过调用预设信息采集命令对所述服务器端配置信息进行自动采集,这样一来,可以手动输入配置信息采集指令,提高了所述服务器配置信息采集效率的同时还降低了人力成本,同时避免了手动输入配置信息采集指令错误而导致信息采集失败的情况的发生。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116302172B_ABST
    Figure CN116302172B_ABST
Patent Text Reader

Abstract

The application discloses a server configuration information collection method and device, equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: detecting the running state of a server by running a preset state detection script to determine whether the current running environment of the server is in a petiboot state; if the current running environment of the server is in the petiboot state, performing a server configuration information collection operation by calling a preset information collection command; and recording and saving the configuration information of the server obtained in the configuration information collection operation according to a preset information recording rule. The application detects the running state of the server, and automatically collects the server-side configuration information by calling the preset information collection command when the server is in the petiboot environment. In this way, manual input of a collection instruction is not required, the labor cost is reduced, and the collection efficiency of the server configuration information is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, device, and storage medium for collecting server configuration information. Background Technology

[0002] OpenPOWER aims to create a hardware and software ecosystem around the IBM Power processor architecture, providing an alternative to Intel systems. Unlike Intel Xeon server chips, IBM Power is based on a high-end RISC chip architecture, inherently supporting high-performance computing such as data analysis, and features more compact systems, higher efficiency, lower power consumption, and stronger computing power.

[0003] Currently, viewing the configuration on an OpenPOWER server requires accessing the OS (Operating System) and then using various commands to view information about the system's CPU (Central Processing Unit), memory, and PCIe (Peripheral Component Interconnect Express) cards. To obtain out-of-band management information, the Baseboard Management Controller (BMC) needs to be configured, and the BMC web interface needs to be accessed for querying; alternatively, the ipmitool tool can be installed on the system and used with commands. To query all the server's hard drives, a third-party tool, strocli, is required. The entire process involves manually entering commands, many of which require installing separate software packages, copying third-party query tools, and configuring BMC out-of-band management, making it quite cumbersome. Furthermore, in some scenarios, users cannot configure the BMC, resulting in some information not being collected. Summary of the Invention

[0004] In view of this, the purpose of this invention is to provide a method, apparatus, device, and storage medium for collecting server configuration information, thereby achieving automated collection of server configuration information, improving the efficiency of configuration information collection while reducing labor costs. The specific solution is as follows:

[0005] The first aspect of this application provides a method for collecting server configuration information, applied to servers based on the OpenPOWER architecture, including:

[0006] The server's operating status is detected by running a preset status detection script to determine whether the server's current operating environment is in petiboot state.

[0007] If the server's current operating environment is in petiboot state, then the server's configuration information is collected by calling a preset information collection command.

[0008] The configuration information of the server obtained during the configuration information collection operation is recorded and saved according to the preset information recording rules.

[0009] Optionally, after the running script detects the server's running status to determine whether the current running environment is in petiboot state, it further includes:

[0010] If the current operating environment is not in petiboot state, a preset prompt message will pop up on the human-computer interaction interface to remind the user to switch the current operating environment to petiboot state.

[0011] Optionally, after the running script detects the server's running status to determine whether the current running environment is in petiboot state, it further includes:

[0012] The preset message sending program is executed to send a corresponding prompt message to the preset user terminal to remind the user to switch the current running environment to petiboot state.

[0013] Optionally, the step of collecting server configuration information by invoking a preset information collection command includes:

[0014] The system default command is invoked to collect preset basic information from the server.

[0015] The system invokes preset information collection commands from the scanning tool pre-configured in petiboot state to collect hardware information, data information, and disk information from the server.

[0016] Optionally, the step of collecting server configuration information by invoking a preset information collection command includes:

[0017] The server configuration information is collected by calling a preset information collection command, and the collected server configuration information is synchronously output to the preset information display window on the human-computer interaction interface for display in real time during the execution of the configuration information collection operation.

[0018] Optionally, recording and saving the server configuration information obtained during the configuration information collection operation according to preset information recording rules includes:

[0019] The configuration information of the server collected during the configuration information collection operation is summarized;

[0020] The summarized configuration information is recorded by a logging program to generate corresponding logs.

[0021] Optionally, after the execution log recording program records the summarized configuration information and generates corresponding log information, it further includes:

[0022] The save path of the logs is sent to the human-computer interaction interface so that users can query the configuration information recorded in the logs through the save path.

[0023] A second aspect of this application provides a server configuration information acquisition device, applied to a server based on the OpenPOWER architecture, comprising:

[0024] The running status determination module is used to detect the server running status by running a preset status detection script to determine whether the server's current running environment is in petiboot state.

[0025] The information collection module is used to collect server configuration information by calling a preset information collection command if the server's current operating environment is in petiboot state.

[0026] The information recording module is used to record and save the configuration information of the server obtained in the configuration information collection operation according to the preset information recording rules.

[0027] A third aspect of this application provides an electronic device comprising a processor and a memory; wherein the memory is used to store a computer program, which is loaded and executed by the processor to implement the aforementioned server configuration information acquisition method.

[0028] A fourth aspect of this application provides a computer-readable storage medium, wherein the computer program, when executed by a processor, implements the aforementioned server configuration information acquisition method.

[0029] In this application, the server's operating status is detected by running a preset status detection script to determine whether the server's current operating environment is in a petiboot state. If the server's current operating environment is in a petiboot state, a preset information collection command is invoked to collect the server's configuration information. The server's configuration information obtained during the configuration information collection operation is recorded and saved according to preset information recording rules. This application detects the server's operating status and automatically collects the server-side configuration information by invoking a preset information collection command when the server is in a petiboot environment. This eliminates the need for manual input of configuration information collection commands, improving the efficiency of server configuration information collection while reducing labor costs. It also avoids information collection failures caused by incorrect manual input of configuration information collection commands. Attached Figure Description

[0030] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0031] Figure 1 This is a flowchart of a server configuration information collection method disclosed in this application;

[0032] Figure 2 This is a flowchart of a specific server configuration information collection method disclosed in this application;

[0033] Figure 3 This is a flowchart of a specific server configuration information collection method disclosed in this application;

[0034] Figure 4 This is a flowchart of a specific server configuration information collection method disclosed in this application;

[0035] Figure 5 This is a flowchart of a specific server configuration information collection method disclosed in this application;

[0036] Figure 6 This is a schematic diagram of the structure of a server configuration information collection device disclosed in this application;

[0037] Figure 7 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation

[0038] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0039] In existing technologies, collecting server configuration information requires accessing the operating system and manually entering relevant commands, which is inefficient and prone to errors. This embodiment discloses a method for collecting server configuration information, which can automate the collection of server configuration information, improving the efficiency of configuration information collection while reducing manual costs.

[0040] See Figure 1 As shown in the figure, this invention discloses a server configuration information collection method, applied to a server based on the OpenPOWER architecture, including:

[0041] Step S11: The server's running status is detected by running a preset status detection script to determine whether the server's current running environment is in petiboot state.

[0042] In this embodiment, the server running status is detected by running the serverscan.sh script to determine whether the server's current running environment is in petiboot.

[0043] In one specific embodiment, after the running script detects the server's running status to determine whether the current running environment is in petiboot state, it further includes: if the current running environment is not in petiboot state, prompting the user to switch the current running environment to petiboot state by displaying a preset prompt message on the human-computer interaction interface. If the server's current running environment is not in petiboot state, a preset prompt message will be displayed on the human-computer interaction interface to prompt the user to switch the current running environment to petiboot state after seeing the prompt. This ensures that the server configuration information collection operation can proceed normally and improves work efficiency.

[0044] In another specific embodiment, after the running script detects the server's running status to determine whether the current running environment is in petiboot state, it further includes: executing a preset message sending program to send a corresponding prompt message to a preset user terminal to remind the user to switch the current running environment to petiboot state. If the current server running environment is not in petiboot state, a prompt message can be sent to the preset user terminal to remind the user, so that the user can switch the current running environment to petiboot state after seeing the prompt message. In this way, the server configuration information collection operation can be carried out normally, improving work efficiency.

[0045] Step S12: If the server's current operating environment is in petiboot state, then the server's configuration information is collected by calling a preset information collection command.

[0046] In this embodiment, when it is determined that the server's current operating environment is in petiboot state, a tool can be used to call preset information collection commands to collect the server's configuration information. The tool sequentially executes the commands "lscpu", "free -g", "lspci", "ipmitool fru list", "ipmitool lan print 1", ". / strocli64 / c0show all", ". / storcli64 / c1 show all", and ". / storcli64 / c2 show all" to collect the server's configuration information. This eliminates the need for manual intervention, improving work efficiency and avoiding many information collection failures caused by incorrect manually entered commands.

[0047] Step S13: Record and save the configuration information of the server obtained in the configuration information collection operation according to the preset information recording rules.

[0048] In this embodiment, the configuration information of the server obtained in the configuration information collection operation is recorded and saved according to the preset information recording rules. That is, the information collected in the information collection operation is summarized, and then the summarized configuration information of the server is recorded and saved so that the user can view the configuration information of the server.

[0049] As can be seen, in this embodiment, the server's operating status is first detected by running a preset status detection script to determine whether the server's current operating environment is in a petiboot state. If the server's current operating environment is in a petiboot state, a preset information collection command is invoked to collect server configuration information. The server's configuration information obtained during the configuration information collection operation is recorded and saved according to preset information recording rules. This application detects the server's operating status and automatically collects server-side configuration information by invoking a preset information collection command when the server is in a petiboot environment. This eliminates the need for manual input of configuration information collection commands, improving the efficiency of server configuration information collection while reducing labor costs. It also avoids information collection failures caused by incorrect manual input of configuration information collection commands.

[0050] The above embodiments disclose a method for collecting server configuration information, which can automate the collection of server configuration information, improving the efficiency of configuration information collection while reducing labor costs. This embodiment will specifically explain how to preset information collection commands to perform server configuration information collection operations.

[0051] See Figure 2 As shown in the figure, this invention discloses a server configuration information collection method, applied to a server based on the OpenPOWER architecture, including:

[0052] Step S21: The server's running status is detected by running a preset status detection script to determine whether the server's current running environment is in petiboot state.

[0053] Step S22: If the server's current operating environment is in petiboot state, then the system default instruction is invoked to collect preset basic information about the server.

[0054] In this embodiment, the scanning tool configured in petiboot state calls the system default instructions to collect preset basic information of the server, that is, calls the system commands "lscpu", "free", and "lspci" to collect the preset basic information of the server.

[0055] Step S23: Invoke the preset information collection instructions in the scanning tool pre-configured in petiboot state to collect hardware information, data information and disk information of the server.

[0056] In this embodiment, after collecting the server's preset basic information by calling system commands, the system then calls preset information collection instructions in a scanning tool pre-configured in petiboot state to collect the server's configuration information. The scanning tool calls the built-in "ipmitool-fru list" command to collect hardware information, "ipmitool lan print 1" to collect out-of-band interface data, and the "storcli64" tool to collect RAID card and disk information. This automates the collection of the server's configuration information, eliminating the need for separate software installations, copying third-party query tools, and configuring BMC out-of-band management. It also solves the problem that in some scenarios, users cannot configure the BMC, resulting in some information not being collected.

[0057] Step S24: Record and save the configuration information of the server obtained in the configuration information collection operation according to the preset information recording rules.

[0058] The specific processes of steps S21 and S24 can be found in the relevant content disclosed in the foregoing embodiments, and will not be repeated here.

[0059] As can be seen, in this embodiment, the server's operating status is first detected by running a preset status detection script to determine whether the server's current operating environment is in petiboot state. If the server's current operating environment is in petiboot state, the system default instructions are invoked to collect preset basic information about the server. Then, preset information collection instructions in the scanning tool configured in petiboot state are invoked to collect hardware information, data information, and disk information about the server. Finally, the server's configuration information obtained during the configuration information collection operation is recorded and saved according to preset information recording rules. In this way, the scanning tool configured in petiboot state collects the server's basic information by invoking the system default instructions, and then collects the remaining configuration information of the server through the built-in configuration information collection instructions. This avoids the need to install an operating system before collecting server configuration information and avoids configuring an out-of-band BMC management interface for viewing. The entire configuration information collection operation is simpler and more convenient, improving work efficiency.

[0060] The previous embodiment described in detail how to preset information collection commands to collect server configuration information. This embodiment will describe the process of collecting server configuration information.

[0061] See Figure 3As shown in the figure, this invention discloses a server configuration information collection method, applied to a server based on the OpenPOWER architecture, including:

[0062] Step S31: Detect the server's running status by running a preset status detection script to determine whether the server's current running environment is in petiboot state.

[0063] Step S32: If the current operating environment of the server is in petiboot state, the server configuration information is collected by calling the preset information collection command, and the collected server configuration information is synchronously output to the preset information display window on the human-computer interaction interface for information display in real time during the execution of the configuration information collection operation.

[0064] In this embodiment, if the server is currently running in petiboot mode, a preset information collection command is invoked to collect server configuration information. During this collection, the collected server configuration information is simultaneously displayed on a preset information display window on the human-computer interaction interface. This allows users to understand the entire configuration information collection process by viewing the collected server configuration information in the preset information display window, enabling them to address any issues that arise immediately.

[0065] Step S33: Record and save the configuration information of the server obtained in the configuration information collection operation according to the preset information recording rules.

[0066] The specific processes of steps S31 and S33 can be found in the relevant content disclosed in the foregoing embodiments, and will not be repeated here.

[0067] As can be seen, in this embodiment, the server's operating status is first detected by running a preset status detection script to determine whether the server's current operating environment is in a petiboot state. If the server's current operating environment is in a petiboot state, a preset information collection command is invoked to collect the server's configuration information. During the execution of the configuration information collection operation, the collected server configuration information is synchronously output to a preset information display window on the human-computer interaction interface for display. The server configuration information obtained during the configuration information collection operation is recorded and saved according to preset information recording rules. In this way, by synchronously outputting the server configuration information collected during the collection operation to the preset information display window for display, the user can easily understand the progress of the entire configuration information collection operation by viewing the server configuration information collected in the preset information display window of the human-computer interaction interface. This allows for immediate resolution of any problems that occur during the configuration information collection operation, reducing losses caused by errors in the configuration information collection operation.

[0068] The above embodiments describe the process of collecting server configuration information. This embodiment will describe the process of saving configuration information.

[0069] See Figure 4 As shown in the figure, this invention discloses a server configuration information collection method, applied to a server based on the OpenPOWER architecture, including:

[0070] Step S41: The server's running status is detected by running a preset status detection script to determine whether the server's current running environment is in petiboot state.

[0071] Step S42: If the server's current operating environment is in petiboot state, then the server's configuration information is collected by calling a preset information collection command.

[0072] Step S43: Summarize the configuration information of the server collected in the configuration information collection operation.

[0073] Step S44: The summarized configuration information is recorded by the logging program to generate the corresponding logs.

[0074] In this embodiment, the summarized configuration information is recorded to generate corresponding logs, which users can view to obtain the configuration information. After the logging program records the summarized configuration information and generates the corresponding log information, it further includes sending the log's save path to the human-computer interaction interface so that users can query the configuration information recorded in the logs through the save path. This makes it convenient for users to query the corresponding logs and the configuration information recorded in them by searching through the save path.

[0075] The specific processes of steps S41 and S42 can be found in the relevant content disclosed in the foregoing embodiments, and will not be repeated here.

[0076] As can be seen, in this embodiment, the entire OpenPOWER architecture server hardware configuration acquisition process is as follows: Figure 5 As shown, the server's running status is first checked by running a preset status detection script to determine if the server's current running environment is in petiboot state. If the server's current running environment is in petiboot state, a preset information collection command is invoked to collect server configuration information. The configuration information collected during the configuration information collection operation is then summarized. A logging program records the summarized configuration information to generate corresponding logs. This way, the configuration information is summarized and recorded in the logs, making it convenient for users to view the configuration information.

[0077] See Figure 6 As shown, this embodiment of the invention discloses a server configuration information collection device, applied to a server based on the OpenPOWER architecture, comprising:

[0078] The running status judgment module 11 is used to detect the running status of the server by running a preset status detection script to determine whether the current running environment of the server is in petiboot state.

[0079] The information collection module 12 is used to collect server configuration information by calling a preset information collection command if the current operating environment of the server is in petiboot state.

[0080] The information recording module 13 is used to record and save the configuration information of the server obtained in the configuration information collection operation according to the preset information recording rules.

[0081] As can be seen, in this embodiment, the server's operating status is first detected by running a preset status detection script to determine whether the server's current operating environment is in a petiboot state. If the server's current operating environment is in a petiboot state, a preset information collection command is invoked to collect server configuration information. The server's configuration information obtained during the configuration information collection operation is recorded and saved according to preset information recording rules. This application detects the server's operating status and automatically collects server-side configuration information by invoking a preset information collection command when the server is in a petiboot environment. This eliminates the need for manual input of configuration information collection commands, improving the efficiency of server configuration information collection while reducing labor costs. It also avoids information collection failures caused by incorrect manual input of configuration information collection commands.

[0082] In one specific embodiment, the server configuration information collection device further includes:

[0083] The first state switching prompt module is used to remind the user to switch the current running environment to the petiboot state by popping up a preset prompt message on the human-computer interaction interface if the current running environment is not in the petiboot state.

[0084] In one specific embodiment, the server configuration information collection device further includes:

[0085] The second state switching prompt module is used to execute a preset message sending program to send a corresponding prompt message to a preset user terminal to remind the user to switch the current running environment to petiboot state.

[0086] In one specific embodiment, the information acquisition module 12 specifically includes:

[0087] The first information collection unit is used to call the system default instructions to collect preset basic information from the server.

[0088] The second information acquisition unit is used to call the preset information acquisition instructions in the scanning tool pre-configured in petiboot state to collect hardware information, data information and disk information of the server.

[0089] In one specific embodiment, the information acquisition module 12 specifically includes:

[0090] The real-time information display unit is used to collect configuration information of the server by calling a preset information collection command, and to output the collected configuration information of the server to a preset information display window on the human-computer interaction interface in real time during the execution of the configuration information collection operation.

[0091] In one specific embodiment, the information recording module 13 specifically includes:

[0092] An information aggregation unit is used to aggregate the configuration information of the server collected during the configuration information collection operation;

[0093] The log generation unit is used to record the summarized configuration information through a logging program to generate corresponding logs.

[0094] In one specific embodiment, the server configuration information collection device further includes:

[0095] The save path sending module is used to send the save path of the log to the human-computer interaction interface so that the user can query the configuration information recorded in the log through the save path.

[0096] Furthermore, embodiments of this application also disclose an electronic device, Figure 7 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.

[0097] Figure 7 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the server configuration information acquisition method disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0098] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0099] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0100] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the server configuration information collection method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program capable of performing other specific tasks.

[0101] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned server configuration information collection method. The specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.

[0102] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0103] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0104] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0105] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0106] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for collecting server configuration information, characterized in that, Applied to servers based on the OpenPOWER architecture, including: The server's operating status is detected by running a preset status detection script to determine whether the server's current operating environment is in petiboot state. If the server's current operating environment is in petiboot state, then the server's configuration information is collected sequentially by calling preset information collection commands; the server's configuration information collection operation by calling preset information collection commands includes: calling system default instructions to collect preset basic information of the server; calling preset information collection instructions in the scanning tool pre-configured in petiboot state to collect hardware information, data information and disk information of the server; The configuration information of the server obtained during the configuration information collection operation is recorded and saved according to the preset information recording rules.

2. The server configuration information collection method according to claim 1, characterized in that, After the script checks the server's running status to determine whether the current running environment is in petiboot state, it also includes: If the current operating environment is not in petiboot state, a preset prompt message will pop up on the human-computer interaction interface to remind the user to switch the current operating environment to petiboot state.

3. The server configuration information collection method according to claim 1, characterized in that, After the script checks the server's running status to determine whether the current running environment is in petiboot state, it also includes: The preset message sending program is executed to send a corresponding prompt message to the preset user terminal to remind the user to switch the current running environment to petiboot state.

4. The server configuration information collection method according to claim 1, characterized in that, The operation of collecting server configuration information by invoking a preset information collection command includes: The server configuration information is collected by calling a preset information collection command, and the collected server configuration information is synchronously output to the preset information display window on the human-computer interaction interface for display in real time during the execution of the configuration information collection operation.

5. The server configuration information collection method according to any one of claims 1 to 4, characterized in that, The step of recording and saving the server configuration information obtained during the configuration information collection operation according to preset information recording rules includes: The configuration information of the server collected during the configuration information collection operation is summarized; The summarized configuration information is recorded by a logging program to generate corresponding logs.

6. The server configuration information collection method according to claim 5, characterized in that, After the execution log recording program records the summarized configuration information and generates the corresponding log information, it also includes: The save path of the logs is sent to the human-computer interaction interface so that users can query the configuration information recorded in the logs through the save path.

7. A server configuration information collection device, characterized in that, Applied to servers based on the OpenPOWER architecture, including: The running status determination module is used to detect the server running status by running a preset status detection script to determine whether the server's current running environment is in petiboot state. The information acquisition module is used to sequentially collect server configuration information by calling preset information acquisition commands if the server's current operating environment is in petiboot state. The process of collecting server configuration information by calling preset information acquisition commands includes: calling system default instructions to collect preset basic information about the server; and calling preset information acquisition commands in a scanning tool pre-configured in petiboot state to collect hardware information, data information, and disk information about the server. The information recording module is used to record and save the configuration information of the server obtained in the configuration information collection operation according to the preset information recording rules.

8. An electronic device, characterized in that, The electronic device includes a processor and a memory; wherein the memory is used to store a computer program, which is loaded and executed by the processor to implement the server configuration information acquisition method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, Used to store computer programs, wherein the computer programs, when executed by a processor, implement the server configuration information collection method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • OpenPower architecture based RAID disk array creation method

    CN107132997A

  • Method and device for collecting equipment information on server and medium

    CN109918249A