Real-time interpretation method, device and storage medium for server BIOS options
By building a knowledge graph and using Word2Vec model, combining serial listening technology, real-time parsing of BIOS option data, the problem of untimely update of information in the existing technology is solved, real-time interpretation of BIOS options and personalized configuration suggestions are realized, and server management efficiency is improved.
Patent Information
- Application Number
- CN202510890309.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2045-06-30
AI Technical Summary
The existing BIOS option interpretation methods rely on paper or electronic manuals. The information is not updated in time and is difficult to reflect changes in hardware and software, resulting in inaccurate configuration and inefficient efficiency, and the inability to provide targeted configuration suggestions in real time.
By obtaining the document of the server BIOS options, analyzing and building a knowledge graph, using Word2Vec model and serial monitoring technology, BIOS option data is monitored in real time, and combining the knowledge graph and word vector model to provide detailed explanations.
Real-time interpretation of BIOS options is realized, the latest and personalized configuration suggestions are provided, and the efficiency of server management and maintenance is improved. Users do not need to manually review the manual and can fully understand the relationship and impact of options.
Smart Images

Figure CN120387440B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a real-time interpretation method, device and storage medium for server BIOS options. Background Art
[0002] BIOS configuration plays a crucial role in computer server management and maintenance. Server BIOS options are numerous, covering everything from hardware configuration to performance optimization and security settings. Accurately understanding and correctly configuring these BIOS options is crucial to ensuring stable server operation, optimal performance, and data security.
[0003] However, existing methods for interpreting BIOS options have numerous shortcomings. For one thing, traditional BIOS option interpretation relies primarily on consulting paper or electronic user manuals. These manuals are often complex and lengthy, requiring users to spend considerable time leafing through them to find the meaning of a specific BIOS option, resulting in inefficiency. Furthermore, the information in these manuals is relatively static and difficult to update to reflect new hardware features, software compatibility changes, and security threats. This can lead to users receiving outdated or inaccurate configuration recommendations, making it difficult for them to understand option relationships and track configuration changes in real time. These issues severely hinder the efficiency and quality of server management and maintenance, posing numerous challenges to stable server operation and performance optimization. Furthermore, with the continuous development and advancement of server hardware technology, new BIOS options are constantly emerging, and their functions and interrelationships are becoming increasingly complex. Users struggling to fully understand the relationships between various BIOS options and the impact that configuring a particular option may have on the entire system simply rely on simple descriptions in manuals. Furthermore, server BIOS settings can frequently change due to various factors, such as hardware upgrades, software updates, and security policy adjustments. Existing interpretation methods do not update information in a timely manner, and are unable to track these changes in real time and provide users with immediate and targeted configuration suggestions. Summary of the Invention
[0004] The present invention provides a method, device and storage medium for real-time interpretation of server BIOS options, aiming to solve at least one of the technical problems existing in the prior art.
[0005] The technical solution of the present invention is a real-time interpretation method for server BIOS options, which includes:
[0006] Obtaining a description document of the server BIOS options, and parsing the description document to obtain relevant configuration information for each BIOS option;
[0007] Use the py2neo library to interact with the Neo4j graph database to create nodes and relationships to build a knowledge graph about BIOS options, hardware information, and related information;
[0008] Defining a corpus of BIOS options, training a Word2Vec model using the corpus of BIOS options to obtain a BIOS option-specific word vector model, searching for three words most similar to the BIOS option by calling the BIOS option-specific word vector model, and printing the BIOS option query results;
[0009] Monitor server BIOS option data in real time through the serial port, and pass the read server BIOS option data as a parameter to the knowledge graph, and the knowledge graph uses a query function to obtain a query result of related information corresponding to the server BIOS option data;
[0010] Determining a definition of the BIOS option based on the BIOS option query result and a result of a query on associated information corresponding to the server BIOS option data, wherein the definition of the BIOS option includes a functional description of the BIOS option, a list of hardware components affected by the BIOS option, and other similar terms related to the BIOS option;
[0011] The interpretation of the BIOS option is uploaded to the user display interface of the host computer.
[0012] According to some embodiments of the present invention, obtaining a description document of a server BIOS option and parsing the description document to obtain relevant configuration information of each BIOS option includes:
[0013] Import the requests module to send HTTP requests, including GET requests;
[0014] Set the Redfish API path and data transmission format, and define the get_bios_attributes function to obtain BIOS configuration information;
[0015] Send a GET request to the Redfish interface to obtain BIOS configuration information;
[0016] Check the response status code of the HTTP request to determine whether the GET request is sent successfully. If the GET request is sent successfully, parse the response content of the HTTP request and obtain the value corresponding to the attributes key;
[0017] Determine relevant configuration information of the BIOS option according to the value corresponding to the attributes key.
[0018] According to some embodiments of the present invention, obtaining a description document of a server BIOS option and parsing the description document to obtain relevant configuration information of each BIOS option further includes:
[0019] Using a preset parsing tool to extract the descriptions of various BIOS options in the Powerleader BIOS manual of the instruction document;
[0020] Data cleaning is performed on the BIOS option description and key entity information is extracted to obtain relevant configuration information of standard BIOS options.
[0021] According to some embodiments of the present invention, using the py2neo library to interact with the Neo4j graph database to create nodes and relationships to build a knowledge graph about BIOS options, hardware information, and related information includes:
[0022] Obtain the address, port, and authentication information of the Neo4j graph database. The py2neo library connects to the Neo4j graph database through the Bolt protocol based on the address, port, and authentication information of the Neo4j graph database, thereby enabling interaction between the py2neo library and the Neo4j graph database.
[0023] A function for creating a node is defined, which accepts an option parameter and a description parameter, wherein the option parameter represents a BIOS option and the description parameter represents a description of the BIOS option. A new node of type BIOS Option is created, and a BIOS option name and associated information description attributes are assigned to the new BIOS Option node to obtain other similar terms related to the BIOS option, and the other similar terms related to the BIOS option are added to the Neo4j graph database.
[0024] Create a "VT-d" node of type BIOS_Option and an "IOMMU" node of type Hardware, use the Relationship class to define a relationship from the "VT-d" node to the "IOMMU" node, and define the relationship type as ENABLES, indicating that the IOMMU hardware is activated or enabled when the VT-d function is enabled, so as to form a list of hardware components affected by the BIOS option, and add the list of hardware components affected by the BIOS option to the Neo4j graph database;
[0025] A knowledge graph about BIOS options, hardware information, and related information is constructed based on the BIOS options, other similar terms related to the BIOS options, and the list of hardware components affected by the BIOS options.
[0026] According to some embodiments of the present invention, the corpus defining the BIOS options, training a Word2Vec model using the corpus of the BIOS options to obtain a BIOS option-specific word vector model, and printing the BIOS option query results include:
[0027] Import the gensim.models library and import the Word2Vec model from the gensim.models library to create a word vector model;
[0028] Creating a corpus list, wherein the corpus list includes a plurality of groups of words related to BIOS options, and defining a corpus of BIOS options according to the corpus list;
[0029] Setting the word vector dimension of the word vector model to 100, the window size to 5, ignoring words that appear less than 1 time, and using the corpus of the BIOS options to train the Word2Vec model to obtain a BIOS option-specific word vector model;
[0030] Calling the BIOS option-specific word vector model, searching for the three words most similar to the "VT-d" node by calculating the cosine similarity between word vectors to measure similarity, and printing the BIOS option query results;
[0031] Save the trained BIOS option-specific word vector model to disk.
[0032] According to some embodiments of the present invention, real-time monitoring of server BIOS option data through a serial port and passing the read server BIOS option data as a parameter to the knowledge graph, wherein the knowledge graph uses a query function to obtain a query result of associated information corresponding to the server BIOS option data, includes:
[0033] Configure and open a specified serial port, and continuously monitor server BIOS option data in an infinite loop through the serial port;
[0034] After each line of data is read, the complete line content is extracted through the parsing function, and the line content is printed, and the server BIOS option data is obtained according to the line content;
[0035] The complete row content read is passed as a parameter to the query function of the knowledge graph, and the detailed explanation or impact information related to the server BIOS option data is obtained through the query function of the knowledge graph to obtain the corresponding related information query result, and print the related information query result.
[0036] According to some embodiments of the present invention, the further comprising:
[0037] Set up exception handling mechanism;
[0038] When the serial port continuously monitors the server BIOS option data, if it is found that the BIOS option data acquisition is abnormal or the BIOS option data acquisition times out, the serial port is closed through the exception handling mechanism;
[0039] Record abnormal information, generate abnormal warning information, and send the abnormal information and the abnormal warning information to the user display interface of the host computer.
[0040] According to some embodiments of the present invention, uploading the interpretation of the BIOS option to a user display interface of a host computer includes:
[0041] Use the tkinter library to create a user display interface, which includes an input keyboard, buttons and a text display box;
[0042] In response to the triggering information of the button, the explain_bios_option function is called according to the BIOS option name received by the input keyboard to obtain the explanation of the corresponding BIOS option, and the explanation of the BIOS option is displayed in the text display box.
[0043] The technical solution of the present invention also relates to a computer device, comprising a memory and a processor, wherein the processor implements the above method when executing a computer program stored in the memory.
[0044] The technical solution of the present invention further relates to a computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions implement the above-mentioned method when executed by a processor.
[0045] The real-time interpretation method, device, and storage medium for server BIOS options provided by embodiments of the present invention have at least one of the following advantages or beneficial effects: They obtain the description document for server BIOS options and parse it to obtain relevant configuration information for each BIOS option, such as function descriptions and default values, thereby providing the raw data for the BIOS options. The py2neo library interacts with the Neo4j graph database to create nodes and relationships, building a knowledge graph of BIOS options, hardware information, and related information. A knowledge graph is a powerful data structure that graphically represents complex relationships between entities (such as BIOS options and hardware components). By constructing a knowledge graph, BIOS options can be associated with related hardware components, similar terms, and so on, providing support for subsequent queries and reasoning. A custom BIOS option corpus dynamically adapts to new terminology, generating personalized BIOS option explanations and suggestions to provide users with up-to-date explanations and understanding. This corpus is used to train a Word2Vec model to generate a BIOS option-specific word embedding model. This training of the BIOS option-specific word embedding model identifies the most semantically similar terms to a particular BIOS option, helping to discover other terms related to the target BIOS option and enriching its meaning. The BIOS option-specific word embedding model is then used to search for the three most similar terms to the BIOS option and print the query results. Real-time monitoring of server BIOS option data via the serial port is a key step in achieving real-time interpretation. The read BIOS option data is passed as a parameter to a knowledge graph, which can then use query functions to quickly retrieve relevant information based on this BIOS option data. The BIOS option definition is determined by combining document parsing results, knowledge graph query results, and similar word query results from the Word2Vec model. The resulting BIOS option definition includes a functional description of the BIOS option, a list of hardware components affected by the BIOS option, and complete definitions of other similar terms related to the BIOS option. Uploading BIOS option definitions to the host computer's user interface instantly provides users with relevant explanations and suggestions without having to manually consult the manual, improving server maintenance and management efficiency. Users can easily view detailed definitions of BIOS options to better understand and configure BIOS options.
[0046] In addition, additional aspects and advantages of the present invention will be set forth in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 This is an overall flow chart of a method for real-time interpretation of server BIOS options provided by an embodiment of the present invention;
[0048] Figure 2 is a detailed flow chart of step S100 in the real-time interpretation method for server BIOS options provided by an embodiment of the present invention;
[0049] Figure 3 is a detailed flow chart of step S200 in the real-time interpretation method for server BIOS options provided by an embodiment of the present invention;
[0050] Figure 4 is a detailed flow chart of step S300 in the real-time interpretation method for server BIOS options provided by an embodiment of the present invention;
[0051] Figure 5 is a detailed flow chart of step S400 in the real-time interpretation method of server BIOS options provided by an embodiment of the present invention;
[0052] Figure 6 This is a detailed flow chart of a method for real-time interpretation of server BIOS options provided by an embodiment of the present invention;
[0053] Figure 7 is a detailed flow chart of step S600 in the real-time interpretation method for server BIOS options provided by an embodiment of the present invention;
[0054] Figure 8 is a schematic diagram of the user display interface. DETAILED DESCRIPTION
[0055] The following will provide a clear and complete description of the concept, specific structure and technical effects of the present invention in conjunction with the embodiments and drawings to fully understand the purpose, scheme and effects of the present invention.
[0056] It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly fixed or connected to the other feature, or it may be indirectly fixed or connected to the other feature. The singular forms "a", "said" and "the" used herein are also intended to include the plural forms, unless the context clearly indicates otherwise. In addition, unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art. The terms used in this specification are only for describing specific embodiments and are not intended to limit the invention. The term "and / or" used herein includes any combination of one or more related listed items.
[0057] It should be understood that, although the present invention may adopt the terms first, second, third etc. to describe various elements, these elements should not be limited to these terms. These terms are only used to distinguish the elements of the same type from each other. For example, without departing from the scope of the present invention, the first element may also be referred to as the second element, and similarly, the second element may also be referred to as the first element. The use of any and all examples or exemplary language ("for example", "such as" etc.) provided herein is only intended to better illustrate embodiments of the present invention, and unless otherwise required, will not impose limitations on the scope of the present invention.
[0058] Related art methods for interpreting BIOS options have numerous shortcomings. For one thing, traditional BIOS option interpretation relies primarily on consulting paper or electronic user manuals. These manuals are often complex and lengthy, requiring users to spend considerable time leafing through them to find the meaning of a specific BIOS option, resulting in inefficiencies. Furthermore, the information in these manuals is relatively static and difficult to update to reflect new hardware features, software compatibility changes, and security threats. This can lead to users receiving outdated or inaccurate configuration recommendations, making it difficult for them to understand option relationships and track configuration changes in real time. These issues severely hamper the efficiency and quality of server management and maintenance, posing numerous challenges to stable server operation and performance optimization. Furthermore, with the continuous development and advancement of server hardware technology, new BIOS options continue to emerge, and their functions and interrelationships are becoming increasingly complex. Users struggling to fully understand the relationships between various BIOS options and the potential impact of configuring a particular option on the entire system simply rely on simple descriptions in manuals. Furthermore, server BIOS settings can frequently change due to various factors, such as hardware upgrades, software updates, and security policy adjustments. Existing interpretation methods do not update information in a timely manner, and are unable to track these changes in real time and provide users with immediate and targeted configuration suggestions.
[0059] Based on this, an embodiment of the present invention provides a real-time interpretation method, device and storage medium for server BIOS options, which is conducive to real-time and accurate interpretation of server BIOS options, providing comprehensive and dynamic configuration suggestions, and a new method that can adapt to changes in server hardware and software environments to meet the needs of modern server management and maintenance.
[0060] Reference Figure 1 As shown, Figure 1 This is a general flow chart of a method for real-time interpretation of server BIOS options provided by an embodiment of the present invention. The method for real-time interpretation of server BIOS options includes but is not limited to steps S100 to S600. Specifically,
[0061] S100: Obtain a description document of a server BIOS option, and parse the description document to obtain relevant configuration information of each BIOS option;
[0062] S200: Use the py2neo library to interact with the Neo4j graph database to create nodes and relationships to build a knowledge graph about BIOS options, hardware information, and related information;
[0063] S300: defining a corpus of BIOS options, training a Word2Vec model using the corpus of BIOS options, obtaining a BIOS option-specific word vector model, searching for three words most similar to the BIOS options by calling the BIOS option-specific word vector model, and printing the BIOS option query results;
[0064] S400: Monitor the server BIOS option data in real time through the serial port, and pass the read server BIOS option data as a parameter to the knowledge graph. The knowledge graph uses the query function to obtain the associated information query result corresponding to the server BIOS option data;
[0065] S500: Determine a definition of the BIOS option based on the BIOS option query result and the query result of associated information corresponding to the server BIOS option data. The definition of the BIOS option includes a functional description of the BIOS option, a list of hardware components affected by the BIOS option, and other similar terms related to the BIOS option.
[0066] S600: Upload the interpretation of the BIOS option to the user display interface of the host computer.
[0067] In some embodiments of the present invention, server BIOS option documentation is obtained. This documentation is a direct source for understanding BIOS options and is parsed to obtain relevant configuration information for each BIOS option. By parsing the documentation, basic information about each BIOS option, such as its function description and default value, is obtained, providing the raw data for the BIOS option. The py2neo library is used to interact with the Neo4j graph database to create nodes and relationships, building a knowledge graph of BIOS options, hardware information, and related information. A knowledge graph is a powerful data structure that graphically represents complex relationships between entities (such as BIOS options and hardware components). By building this knowledge graph, BIOS options can be associated with related hardware components, similar terms, and so on, providing support for subsequent querying and reasoning. A corpus of BIOS options is defined and used to train a Word2Vec model. The Word2Vec model is a natural language processing technique that maps words in a text to vectors in a high-dimensional space. This model generates a BIOS option-specific word vector model. This training of the BIOS option-specific word vector model identifies the most semantically similar words to a particular BIOS option, helping to discover other terms related to the target BIOS option and enrich its meaning. The BIOS option-specific word vector model is then used to search for the three most similar words to the BIOS option and print the query results. Real-time monitoring of server BIOS option data via the serial port is a key step in achieving real-time interpretation. The read BIOS option data is passed as a parameter to a knowledge graph, which can then use query functions to quickly retrieve relevant information based on this BIOS option data. By combining document parsing results, knowledge graph query results, and similar word query results from the Word2Vec model, the interpretation of the BIOS option is determined. The resulting interpretation includes a functional description of the BIOS option, a list of hardware components affected by the BIOS option, and complete definitions of other similar terms related to the BIOS option. The interpretation of the BIOS options is uploaded to the user display interface of the host computer, and the interpretation results are displayed to the user. The user can easily view the detailed interpretation of the BIOS options, thereby better understanding and configuring the BIOS options.
[0068] It is understandable that the traditional method of interpreting BIOS options is to query the manual, which is usually a collection of a large amount of text. It may take a long time to find the interpretation of a specific BIOS option, especially when the manual content is very large. The BIOS option-specific word vector model of the embodiment of the present invention can quickly locate the terms and content related to the target option by calculating the similarity and other relationships between words. Even if the user's query expression is not precise enough, it can provide relevant explanations, suggestions and other BIOS option recommendations related to the query option. This helps the user to more comprehensively understand the connection between various BIOS options and the configuration items that may need to be considered at the same time, avoiding problems such as incomplete or uncoordinated configuration caused by focusing on only a single option. In addition, the BIOS option-specific word vector model of the embodiment of the present invention can capture the semantic associations between words and understand the potential relationships between different terms. By constructing a knowledge graph about BIOS options, hardware information, and related information, and customizing a corpus of BIOS options, a Word2Vec model is trained using the corpus of BIOS options to generate a BIOS option-specific word vector model. For example, "VT-d" and "IOMMU" may have a high degree of similarity in the word vector space. Based on this, the BIOS option-specific word vector model can provide users with a deeper semantic understanding, beyond the definitions explicitly listed in the manual. The BIOS option-specific word vector model can be combined with the knowledge graph to analyze the association between BIOS options and hardware and error codes. For example, when a user queries a BIOS option, the BIOS option-specific word vector model can simultaneously provide information such as the hardware impact related to the BIOS option and the possible error codes, helping users to more comprehensively assess the impact of the option setting on the system. In server management, BIOS event logs captured through serial port monitoring are often generated in real time. The BIOS option-specific word vector model of the embodiments of the present invention can be combined with the serial port monitoring service to parse the BIOS option change information in the log in real time and immediately provide users with relevant explanations and suggestions without the need for users to manually consult the manual, thereby improving the efficiency of server maintenance and management. Furthermore, as BIOS technology continues to evolve, new terms and options may emerge. The BIOS option-specific word embedding model can dynamically adapt to these new terms through continuous training and updates, providing users with the latest explanations and understanding. However, manual updates typically lag behind. The BIOS option-specific word embedding model can also generate personalized BIOS option explanations and recommendations based on specific user needs and usage scenarios. For example, for different server types or different business requirements, the BIOS option-specific word embedding model can combine corresponding knowledge graphs and semantic analysis to provide users with more practical configuration guidance.
[0069] Therefore, in the embodiment of the present invention, by real-time monitoring of BIOS option data through the serial port, the latest information can be obtained in a timely manner, and real-time interpretation of BIOS options can be achieved. By combining various technologies such as instruction document parsing, knowledge graph construction and natural language processing, information is obtained and integrated from multiple angles, thereby improving the accuracy of BIOS option interpretation. The interpretation content of BIOS options in the present invention includes not only functional descriptions, but also a list of hardware components affected by the options and similar terms, providing users with comprehensive information.
[0070] Reference Figure 2 As shown, Figure 2 This is a detailed flow chart of step S100 in the real-time interpretation method of server BIOS options provided by an embodiment of the present invention. Step S100 includes but is not limited to steps S110 to S150. Specifically,
[0071] S110: Import the requests module to send HTTP requests, including GET requests;
[0072] S120: Set the Redfish API path and data transmission format, and define the get_bios_attributes function to obtain BIOS configuration information;
[0073] S130: Send a GET request to the Redfish interface to obtain BIOS configuration information;
[0074] S140: Check the response status code of the HTTP request to determine whether the GET request is sent successfully. If the GET request is sent successfully, parse the response content of the HTTP request and obtain the value corresponding to the attributes key;
[0075] S150: Determine relevant configuration information of the BIOS option according to the value corresponding to the attributes key.
[0076] Obtaining the server BIOS option documentation and parsing the documentation to obtain the relevant configuration information for each BIOS option includes: importing the requests module, which is used to send HTTP requests (such as GET requests). It simplifies the HTTP request sending and response processing process. In this embodiment of the present invention, the requests module is used to send a request to the Redfish API to obtain BIOS data. The Redfish API path and data transmission format are set, and the get_bios_attributes function is defined to obtain BIOS configuration information. Specifically,
[0077] Setting URLs and headers
[0078] url = "https: / / xxxxxx / redfish / v1 / Systems / 1 / Bios"
[0079] headers = {
[0080] 'Content-Type': 'application / json',
[0081] 'Accept': 'application / json'
[0082] }
[0083] Where url points to the URL of the Redfish API, https: / / xxxxxx is the IP address of the target server, and / redfish / v1 / Systems / 1 / Bios is the path of the Redfish API, indicating that the BIOS configuration information of the first system (1) is to be accessed.
[0084] headers:
[0085] Content-Type: application / json: Set the data format to be sent to JSON;
[0086] Accept: application / json: Set the received response data format to JSON.
[0087] Define the function get_bios_attributes: def get_bios_attributes(url, headers):
[0088] A function named get_bios_attributes is defined to obtain the configuration attributes of the BIOS. The function accepts two parameters: url: API address, headers: request header information.
[0089] It can be understood that redfish_base_url is the base address of the Redfish interface, headers is used to set the request header, including content type and authentication information, and the get_bios_attributes function is used to send a GET request to the Redfish interface to obtain the BIOS configuration information.
[0090] After that, send a GET request to the Redfish interface to obtain the BIOS configuration information. Specifically,
[0091] Send a GET request
[0092] response = requests.get(url, headers=headers, verify=False)
[0093] Use the requests.get method to send a GET request to the specified URL.
[0094] Parameter Description: url: target API address; headers: contains request header information; verify=False: ignores SSL certificate verification (usually used in development environments or self-signed certificates). It should be noted that in a production environment, the embodiment of the present invention should remove verify=False and correctly configure SSL certificate verification.
[0095] Check the response status code of the HTTP request to determine whether the GET request was sent successfully. This can be achieved by:
[0096] if response.status_code == 200:
[0097] Checks whether the HTTP response status code is 200, indicating that the request was successful and the response content can be parsed; if the status code is not 200, this conditional branch will not be entered and the function will directly return None.
[0098] If the GET request is sent successfully, the response content of the HTTP request is parsed, and the value corresponding to the attributes key is obtained. The relevant configuration information of the BIOS option is determined according to the value corresponding to the attributes key.
[0099] Parse the response content of the HTTP request, specifically,
[0100] bios_data = response.json()
[0101] attributes = bios_data.get('attributes')
[0102] response.json(): parse the response content into JSON format;
[0103] bios_data.get('attributes'): Extract the value corresponding to the attributes key from the parsed JSON data.
[0104] response.json() parses the response content into JSON format. bios_data.get('attributes',{}) retrieves the value corresponding to the attributes key, which is a dictionary containing BIOS options and configuration information. In the Redfish API, BIOS configuration is typically stored under the attributes key. BIOS configuration attributes include but are not limited to Secure Boot, Boot Mode, and Power Management.
[0105] When obtaining the server BIOS option documentation and parsing the documentation to obtain the relevant configuration information for each BIOS option, an exception handling mechanism is also set up. If any error occurs during the request or parsing process (such as network problems, invalid JSON data, etc.), the exception will be caught and the error information will be printed.
[0106] The Redfish interface is a standardized API that works with a wide variety of server hardware, offering excellent compatibility and interoperability. HTTPS and authentication mechanisms ensure secure data transmission. The requests module simplifies HTTP request sending and response processing, making code easy to write and maintain. Therefore, obtaining and parsing each BIOS option through the Redfish interface is an efficient and reliable method. It leverages standardized APIs and modern network technologies to quickly and securely obtain BIOS configuration information, improving server management and maintenance efficiency.
[0107] In some embodiments of the present invention, step S100 further includes but is not limited to steps S160 to S170. Specifically,
[0108] S160: Use the preset parsing tool to extract the descriptions of various BIOS options in the Powerleader BIOS manual;
[0109] S170: Clean up the BIOS option description and extract key entity information to obtain relevant configuration information of the standard BIOS option.
[0110] Obtain a description document of a server BIOS option. The description document of the BIOS option may be in various data formats such as Excel, HTML, and PDF. Taking reading PDF as an example, an embodiment of the present invention parses the description document to obtain relevant configuration information of each BIOS option, and further comprises: using a preset parsing tool to extract descriptions of each BIOS option in the Powerleader BIOS manual of the description document, the preset parsing tool being a PDF parsing tool, extracting text information from the description document through the PDF parsing tool to obtain descriptions of each BIOS option in the manual, then performing data cleaning processing on the extracted BIOS option description to remove irrelevant text content, such as headers, footers, and redundant spaces; using natural language processing (NLP) technology, such as spaCy or NLTK, to identify and extract key entity information, such as BIOS option name, function description, default value, etc., organizing the extracted entity information into a standard configuration information format, such as a dictionary or JSON, to obtain relevant configuration information of the standard BIOS option; finally, printing out or saving the organized relevant configuration information of the standard BIOS option to a file.
[0111] In one embodiment, the method of parsing the description document to obtain the relevant configuration information of each option of the BIOS is implemented by the following code:
[0112] Parse the server options PDF manual to get relevant configuration options and instructions:
[0113] # Extract text using PDF parsing tools (Example: PyPDF2)
[0114] import PyPDF2
[0115] def extract_bios_text(pdf_path):
[0116] text = ""
[0117] with open(pdf_path, 'rb') as f:
[0118] reader = PyPDF2.PdfReader(f)
[0119] for page in reader.pages:
[0120] text += page.extract_text()
[0121] return text
[0122] # Example: Extract option descriptions from the "Powerleader BIOS Manual"
[0123] bios_text = extract_bios_text("powerleader_bios_manual.pdf")
[0124] Clean the BIOS option description and extract key entity information to obtain the relevant configuration information of the standard BIOS options:
[0125] # Clean the text and extract key entities
[0126] import re
[0127] def clean_and_extract(text):
[0128] # Matches the BIOS option format (e.g. "Secure Boot: [Enabled / Disabled]")
[0129] pattern = r"(\w+[\s-]?\w+):\s*\[(Enabled|Disabled|Auto)\]"
[0130] matches = re.findall(pattern, text)
[0131] return [{"option": m[0], "state": m[1]} for m in matches]
[0132] # Sample output
[0133] # [{'option': 'Secure Boot', 'state': 'Enabled'}, ...]
[0134] By automatically extracting and processing document content through code, we can parse PDF manuals for server BIOS options, extracting and organizing relevant configuration options and instructions, reducing manual errors and time costs. Using natural language processing (NLP) technology, we can more accurately extract key information, improve data quality, and easily expand to other document and information extraction tasks. This approach combines document parsing and natural language processing technologies to efficiently obtain and process BIOS option configuration information, providing support for server management and maintenance.
[0135] Reference Figure 3 As shown, Figure 3This is a detailed flow chart of step S200 in the real-time interpretation method of server BIOS options provided by an embodiment of the present invention. Step S200 includes but is not limited to steps S210 to S240. Specifically,
[0136] S210: Obtain the address, port, and authentication information of the Neo4j graph database. The py2neo library connects to the Neo4j graph database through the Bolt protocol based on the address, port, and authentication information of the Neo4j graph database, thereby implementing interaction between the py2neo library and the Neo4j graph database.
[0137] S220: Define a function for creating a node that accepts an option parameter and a description parameter, where the option parameter represents a BIOS option and the description parameter represents a description of the BIOS option, creates a new node of type BIOS Option, and assigns a BIOS option name and associated information description attributes to the new BIOS Option node to obtain other similar terms related to the BIOS option, and adds the other similar terms related to the BIOS option to a Neo4j graph database;
[0138] S230: Create a "VT-d" node of type BIOS_Option and an "IOMMU" node of type Hardware, use the Relationship class to define a relationship from the "VT-d" node to the "IOMMU" node, and use the relationship type ENABLES to indicate that the IOMMU hardware is activated or enabled when the VT-d function is enabled, thereby forming a list of hardware components affected by the BIOS option, and adding the list of hardware components affected by the BIOS option to the Neo4j graph database;
[0139] S240: Construct a knowledge graph about BIOS options, hardware information, and related information based on the BIOS options, other similar terms related to the BIOS options, and a list of hardware components affected by the BIOS options.
[0140] In some embodiments of the present invention, using the py2neo library to interact with a Neo4j graph database to create nodes and relationships to build a knowledge graph about BIOS options, hardware information, and related information includes: first, obtaining the address, port, and authentication information (username and password) of the Neo4j graph database; then, using the py2neo library to interact with the Neo4j graph database; then, defining a function, create_bios_option_node, that accepts option and description parameters, creates a new node of type BIOS Option, assigns it name (option name) and desc (related information description); obtains other similar terms related to the BIOS option, quickly locates terms and content related to the target option, and provides relevant explanations, suggestions, and recommendations for other BIOS options related to the query option. This helps users more comprehensively understand the connections between various BIOS options and configuration items that may need to be considered simultaneously, avoiding incomplete or inconsistent configurations caused by focusing on a single option. Then, using the graph.create(node) function, the newly created node is added to the Neo4j graph database.
[0141] Create a "VT-d" node of type BIOS_Option and an "IOMMU" node of type Hardware and define the relationship between them. Use the Relationship class to define a relationship from "VT-d" to "IOMMU" with the relationship type ENABLES, indicating that enabling the VT-d feature activates or enables the IOMMU hardware, forming a list of hardware components affected by the BIOS option. In a virtualized environment, the IOMMU is crucial for managing I / O operations and memory mapping. Enabling the VT-d option directly determines whether the IOMMU can function properly. Use the graph.create(rel) function to add this list of hardware components affected by the BIOS option to the Neo4j graph database.
[0142] Finally, using the py2neo library and the Neo4j graph database, we constructed a knowledge graph of BIOS options, hardware information, and related information based on the BIOS options, other similar terms related to the BIOS options, and a list of hardware components affected by the BIOS options. Knowledge graphs graphically represent complex relationships between entities (such as BIOS options and hardware components). This knowledge graph allows us to associate BIOS options with related hardware components and similar terms, providing support for subsequent queries and reasoning.
[0143] BIOS options, hardware information, and related information are stored in a Neo4j graph database, and a knowledge graph is constructed. Using the Neo4j graph database, BIOS options, hardware information, and related information can be stored in a structured manner for easy query and analysis. By defining different node types and relationship types, various information and their relationships can be flexibly represented. More BIOS options, hardware components, and related information can be added to expand the knowledge graph. This method takes advantage of the graph database and can efficiently represent and query complex relational data, providing strong support for server management and maintenance.
[0144] In some embodiments of the present invention, creating specific nodes and relationships also includes creating a node of the Error_Code type. The Error_Code type node is used to record error codes or other problems caused by certain BIOS settings, which can quickly locate and solve problems caused by BIOS settings.
[0145] Define a function called create_error_code_node that accepts error_code and description parameters, creates a new node of type Error_Code, assigns corresponding attributes, and defines its relationship to BIOS options. For example, suppose a BIOS option called VT-d causes error code 0x1234. By associating error codes with BIOS options, issues caused by BIOS settings can be quickly tracked and resolved. The information in the knowledge graph can be shared among team members, improving problem solving efficiency. More error codes and BIOS options can be easily added to expand the knowledge graph.
[0146] Creating specific nodes and relationships also includes creating a node of the Error_Code type, which stores BIOS options, hardware information, associated information, and error codes in a Neo4j graph database and builds a knowledge graph. This approach not only helps quickly locate and resolve issues caused by BIOS settings, but also serves as a platform for team knowledge sharing.
[0147] In some embodiments of the present invention, a relationship from "VT-d" to "0x1234" is defined using a Relationship class, and the relationship type is CAUSES, indicating that enabling VT-d may cause error code 0x1234 to occur. This may be because the system hardware does not fully support the VT-d function, or there are compatibility issues between the relevant driver and the VT-d setting. This helps technicians quickly locate the BIOS settings that may cause the error.
[0148] The Relationship class defines a relationship from "AES-NI" to "CPU" with the relationship type AFFECTS. This indicates that when AES-NI is enabled, the CPU can utilize specialized instruction sets when performing encryption and decryption operations. This improves encryption efficiency, reduces CPU resource consumption for these operations, and impacts overall system performance. The AFFECTS relationship demonstrates that the AES-NI BIOS option affects CPU performance or functionality.
[0149] Reference Figure 4 As shown, Figure 4 This is a detailed flow chart of step S300 in the real-time interpretation method of server BIOS options provided by an embodiment of the present invention. Step S300 includes but is not limited to steps S310 to S350. Specifically,
[0150] S310: Import the gensim.models library and import the Word2Vec model from the gensim.models library to create a word vector model;
[0151] S320: creating a corpus list, the corpus list including several groups of words related to BIOS options, and defining a corpus of BIOS options according to the corpus list;
[0152] S330: setting the word vector dimension of the word vector model to 100, the window size to 5, ignoring words that appear less than once, and using the BIOS option corpus to train a Word2Vec model to obtain a BIOS option-specific word vector model;
[0153] S340: calling the BIOS option dedicated word vector model, calculating the cosine similarity between word vectors to measure similarity, searching for the three words most similar to the "VT-d" node, and printing the BIOS option query results;
[0154] S350: Save the trained BIOS option-specific word vector model to a disk.
[0155] In some embodiments of the present invention, a Word2Vec model is trained using the gensim library and a word vector model is created using this Word2Vec model. A corpus of BIOS options is then defined, including a corpus list containing several groups of words related to BIOS options. Next, the word vector model is initialized and trained, with the word vector dimension set to 100, the window size set to 5, and words that appear less than once ignored. The Word2Vec model is trained using the BIOS options corpus to obtain a BIOS options-specific word vector model. The BIOS options-specific word vector model is then called to query the three words most similar to "VT-d." The similarity is measured by calculating the cosine similarity between the word vectors, and the BIOS options query results are printed. Finally, the trained BIOS options-specific word vector model is saved to disk for subsequent use. This entire process demonstrates how to build a BIOS options-specific word vector model and perform basic text analysis tasks to find similar words.
[0156] A corpus of BIOS options is created. A Word2Vec model is trained based on this corpus to obtain a BIOS option-specific word vector model. This BIOS option-specific word vector model can be used to identify other words that are semantically most similar to the target BIOS option vocabulary, helping to discover relevant BIOS option terms and providing support for server management and maintenance. The trained model is then saved to disk for subsequent use and updating. This embodiment of the present invention allows for adjustment of parameters of the BIOS option-specific word vector model, such as word vector dimension and window size, as needed to accommodate different application scenarios.
[0157] In one embodiment of the present invention, a comprehensive explanation of a specific BIOS option is generated by combining a knowledge graph and a BIOS option-specific word vector model:
[0158] Get structured knowledge from the knowledge graph: By calling the custom query_neo4j function and passing in the BIOS option name (such as "VT-d"), the description of the option and related hardware information are obtained from the knowledge graph.
[0159] Use word vectors to expand similar terms: Leveraging a pre-trained Word2Vec model (a specialized word vector model for BIOS options), we find the three most similar terms to the input option to help expand the query and understand the context.
[0160] Generate natural language explanations: Based on the information obtained from the knowledge graph and the BIOS option-specific word embedding model, a natural language explanation is constructed that includes the following content: a functional description of the BIOS option, a list of hardware components affected by the option, and other similar terms related to the option.
[0161] Reference Figure 5 As shown, Figure 5 This is a detailed flow chart of step S400 in the real-time interpretation method of server BIOS options provided by an embodiment of the present invention. Step S400 includes but is not limited to steps S410 to S430. Specifically,
[0162] S410: Configures and opens the specified serial port, and continuously monitors the server BIOS option data through the serial port in an infinite loop;
[0163] S420: After each line of data is read, the complete line content is extracted through a parsing function, and the line content is printed, and the server BIOS option data is obtained according to the line content;
[0164] S430: Pass the read complete row content as a parameter to the query function of the knowledge graph, obtain the detailed explanation or impact information related to the server BIOS option data through the query function of the knowledge graph, obtain the corresponding related information query result, and print the related information query result.
[0165] In some embodiments of the present invention, server BIOS option data is monitored in real time via a serial port, and the read server BIOS option data is passed as a parameter to a knowledge graph. The knowledge graph uses a query function to obtain the associated information query results corresponding to the server BIOS option data, including: first, configuring and opening a specified serial port (e.g., COM1), and then continuously monitoring the server BIOS option data in an infinite loop. After each line of data is read, the entire line content is extracted using the parsing function read_until_newline, and the line content is printed to obtain the server BIOS option data based on the line content. Next, the entire line of data read is passed as a parameter to the knowledge graph query function explain_bios_option to obtain a detailed explanation or impact information related to the BIOS option data, and the associated information query results are printed.
[0166] By monitoring server BIOS option data in real time through the serial port, the latest information can be obtained in a timely manner, and the serial port data can be automatically parsed and the knowledge graph can be queried to obtain relevant detailed explanations or impact information, reducing the errors and time costs of manual operations. This method can process BIOS option data in real time and automatically, providing strong support for server management and maintenance.
[0167] Reference Figure 6 As shown, Figure 6This is a detailed flow chart of a method for real-time interpretation of server BIOS options provided by an embodiment of the present invention. The method for real-time interpretation of server BIOS options also includes but is not limited to steps S700 to S720. Specifically,
[0168] S700: Setting exception handling mechanism;
[0169] S710: When the serial port continuously monitors the server BIOS option data, if an exception is detected during the acquisition of BIOS option data or a timeout occurs, the serial port is closed through the exception handling mechanism.
[0170] S720: Record the abnormal information, generate abnormal alarm information, and send the abnormal information and abnormal alarm information to the user display interface of the host computer.
[0171] In some embodiments of the present invention, in order to ensure the stability and reliability of serial communication, it is very important to set up an exception handling mechanism. First, import the pyserial library for serial communication, then configure logging to record exception information and generate exception alarm information, define a function handle_exception, which is used to handle exceptions, record exception information, and generate exception alarm information. Define a function query_knowledge_graph, which accepts server BIOS option data as a parameter, and obtains detailed explanations or impact information related to the server BIOS option data through the query function of the knowledge graph. After setting up the exception handling mechanism, open the serial port and start monitoring serial port data. Continue to monitor the server BIOS option data in an infinite loop. Each time a line of data is read, parse and print the line content, and then pass the line content to the query function of the knowledge graph to obtain and print the associated information query results. If an exception occurs, call the exception handling function.
[0172] The exception handling mechanism continuously monitors serial port data, processing and querying relevant information in a timely manner. This ensures that the serial port is closed promptly when an exception occurs, preventing program crashes. It also records exception information and warnings to facilitate subsequent maintenance and troubleshooting. The exception handling mechanism is used throughout the entire process to ensure that the serial port connection is properly closed when an error occurs, enabling real-time monitoring of hardware BIOS setting changes and immediate analysis of their potential impact.
[0173] Reference Figure 7 As shown, Figure 7 This is a detailed flow chart of step S600 in the real-time interpretation method of server BIOS options provided by an embodiment of the present invention. Step S600 includes but is not limited to steps S610 to S620. Specifically,
[0174] S610: Use the tkinter library to create a user interface, which includes an input keyboard, buttons, and a text display box.
[0175] S620: In response to the triggering information of the button, call the explain_bios_option function according to the BIOS option name received through the input keyboard to obtain the explanation of the corresponding BIOS option, and display the explanation of the BIOS option in the text display box.
[0176] In some embodiments of the present invention, uploading the explanation of the BIOS option to the user display interface of the host computer includes: importing the tkinter library, creating a user display interface (GUI) based on the tkinter library, and the user display interface includes an input keyboard, a button, and a text display box. The user can enter the BIOS option name through the input keyboard, click the button, call the explain_bios_option function to obtain the explanation of the corresponding BIOS option, and display the result in the text display box. Figure 8 As shown, FIG8 is a schematic diagram of the user display interface.
[0177] The user enters the BIOS option name "Socket0 Configuration" on the keyboard and clicks a button to trigger a query. The program then calls the explain_bios_option function to retrieve and display an explanation. The entire application enters the main loop via root.mainloop(), keeping the window running and responding to user actions. The text display box shows the explanation corresponding to the BIOS option name "Socket0 Configuration," including detailed explanations and impact information. The intuitive graphical user interface makes it easy for users to enter BIOS option names and retrieve explanations, and users can see query results instantly, improving the user experience.
[0178] It should be appreciated that the method steps in the embodiments of the present invention can be implemented or executed by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer-readable memory. The method can use standard programming techniques. Each program can be implemented in a high-level procedural or object-oriented programming language to communicate with the computer system. However, if desired, the program can be implemented in assembly or machine language. In any case, the language can be a compiled or interpreted language. In addition, for this purpose, the program can be run on a programmed application-specific integrated circuit.
[0179] Furthermore, the operations of the processes described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes described herein (or variations and / or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that collectively executes on one or more processors, by hardware, or a combination thereof. The computer program includes a plurality of instructions that can be executed by one or more processors.
[0180] Further, the method can be implemented in a computing platform operably connected to any suitable type, including but not limited to a personal computer, a minicomputer, a mainframe, a workstation, a network or distributed computing environment, a separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, etc. Various aspects of the present invention can be implemented as machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, an optical read and / or write storage medium, RAM, ROM, etc., so that it can be read by a programmable computer, and when the storage medium or device is read by the computer, it can be used to configure and operate the computer to perform the process described herein. In addition, the machine-readable code, or portions thereof, can be transmitted over a wired or wireless network. When such media includes instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor, the invention described herein includes these and other different types of non-transitory computer-readable storage media. When programmed according to the methods and techniques of the present invention, the present invention can also include the computer itself.
[0181] The computer program can be applied to input data to perform the functions described herein, thereby converting the input data to generate output data that is stored in a non-volatile memory. The output information can also be applied to one or more output devices such as a display. In a preferred embodiment of the present invention, the converted data represents a physical and tangible object, including a specific visual depiction of the physical and tangible object produced on the display.
[0182] The above description is merely a preferred embodiment of the present invention. The present invention is not limited to the aforementioned embodiments. As long as the technical effects of the present invention are achieved by the same means, any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention. Within the scope of protection of the present invention, various modifications and variations of the technical solutions and / or implementation methods are possible.
Claims
1. A real-time interpretation method for server BIOS options, characterized in that: include: Obtaining a description document of the server BIOS options, and parsing the description document to obtain relevant configuration information for each BIOS option; Use the py2neo library to interact with the Neo4j graph database to create nodes and relationships to build a knowledge graph about BIOS options, hardware information, and related information; Defining a corpus of BIOS options, training a Word2Vec model using the corpus of BIOS options to obtain a BIOS option-specific word vector model, searching for three words most similar to the BIOS option by calling the BIOS option-specific word vector model, and printing the BIOS option query results; Monitor server BIOS option data in real time through the serial port, and pass the read server BIOS option data as a parameter to the knowledge graph, and the knowledge graph uses a query function to obtain a query result of related information corresponding to the server BIOS option data; Determining a definition of the BIOS option based on the BIOS option query result and a result of a query on associated information corresponding to the server BIOS option data, wherein the definition of the BIOS option includes a functional description of the BIOS option, a list of hardware components affected by the BIOS option, and other similar terms related to the BIOS option; The interpretation of the BIOS option is uploaded to the user display interface of the host computer.
2. The real-time interpretation method of server BIOS options according to claim 1, characterized in that: The obtaining of the description document of the server BIOS option and parsing the description document to obtain relevant configuration information of each BIOS option includes: Import the requests module to send HTTP requests, including GET requests; Set the Redfish API path and data transmission format, and define the get_bios_attributes function to obtain BIOS configuration information; Send a GET request to the Redfish interface to obtain BIOS configuration information; Check the response status code of the HTTP request to determine whether the GET request is sent successfully. If the GET request is sent successfully, parse the response content of the HTTP request and obtain the value corresponding to the attributes key; Determine relevant configuration information of the BIOS option according to the value corresponding to the attributes key.
3. The real-time interpretation method of server BIOS options according to claim 1, characterized in that: The obtaining of the description document of the server BIOS option and parsing the description document to obtain relevant configuration information of each BIOS option further includes: Using a preset parsing tool to extract the descriptions of various BIOS options in the Powerleader BIOS manual of the instruction document; Data cleaning is performed on the BIOS option description and key entity information is extracted to obtain relevant configuration information of standard BIOS options.
4. The real-time interpretation method of server BIOS options according to claim 1, characterized in that: The py2neo library is used to interact with the Neo4j graph database to create nodes and relationships to build a knowledge graph about BIOS options, hardware information, and related information, including: Obtain the address, port, and authentication information of the Neo4j graph database. The py2neo library connects to the Neo4j graph database through the Bolt protocol based on the address, port, and authentication information of the Neo4j graph database, thereby enabling interaction between the py2neo library and the Neo4j graph database. A function for creating a node is defined, which accepts an option parameter and a description parameter, wherein the option parameter represents a BIOS option and the description parameter represents a description of the BIOS option. A new node of type BIOS Option is created, and a BIOS option name and associated information description attributes are assigned to the new BIOS Option node to obtain other similar terms related to the BIOS option, and the other similar terms related to the BIOS option are added to the Neo4j graph database. Create a "VT-d" node of type BIOS_Option and an "IOMMU" node of type Hardware, use the Relationship class to define a relationship from the "VT-d" node to the "IOMMU" node, and use the relationship type ENABLES to indicate that the IOMMU hardware is activated or enabled when the VT-d function is enabled, thereby forming a list of hardware components affected by the BIOS option, and adding the list of hardware components affected by the BIOS option to the Neo4j graph database; A knowledge graph about BIOS options, hardware information, and related information is constructed based on the BIOS options, other similar terms related to the BIOS options, and the list of hardware components affected by the BIOS options.
5. The real-time interpretation method of server BIOS options according to claim 4, characterized in that: The corpus of the BIOS options is defined, a Word2Vec model is trained using the corpus of the BIOS options to obtain a BIOS option-specific word vector model, and a BIOS option query result is printed, including: Import the gensim.models library and import the Word2Vec model from the gensim.models library to create a word vector model; Creating a corpus list, wherein the corpus list includes a plurality of groups of words related to BIOS options, and defining a corpus of BIOS options according to the corpus list; Setting the word vector dimension of the word vector model to 100, the window size to 5, ignoring words that appear less than 1 time, and using the corpus of the BIOS options to train the Word2Vec model to obtain a BIOS option-specific word vector model; Calling the BIOS option-specific word vector model, searching for the three words most similar to the "VT-d" node by calculating the cosine similarity between word vectors to measure similarity, and printing the BIOS option query results; Save the trained BIOS option-specific word vector model to disk.
6. The real-time interpretation method of server BIOS options according to claim 1, characterized in that: The server BIOS option data is monitored in real time through the serial port, and the read server BIOS option data is passed as a parameter to the knowledge graph, and the knowledge graph uses a query function to obtain the associated information query result corresponding to the server BIOS option data, including: Configure and open a specified serial port, and continuously monitor server BIOS option data in an infinite loop through the serial port; After each line of data is read, the complete line content is extracted through the parsing function, and the line content is printed, and the server BIOS option data is obtained according to the line content; The complete row content read is passed as a parameter to the query function of the knowledge graph, and the detailed explanation or impact information related to the server BIOS option data is obtained through the query function of the knowledge graph to obtain the corresponding related information query result, and print the related information query result.
7. The real-time interpretation method of server BIOS options according to claim 6, characterized in that: Also includes: Set up exception handling mechanism; When the serial port continuously monitors the server BIOS option data, if it is found that the BIOS option data acquisition is abnormal or the BIOS option data acquisition times out, the serial port is closed through the exception handling mechanism; Record abnormal information, generate abnormal warning information, and send the abnormal information and the abnormal warning information to the user display interface of the host computer.
8. The real-time interpretation method of server BIOS options according to claim 1, characterized in that: The step of uploading the interpretation of the BIOS option to a user display interface of a host computer includes: Use the tkinter library to create a user display interface, which includes an input keyboard, buttons and a text display box; In response to the triggering information of the button, the explain_bios_option function is called according to the BIOS option name received by the input keyboard to obtain the explanation of the corresponding BIOS option, and the explanation of the BIOS option is displayed in the text display box.
9. A computer device comprising a memory and a processor, characterized in that: The method according to any one of claims 1 to 8 is implemented when the processor executes the computer program stored in the memory.
10. A computer-readable storage medium having program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Divergent associated fan equipment operation inspection knowledge graph construction and retrieval method
CN116822625A
Construction method of automobile fault intelligent diagnosis system based on knowledge graph
CN117332858A