CN114978891B - Processing method, device and storage medium for BIOS configuration of network device - Google Patents
Processing method, device and storage medium for BIOS configuration of network device Download PDFInfo
- Publication number
- CN114978891B CN114978891B CN202210536904.0A CN202210536904A CN114978891B CN 114978891 B CN114978891 B CN 114978891B CN 202210536904 A CN202210536904 A CN 202210536904A CN 114978891 B CN114978891 B CN 114978891B
- Authority
- CN
- China
- Prior art keywords
- bios configuration
- network equipment
- state
- network device
- log
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 35
- 230000008859 change Effects 0.000 claims abstract description 68
- 238000000034 method Methods 0.000 claims abstract description 62
- 230000008569 process Effects 0.000 claims abstract description 44
- 238000012545 processing Methods 0.000 claims abstract description 28
- 238000011084 recovery Methods 0.000 claims description 46
- 238000001514 detection method Methods 0.000 claims description 27
- 238000012360 testing method Methods 0.000 claims description 27
- 230000006870 function Effects 0.000 claims description 23
- 238000012423 maintenance Methods 0.000 claims description 16
- 238000007726 management method Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 14
- 238000013461 design Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000007488 abnormal function Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application provides a processing method, equipment and storage medium for BIOS configuration of network equipment, and relates to the technical field of servers. The method comprises the following steps: the network equipment receives a first control instruction, wherein the first control instruction is used for changing the BIOS configuration state of at least one basic input/output system in the process of performing task processing on the network equipment; the network equipment adds a change record aiming at each BIOS configuration in a LOG LOG; and the network equipment executes checking processing of BIOS configuration according to the LOG. The network equipment monitors the BIOS configuration before leaving the factory, and ensures that the BIOS configuration of the network equipment is restored to a default state.
Description
Technical Field
The present application relates to the field of server technologies, and in particular, to a method, an apparatus, and a storage medium for processing BIOS configuration of a network device.
Background
Network devices typically require testing prior to shipment. In order to ensure the high efficiency of the test process, a basic input/output system (Basic Input Output System, hereinafter referred to as BIOS) configuration is modified by a network device to close a part of functions, and the modified BIOS configuration is recovered when leaving the factory to ensure the full function delivery of the device.
In order to restore the consistency of the BIOS configuration of the same batch of network devices before leaving the factory, in the prior art, the network devices generally receive and parse an Operating System (OS) script, and the BIOS runs the OS script, so as to restore the default configuration, so that the BIOS configuration of the same batch of network devices is consistent when leaving the factory.
However, the prior art often suffers from the problem that the BIOS configuration is not reliably restored.
Disclosure of Invention
The application provides a processing method, equipment and a storage medium for BIOS configuration of network equipment, which are used for solving the problem of abnormal functions of the network equipment in the same application scene.
In a first aspect, the present application provides a method for processing BIOS configuration of a network device, including:
The network equipment receives a first control instruction, wherein the first control instruction is used for changing the BIOS configuration state of at least one basic input/output system in the process of performing task processing on the network equipment;
The network equipment adds a change record for each BIOS configuration state in the LOG LOG;
the network device performs a checking process of the BIOS configuration state according to the LOG.
In one possible design, the network device receives a first control instruction, where the first control instruction is used to change at least one BIOS configuration state during a task processing process of the network device, and specifically includes:
The network equipment receives a function closing instruction, wherein the function closing instruction is used for closing the state of at least one BIOS configuration in the process of carrying out factory testing on the network equipment;
The network equipment receives a function recovery instruction, wherein the function recovery instruction is used for recovering the state of the closed BIOS configuration to a default state after the factory test is completed;
the network device adds a change record for each BIOS configuration in the LOG, including:
The network equipment adds a state closing record and a state recovering record corresponding to each BIOS configuration in the LOG;
Accordingly, the network device performs the checking process of the BIOS configuration according to the LOG, specifically including:
The network equipment receives a factory detection instruction, wherein the factory detection instruction is used for detecting whether a corresponding state recovery record exists in BIOS configuration with a state closing record in the LOG record;
if the network equipment determines that each BIOS configuration with the status closing record in the LOG has the corresponding status recovery record, the network equipment determines that the delivery detection of the BIOS configuration is successful;
If the network equipment determines that at least one BIOS configuration has only a state closing record and no state recovering record in the LOG, outputting alarm information that the factory detection of the BIOS configuration is unsuccessful.
In one possible design, the network device is one network device in a device cluster;
The network device receives a first control instruction, wherein the first control instruction is used for changing at least one BIOS configuration state in the process of performing task processing on the network device, and specifically comprises the following steps:
The network equipment receives a BIOS configuration change instruction, wherein the BIOS configuration change instruction is used for changing the state of at least one BIOS configuration of the network equipment in the process of operating and maintaining the equipment cluster;
the network equipment receives a BIOS configuration recovery instruction, wherein the BIOS configuration recovery instruction is used for recovering the BIOS configuration state changed by the network equipment to the original state after the operation and maintenance processing process of the equipment cluster is completed;
the network device adds a change record for each BIOS configuration in the LOG, including:
The network equipment adds a state change record and a state recovery record corresponding to each BIOS configuration in the LOG;
Accordingly, the network device performs the checking process of the BIOS configuration according to the LOG, specifically including:
The network equipment receives a BIOS configuration detection instruction, wherein the BIOS configuration detection instruction is used for detecting whether a corresponding state recovery record exists in BIOS configuration with a state change record in the LOG record;
If the network equipment determines that each BIOS configuration with the status change record in the LOG has the corresponding status recovery record, the status recovery of the BIOS configuration is determined to be successful;
If the network equipment determines that at least one BIOS configuration has only a state change record and has no state recovery record in the LOG, outputting alarm information that the recovery of the BIOS configuration from the original state is unsuccessful.
In one possible design, the network device is one network device in a device cluster;
The network device receives a first control instruction, wherein the first control instruction is used for changing at least one BIOS configuration state in the process of performing task processing on the network device, and specifically comprises the following steps:
the network equipment receives a BIOS configuration change instruction, wherein the BIOS configuration change instruction is used for changing at least one BIOS configuration state of the network equipment in the process of operating and maintaining the equipment cluster;
the network device adds a state change record for each BIOS configuration in the LOG, including:
the network equipment adds a state change record corresponding to each BIOS configuration in the LOG;
accordingly, the network device performs a checking process of the BIOS configuration according to the LOG, including:
The network equipment determines whether a time node for BIOS configuration consistency check is reached, and the time node is determined according to the number of network equipment in the equipment cluster;
When the network equipment arrives at the time node, LOG is compared with LOG of other network equipment in the equipment cluster, and whether BIOS configuration of each network equipment in the equipment cluster is consistent is determined;
if the network equipment determines that the BIOS configuration of each network equipment in the equipment cluster is consistent, the BIOS configuration of the equipment cluster is determined to be successful;
If the network equipment determines that at least one BIOS configuration of each network equipment in the equipment cluster is inconsistent, the network equipment outputs alarm information of inconsistent BIOS configuration of the equipment cluster.
In one possible design, before the network device receives the BIOS configuration change instruction, the method further includes:
The network device receives an Original Equipment Manufacturer (OEM) command, wherein the OEM command is used for configuring an application scene of the network device;
The network equipment sends a second control instruction to other network equipment in the equipment cluster, wherein the second control instruction is used for collecting the identifiers of the network equipment with the same application scene from the other network equipment in the equipment cluster;
the network equipment forms an equipment list, and the equipment list contains the identifiers of other network equipment with the same application scene as the network equipment;
Correspondingly, when the network device arrives at the time node, the LOG is compared with LOGs of other network devices in the device cluster, and whether BIOS configuration of each network device in the device cluster is consistent is determined, which specifically comprises:
when the network equipment arrives at the time node, the LOG is compared with the LOG of the network equipment in the equipment list, and whether the BIOS configuration of each network equipment in the equipment list is consistent is determined.
In one possible design, a network device includes a server and a switch.
In a second aspect, the present application provides a network device comprising:
baseboard management controller BMC and memory;
The BMC is used for executing the processing method of the BIOS configuration of the network device in the first aspect and any possible design of the first aspect;
And the memory is used for storing the LOG.
In a third aspect, the present application provides a computer readable storage medium storing computer instructions for causing a computer to perform the method of processing a BIOS configuration of a network device in any one of the possible designs of the first aspect and the first aspect.
According to the processing method, the device and the storage medium for the BIOS configuration of the network device, LOG is added to the BIOS configuration state change of the network device, and the BIOS configuration state is checked according to the LOG, so that the BIOS configuration is ensured to restore to a default state when the network device leaves a factory, and the BIOS configuration state of the device in the same application scene in the operation and maintenance process of the network device cluster is consistent.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the application or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the application, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a processing method of BIOS configuration of a network device according to an embodiment of the present application;
fig. 2 is a schematic diagram of an application scenario one of a processing method of BIOS configuration of a network device according to an embodiment of the present application;
FIG. 3a is a flowchart illustrating a method for processing BIOS configuration of the network device in the application scenario of FIG. 2;
fig. 3b is a schematic diagram of a processing method of BIOS configuration of the network device in the application scenario of fig. 2;
fig. 4 is a schematic diagram of an application scenario two of a processing method of BIOS configuration of a network device according to an embodiment of the present application;
FIG. 5a is a flowchart illustrating a method for processing BIOS configuration of the network device in the application scenario of FIG. 4;
fig. 5b is a schematic diagram of a processing method of BIOS configuration of the network device in the application scenario of fig. 4;
Fig. 6 is a schematic diagram of an application scenario three of a processing method of BIOS configuration of a network device according to an embodiment of the present application;
FIG. 7a is a flowchart illustrating a method for processing BIOS configuration of the network device in the application scenario of FIG. 6;
Fig. 7b is a schematic diagram of a processing method of BIOS configuration of the network device in the application scenario of fig. 6;
Fig. 8 is a schematic structural diagram of a network device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second, third, fourth and the like in the description and in the claims and in the above drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged where appropriate. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein.
The word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" depending on the context.
Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise.
It will be further understood that the terms "comprises," "comprising," "includes," and/or "including" specify the presence of stated features, steps, operations, elements, components, items, categories, and/or groups, but do not preclude the presence, presence or addition of one or more other features, steps, operations, elements, components, items, categories, and/or groups.
The terms "or" and/or "as used herein are to be construed as inclusive, or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a, A is as follows; b, a step of preparing a composite material; c, performing operation; a and B; a and C; b and C; A. b and C). An exception to this definition will occur only when a combination of elements, functions, steps or operations are in some way inherently mutually exclusive.
The network device usually needs to be tested before leaving the factory, in order to ensure the high efficiency of the test process, the network device closes part of functions by modifying the BIOS configuration state, and the modified BIOS configuration state is restored to the default configuration when leaving the factory so as to ensure the full-function delivery of the device. After reaching the user end, the user configures the BIOS state of the network equipment in the same application scene to be consistent according to the requirement so as to meet the function requirement.
In the prior art, when the network equipment leaves the factory, the consistency recovery is carried out on the BIOS configuration of the same batch of equipment, usually, the network equipment receives and analyzes an OS script, and the BIOS runs the script, so that the BIOS configuration state is recovered, and the BIOS configuration state of the same batch of network equipment is consistent when leaving the factory. Similar to the mode of restoring the default configuration of the BIOS before leaving the factory, the user terminal network device receives and analyzes the OS script of the corresponding scene according to the application scene, and the BIOS runs the script to make the BIOS configuration state of the network device in the same application scene consistent.
However, in the prior art, the problem that the BIOS configuration state of the network device is inconsistent in the same application scenario when the BIOS configuration of the network device is not reliably restored or used by the cluster often occurs.
In order to solve the technical problems, the application provides a processing method, equipment and a storage medium for BIOS configuration of network equipment, which are applied to the technical field of servers. Based on the problems in the prior art, the application adds the LOG record to the BIOS configuration state of the network equipment, and monitors the state change of the BIOS configuration by monitoring the LOG record so as to solve the problems in the prior art in time.
The technical scheme of the application is described in detail below by specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
In the application, the network device is taken as an execution main body, and the processing method of the BIOS configuration of the network device in the following embodiment is executed. In particular, the execution body may be a hardware device of the network device, or a software application implementing the embodiments described below in the network device, or a computer-readable storage medium on which the software application implementing the embodiments described below is installed.
Fig. 1 is a flowchart of a processing method of BIOS configuration of a network device according to an embodiment of the present application. As shown in fig. 1, the method of the present embodiment includes the following steps:
s101: the network equipment receives a first control instruction, wherein the first control instruction is used for changing the BIOS configuration state of at least one basic input/output system in the process of performing task processing on the network equipment.
In this embodiment, the first control command is set according to the task requirement, and may be sent in a wired manner or may be sent in a wireless manner. The task processing refers to factory testing of the network equipment or operation and maintenance of the network equipment cluster. In the task processing process, the network device changes at least one BIOS configuration state according to the first control instruction, including but not limited to closing, changing, recovering and the like of the BIOS configuration state.
S102: the network device adds change records for each BIOS configuration state in the LOG.
In this embodiment, in order to monitor the change of the BIOS configuration state of the network device, a storage module is disposed in the network device, and is configured to store LOG of the change of the BIOS configuration state. It will be appreciated by those skilled in the art that, in order to facilitate the subsequent checking process of the BIOS configuration status according to the LOG, the LOG records information such as the change item, change time, and status before and after the change of the BIOS configuration for each change of the BIOS configuration status.
S103: the network device performs a checking process of the BIOS configuration state according to the LOG.
In this embodiment, the checking means to monitor the BIOS configuration state according to the LOG changed from the BIOS configuration state, and check whether the BIOS configuration state meets the requirement, that is, meets the requirement of the first control instruction.
In one possible implementation of the above embodiment, the network device refers to a server and/or a switch.
In this embodiment, the network device changes the BIOS configuration state according to the first control instruction, adds a corresponding BIOS configuration state change LOG, and checks the BIOS configuration state according to the LOG, so as to ensure that the BIOS configuration state of the network device meets the requirement. The technical scheme of the embodiment can be applied to a network architecture of a server and/or a switch singly or in combination, so that the BIOS configuration state of the server and/or the switch can be conveniently configured/monitored according to requirements.
The technical scheme can be applied to the following three scenes.
Application scenario one: the network equipment is tested before leaving the factory, in order to ensure the high efficiency of the test process, the state of partial BIOS configuration is closed, in order to ensure the full-function delivery of the equipment, the closed BIOS configuration state is restored to a default state when leaving the factory, but in practice, the phenomenon that the BIOS configuration of the equipment is not reliably restored often occurs.
And (2) an application scene II: when the network device cluster is used, operation staff configures the device BIOS, and misoperation may occur, so that the BIOS configuration is modified by mistake, or in the operation and maintenance process, partial BIOS configuration is changed according to the need and is not recovered, so that the problem that the BIOS configuration state of the device is inconsistent with the BIOS configuration states of other devices in the cluster is caused.
And (3) an application scene III: when the network device cluster is used, an operator configures the device BIOS, and omission may occur, so that part of BIOS is not configured according to requirements, and the configuration states of the network device BIOS in the same application scene in the cluster are inconsistent.
Fig. 2 is a schematic diagram of an application scenario one of a processing method of BIOS configuration of a network device according to an embodiment of the present application. As shown in fig. 2, when the control device 200 performs a test before leaving the factory, a function shutdown/recovery instruction is sent to the test devices, and the test devices respectively shutdown/recover the BIOS configuration and add corresponding LOGs; when leaving the factory, the control device 200 sends a factory detection instruction to the test device, and the test device detects whether corresponding recovery records exist in the closing records of each BIOS configuration in the LOG according to the factory detection instruction.
Fig. 3a is a flow chart of a processing method of the BIOS configuration of the network device in the application scenario of fig. 2, and fig. 3b is a schematic diagram of a processing method of the BIOS configuration of the network device in the application scenario of fig. 2. In this embodiment, the processing method uses the network device as an execution body, and includes:
S301: the network device receives a function closing instruction, wherein the function closing instruction is used for closing the state of at least one BIOS configuration in the process of factory testing the network device.
Specifically, the network device receives a function shutdown instruction sent by the control device 200, and shuts down at least one BIOS configuration to shut down a part of network functions, thereby meeting the function requirements in the factory test process. Similar to embodiment 1, the control device may send the instruction by wired means or may send it by wireless means.
S302: the network device receives a function recovery instruction, wherein the function recovery instruction is used for recovering the state of the closed BIOS configuration to a default state after the factory test is completed.
Specifically, the network device receives the function recovery instruction sent by the control device 200, and recovers the BIOS configuration item closed in the factory test process to a default state, so as to ensure full-function delivery of the network device.
S303: the network device adds a state shutdown record and a state recovery record corresponding to each BIOS configuration in the LOG.
Specifically, the network device adds a LOG in memory that the BIOS configuration state is closed and restored. Those skilled in the art will appreciate that the LOG includes the times at which each BIOS configuration state is turned off and restored, as well as the state before and after modification.
S304: the network equipment receives a factory detection instruction, wherein the factory detection instruction is used for detecting whether a corresponding state recovery record exists in BIOS configuration with a state closing record in the LOG record.
Specifically, the network device detects the BIOS configuration state by detecting the LOG that the BIOS configuration state is closed and restored, so as to ensure that the closed BIOS configuration state is reliably restored to a default state in the factory testing process, so as to meet the requirement of factory full-function delivery.
S305: if the network equipment determines that the corresponding state recovery records exist in all BIOS configurations with the state closing records in the LOG, the network equipment determines that the delivery detection of the BIOS configurations is successful.
S306: if the network equipment determines that at least one BIOS configuration has only a state closing record and no state recovering record in the LOG, outputting alarm information that the factory detection of the BIOS configuration is unsuccessful.
S305 is a situation that each BIOS configuration of the network equipment is reliably restored to a default state, and the equipment confirms that the BIOS configuration is successful in delivery detection; s306 is the situation that at least one BIOS configuration state of the network equipment is closed in the testing process and is not reliably restored after the testing is completed, and at the moment, alarm information is output so as to avoid incomplete functions of the factory equipment.
Aiming at the first application scene, the embodiment uses the network equipment as an execution main body to close/restore the BIOS configuration state, adds LOG records, and performs factory detection, thereby ensuring that the BIOS configuration is restored to a default state when the network equipment in the same batch is factory.
Fig. 4 is a schematic diagram of an application scenario two of a processing method of BIOS configuration of a network device according to an embodiment of the present application. As shown in the figure, during the operation and maintenance of the network device cluster, the control device 400 sends a BIOS configuration change/recovery instruction to the test devices, and the test devices change/recover the BIOS configuration respectively and add corresponding LOGs; after the operation and maintenance are finished, the control device 400 sends a BIOS configuration detection instruction to the test device, and tests whether the change records of each BIOS configuration in the LOG have corresponding recovery records according to the detection instruction.
Fig. 5a is a flow chart of a processing method of the BIOS configuration of the network device in the application scenario of fig. 4, and fig. 5b is a schematic diagram of a processing method of the BIOS configuration of the network device in the application scenario of fig. 4. In this embodiment, one network device in a device cluster is taken as an execution main body, and the processing method includes:
s501: the network device receives a BIOS configuration change instruction, wherein the BIOS configuration change instruction is used for changing the state of at least one BIOS configuration of the network device in the process of operating and maintaining the device cluster.
Specifically, the network device receives the BIOS configuration change instruction sent by the control device 400, and changes at least one BIOS configuration state to meet the functional requirement of the network device during the operation and maintenance of the device cluster.
S502: the network device receives a BIOS configuration recovery instruction, and the BIOS configuration recovery instruction is used for recovering the BIOS configuration state changed by the network device to the original state after the operation and maintenance processing process of the device cluster is completed.
Specifically, the network device receives a BIOS configuration recovery instruction sent by the control device 400, and recovers the BIOS configuration item changed in the operation and maintenance process of the device cluster to the original state, so that the BIOS configuration of the devices in the cluster is recovered to the normal use state.
S503: the network device adds a state change record and a state recovery record corresponding to each BIOS configuration in the LOG.
Specifically, the network device adds a LOG of BIOS configuration state changes and restores in memory. Those skilled in the art will appreciate that LOG includes the time of each BIOS configuration state change and recovery and the state before and after the change.
S504: the network device receives a BIOS configuration detection instruction, wherein the BIOS configuration detection instruction is used for detecting whether a corresponding state recovery record exists in BIOS configuration with a state change record in the LOG record.
Specifically, the network device detects the BIOS configuration state by detecting the LOG that changes and recovers the BIOS configuration state, so as to ensure that the changed BIOS configuration state is reliably recovered to the original state in the operation and maintenance process of the device cluster, so that the device cluster can be used normally.
S505: if the network equipment determines that the corresponding state recovery records exist in all BIOS configurations with the state change records in the LOG, the network equipment determines that the BIOS configuration state recovery is successful.
S506: if the network equipment determines that at least one BIOS configuration has only a state change record and has no state recovery record in the LOG, outputting alarm information that the recovery of the BIOS configuration from the original state is unsuccessful.
S505 is a situation that each BIOS configuration of the network device is reliably restored to the original state, and the device confirms that the BIOS configuration state is successfully restored; s506 is the situation that at least one BIOS configuration state of the network equipment is changed in the operation and maintenance process and is not recovered after the operation and maintenance is completed, and at this time, alarm information is output so as to prevent the equipment from being used in a normal cluster after the operation and maintenance.
Aiming at the second application scenario, the embodiment uses one network device in the network device cluster as an execution main body, changes/restores the BIOS configuration state, adds LOG records, and carries out configuration detection, thereby ensuring that the BIOS configuration state of the changed network device can be restored to the original state when the cluster is used.
Fig. 6 is a schematic diagram of an application scenario three of a processing method of BIOS configuration of a network device according to an embodiment of the present application. As shown in the figure, in the operation and maintenance process of the network device cluster, the control device 600 sends a BIOS configuration change instruction to the test device in the device cluster, and the test device changes the BIOS configuration according to the instruction, adds a corresponding LOG, and when reaching the consistency detection time node, compares the LOG with LOGs of other devices in the device cluster, and determines whether the BIOS configuration of the devices in the cluster is consistent.
Fig. 7a is a flow chart of a processing method of the BIOS configuration of the network device in the application scenario of fig. 6, and fig. 7b is a schematic diagram of a processing method of the BIOS configuration of the network device in the application scenario of fig. 6. In this embodiment, one network device in a device cluster is taken as an execution main body, and the processing method includes:
S701: the network device receives a BIOS configuration change instruction, wherein the BIOS configuration change instruction is used for changing at least one BIOS configuration of the network device in the process of operating and maintaining the device cluster.
Specifically, the network device receives the BIOS configuration change instruction sent by the control device 600, and changes the state of at least one BIOS configuration, so as to meet the functional requirement of the device when the device cluster is used.
S702: the network device adds a state change record corresponding to each BIOS configuration in the LOG.
Specifically, the network device adds a LOG of BIOS configuration state changes in memory. Those skilled in the art will appreciate that the LOG includes the time of each BIOS configuration state change and the state before and after the change.
S703: the network device determines whether a time node for BIOS configuration consistency check is reached, the time node being determined based on the number of network devices in the device cluster.
Specifically, the time node is a time threshold determined according to the number of network devices within the device cluster. For example, 10 devices in a certain device cluster, and each device needs 1 minute to change the BIOS configuration, the time threshold is set to 10 minutes, that is, enough time is reserved for the network devices in the cluster to change the BIOS configuration state according to the instruction.
S704: when the network equipment arrives at the time node, LOG is compared with LOG of other network equipment in the equipment cluster, and whether BIOS configuration of each network equipment in the equipment cluster is consistent is determined.
Specifically, when the time node arrives, the network device compares the LOG of the BIOS configuration change with the LOG of the BIOS configuration change corresponding to other devices in the cluster, and determines whether the BIOS configuration states of the network devices after the change are consistent.
S705: if the network devices determine that the BIOS configuration of each network device in the device cluster is consistent, the BIOS configuration of the device cluster is determined to be successful.
S706: if the network equipment determines that at least one BIOS configuration of each network equipment in the equipment cluster is inconsistent, the network equipment outputs alarm information of inconsistent BIOS configuration of the equipment cluster.
S705 is the condition that each BIOS configuration of the network device is consistent with each BIOS configuration of other devices in the cluster, and the device confirms that the BIOS configuration is successful; s706 is a case that at least one BIOS configuration state of the network device is inconsistent with BIOS configuration states corresponding to other devices in the cluster, and at this time, alarm information is output so as to avoid that the device cannot be normally used in the cluster after operation and maintenance.
In one possible implementation, before the network device receives the BIOS configuration change instruction, the network device receives an original device manufacturer OEM command, where the OEM command is used to configure an application scenario of the network device. The network device sends a second control instruction to other network devices in the device cluster, wherein the second control instruction is used for collecting the identifiers of the network devices with the same application scene from the other network devices in the device cluster. The network devices form a device list, which contains the identification of other network devices having the same application scenario as the network device. The network device determines whether a time node for BIOS configuration consistency check is reached, the time node being determined based on the number of network devices in the device list. When the network equipment arrives at the time node, the LOG is compared with the LOG of the network equipment in the equipment list, and whether the BIOS configuration of each network equipment in the equipment list is consistent is determined.
According to the technical scheme of the implementation mode, on the basis of the embodiment of fig. 7, the devices in the device clusters are distinguished according to different application scenes, namely, the devices in one device cluster can be respectively applied to different scenes, and the configuration states of the BIOS of the devices in the same device cluster can be consistent through the scheme of the implementation mode.
Aiming at an application scene III, the embodiment uses one network device in the network device cluster as an execution main body, changes the BIOS configuration state, adds LOG records, and carries out configuration detection according to the LOG, so as to ensure that the device BIOS configuration states of the same application scene in the network device cluster are consistent.
Fig. 8 is a schematic structural diagram of a network device according to an embodiment of the present application. As shown in the figure, the network device 80 provided in this embodiment includes: BMC 801, and memory 802. Wherein,
BMC 801, configured to execute the processing method of any of the above-mentioned network device BIOS configurations;
A memory 802 for storing LOGs.
The network device provided in this embodiment may be used to execute the processing method of BIOS configuration of the network device provided in any of the foregoing method embodiments, and its implementation principle and technical effects are similar, and are not described herein.
The present application also provides a computer readable storage medium having stored therein computer instructions which, when executed by a processor, are adapted to carry out the methods provided by the various embodiments described above.
The computer readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media can be any available media that can be accessed by a general purpose or special purpose computer. For example, a computer-readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the computer-readable storage medium. In the alternative, the computer-readable storage medium may be integral to the processor. The processor and the computer readable storage medium may reside in an Application SPECIFIC INTEGRATED Circuits (ASIC). In addition, the ASIC may reside in a user device. The processor and the computer-readable storage medium may also reside as discrete components in a communication device.
In particular, the computer readable storage medium may be implemented by any type or combination of volatile or non-volatile Memory devices, such as Static Random-Access Memory (SRAM), electrically erasable programmable Read-Only Memory (EEPROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
It should be understood that, although the steps in the flowcharts in the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited in order and may be performed in other orders, unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, the order of their execution not necessarily occurring in sequence, but may be performed alternately or alternately with other steps or at least a portion of the other steps or stages.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same. Although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments may be modified or some or all of the technical features may be replaced with equivalents. Such modifications and substitutions do not depart from the spirit of the application.
Claims (9)
1. A method for processing BIOS configuration of a network device, the method comprising:
The network equipment receives a first control instruction, wherein the first control instruction is used for changing the BIOS configuration state of at least one basic input/output system in the process of performing task processing on the network equipment;
The network equipment adds a change record for each BIOS configuration state in a LOG LOG;
the network equipment executes checking processing of BIOS configuration state according to the LOG;
The network device receives a first control instruction, where the first control instruction is configured to change at least one BIOS configuration state in a process of performing task processing on the network device, and specifically includes:
the network equipment receives a function closing instruction, wherein the function closing instruction is used for closing the state of at least one BIOS configuration in the process of carrying out factory testing on the network equipment;
The network equipment receives a function recovery instruction, wherein the function recovery instruction is used for recovering the state of the closed BIOS configuration to a default state after the factory test is completed;
The network device adds a change record for each BIOS configuration in the LOG, including:
the network equipment adds a state closing record and a state recovering record corresponding to each BIOS configuration in the LOG;
correspondingly, the network device executes checking processing of BIOS configuration according to the LOG, and specifically comprises the following steps:
The network equipment receives a factory detection instruction, wherein the factory detection instruction is used for detecting whether a corresponding state recovery record exists in BIOS configuration with a state closing record in the LOG record;
And if the network equipment determines that the corresponding state recovery records exist in all BIOS configurations with the state closing records in the LOG, determining that the delivery detection of the BIOS configurations is successful.
2. A method of processing according to claim 1, wherein the method further comprises:
and if the network equipment determines that at least one BIOS configuration in the LOG has only a state closing record and has no state recovery record, outputting alarm information that the factory detection of the BIOS configuration is unsuccessful.
3. The processing method according to claim 1, wherein the network device is one network device in a device cluster;
The network device receives a first control instruction, where the first control instruction is configured to change at least one BIOS configuration state in a process of performing task processing on the network device, and specifically includes:
The network equipment receives a BIOS configuration change instruction, wherein the BIOS configuration change instruction is used for changing the state of at least one BIOS configuration of the network equipment in the process of operating and maintaining the equipment cluster;
The network equipment receives a BIOS configuration recovery instruction, wherein the BIOS configuration recovery instruction is used for recovering the BIOS configuration state changed by the network equipment to the original state after the operation and maintenance processing process of the equipment cluster is completed;
The network device adds a change record for each BIOS configuration in the LOG, including:
the network equipment adds a state change record and a state recovery record corresponding to each BIOS configuration in the LOG;
correspondingly, the network device executes checking processing of BIOS configuration according to the LOG, and specifically comprises the following steps:
The network equipment receives a BIOS configuration detection instruction, wherein the BIOS configuration detection instruction is used for detecting whether a corresponding state recovery record exists in BIOS configuration with a state change record in the LOG record;
And if the network equipment determines that the corresponding state recovery records exist in all BIOS configurations with the state change records in the LOG, determining that the BIOS configuration state recovery is successful.
4. The method of claim 3, wherein the network device outputs an alarm that the recovery of the BIOS configuration was unsuccessful if it is determined that at least one BIOS configuration in the LOG has only a state change record and no state recovery record.
5. The processing method according to claim 1, wherein the network device is one network device in a device cluster;
The network device receives a first control instruction, where the first control instruction is configured to change at least one BIOS configuration state in a process of performing task processing on the network device, and specifically includes:
The network equipment receives a BIOS configuration change instruction, wherein the BIOS configuration change instruction is used for changing at least one BIOS configuration state of the network equipment in the process of operating and maintaining the equipment cluster;
The network device adds a state change record for each BIOS configuration in the LOG, including:
The network equipment adds state change records corresponding to each BIOS configuration in LOG;
Accordingly, the network device performs a checking process of BIOS configuration according to the LOG, including:
the network equipment determines whether a time node for BIOS configuration consistency check is reached or not, wherein the time node is determined according to the number of network equipment in the equipment cluster;
when the network equipment reaches the time node, comparing the LOG with LOGs of other network equipment in the equipment cluster, and determining whether BIOS configuration of each network equipment in the equipment cluster is consistent;
if the network equipment determines that the BIOS configuration of each network equipment in the equipment cluster is consistent, determining that the BIOS configuration of the equipment cluster is successful;
and if the network equipment determines that at least one BIOS configuration of each network equipment in the equipment cluster is inconsistent, outputting alarm information of inconsistent BIOS configuration of the equipment cluster.
6. The processing method of claim 5, wherein before the network device receives the BIOS configuration change instruction, the method further comprises:
the network device receiving an original equipment manufacturer, OEM, command for configuring an application scenario of the network device;
The network equipment sends a second control instruction to other network equipment in the equipment cluster, wherein the second control instruction is used for collecting the identifiers of the network equipment with the same application scene from the other network equipment in the equipment cluster;
The network equipment forms an equipment list, and the equipment list contains identifiers of other network equipment with the same application scene as the network equipment;
Correspondingly, when the network device reaches the time node, comparing the LOG with LOGs of other network devices in the device cluster to determine whether the BIOS configuration of each network device in the device cluster is consistent, which specifically includes:
And when the network equipment reaches the time node, comparing the LOG with the LOGs of the network equipment in the equipment list to determine whether the BIOS configuration of each network equipment in the equipment list is consistent.
7. A network device for use in the processing method of any of claims 1-6, wherein the network device comprises a server and a switch.
8. A network device, wherein the network device comprises a baseboard management controller BMC and a memory;
the BMC is used for executing the processing method of the BIOS configuration of the network equipment according to any one of claims 1-7;
The memory is used for storing the LOG.
9. A computer-readable storage medium storing computer instructions for causing the computer to perform the method of processing the BIOS configuration of the network device according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210536904.0A CN114978891B (en) | 2022-05-17 | 2022-05-17 | Processing method, device and storage medium for BIOS configuration of network device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210536904.0A CN114978891B (en) | 2022-05-17 | 2022-05-17 | Processing method, device and storage medium for BIOS configuration of network device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114978891A CN114978891A (en) | 2022-08-30 |
CN114978891B true CN114978891B (en) | 2024-04-30 |
Family
ID=82982424
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210536904.0A Active CN114978891B (en) | 2022-05-17 | 2022-05-17 | Processing method, device and storage medium for BIOS configuration of network device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114978891B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101286886A (en) * | 2008-06-05 | 2008-10-15 | 杭州华三通信技术有限公司 | Method and device to recover configuring information of network appliance |
CN105389260A (en) * | 2015-12-15 | 2016-03-09 | 合肥联宝信息技术有限公司 | Basic input/output system (BIOS) debugging system and method |
CN107621961A (en) * | 2017-09-11 | 2018-01-23 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN110941453A (en) * | 2019-10-31 | 2020-03-31 | 苏州浪潮智能科技有限公司 | Method and device for initializing Baseboard Management Controller (BMC) configuration |
CN114116330A (en) * | 2021-10-22 | 2022-03-01 | 苏州浪潮智能科技有限公司 | Server performance testing method, system, terminal and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10055296B2 (en) * | 2015-10-30 | 2018-08-21 | Quanta Computer Inc. | System and method for selective BIOS restoration |
CN107220142B (en) * | 2016-03-22 | 2020-10-09 | 阿里巴巴集团控股有限公司 | Method and device for executing data recovery operation |
-
2022
- 2022-05-17 CN CN202210536904.0A patent/CN114978891B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101286886A (en) * | 2008-06-05 | 2008-10-15 | 杭州华三通信技术有限公司 | Method and device to recover configuring information of network appliance |
CN105389260A (en) * | 2015-12-15 | 2016-03-09 | 合肥联宝信息技术有限公司 | Basic input/output system (BIOS) debugging system and method |
CN107621961A (en) * | 2017-09-11 | 2018-01-23 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN110941453A (en) * | 2019-10-31 | 2020-03-31 | 苏州浪潮智能科技有限公司 | Method and device for initializing Baseboard Management Controller (BMC) configuration |
CN114116330A (en) * | 2021-10-22 | 2022-03-01 | 苏州浪潮智能科技有限公司 | Server performance testing method, system, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114978891A (en) | 2022-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20150089479A1 (en) | Method for pre-testing software compatibility and system thereof | |
CN109670319B (en) | Server flash safety management method and system thereof | |
CN106789306B (en) | Method and system for detecting, collecting and recovering software fault of communication equipment | |
US6785838B2 (en) | Method and apparatus for recovering from failure of a mirrored boot device | |
US20160378602A1 (en) | Pre-boot self-healing and adaptive fault isolation | |
CN105607973B (en) | Method, device and system for processing equipment fault in virtual machine system | |
CN110659159A (en) | Service process operation monitoring method, device, equipment and storage medium | |
CN113672306B (en) | Method, device, system and medium for recovery from abnormal self-checking of server components | |
EP3709149A1 (en) | Off-board flash memory | |
CN112100027A (en) | Server maintenance method, device, equipment and machine readable storage medium | |
CN108243031B (en) | Method and device for realizing dual-computer hot standby | |
CN112199240A (en) | Method for switching nodes during node failure and related equipment | |
US10938623B2 (en) | Computing element failure identification mechanism | |
CN106375114B (en) | A kind of hot plug fault restoration methods and distributed apparatus | |
CN116680101A (en) | Method and device for detecting downtime of operating system, and method and device for eliminating downtime of operating system | |
CN112905375B (en) | Self-recovery method, device and computer equipment of dual-core smart meter management unit | |
CN114978891B (en) | Processing method, device and storage medium for BIOS configuration of network device | |
CN114116330A (en) | Server performance testing method, system, terminal and storage medium | |
CN117391099B (en) | Data downloading and checking method and system for smart card and storage medium | |
CN116737471B (en) | BIOS automatic switching method and device, electronic equipment and storage medium | |
US7533297B2 (en) | Fault isolation in a microcontroller based computer | |
CN116668335A (en) | Cluster service processing method, server and system | |
CN111078454A (en) | Cloud platform configuration recovery method and device | |
CN116401118A (en) | Method and device for monitoring Samba of file sharing service | |
CN115269244A (en) | Control method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |