CN113904926A - Pre-boot execution environment checking method, system, terminal and storage medium - Google Patents

Pre-boot execution environment checking method, system, terminal and storage medium Download PDF

Info

Publication number
CN113904926A
CN113904926A CN202111062020.8A CN202111062020A CN113904926A CN 113904926 A CN113904926 A CN 113904926A CN 202111062020 A CN202111062020 A CN 202111062020A CN 113904926 A CN113904926 A CN 113904926A
Authority
CN
China
Prior art keywords
instruction
information
service
configuration
configuring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202111062020.8A
Other languages
Chinese (zh)
Inventor
刘瑞
仪修武
陈彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111062020.8A priority Critical patent/CN113904926A/en
Publication of CN113904926A publication Critical patent/CN113904926A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method, a system, a terminal and a storage medium for checking a pre-boot execution environment, wherein the method comprises the following steps: customizing an instruction for acquiring inspection item information according to an inspection item, wherein the inspection item comprises a network service, a dynamic host configuration protocol service, a domain name configuration service, a starting guide configuration file, a hypertext transfer protocol service, a simple file transfer protocol, a system log and a configuration compatible table; executing the instruction to acquire target information of the inspection item, comparing the acquired target information with corresponding standard information in a set standard template, and if the acquired target information is inconsistent with the corresponding standard information in the set standard template, taking the target information as abnormal information; and importing all abnormal information into a set rule base, and performing fault type matching on the abnormal information by using the diagnosis rules in the rule base to obtain fault information. The invention can automatically check various problems of PXE erection, reduces the technical threshold of PXE erection and maintenance, is based on a general protocol, and is applicable to various PXE schemes.

Description

Pre-boot execution environment checking method, system, terminal and storage medium
Technical Field
The invention relates to the technical field of server testing, in particular to a method, a system, a terminal and a storage medium for checking a pre-boot execution environment.
Background
A PXE scheme is mostly adopted by a server under the conditions of OS installation, in-band operation and maintenance, etc., a Preboot eXecution Environment (PXE) is also called as a Preboot eXecution Environment, and a mechanism for starting a computer by using a Network Interface (Network Interface) is provided. This mechanism allows the computer to boot without relying on a local data storage device (e.g., hard disk) or a locally installed operating system. The PXE protocol generally combines DHCP and TFTP, although both have improvements over them. DHCP is used to find the appropriate boot server and TFTP is used to download the initial boot program and additional files. To begin a PXE self-test session, the PXE firmware broadcasts a DHCPDISCOVER packet (extended DHCPDISCOVER) with an explicit PXE option to the 67/UDP port (DHCP server port). The PXE option is a PXE-capable authentication of the PXE firmware, but is ignored by general DHCP services. When the firmware is subject to DHCPOFFER packets from such a service, it will self-configure by asking it to provide configuration information.
Since the PXE service relates to a plurality of software and services, service mis-configuration is easy to occur in the PXE erection process, so that the PXE cannot normally operate; in addition, in the operation process of the PXE, faults caused by typical problems of software and hardware compatibility, misoperation and the like can also occur.
At present, most of PXE are erected manually, and the troubleshooting is also manual, so that the efficiency is low. The PXE scheme relates to the aspects of networks, operating systems, software services and the like, and has high requirements on the technical level of engineers. For some typical problems such as hardware compatibility, software compatibility and the like, an effective knowledge point closed loop cannot be formed.
Disclosure of Invention
In view of the above-mentioned deficiencies of the prior art, the present invention provides a method, a system, a terminal and a storage medium for pre-boot execution environment check to solve the above-mentioned technical problems.
In a first aspect, the present invention provides a method for checking a pre-boot execution environment, including:
customizing an instruction for acquiring inspection item information according to an inspection item, wherein the inspection item comprises a network service, a dynamic host configuration protocol service, a domain name configuration service, a starting guide configuration file, a hypertext transfer protocol service, a simple file transfer protocol, a system log and a configuration compatible table;
executing the instruction to acquire target information of the inspection item, comparing the acquired target information with corresponding standard information in a set standard template, and if the acquired target information is inconsistent with the corresponding standard information in the set standard template, taking the target information as abnormal information;
and importing all abnormal information into a set rule base, and performing fault type matching on the abnormal information by using the diagnosis rules in the rule base to obtain fault information.
Further, customizing an instruction for obtaining information of the inspection item according to the inspection item, where the inspection item includes a web service, a dynamic host configuration protocol service, a domain name configuration service, a boot configuration file, a hypertext transfer protocol service, a simple file transfer protocol, a system log, and a configuration compatibility table, and the instruction includes:
configuring an ip instruction set used for acquiring a communication link state, a network tool instruction used for acquiring network card information, a firewall viewing instruction used for acquiring a firewall starting state and a network port viewing instruction used for viewing a network port starting state;
a calling tool for configuring a dynamic host configuration protocol client, wherein the calling tool acquires dynamic ip by calling the dynamic host configuration protocol client so as to check whether the dynamic host configuration protocol service has conflict; configuring a checking instruction of a dynamic host configuration protocol service and a domain name configuration service based on a process management command; configuring a configuration file checking instruction of a dynamic host configuration protocol service and a domain name configuration service; configuring a checking instruction for starting a boot configuration file; configuring a network service check instruction based on the network check instruction;
configuring the system log and configuring the compatible table call instruction.
Further, the configuration file checking instruction for configuring the dynamic host configuration protocol service and the domain name configuration service includes:
and writing the file names and storage paths of the configuration files of the dynamic host configuration protocol service and the domain name configuration service in the checking instruction, and writing the search keywords of each configuration file.
Further, configuring a network service check instruction based on the network view instruction comprises:
configuring a network service checking instruction based on a network checking instruction, wherein the network service checking instruction acquires a current network service type and writes the current network service type into an execution logic, and the execution logic calls a corresponding protocol service checking instruction according to the network service type;
configuring a hypertext transfer protocol service checking instruction, wherein the hypertext transfer protocol service checking instruction comprises a process management command and a configuration file checking command for checking whether a network service is normal;
and configuring a configuration file checking instruction of the simple file transfer protocol.
Further, executing the instruction to obtain target information of the inspection item, comparing the obtained target information with corresponding standard information in a set standard template, and if the obtained target information is not consistent with the corresponding standard information in the set standard template, taking the target information as abnormal information, including:
pre-configuring a standard template, wherein the standard template comprises configuration parameters of all inspection items supporting normal operation of a pre-starting execution environment;
and searching corresponding standard information from the standard template according to the project name to which the target information belongs.
Further, importing all abnormal information into a set rule base, and performing fault type matching on the abnormal information by using a diagnosis rule in the rule base to obtain fault information, wherein the fault information comprises:
constructing a diagnosis rule according to the historical fault information and the corresponding historical abnormal information, and storing the diagnosis rule to a rule base;
and searching the matched diagnosis rule from a rule base according to the abnormal information, and outputting the fault information indicated by the matched diagnosis rule.
In a second aspect, the present invention provides a pre-boot execution environment checking system, comprising:
the system comprises an instruction configuration unit, a data processing unit and a data processing unit, wherein the instruction configuration unit is used for customizing and acquiring an instruction of inspection item information according to an inspection item, and the inspection item comprises a network service, a dynamic host configuration protocol service, a domain name configuration service, a starting guide configuration file, a hypertext transfer protocol service, a simple file transfer protocol, a system log and a configuration compatible table;
the information acquisition unit is used for executing the instruction to acquire target information of the inspection item, comparing the acquired target information with corresponding standard information in a set standard template, and if the acquired target information is inconsistent with the corresponding standard information in the set standard template, taking the target information as abnormal information;
and the fault diagnosis unit is used for importing all abnormal information into a set rule base, and performing fault type matching on the abnormal information by using the diagnosis rules in the rule base to obtain fault information.
Further, the instruction configuration unit is configured to:
configuring an ip instruction set used for acquiring a communication link state, a network tool instruction used for acquiring network card information, a firewall viewing instruction used for acquiring a firewall starting state and a network port viewing instruction used for viewing a network port starting state;
a calling tool for configuring a dynamic host configuration protocol client, wherein the calling tool acquires dynamic ip by calling the dynamic host configuration protocol client so as to check whether the dynamic host configuration protocol service has conflict; configuring a checking instruction of a dynamic host configuration protocol service and a domain name configuration service based on a process management command; configuring a configuration file checking instruction of a dynamic host configuration protocol service and a domain name configuration service; configuring a checking instruction for starting a boot configuration file; configuring a network service check instruction based on the network check instruction;
configuring the system log and configuring the compatible table call instruction.
Further, the configuration file checking instruction for configuring the dynamic host configuration protocol service and the domain name configuration service includes:
and writing the file names and storage paths of the configuration files of the dynamic host configuration protocol service and the domain name configuration service in the checking instruction, and writing the search keywords of each configuration file.
Further, configuring a network service check instruction based on the network view instruction comprises:
configuring a network service checking instruction based on a network checking instruction, wherein the network service checking instruction acquires a current network service type and writes the current network service type into an execution logic, and the execution logic calls a corresponding protocol service checking instruction according to the network service type;
configuring a hypertext transfer protocol service checking instruction, wherein the hypertext transfer protocol service checking instruction comprises a process management command and a configuration file checking command for checking whether a network service is normal;
and configuring a configuration file checking instruction of the simple file transfer protocol.
Further, the information acquisition unit is configured to:
pre-configuring a standard template, wherein the standard template comprises configuration parameters of all inspection items supporting normal operation of a pre-starting execution environment;
and searching corresponding standard information from the standard template according to the project name to which the target information belongs.
Further, the fault diagnosis unit is configured to:
constructing a diagnosis rule according to the historical fault information and the corresponding historical abnormal information, and storing the diagnosis rule to a rule base;
and searching the matched diagnosis rule from a rule base according to the abnormal information, and outputting the fault information indicated by the matched diagnosis rule.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
the pre-boot execution environment inspection method, the system, the terminal and the storage medium provided by the invention can be used for customizing and acquiring the instruction of the inspection item information according to the inspection item, wherein the inspection item comprises a network service, a dynamic host configuration protocol service, a domain name configuration service, a boot configuration file, a hypertext transfer protocol service, a simple file transfer protocol, a system log and a configuration compatible table. Executing the configured instruction set, acquiring target information of the inspection item, comparing the acquired target information with corresponding standard information in a set standard template, and if the acquired target information is inconsistent with the corresponding standard information in the set standard template, taking the target information as abnormal information; and importing all abnormal information into a set rule base, and performing fault type matching on the abnormal information by using the diagnosis rules in the rule base to obtain fault information. The invention can automatically check various problems of PXE erection, reduces the technical threshold of PXE erection and maintenance, is based on a general protocol, and is applicable to various PXE schemes.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following explains key terms appearing in the present invention.
PXE (Pre boot Execution Environment), a commonly adopted mode for network starting
TFTP, a network transport Protocol, TFTP (simple File Transfer Protocol), is a Protocol in the TCP/IP Protocol suite for simple File Transfer between a client and a server, and provides a File Transfer service that is not complex and does not incur a large overhead. Port number 69.
HTTP: hypertext Transfer Protocol, a network transport Protocol, the Hypertext Transfer Protocol (HTTP), is a simple request-response Protocol that typically runs on TCP. It specifies what messages the client may send to the server and what responses to get. The headers of the request and response messages are given in ASCII form; and the message content has a MIME-like format. This simple model is an instrumental minister of early Web success because it makes development and deployment very straightforward.
Dynamic Host Configuration Protocol, a Protocol for dynamically allocating IP, DHCP (Dynamic Host Configuration Protocol) is a network Protocol of a local area network. The method is characterized in that a server controls a range of IP addresses, and a client can automatically obtain the IP address and the subnet mask allocated by the server when logging in the server. By default, DHCP is not automatically installed by the system as a service component of Windows Server, and also requires manual installation by an administrator and necessary configuration.
DNS (Domain Name Servers), Domain Name resolution service, and a Domain Name System (English: Domain Name System, abbreviation: DNS) are services of the Internet. It acts as a distributed database that maps domain names and IP addresses to each other, enabling people to more conveniently access the internet. The DNS uses UDP port 53. Currently, the limit for the length of the domain name at each level is 63 characters, and the total length of the domain name cannot exceed 253 characters.
GRUB is the boot and configuration file used to load the kernel.
OS, Operating System.
ISIB, a wave self-research server shelf tool adopts a PXE scheme.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution subject in fig. 1 may be a pre-boot execution environment checking system.
As shown in fig. 1, the method includes:
step 110, customizing an instruction for obtaining inspection item information according to an inspection item, wherein the inspection item comprises a network service, a dynamic host configuration protocol service, a domain name configuration service, a starting guide configuration file, a hypertext transfer protocol service, a simple file transfer protocol, a system log and a configuration compatible table;
step 120, executing the instruction to obtain target information of the inspection item, comparing the obtained target information with corresponding standard information in a set standard template, and if the obtained target information is inconsistent with the corresponding standard information in the set standard template, taking the target information as abnormal information;
and step 130, importing all abnormal information into a set rule base, and performing fault type matching on the abnormal information by using the diagnosis rules in the rule base to obtain fault information.
In order to facilitate understanding of the present invention, the method for checking a pre-boot execution environment provided by the present invention is further described below with reference to the principle of the method for checking a pre-boot execution environment of the present invention and the process of checking a pre-boot execution environment in the embodiment.
Specifically, the pre-boot execution environment checking method includes:
s1, customizing and acquiring the instruction of the information of the inspection item according to the inspection item, wherein the inspection item comprises a network service, a dynamic host configuration protocol service, a domain name configuration service, a boot configuration file, a hypertext transfer protocol service, a simple file transfer protocol, a system log and a configuration compatible table.
Configuring an ip instruction set used for acquiring a communication link state, a network tool instruction used for acquiring network card information, a firewall viewing instruction used for acquiring a firewall starting state and a network port viewing instruction used for viewing a network port starting state; a calling tool for configuring a dynamic host configuration protocol client is configured, and the calling tool acquires dynamic ip by calling the dynamic host configuration protocol client so as to check whether the dynamic host configuration protocol service has conflict or not; configuring a checking instruction of a dynamic host configuration protocol service and a domain name configuration service based on a process management command; configuring a configuration file checking instruction of a dynamic host configuration protocol service and a domain name configuration service; configuring a checking instruction for starting a boot configuration file; configuring a network service check instruction based on the network check instruction; configuring the system log and configuring the compatible table call instruction.
The configuration file checking instruction for configuring the dynamic host configuration protocol service and the domain name configuration service comprises the following steps: and writing the file names and storage paths of the configuration files of the dynamic host configuration protocol service and the domain name configuration service in the checking instruction, and writing the search keywords of each configuration file. Configuring a web service inspection instruction based on a web viewing instruction, comprising: configuring a network service checking instruction based on a network checking instruction, wherein the network service checking instruction acquires the current network service type and writes the current network service type into an execution logic, and the execution logic calls a corresponding protocol service checking instruction according to the network service type; configuring a hypertext transfer protocol service checking instruction, wherein the hypertext transfer protocol service checking instruction comprises a process management command and a configuration file checking command which are used for checking whether the network service is normal; and configuring a configuration file checking instruction of the simple file transfer protocol.
In this embodiment, the examination items are divided into three parts, specifically as follows:
a network check item, comprising:
checking the network link, including; judging the current link state and IP setting information through an IP instruction set; judging information such as the current port speed, the port mode, the driving version and the like through the ethnool instruction;
the firewall port specifically comprises a port and service opened by the current firewall through firewall-cmd inspection; checking whether the corresponding port in the current network environment is opened or not through telnet
The basic service check items include:
the method specifically comprises the following steps of DHCP conflict, DHCP, DNS configuration and state check, wherein the method specifically comprises the following steps:
checking whether a dhcp conflict exists through a dhclient;
checking the dhcp and dns service status by the system ctl;
checking whether the dhcp response is normal through messages;
checking the status of dncp and dns by checking dhcp.conf, dnsmasq.conf;
grub configuration checking, specifically including:
checking a default file and a grub. conf configuration file under the pxelinux to confirm that the grub configuration is normal;
HTTP configuration and status check:
checking whether the current http service uses httpd or ngnix through a netstat instruction;
checking whether the service of the httpd or the ngnix works normally through the system ctl;
http. conf and nginix confirmation configurations;
TFTP configuration and status check:
checking whether a current tftp port is monitored or not through a netstat instruction;
according to the shared file configured by the tftp, then, the shared file is searched to see whether the information such as kernel, ramfs, file system authority, file type and the like is normal or not;
typical examination items include: the key check parameter items of the OS log and the configuration compatibility table are called.
By checking the OS log and the configuration compatibility table, the following are checked in sequence:
the loading problem of the boot file caused by the mis-configuration, such as the mismatch between the kernel file directory set by grub and the directory set by tftp;
kernel and file system loading problems due to OS or hardware compatibility, such as the use of unattended installation of esxi6.5 systems for skylackecpu, require the ks file open "UEFI runtime support" function.
And S2, executing the command to acquire the target information of the inspection item, comparing the acquired target information with the corresponding standard information in the set standard template, and if the acquired target information is not consistent with the corresponding standard information in the set standard template, taking the target information as abnormal information.
Pre-configuring a standard template, wherein the standard template comprises configuration parameters of all inspection items supporting normal operation of a pre-starting execution environment; and searching corresponding standard information from the standard template according to the item name to which the target information belongs.
The standard template is configured, for example, part of the current link state of the network link is a connection state, a firewall service is opened, a network port is opened, and the like.
And S3, importing all abnormal information into a set rule base, and performing fault type matching on the abnormal information by using the diagnosis rules in the rule base to obtain fault information.
Constructing a diagnosis rule according to the historical fault information and the corresponding historical abnormal information, and storing the diagnosis rule to a rule base; and searching the matched diagnosis rule from the rule base according to the abnormal information, and outputting the fault information indicated by the matched diagnosis rule. The diagnostic rule here is a mapping of several bits of anomaly information to fault information.
In the embodiment, information such as configuration, state, port and the like related to each service in the PXE erection process is checked item by item; and various typical problems are checked one by one according to the typical rule base, the checking comprises network problem checking, DHCP, DNS, HTTP and other service related configuration checking, various typical problems are checked by analyzing a message log and the typical rule base, a PXE fault base is created for providing support for basic checking and typical problem checking, and various newly found problems can be timely updated to the fault base, so that the closed loop of PXE checking knowledge points is realized.
As shown in fig. 2, the system 200 includes:
an instruction configuration unit 210, configured to customize an instruction for obtaining information of an inspection item according to the inspection item, where the inspection item includes a network service, a dynamic host configuration protocol service, a domain name configuration service, a boot configuration file, a hypertext transfer protocol service, a simple file transfer protocol, a system log, and a configuration compatible table;
an information obtaining unit 220, configured to execute the instruction to obtain target information of the inspection item, compare the obtained target information with corresponding standard information in a set standard template, and if the obtained target information is inconsistent with the corresponding standard information in the set standard template, use the target information as abnormal information;
and the fault diagnosis unit 230 is configured to import all the abnormal information into the set rule base, and perform fault type matching on the abnormal information by using the diagnosis rules in the rule base to obtain fault information.
Optionally, as an embodiment of the present invention, the instruction configuration unit is configured to:
configuring an ip instruction set used for acquiring a communication link state, a network tool instruction used for acquiring network card information, a firewall viewing instruction used for acquiring a firewall starting state and a network port viewing instruction used for viewing a network port starting state;
a calling tool for configuring a dynamic host configuration protocol client, wherein the calling tool acquires dynamic ip by calling the dynamic host configuration protocol client so as to check whether the dynamic host configuration protocol service has conflict; configuring a checking instruction of a dynamic host configuration protocol service and a domain name configuration service based on a process management command; configuring a configuration file checking instruction of a dynamic host configuration protocol service and a domain name configuration service; configuring a checking instruction for starting a boot configuration file; configuring a network service check instruction based on the network check instruction;
configuring the system log and configuring the compatible table call instruction.
Optionally, as an embodiment of the present invention, the configuration file checking instruction for configuring the dhcp service and the dns service includes:
and writing the file names and storage paths of the configuration files of the dynamic host configuration protocol service and the domain name configuration service in the checking instruction, and writing the search keywords of each configuration file.
Optionally, as an embodiment of the present invention, configuring a network service check instruction based on a network view instruction includes:
configuring a network service checking instruction based on a network checking instruction, wherein the network service checking instruction acquires a current network service type and writes the current network service type into an execution logic, and the execution logic calls a corresponding protocol service checking instruction according to the network service type;
configuring a hypertext transfer protocol service checking instruction, wherein the hypertext transfer protocol service checking instruction comprises a process management command and a configuration file checking command for checking whether a network service is normal;
and configuring a configuration file checking instruction of the simple file transfer protocol.
Optionally, as an embodiment of the present invention, the information obtaining unit is configured to:
pre-configuring a standard template, wherein the standard template comprises configuration parameters of all inspection items supporting normal operation of a pre-starting execution environment;
and searching corresponding standard information from the standard template according to the project name to which the target information belongs.
Optionally, as an embodiment of the present invention, the fault diagnosis unit is configured to:
constructing a diagnosis rule according to the historical fault information and the corresponding historical abnormal information, and storing the diagnosis rule to a rule base;
and searching the matched diagnosis rule from a rule base according to the abnormal information, and outputting the fault information indicated by the matched diagnosis rule.
Fig. 3 is a schematic structural diagram of a terminal 300 according to an embodiment of the present invention, where the terminal 300 may be used to execute the pre-boot execution environment checking method according to the embodiment of the present invention.
Among them, the terminal 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the invention customizes the instruction for acquiring the information of the inspection item according to the inspection item, wherein the inspection item comprises a network service, a dynamic host configuration protocol service, a domain name configuration service, a boot configuration file, a hypertext transfer protocol service, a simple file transfer protocol, a system log and a configuration compatible table. Executing the configured instruction set, acquiring target information of the inspection item, comparing the acquired target information with corresponding standard information in a set standard template, and if the acquired target information is inconsistent with the corresponding standard information in the set standard template, taking the target information as abnormal information; and importing all abnormal information into a set rule base, and performing fault type matching on the abnormal information by using the diagnosis rules in the rule base to obtain fault information. The invention can automatically check various problems of PXE erection, reduces technical threshold of PXE erection and maintenance, is based on a general protocol, and is applicable to various PXE schemes.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A pre-boot execution environment checking method, comprising:
customizing an instruction for acquiring inspection item information according to an inspection item, wherein the inspection item comprises a network service, a dynamic host configuration protocol service, a domain name configuration service, a starting guide configuration file, a hypertext transfer protocol service, a simple file transfer protocol, a system log and a configuration compatible table;
executing the instruction to acquire target information of the inspection item, comparing the acquired target information with corresponding standard information in a set standard template, and if the acquired target information is inconsistent with the corresponding standard information in the set standard template, taking the target information as abnormal information;
and importing all abnormal information into a set rule base, and performing fault type matching on the abnormal information by using the diagnosis rules in the rule base to obtain fault information.
2. The method of claim 1, wherein the instruction for obtaining the information of the inspection item is customized according to the inspection item, and the inspection item comprises a web service, a dynamic host configuration protocol service, a domain name configuration service, a boot configuration file, a hypertext transfer protocol service, a trivial file transfer protocol, a system log, and a configuration compatibility table, and the method comprises the following steps:
configuring an ip instruction set used for acquiring a communication link state, a network tool instruction used for acquiring network card information, a firewall viewing instruction used for acquiring a firewall starting state and a network port viewing instruction used for viewing a network port starting state;
a calling tool for configuring a dynamic host configuration protocol client, wherein the calling tool acquires dynamic ip by calling the dynamic host configuration protocol client so as to check whether the dynamic host configuration protocol service has conflict; configuring a checking instruction of a dynamic host configuration protocol service and a domain name configuration service based on a process management command; configuring a configuration file checking instruction of a dynamic host configuration protocol service and a domain name configuration service; configuring a checking instruction for starting a boot configuration file; configuring a network service check instruction based on the network check instruction;
configuring the system log and configuring the compatible table call instruction.
3. The method of claim 2, wherein configuring the profile checking instructions of the dhcp service and the dns service comprises:
and writing the file names and storage paths of the configuration files of the dynamic host configuration protocol service and the domain name configuration service in the checking instruction, and writing the search keywords of each configuration file.
4. The method of claim 2, wherein configuring the web service check instruction based on the web view instruction comprises:
configuring a network service checking instruction based on a network checking instruction, wherein the network service checking instruction acquires a current network service type and writes the current network service type into an execution logic, and the execution logic calls a corresponding protocol service checking instruction according to the network service type;
configuring a hypertext transfer protocol service checking instruction, wherein the hypertext transfer protocol service checking instruction comprises a process management command and a configuration file checking command for checking whether a network service is normal;
and configuring a configuration file checking instruction of the simple file transfer protocol.
5. The method of claim 1, wherein executing the instruction to obtain target information of the inspection item, comparing the obtained target information with corresponding standard information in a set standard template, and if the obtained target information is not consistent with the corresponding standard information in the set standard template, taking the target information as abnormal information comprises:
pre-configuring a standard template, wherein the standard template comprises configuration parameters of all inspection items supporting normal operation of a pre-starting execution environment;
and searching corresponding standard information from the standard template according to the project name to which the target information belongs.
6. The method of claim 1, wherein the step of importing all the abnormal information into a set rule base, and performing fault type matching on the abnormal information by using a diagnosis rule in the rule base to obtain fault information comprises:
constructing a diagnosis rule according to the historical fault information and the corresponding historical abnormal information, and storing the diagnosis rule to a rule base;
and searching the matched diagnosis rule from a rule base according to the abnormal information, and outputting the fault information indicated by the matched diagnosis rule.
7. A pre-boot execution environment check system, comprising:
the system comprises an instruction configuration unit, a data processing unit and a data processing unit, wherein the instruction configuration unit is used for customizing and acquiring an instruction of inspection item information according to an inspection item, and the inspection item comprises a network service, a dynamic host configuration protocol service, a domain name configuration service, a starting guide configuration file, a hypertext transfer protocol service, a simple file transfer protocol, a system log and a configuration compatible table;
the information acquisition unit is used for executing the instruction to acquire target information of the inspection item, comparing the acquired target information with corresponding standard information in a set standard template, and if the acquired target information is inconsistent with the corresponding standard information in the set standard template, taking the target information as abnormal information;
and the fault diagnosis unit is used for importing all abnormal information into a set rule base, and performing fault type matching on the abnormal information by using the diagnosis rules in the rule base to obtain fault information.
8. The system of claim 7, wherein the instruction configuration unit is configured to:
configuring an ip instruction set used for acquiring a communication link state, a network tool instruction used for acquiring network card information, a firewall viewing instruction used for acquiring a firewall starting state and a network port viewing instruction used for viewing a network port starting state;
a calling tool for configuring a dynamic host configuration protocol client, wherein the calling tool acquires dynamic ip by calling the dynamic host configuration protocol client so as to check whether the dynamic host configuration protocol service has conflict; configuring a checking instruction of a dynamic host configuration protocol service and a domain name configuration service based on a process management command; configuring a configuration file checking instruction of a dynamic host configuration protocol service and a domain name configuration service; configuring a checking instruction for starting a boot configuration file; configuring a network service check instruction based on the network check instruction;
configuring the system log and configuring the compatible table call instruction.
9. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-6.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN202111062020.8A 2021-09-10 2021-09-10 Pre-boot execution environment checking method, system, terminal and storage medium Withdrawn CN113904926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111062020.8A CN113904926A (en) 2021-09-10 2021-09-10 Pre-boot execution environment checking method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111062020.8A CN113904926A (en) 2021-09-10 2021-09-10 Pre-boot execution environment checking method, system, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113904926A true CN113904926A (en) 2022-01-07

Family

ID=79027914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111062020.8A Withdrawn CN113904926A (en) 2021-09-10 2021-09-10 Pre-boot execution environment checking method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113904926A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115016987A (en) * 2022-07-13 2022-09-06 统信软件技术有限公司 Operating system checking method, computing device and storage medium
CN115913913A (en) * 2022-11-07 2023-04-04 苏州浪潮智能科技有限公司 Network card pre-starting execution environment function fault positioning method and device
CN115913913B (en) * 2022-11-07 2024-06-07 苏州浪潮智能科技有限公司 Network card pre-starting execution environment function fault positioning method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115016987A (en) * 2022-07-13 2022-09-06 统信软件技术有限公司 Operating system checking method, computing device and storage medium
CN115016987B (en) * 2022-07-13 2022-11-04 统信软件技术有限公司 Operating system checking method, computing device and storage medium
CN115913913A (en) * 2022-11-07 2023-04-04 苏州浪潮智能科技有限公司 Network card pre-starting execution environment function fault positioning method and device
CN115913913B (en) * 2022-11-07 2024-06-07 苏州浪潮智能科技有限公司 Network card pre-starting execution environment function fault positioning method and device

Similar Documents

Publication Publication Date Title
CN112866017B (en) Method, system, medium and device for configuring BMC IP address of bare metal server
CN109951325B (en) Network cable connection checking method and device
EP0762281B1 (en) Network management with acquisition of formatted dump data from remote process
CN111698343B (en) PXE equipment positioning method and device
CN112527397A (en) Method and device for modifying basic input output system options and computer equipment
CN113904926A (en) Pre-boot execution environment checking method, system, terminal and storage medium
CN114866515A (en) IP address configuration method, device, electronic equipment and storage medium
CN111078305A (en) Information acquisition method and device, server and information management system
CN112003794B (en) Floating IP current limiting method, system, terminal and storage medium
CN107210934B (en) Distributed gateway
US8656011B2 (en) Method and management apparatus for detecting communication apparatus coupled to communication network
CN114860271A (en) PXE starting method, system and device and readable storage medium
US7191099B2 (en) System for testing network devices
Cisco Release Notes for CD One, 5th Edition on Solaris
CN111277463B (en) Method, system, terminal and storage medium for testing accuracy of gateway address acquisition by BMC
Cisco Release Notes for CD One, 5th Edition on Windows 2000
Cisco Release Notes for Cisco Info Center Release 1.2
Cisco CiscoWorks 2.0(2) Release Note
Cisco Cisco Router Web Setup 3.1 Troubleshooting Guide
Cisco CiscoWorks 2.0(2) Release Note
Cisco CiscoWorks 2.0(2) Release Note
Cisco CiscoWorks 2.0(2) Release Note
Cisco Cisco IOS and Configuration Basics
Cisco Release Notes for CiscoWorks2000 CD One 3rd Edition on Solaris
CN111858308A (en) Method, system, terminal and storage medium for acquiring test data of diskless system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20220107