CN112152841B - Verification method, verification device, switch, equipment and storage medium - Google Patents

Verification method, verification device, switch, equipment and storage medium Download PDF

Info

Publication number
CN112152841B
CN112152841B CN202010913322.0A CN202010913322A CN112152841B CN 112152841 B CN112152841 B CN 112152841B CN 202010913322 A CN202010913322 A CN 202010913322A CN 112152841 B CN112152841 B CN 112152841B
Authority
CN
China
Prior art keywords
configuration
display data
bios
configuration item
item
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
Application number
CN202010913322.0A
Other languages
Chinese (zh)
Other versions
CN112152841A (en
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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN202010913322.0A priority Critical patent/CN112152841B/en
Publication of CN112152841A publication Critical patent/CN112152841A/en
Application granted granted Critical
Publication of CN112152841B publication Critical patent/CN112152841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a verification method, a verification device, a switch, equipment and a storage medium, which are used for improving the verification efficiency of BIOS. The method comprises the following steps: obtaining a configuration item set of a configured Basic Input Output System (BIOS), wherein the configuration item set comprises all configuration items of the configured BIOS; determining at least one configuration item different from a corresponding initial configuration item in the configuration item set to obtain a difference configuration item set, wherein the initial configuration item is a configuration item of a BIOS before configuration; and if the difference configuration item set is determined to be matched with the target configuration item set, outputting a first verification result, wherein the target configuration item set comprises all configuration items needing to be configured in the configuration items of the BIOS before configuration, and the first verification result is used for indicating that all the configuration items of the BIOS after configuration are correctly configured.

Description

Verification method, verification device, switch, equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to an authentication method, apparatus, switch, device, and storage medium.
Background
With the development of technology, the basic input output system (Basic Input Output System, BIOS) can be variously configured according to the requirements. In some situations, for example, the hardware structure of the white-box switch is greatly different, and for the configuration items of the BIOS in the white-box switch, the user has various configuration requirements, and in the configuration process, the configuration errors of the configuration items are unavoidable. In order to reduce the configuration error of the BIOS, manual spot check verification is generally required, however, the manner of manual spot check verification makes the verification of the BIOS less efficient.
Disclosure of Invention
The embodiment of the application provides a verification method, a verification device, a switch, equipment and a storage medium, which are used for improving the verification efficiency of BIOS.
In a first aspect, there is provided a method of authentication, the method comprising:
obtaining a configuration item set of a configured Basic Input Output System (BIOS), wherein the configuration item set comprises all configuration items of the configured BIOS;
determining at least one configuration item different from a corresponding initial configuration item in the configuration item set to obtain a difference configuration item set, wherein the initial configuration item is a configuration item of a BIOS before configuration;
And if the difference configuration item set is determined to be matched with the target configuration item set, outputting a first verification result, wherein the target configuration item set comprises all configuration items needing to be configured in the configuration items of the BIOS before configuration, and the first verification result is used for indicating that all the configuration items of the BIOS after configuration are correctly configured.
In the embodiment of the application, the difference configuration item set which is different from the corresponding initial configuration item in the configured configuration item set of the BIOS is determined, and then the difference configuration item set is compared with the target configuration item set, so that an automatic verification method is realized, manual participation is not needed in the verification process, and the verification efficiency of the BIOS is improved.
Optionally, obtaining the configured configuration item set of the BIOS includes:
receiving first display data sent by the configured BIOS through a serial port, wherein the first display data comprises display data for displaying configuration items of the configured BIOS;
and determining the configured configuration items of the BIOS according to the first display data to obtain a configuration item set.
In the embodiment of the application, the configured BIOS configuration items are obtained by displaying the data, so that the process of obtaining the configured BIOS configuration items can be displayed, the monitoring or the checking is facilitated, the visualization degree of the obtained configuration items is improved, whether missing or not exists in the obtaining process can be determined more timely, and the accuracy of obtaining the configuration items is improved. In addition, compared with the method for acquiring the configuration items in the process of configuring the configuration items of the BIOS, in the embodiment of the application, the configuration items of the BIOS can be acquired through the serial port at any time, so that the flexibility of acquiring the configuration items of the BIOS is improved.
Optionally, the first display data includes display data associated with at least one menu item, the configured configuration item of the BIOS is included in the at least one menu item, and the obtaining a set of configuration items of the configured BIOS includes:
for each menu item in the at least one menu item, receiving second display data associated with the current menu item through a serial port;
according to the second display data, if the current menu item is determined to comprise the configuration item, acquiring the configuration item in the current menu item;
and obtaining the configured configuration item set of the BIOS according to all the configuration items contained in the at least one menu item.
In the embodiment of the application, the configuration items in each menu item are acquired by traversing each menu item, so that the condition of missing the configuration items is reduced, and the accuracy of acquiring the configuration items is improved. And when a certain menu item is traversed, the display data associated with the menu item is acquired, so that the data volume of the transmitted display data is reduced, and the loss of the display data caused by more transmitted display data is reduced.
Optionally, the first display data includes at least one piece of sub display data, and the receiving, through the serial port, the first display data sent by the configured BIOS includes:
Receiving the first sub-display data sent by the configured BIOS through a serial port, and starting timing;
if the second sub-display data sent by the configured BIOS is received before the timing duration does not reach the preset duration, restarting timing; otherwise, determining all the received sub display data as the display data sent by the configured BIOS.
In the embodiment of the application, timing is started after receiving the sub-display data, and when one sub-display data is received, the timing is restarted until the display data associated with the current main menu item is determined to be received when any sub-display data is not received within a preset duration. When the instruction of receiving the display data is not provided, the time waiting for receiving the display data can be reduced, the efficiency of receiving the display data can be improved, and unnecessary resource occupation when receiving the display data can be reduced.
Optionally, before obtaining the configured set of configuration items of the BIOS, the method includes:
if the first display data comprises a first identifier, determining that third display data indicated by the first identifier in the first display data comprises a current menu item or a configuration item;
And if the first identifier is not included in the first display data, re-receiving the first display data.
In the embodiment of the application, whether the display data are completely received is determined through the identifier, so that the condition that the configuration items are omitted due to incomplete reception of the display data is avoided, and the accuracy of acquiring the configuration items is improved.
Optionally, if the first display data includes the first identifier, after determining that the third display data indicated by the first identifier in the first display data includes the current menu item or the configuration item, the method includes:
if the third display data comprises the second identifier, determining that fourth display data indicated by the second identifier in the third display data is a current menu item;
and if the third display data does not comprise the second identifier, determining that the third display data is a configuration item.
In the embodiment of the application, the menu item or the configuration item in the display data is determined through the identifier, and because the identifier is a fixed mark, compared with a mode of determining the menu item or the configuration item through the content of the menu item or the configuration item, the method for determining the menu item or the configuration item is simpler, and the content of all the menu items or the configuration items does not need to be stored in advance, so that the occupation of storage resources is reduced.
Optionally, the configuration item includes a name of the configuration item and a value of the configuration item, and the method further includes:
if the difference configuration item set is not matched with the target configuration item set, outputting a second verification result, wherein the second verification result is used for indicating that all the configured configuration items of the BIOS are incorrectly configured;
wherein the mismatch between the set of differential configuration items and the set of target configuration items includes that the differential configuration items in the set of differential configuration items have values of differential configuration items, or that the values of the differential configuration items are different from the values of the corresponding target configuration items in the set of target configuration items,
the target configuration item set has a target configuration item name, which is different from the name of each difference configuration item in the difference configuration item set, or,
and the difference configuration item set has a difference configuration item name which is different from the name of each target configuration item in the target configuration item set.
In the embodiment of the application, if the name of the difference configuration item in the difference configuration item set is the same as the corresponding target configuration item, but the value is different, or if the target configuration item corresponding to the difference configuration item does not exist in the target configuration item set, or if the difference configuration item corresponding to the target configuration item does not exist in the difference configuration item set, the difference configuration item set is determined to be not matched with the target configuration item set, so that the result of the mismatching of the determined difference configuration item set and the target configuration item set is more accurate, and the accuracy of verifying the configuration item of the BIOS is improved.
Optionally, the configuration item set includes all configuration items of the configured BIOS within a preset verification range.
In the embodiment of the application, the configured BIOS configuration items in the preset verification range can be acquired, all the configured BIOS configuration items do not need to be acquired, the range of acquiring the configuration items is narrowed, the unnecessary configuration item acquisition process is reduced, and the configuration item acquisition efficiency is improved.
In a second aspect, there is provided an authentication apparatus comprising:
the acquisition module is used for: the method comprises the steps of obtaining a configuration item set of a configured Basic Input Output System (BIOS), wherein the configuration item set comprises all configuration items of the configured BIOS;
and (3) a verification module: the method comprises the steps of determining at least one configuration item which is different from a corresponding initial configuration item in the configuration item set to obtain a difference configuration item set, wherein the initial configuration item is a configuration item of a BIOS before configuration; and if the difference configuration item set is determined to be matched with the target configuration item set, outputting a first verification result, wherein the target configuration item set comprises all configuration items needing to be configured in the configuration items of the BIOS before configuration, and the first verification result is used for indicating that all the configuration items of the BIOS after configuration are correctly configured.
Optionally, the acquiring module is specifically configured to:
receiving first display data sent by the configured BIOS through a serial port, wherein the first display data comprises display data for displaying configuration items of the configured BIOS;
and determining the configured configuration items of the BIOS according to the first display data to obtain a configuration item set.
Optionally, the first display data includes display data associated with at least one menu item, the configured configuration item of the configured BIOS is included in the at least one menu item, and the obtaining module is specifically configured to:
for each menu item in the at least one menu item, receiving second display data associated with the current menu item through a serial port;
according to the second display data, if the current menu item is determined to comprise the configuration item, acquiring the configuration item in the current menu item;
and obtaining the configured configuration item set of the BIOS according to all the configuration items contained in the at least one menu item.
Optionally, the first display data includes at least one sub-display data, and the obtaining module is specifically configured to:
receiving the first sub-display data sent by the configured BIOS through a serial port, and starting timing;
If the second sub-display data sent by the configured BIOS is received before the timing duration does not reach the preset duration, restarting timing; otherwise, determining all the received sub display data as the first display data sent by the configured BIOS.
Optionally, the acquiring module is further configured to:
before obtaining a configuration item set of a configured Basic Input Output System (BIOS), if the first display data comprises a first identifier, determining that third display data indicated by the first identifier in the first display data comprises a current menu item or a configuration item;
and if the first identifier is not included in the first display data, re-receiving the first display data.
Optionally, the acquiring module is further configured to:
if the first display data comprises a first identifier, after determining that third display data indicated by the first identifier in the first display data comprises a current menu item or a configuration item, if the third display data comprises a second identifier, determining that fourth display data indicated by the second identifier in the third display data is the current menu item;
And if the third display data does not comprise the second identifier, determining that the third display data is a configuration item.
Optionally, the configuration item includes a name of the configuration item and a value of the configuration item, and the verification module is further configured to:
if the difference configuration item set is not matched with the target configuration item set, outputting a second verification result, wherein the second verification result is used for indicating that all the configured configuration items of the BIOS are incorrectly configured;
wherein the mismatch between the set of differential configuration items and the set of target configuration items includes that the differential configuration items in the set of differential configuration items have values of differential configuration items, or that the values of the differential configuration items are different from the values of the corresponding target configuration items in the set of target configuration items,
the target configuration item set has a target configuration item name, which is different from the name of each difference configuration item in the difference configuration item set, or,
and the difference configuration item set has a difference configuration item name which is different from the name of each target configuration item in the target configuration item set.
Optionally, the configuration item set includes all configuration items of the configured BIOS within a preset verification range.
In a third aspect, a white-box switch is provided, comprising the authentication device according to any of the second aspects.
In a fourth aspect, there is provided a computer device comprising:
a memory for storing program instructions;
and a processor for calling program instructions stored in the memory and executing the method according to any one of the first aspects according to the obtained program instructions.
In a fifth aspect, there is provided a storage medium storing computer-executable instructions for causing a computer to perform the method of any one of the first aspects.
Drawings
Fig. 1 is an application scenario of the verification method provided in the embodiment of the present application;
FIG. 2 is an interactive schematic diagram of a verification method according to an embodiment of the present application;
FIG. 3 is a display interface of a verification method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a verification apparatus according to an embodiment of the present application;
FIG. 5 is a flowchart of a verification method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a verification method according to an embodiment of the present disclosure;
Fig. 7 is a schematic structural diagram of a verification apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a verification device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In addition, in the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
Under different application scenarios, a terminal device, such as a computer, or a network device, such as a white-box switch, needs to implement different functions, so that initial configuration items of BIOS in the terminal device or the network device cannot meet various scenario requirements, and a developer needs to configure the configuration items of BIOS according to the configuration requirements. However, in the configuration process, a configuration error condition of a configuration item of the BIOS is unavoidable, and verification needs to be performed on the configured BIOS. In order to improve the verification efficiency of the BIOS, the present application provides a verification method, and an application scenario related to the method is described below. In the embodiment of the present application, BIOS in a network device is described as an example.
Please refer to fig. 1, which is an application scenario of the verification method. The application scene includes a network device 101, an authentication device 102, and a display device 103. Communication may be between the network device 101 and the authentication device 102, and communication may be between the authentication device 102 and the display device 103. The communication mode between the devices can be wired communication or wireless communication, and the wired communication is connected with a network cable, a data line, a serial port line or the like; the wireless communication is performed, for example, by bluetooth or wireless lan.
The network device 101 may be a switch or router or the like having a BIOS, such as a white box switch.
The verification device 102 generally refers to a device that can be used to verify whether or not the configuration item of the BIOS configured in the network device 101 is properly configured, and for example, the verification device 102 may be a terminal device, or may be a client installed in the terminal device, or may be a server or the like. The terminal device may be a mobile phone, a desktop computer, a tablet computer, or the like. The client is, for example, application software installed in the terminal device, or a web page accessible to the terminal device, or a lightweight applet embedded in the third party platform in the terminal device, etc. The server is, for example, a local server, a cloud server, or the like.
The display device 103 generally refers to a device that can be used for display, such as a display screen or the like.
As an embodiment, the network device 101 and the authentication device 102 may be the same device, i.e. the network device 101 may implement the functionality of the authentication device 102. Alternatively, the authentication device 102 and the display device 103 may be the same device, i.e., the display device 103 may implement the functions of the authentication device 102. Alternatively, the network device 101, the authentication device 102, and the display device 103 may be the same device, i.e., the network device 101 may implement the functions of the authentication device 102 and the display device 103. In the embodiment of the present application, the network device 101, the verification device 102, and the display device 103 are described as different devices.
The interaction between devices is illustrated below:
after the configuration is completed, the BIOS in the network device 101 may verify the configured configuration item in the configured BIOS to determine whether the configured configuration item of the configured BIOS is configured correctly. The authentication device 102 may obtain all configuration items of the BIOS after configuration in the network device 101. The verification device 102 establishes a configuration item set according to all the acquired configuration items. The verification device 102 determines at least one configuration item, different from the initial configuration item of the BIOS before the corresponding configuration, in the configuration item set, and obtains a difference configuration item set. If the verification device 102 determines that the set of differential configuration items matches the set of target configuration items, the verification device 102 outputs a first verification result, which may indicate that all of the configuration items in the configured BIOS are properly configured. The difference configuration item set and the target configuration item set are matched to represent each difference configuration item in the difference configuration item set, and the difference configuration item set and each target configuration item in the target configuration item set are in one-to-one correspondence, namely the difference configuration item set and the target configuration item set represent that the configuration items are correctly configured.
In the embodiment of the present application, the verification device 102 may obtain all configuration items of the BIOS after being configured in the network device 101, and determine a difference configuration item different from the corresponding initial configuration item. The verification device 102 verifies whether the configured configuration items of the BIOS are correctly configured by comparing the difference configuration items with the target configuration items, so that manual spot check verification is not needed, the verification efficiency of the BIOS is improved, the labor cost is reduced, the missing or misjudgment caused by manual verification is reduced, and the verification accuracy of the BIOS is improved.
Based on the scenario discussed in fig. 1, the verification method in the embodiment of the present application is described below.
Authentication device 102 before authenticating the configured BIOS in network device 101, authentication device 102 may obtain all configuration items of the configured BIOS first, and obtain a configuration item set. There are various ways to obtain the configured set of configuration items of the BIOS by the verification device 102, and two of them are described below as examples.
The method comprises the following steps:
the verification device 102 receives all the configured BIOS configuration items sent by the network device 101, and obtains a configuration item set.
Specifically, after the configuration of the BIOS in the network device 101 is completed, all configuration items of the configured BIOS may be stored in the network device 101. After the network device 101 is powered on, all configuration items of the configured BIOS may be sent to the authentication device 102. The verification device 102 receives all the configured BIOS configuration items sent by the network device 101, and obtains a configured BIOS configuration item set.
As an embodiment, the configured configuration items of the configured BIOS may be stored in a form of a table structure, a tree structure, or a knowledge graph structure, and the specific storage form is not limited.
As an embodiment, the configured configuration item of the configured BIOS may be stored in a local database of the network device 101, or may be stored in a database of a third party server associated with the network device 101, or may be stored in a database of a cloud server associated with the network device 101, or the like, where a specific storage location is not limited.
The second method is as follows:
the verification device 102 receives the first display data sent by the network device 101, determines all configuration items of the configured BIOS according to the first display data, and obtains a configuration item set.
Specifically, after the completion of the configuration of the BIOS in the network device 101, the configured first display data associated with the BIOS may be stored in the network device 101, or the network device 101 may generate the first display data or the like upon receiving an instruction for generating the first display data. The first display data includes display data that may be used to display the configured configuration items of the BIOS. After the network device 101 is powered up, the first display data may be sent to the authentication device 102. The verification device 102 receives the first display data sent by the network device 101, determines all configuration items of the configured BIOS according to the first display data, and obtains a configuration item set of the configured BIOS.
As an embodiment, the authentication device 102 and the network device 101 are connected through a serial port line, and the network device 101 may send display data to the authentication device 102 through a serial port transmission protocol, that is, the authentication device 102 may receive the display data sent by the network device 101 through the serial port transmission protocol.
As an embodiment, the configuration items in the BIOS that need to be configured before configuration may include all the configuration items of the BIOS, or may include at least one configuration item of all the configuration items of the BIOS. Thus, when verifying the configured BIOS, the verification device 102 may verify all of the configuration items of the configured BIOS, or may verify some of the configuration items of the configured BIOS. Thus, the set of configuration items obtained by the authentication device 102 may include all configuration items for which the BIOS is within a preset authentication range. The preset verification range may include all the configuration items of the configured BIOS, or may include at least one configuration item of all the configuration items of the configured BIOS. The preset verification range may be preset, or may be determined according to a configuration item that needs to be configured in the BIOS before configuration, which is not specifically limited.
As an embodiment, a user may set a configuration requirement of the BIOS before configuration through the network device 101, or the network device 101 may receive the configuration requirement of the BIOS before configuration sent by another device. The configuration requirement may be used to indicate all configuration items in the BIOS that need to be configured prior to configuration, i.e., a target configuration item set. After obtaining the configuration requirement of the BIOS, the network device 101 may determine a preset verification range according to the configuration requirement. The network device 101 transmits the determined preset authentication range to the authentication device 102, and the authentication device 102 receives the preset authentication range from the network device 101.
As one example, the network device 101 may send configuration requirements to the authentication device 102 after obtaining the configuration requirements of the BIOS prior to configuration. The verification device 102 receives the configuration requirement sent by the network device 101, and determines a preset verification range according to the configuration requirement. The verification device 102 can flexibly adjust the preset verification range of the configured BIOS according to all configuration items required to be configured in the configured BIOS, so that the number of configuration items required to be verified is reduced to a certain extent, and the verification efficiency of the BIOS is improved.
In this embodiment of the present application, a method for obtaining the configured configuration item set of the configured BIOS described in the second method is taken as an example, and specific description is made.
Referring to fig. 2, a schematic diagram of an interaction process among a network device 101, an authentication device 102, and a display device 103 according to an embodiment of the present application is shown.
S201, the verification device 102 receives the first display data sent by the network device 101, and determines all configuration items of the configured BIOS.
The first display data may include display data associated with at least one menu item, all configuration items of the configured BIOS being included in the at least one menu item. The verification device 102 may traverse each of the at least one menu item to obtain all of the configured BIOS configuration items.
Specifically, for each of the at least one menu item, the network device 101 may send second display data associated with the current menu item, which is data in the first display data, to the verification device 102. The verification device 102 receives the second display data sent by the network device 101, and the verification device 102 determines whether the configuration item of the BIOS is included in the current menu item according to the second display data. The authentication device 102 obtains a configuration item of the BIOS if it is determined that the configuration item is included in the current menu item. If the verification device 102 determines that the configuration item of the BIOS is not included in the current menu item, the verification device 102 determines whether the configuration item of the configured BIOS is included in the next menu item. After traversing each menu item in the at least one menu item, the verification device 102 obtains all configuration items contained in the at least one menu item, and obtains all configured configuration items of the configured BIOS.
As an embodiment, the verification device 102 may employ a traversal method that determines whether to include a menu item first, in addition to a traversal method that determines whether to configure the item first. After the verification device 102 receives the second display data transmitted by the network device 101, the verification device 102 determines whether the menu item is included in the current menu items according to the second display data. If the verification device 102 determines that the current menu item includes a menu item, then the menu item is taken as the current menu item and continues to traverse the current menu item. If the verification device 102 determines that all of the menu items in the current menu item are traversed, then a determination is made as to whether the configuration item of the BIOS is included in the current menu item. If the verification device 102 determines that the configuration item of the BIOS is included in the current menu item, the configuration item is obtained. If the verification device 102 determines that the configuration item of the BIOS is not included in the current menu item, then the current menu item traversal is complete, returning to the previous level menu item. If the verification device 102 determines that no menu item is included in the current menu items, then a determination is made as to whether a configuration item of the BIOS is included in the current menu items. If the verification device 102 determines that the configuration item of the BIOS is included in the current menu item, the configuration item is obtained. If the verification device 102 determines that the configuration item of the BIOS is not included in the current menu item, then the current menu item traversal is complete, returning to the previous level menu item. After traversing each menu item in the at least one menu item, the verification device 102 obtains all configuration items contained in the at least one menu item, and obtains all configured configuration items of the configured BIOS.
As an embodiment, the first display data may include at least one sub display data, and all configuration items of the configured BIOS are included in the at least one sub display data. The verification device 102 may receive each of the at least one sub-display data in turn, and obtain all configuration items of the configured BIOS.
Specifically, the network device 101 may sequentially send each of the at least one sub-display data to the authentication device 102. The authentication device 102 receives the first sub-display data transmitted by the network device 101 and starts timing. The authentication device 102 receives the second sub-display data transmitted from the network device 101 if the time duration does not reach the preset time duration, and the authentication device 102 restarts the time duration. The verification device 102 determines all the received sub-display data as the first display data if any sub-display data transmitted by the network device 101 is not received when the time period reaches the preset time period. The verification device 102 obtains all configuration items of the configured BIOS according to the first display data. The preset time period may be set according to an empirical value, or may be set randomly, without limitation.
The following describes an example of a specific procedure of step S201.
S1.1, the authentication device 102 receives initial display data transmitted by the network device 101.
After the network device 101 is powered on, the initial display data may be sent to the authentication device 102, where the authentication device 102 receives the initial display data sent by the network device 101. The initial display data may be second display data associated with a certain menu item in at least one menu item in the first display data, and may be used to display a display interface corresponding to the menu item. The authentication device 102 takes this menu item as the current menu item.
Referring to fig. 3, a display interface corresponding to a current menu item is described taking the current menu item as "menu item a" as an example. The current menu items comprise five menu items of 'menu item B', 'menu item C', 'menu item D', 'menu item E', and 'menu item F'. The upper right region of the display interface, i.e., the region where the "description" content is located, represents a specific description of a menu item or configuration item, for example, "description" in fig. 3 is a specific description of "menu item B"; the lower right region, i.e. "Enter: entering the area where the content such as' and the like is located, and indicating an operation instruction receivable by the display interface. Fig. 3 is an exemplary illustration of a display interface, and the specific display content is not limited.
As an embodiment, the network device 101 may divide the second display data into a plurality of sub-display data. The network device 101 sequentially transmits the plurality of sub-display data to the authentication device 102, and the authentication device 102 sequentially receives the plurality of sub-display data transmitted by the network device 101. The verification device 102 starts timing when receiving the first sub-display data, and if the verification device 102 receives the second sub-display data sent by the network device 101 within the preset duration, the verification device 102 restarts timing; until the authentication device 102 does not receive any sub-display data transmitted by the network device 101 within the preset period of time, the authentication device 102 determines that the second display data reception is completed, and determines all the received sub-display data as second display data. The preset duration may be a preset time value, for example, 0.5 seconds. By setting the preset duration, the situation that the verification device 102 waits for receiving the display data all the time due to the fact that the display data transmission completion identifier is not set can be avoided, unnecessary resource occupation is reduced, the waiting duration of the verification device 102 is reduced, and the efficiency of the verification device 102 for obtaining the configuration items is improved.
As an example, after the authentication device 102 determines that the second display data reception is completed, the network device 101 may still continue to transmit the sub display data to the authentication device 102, and the authentication device 102 stores the sub display data transmitted by the network device 101. When the verification device 102 determines that the second display data is incomplete, the sub display data stored in the memory can be directly received continuously, and the second display data does not need to be acquired from the network device 101 again, so that the interaction process between the devices is reduced, and the efficiency of the verification device 102 for acquiring the display data is improved.
S1.2, the verification device 102 determines, according to the initial display data, whether the configuration item is included in the initial display data.
After receiving the initial display data transmitted by the network device 101, the verification device 102 determines whether the configuration item is included in the current menu item according to the identifier in the initial display data.
If the verification device 102 determines that the first identifier is included in the initial display data, the verification device 102 determines that a menu item or configuration item is included in the third display data indicated by the first identifier. If the verification device 102 determines that the second identifier is included in the third display data, the verification device 102 determines that the fourth display data indicated by the second identifier is a menu item and takes the menu item as the current menu item. The verification device 102 performs step S1.3, receives the second display data associated with the current menu item and determines whether the configuration item is included in the current menu item. If the authentication device 102 determines that the second identifier is not included in the third display data, the authentication device 102 determines the third display data as a configuration item, and the authentication device 102 acquires the configuration item.
If the verification device 102 determines that the first identifier is not included in the initial display data, the verification device 102 determines that the second display data is not received in its entirety. The verification device 102 may re-acquire the second display data from the network device 101, or the verification device 102 may continue to receive the sub-display data stored in the memory, and complete the reception of the second display data.
The identifiers are exemplified below.
For example, the first identifier is a string "\x1b [1;37, respectively; 47m ", the second identifier is the symbol" > ", please refer to table 1, which is a representation of the identifier.
TABLE 1
Identifier(s) Basic meaning Meaning in display interface
\x1b[1;37;47m White fonts Currently selected item
> (symbol)> Menu item
Wherein "\x1b [1;37, respectively; 47m ", the second display data includes a white font," \x1b [1;37, respectively; the third display data indicated by 47m "is displayed on the display interface in white font; the ">" indicates that the symbol is included in the third display data, and the fourth display data indicated by the ">" is a menu item.
With continued reference to fig. 3, the white font in the current menu item is ">" menu item B ">" and ">" is included in ">" menu item B ", then" > "menu item B" may be determined to be a menu item.
S1.3, the verification device 102 receives the second display data sent by the network device 101, and determines whether the configuration item is included in the current menu item.
The authentication device 102 sends indication information to the network device 101 for instructing the network device 101 to feed back to the authentication device 102 the second display data associated with the current menu item. After receiving the instruction information transmitted by the authentication device 102, the network device 101 transmits second display data to the authentication device 102. The verification device 102 only needs to acquire the second display data associated with the current menu item, and does not need to acquire the first display data or the display data associated with other menu items again, so that the data volume of interaction between the verification device 102 and the network device 101 is reduced, and the efficiency of acquiring the display data is improved.
As an embodiment, the indication information may be indication information corresponding to an operation instruction for the display interface, for example, please continue to refer to fig. 3, and the current menu item is "menu item B". If the operation instruction is "Enter" indicating entry to "menu item B", the instruction information instructs acquisition of the second display data associated with "menu item B". If the operation instruction is "Down", indicating that the next item is selected, the instruction information instructs updating of the display data associated with "menu item A", that is, updating of the font colors of "menu item B" and "menu item C", and the specification of the currently selected item in the upper right region. If the operation instruction is "Right", it means that the next menu item to the Right of "menu item a" is taken as the current menu item, and the indication information indicates that the second display data associated with the current menu item is acquired.
As one example, the verification device 102 may store the indication information transmitted each time, and if the verification device 102 determines that the indication information corresponding to the current operation instruction is the same as the stored indication information, the verification device 102 determines that the current menu item traversal is completed. For example, after the verification device 102 traverses the completion of the "menu item F", the instruction information corresponding to the "Down" operation instruction is generated, indicating that the "menu item B" is selected. The verification device 102 determines that among the stored instruction information, there is instruction information indicating that "menu item B" is selected, and the verification device 102 generates instruction information corresponding to the operation instruction "ESC" with "menu item C" as the current menu item.
As one example, the verification device 102 may store display data associated with a specification of a current menu item upon receiving second display data associated with the current menu item. If the verification device 102 determines that the third identifier is included in the second display data, the verification device 102 determines that the fifth display data indicated by the third identifier is a specification of the current menu item. If the verification device 102 determines that the specification of the current menu item is different from the stored specification, the verification device 102 may determine that the current menu item is a non-traversed menu item and the verification device 102 may traverse the current menu item. If the verification device 102 determines that the specification of the current menu item is the same as the stored specification, the verification device 102 may determine that the current menu item is a traversed menu item, and the verification device 102 does not traverse the current menu item.
For example, the third identifier is a string "\x1b [ number; the numeral H "indicates a positioning identifier, and the fifth display data indicated by the third identifier is a specific description of the current menu item. With continued reference to fig. 3, "detailed description" in the upper right area is a detailed description of "menu item B".
After the network device 101 feeds back the second display data to the verification device 102, the verification device 102 receives the second display data, and the specific receiving method may refer to the method for receiving the initial display data by the verification device 102 described in step S1.1, which is not described herein.
As an example, after the authentication device 102 receives any display data, the display data may be transmitted to the display device 103. After receiving the display data, the display device 103 displays the display data. The display device 103 may display a process of the verification device 102 obtaining the configured configuration item of the BIOS, so as to monitor or view the obtaining process of the verification device 102.
S1.4, the verification device 102 acquires all configuration items contained in at least one menu item, and acquires all configured configuration items of the BIOS.
For example, referring to fig. 4, to illustrate a schematic structure of the verification device 102, the verification device 102 includes a loading unit, an information extracting unit, and a processing unit. Based on the verification device 102 of fig. 4, please refer to fig. 5, which is a flowchart for the verification device 102 to traverse at least one menu item.
S2.1, the loading unit in the authentication device 102 receives the second display data associated with the current menu item.
S2.2, if the information extraction unit in the authentication device 102 determines that the third display data is included in the second display data, S2.3 is performed; if the information extraction unit in the authentication device 102 determines that the third display data is not included in the second display data, S2.1 is performed.
S2.3, the processing unit in the verification device 102 determines whether fourth display data is included in the third display data. If the processing unit in the verification device 102 determines that the third display data comprises fourth display data, then S2.4 is performed; if the processing unit in the verification device 102 determines that the third display data does not include the fourth display data, the third display data is a configuration item.
S2.4, the processing unit in the verification device 102 determines whether the fourth display data is an un-traversed menu item. If the processing unit in the verification device 102 determines that the fourth display data is a non-traversed menu item, indication information corresponding to the "Enter" operation instruction is generated. The authentication device 102 transmits the instruction information to the network device 101. The processing unit in the authentication device 102 takes this menu item as the current menu item and the authentication device 102 performs S2.1. If the processing unit in the authentication device 102 determines that the fourth display data is a traversed menu item, the authentication device 102 performs S2.5.
S2.5, the processing unit in the verification device 102 generates indication information corresponding to the "ESC" operation instruction. The authentication device 102 sends the indication information to the network device 101, the processing unit in the authentication device 102 exits the current menu item, returns to the previous menu item, and the authentication device 102 executes S2.6. If the processing unit in the verification device 102 determines that the current menu item does not have a previous level menu item, the verification device 102 performs S2.7.
S2.6, if the verification device 102 traverses the current menu item, a processing unit in the verification device 102 takes the next item of the current menu item as the current menu item, and generates indication information corresponding to the 'Down' operation instruction. The authentication device 102 transmits the indication information to the network device 101, and the authentication device 102 performs S2.1.
S2.7, the verification device 102 determines one menu item on the Right side of the current menu item as the current menu item, and generates indication information corresponding to the "Right" operation instruction. The authentication device 102 transmits the indication information to the network device 101, and the authentication device 102 performs S2.1.
As an embodiment, if a plurality of processing units are included in the verification device 102, each processing unit may process in parallel while traversing a plurality of menu items, improving the traversal efficiency.
S202, the verification device 102 obtains a configuration item set of the configured BIOS.
After the verification device 102 obtains the configured BIOS configuration items, a set of configured BIOS configuration items is generated.
As one example, the configuration item obtained by the verification device 102 may include the name of the configuration item and the value of the configuration item. Therefore, the configured set of configuration items of the BIOS may include the name of each configuration item and the value of each configuration item.
As an embodiment, the verification device 102 may also pre-store the correspondence between the menu items or configuration items and the specific descriptions, when the verification device 102 traverses each menu item or configuration item, the verification device 102 may further determine, according to the correspondence, whether the specific descriptions of the current menu item and the current menu item match, and if not, the verification device 102 may re-acquire the second display data associated with the current menu item, or record an error log. If so, the verification device 102 may determine that the received second display data associated with the current menu item is error free.
S203, the verification device 102 determines at least one configuration item different from the corresponding initial configuration item in the configuration item set, and obtains a difference configuration item set.
The initial set of configuration items may be pre-stored in the verification device 102. The initial configuration item set comprises at least one initial configuration item, wherein the initial configuration item is a configuration item before BIOS configuration.
The verification device 102 determines, for each configuration item in the set of configuration items, whether the current configuration item is the same as the corresponding initial configuration item. If the current configuration item is different from the corresponding initial configuration item, the verification device 102 determines the current configuration item as a differential configuration item. If the current configuration item is the same as the corresponding initial configuration item, the verification device 102 uses the next configuration of the current configuration item in the configuration item set as the current configuration item, and continues to determine whether the current configuration item is the same as the corresponding initial configuration item until each configuration item in the configuration item set is determined. The verification device 102 generates a set of difference configuration items from all the determined difference configuration items.
As an embodiment, the initial configuration item corresponding to the current configuration item may be the initial configuration item having the same name as the current configuration item in the initial configuration item set, or may be the initial configuration item contained in the same menu item as the current configuration item in the initial configuration item set, or the like.
S204, if the verification device 102 determines that the difference configuration item set matches the target configuration item set, the first verification result is output.
The verification device 102 determines whether the set of differential configuration items matches the set of target configuration items. The target configuration item set comprises at least one target configuration item, wherein the target configuration item is a configuration item needing to be configured in all configuration items of the BIOS before configuration.
The verification device 102 in turn determines the name of each of the set of differential configuration items, whether there is a target configuration item in the set of target configuration items for which the name corresponds. Thus, the verification device 102 may determine whether the configuration item that the BIOS is configured in the configuration process is a configuration item that needs to be configured, i.e., the verification device 102 determines whether there is a multi-configuration situation.
The verification device 102 determines, in turn, the name of each target configuration item in the set of target configuration items, and whether there is a difference configuration item in the set of difference configuration items whose names correspond to the same difference configuration item. Thus, the verification device 102 may determine whether the configuration items that the BIOS needs to configure in the configuration process are all configured, i.e., the verification device 102 determines whether there is a mismatching condition.
The verification device 102 sequentially determines whether the value of each difference configuration item in the difference configuration item set is the same as the value of the target configuration item corresponding to each difference configuration item. Thus, the verification device 102 can determine whether there is a mismatch condition.
The mismatch between the set of differential configuration items and the set of target configuration items includes a number of cases, three of which are described below as examples.
Case one:
the difference configuration item set has a difference configuration item name different from the name of each target configuration item in the target configuration item set.
And a second case:
the target configuration item set has a target configuration item name different from the target configuration item name of each difference configuration item in the difference configuration item set.
And a third case:
the difference configuration item set has a value of a difference configuration item, and the value of the difference configuration item is different from that of a corresponding target configuration item in the target configuration item set.
If the verification device 102 determines that the set of differential configuration items does not match the set of target configuration items, the verification device 102 determines that the set of differential configuration items does not match the set of target configuration items; if the verification device 102 determines that the set of differential configuration items does not exist in any of the above cases with the set of target configuration items, indicating that all configuration items of the configured BIOS are properly configured, then the verification device 102 determines that the set of differential configuration items matches the set of target configuration items.
If the verification device 102 determines that the set of differential configuration items matches the set of target configuration items, the verification device 102 outputs a first verification result indicating that all configuration items of the configured BIOS are properly configured. As an embodiment, the authentication device 102 may perform step S205 to send the first authentication result to the display device 103.
If the verification device 102 determines that the set of differential configuration items does not match the set of target configuration items, the verification device 102 may perform step S206, outputting a second verification result.
S205, the authentication device 102 transmits the first authentication result to the display device 103.
The authentication device 102 transmits the first authentication result to the display device 103, the display device 103 receives the first authentication result transmitted by the authentication device 102, and the display device 103 displays the first authentication result. The manner in which the display device 103 displays the first verification result may be an audio display manner, for example, a voice broadcast or the like; alternatively, it may be a video display mode, for example, text scrolling display, etc.; alternatively, the light source may be displayed, for example, light emitting diode may be turned on, and the like, and the present invention is not limited in particular.
S206, if the verification device 102 determines that the difference configuration item set is not matched with the target configuration item set, a second verification result is output.
If the verification device 102 determines that the difference configuration item set does not match the target configuration item set, it indicates that all the configuration items of the configured BIOS have configuration items that are not configured correctly. As an embodiment, the authentication device 102 may perform step S207 to transmit the second authentication result to the display device 103.
As one embodiment, the second verification result output by the verification device 102 may further include a specific case that the difference configuration item set does not match the target configuration item set. For example, the second verification result includes a flag bit, and when the value of the flag bit is 1, the first condition is indicated; when the value of the flag bit is 2, the second case is indicated; when the flag bit has a value of 3, the third case is indicated.
S207, the authentication device 102 transmits the second authentication result to the display device 103.
The authentication device 102 transmits the second authentication result to the display device 103, the display device 103 receives the second authentication result transmitted by the authentication device 102, and the display device 103 displays the second authentication result. The manner in which the display device 103 displays the second verification result may refer to the content described in step S205, which is not described herein.
As an example, step S201 and steps S205 to S207 are optional.
Fig. 6 is a schematic diagram of a verification method according to an embodiment of the present application. The authentication device 102 includes a checking unit and an authentication unit.
After obtaining the set of configuration items, the checking unit in the verification device 102 determines at least one configuration item, different from the initial configuration item, in the set of configuration items, to obtain a set of differential configuration items. The checking unit in the verification device 102 inputs the difference configuration item set to the verification unit in the verification device 102, and the verification unit in the verification device 102 receives the difference configuration item set, determines whether the difference configuration item set matches the target configuration item set, and outputs a verification result.
Based on the same inventive concept, the embodiments of the present application provide an authentication apparatus, which is equivalent to the authentication device 102 discussed above, and can implement the functions corresponding to the foregoing authentication method. Referring to fig. 7, the apparatus includes an acquisition module 701 and a verification module 702, where:
the acquisition module 701: the configuration item set is used for obtaining the configured Basic Input Output System (BIOS), wherein the configuration item set comprises all configuration items of the configured BIOS;
verification module 702: the method comprises the steps of determining at least one configuration item which is different from a corresponding initial configuration item in a configuration item set to obtain a difference configuration item set, wherein the initial configuration item is a configuration item of a BIOS before configuration; and if the difference configuration item set is determined to be matched with the target configuration item set, outputting a first verification result, wherein the target configuration item set comprises all configuration items needing to be configured in the configuration items of the BIOS before configuration, and the first verification result is used for indicating that all the configuration items of the BIOS after configuration are correctly configured.
In one possible embodiment, the obtaining module 701 is specifically configured to:
receiving first display data sent by the configured BIOS through a serial port, wherein the first display data comprises display data for displaying configuration items of the configured BIOS;
and determining the configured configuration items of the BIOS according to the first display data to obtain a configuration item set.
In one possible embodiment, the first display data includes display data associated with at least one menu item, and the configured configuration item of the configured BIOS is included in the at least one menu item, and the obtaining module 701 is specifically configured to:
for each menu item in at least one menu item, receiving second display data associated with the current menu item through a serial port;
according to the second display data, if the current menu item is determined to comprise the configuration item, acquiring the configuration item in the current menu item;
and obtaining a configured configuration item set of the BIOS according to all the configuration items contained in the obtained at least one menu item.
In a possible embodiment, the first display data includes at least one sub-display data, and the obtaining module 701 is specifically configured to:
receiving first sub-display data sent by the configured BIOS through a serial port, and starting timing;
If the second sub-display data sent by the configured BIOS is received before the timing duration does not reach the preset duration, restarting timing; otherwise, determining all the received sub display data as first display data sent by the configured BIOS.
In one possible embodiment, the obtaining module 701 is further configured to:
before the configured configuration item set of the basic input output system BIOS is obtained, if the first display data comprises a first identifier, determining that third display data indicated by the first identifier in the first display data comprises a current menu item or configuration item;
and if the first identifier is not included in the first display data, re-receiving the first display data.
In one possible embodiment, the obtaining module 701 is further configured to:
if the first display data comprises the first identifier, after determining that the third display data indicated by the first identifier in the first display data comprises the current menu item or the configuration item, if determining that the third display data comprises the second identifier, determining that the fourth display data indicated by the second identifier in the third display data is the current menu item;
and if the third display data does not comprise the second identifier, determining the third display data as the configuration item.
In one possible embodiment, the configuration item includes a name of the configuration item and a value of the configuration item, and the verification module 702 is further configured to:
if the difference configuration item set is not matched with the target configuration item set, outputting a second verification result, wherein the second verification result is used for indicating that all the configured configuration items of the BIOS are incorrectly configured;
wherein the mismatch between the set of differential configuration items and the set of target configuration items includes that the differential configuration items in the set of differential configuration items have values, the values of the differential configuration items are different from the values of the corresponding target configuration items in the set of target configuration items, or,
the target configuration item set has a target configuration item name that is different from the name of each difference configuration item in the difference configuration item set, or,
the difference configuration item set has a difference configuration item name which is different from the name of each target configuration item in the target configuration item set.
In one possible embodiment, the set of configuration items includes all configuration items of the configured BIOS that are within a preset verification range.
Based on the same inventive concept, the embodiment of the application provides a white-box switch, which can realize the functions corresponding to the verification method.
Based on the same inventive concept, an embodiment of the present application provides a computer device, which can implement functions corresponding to the foregoing verification method, referring to fig. 8, including:
at least one processor 801, and a memory 802 connected to the at least one processor 801, a specific connection medium between the processor 801 and the memory 802 is not limited in the embodiment of the present application, and in fig. 8, the processor 801 and the memory 802 are connected by a bus 800 as an example. The connection between the other components of bus 800 is shown in fig. 8 by a bold line, which is merely illustrative and not limiting. Bus 800 may be divided into an address bus, a data bus, a control bus, etc., and is represented by only one thick line in fig. 8 for ease of illustration, but does not represent only one bus or one type of bus. Alternatively, the processor 801 may be referred to as a controller 801, and the names are not limited.
In the embodiment of the present application, the memory 802 stores instructions executable by the at least one processor 801, and the at least one processor 801 may perform the verification method described above by executing the instructions stored in the memory 802. The processor 801 may implement the functions of the various modules in the authentication device shown in fig. 7.
The processor 801 is a control center of the device, among other things, and may connect various parts of the overall device using various interfaces and lines, by running or executing instructions stored in the memory 802 and invoking data stored in the memory 802, various functions of the device, and processing data.
In one possible embodiment, the processor 801 may include one or more processing units, and the processor 801 may integrate an application processor that primarily processes operating systems, user interfaces, application programs, and the like, with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 801. In some embodiments, processor 801 and memory 802 may be implemented on the same chip, or they may be implemented separately on separate chips in some embodiments.
The processor 801 may be a general-purpose processor, such as a Central Processing Unit (CPU), a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components, and may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present application.
Memory 802, as a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 802 may include at least one type of storage medium, which may include, for example, flash Memory, hard disk, multimedia card, card Memory, random access Memory (Random Access Memory, RAM), static random access Memory (Static Random Access Memory, SRAM), programmable Read-Only Memory (Programmable Read Only Memory, PROM), read-Only Memory (ROM), charged erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory), magnetic Memory, magnetic disk, optical disk, and the like. Memory 802 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 802 in the embodiments of the present application may also be circuitry or any other device capable of implementing a memory function for storing program instructions and/or data.
Based on the same inventive concept, embodiments of the present application also provide a storage medium storing computer instructions that, when run on a computer, cause the computer to perform the verification method discussed above.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (11)

1. A method of authentication, comprising:
obtaining a configuration item set of a configured Basic Input Output System (BIOS), wherein the configuration item set comprises all configuration items of the configured BIOS;
determining at least one configuration item different from a corresponding initial configuration item in the configuration item set to obtain a difference configuration item set, wherein the initial configuration item is a configuration item of a BIOS before configuration;
if the difference configuration item set is determined to be matched with a target configuration item set, outputting a first verification result, wherein the target configuration item set comprises all configuration items needing to be configured in the configuration items of the BIOS before configuration, and the first verification result is used for indicating that all the configuration items of the BIOS after configuration are correctly configured;
the method for obtaining the configuration item set of the BIOS after configuration comprises the following steps:
receiving first display data sent by the configured BIOS through a serial port, wherein the first display data comprises display data for displaying configuration items of the configured BIOS;
and determining the configured configuration items of the BIOS according to the first display data to obtain a configuration item set.
2. The method of claim 1, wherein the first display data comprises display data associated with at least one menu item, wherein the configured configuration item of the BIOS is included in the at least one menu item, and wherein obtaining the set of configuration items of the configured basic input output system BIOS comprises:
for each menu item in the at least one menu item, receiving second display data associated with the current menu item through a serial port;
according to the second display data, if the current menu item is determined to comprise the configuration item, acquiring the configuration item in the current menu item;
and obtaining the configured configuration item set of the BIOS according to all the configuration items contained in the at least one menu item.
3. The method of claim 1, wherein the first display data comprises at least one sub-display data, and wherein receiving the configured first display data sent by the BIOS through the serial port comprises:
receiving the first sub-display data sent by the configured BIOS through a serial port, and starting timing;
if the second sub-display data sent by the configured BIOS is received before the timing duration does not reach the preset duration, restarting timing; otherwise, determining all the received sub display data as the first display data sent by the configured BIOS.
4. The method according to claim 1 or 2, comprising, before obtaining the set of configuration items of the configured basic input output system BIOS:
if the first display data comprises a first identifier, determining that third display data indicated by the first identifier in the first display data comprises a current menu item or a configuration item;
and if the first identifier is not included in the first display data, re-receiving the first display data.
5. The method of claim 4, wherein, if the first display data includes a first identifier, determining that third display data indicated by the first identifier in the first display data includes a current menu item or configuration item comprises:
if the third display data comprises the second identifier, determining that fourth display data indicated by the second identifier in the third display data is a current menu item;
and if the third display data does not comprise the second identifier, determining that the third display data is a configuration item.
6. The method of claim 1, wherein the configuration item includes a name of the configuration item and a value of the configuration item, the method further comprising:
If the difference configuration item set is not matched with the target configuration item set, outputting a second verification result, wherein the second verification result is used for indicating that all the configured configuration items of the BIOS are incorrectly configured;
wherein the mismatch between the set of differential configuration items and the set of target configuration items includes that the differential configuration items in the set of differential configuration items have values of differential configuration items, or that the values of the differential configuration items are different from the values of the corresponding target configuration items in the set of target configuration items,
the target configuration item set has a target configuration item name, which is different from the name of each difference configuration item in the difference configuration item set, or,
and the difference configuration item set has a difference configuration item name which is different from the name of each target configuration item in the target configuration item set.
7. The method of claim 1, wherein the set of configuration items includes all configuration items of the configured BIOS that are within a preset verification range.
8. A verification apparatus, comprising:
the acquisition module is used for: the method comprises the steps of obtaining a configuration item set of a configured Basic Input Output System (BIOS), wherein the configuration item set comprises all configuration items of the configured BIOS;
And (3) a verification module: the method comprises the steps of determining at least one configuration item which is different from a corresponding initial configuration item in the configuration item set to obtain a difference configuration item set, wherein the initial configuration item is a configuration item of a BIOS before configuration; and if the difference configuration item set is determined to be matched with a target configuration item set, outputting a first verification result, wherein the target configuration item set comprises all configuration items needing to be configured in the configuration items of the BIOS before configuration, and the first verification result is used for indicating that all the configuration items of the BIOS after configuration are correctly configured;
the acquisition module is specifically configured to:
receiving first display data sent by the configured BIOS through a serial port, wherein the first display data comprises display data for displaying configuration items of the configured BIOS;
and determining the configured configuration items of the BIOS according to the first display data to obtain a configuration item set.
9. A white-box switch comprising the authentication apparatus of claim 8.
10. A computer device, comprising:
a memory for storing program instructions;
A processor for invoking program instructions stored in the memory and performing the method according to any of claims 1-7 in accordance with the obtained program instructions.
11. A storage medium storing computer-executable instructions for causing a computer to perform the method of any one of claims 1 to 7.
CN202010913322.0A 2020-09-03 2020-09-03 Verification method, verification device, switch, equipment and storage medium Active CN112152841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010913322.0A CN112152841B (en) 2020-09-03 2020-09-03 Verification method, verification device, switch, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010913322.0A CN112152841B (en) 2020-09-03 2020-09-03 Verification method, verification device, switch, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112152841A CN112152841A (en) 2020-12-29
CN112152841B true CN112152841B (en) 2023-06-20

Family

ID=73889312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010913322.0A Active CN112152841B (en) 2020-09-03 2020-09-03 Verification method, verification device, switch, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112152841B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2512101A1 (en) * 2011-04-11 2012-10-17 Deutsche Telekom AG Method and system to pre-fetch user-specific HTTP requests for web applications
CN105429774A (en) * 2014-09-19 2016-03-23 中兴通讯股份有限公司 Method and device for network management system to debug network element configuration
CN107992409A (en) * 2017-11-21 2018-05-04 平安养老保险股份有限公司 Method for generating test case, device, computer equipment and storage medium
CN108804618A (en) * 2018-05-31 2018-11-13 康键信息技术(深圳)有限公司 Configuration method for database, device, computer equipment and storage medium
CN108898230A (en) * 2018-05-24 2018-11-27 华为技术有限公司 A kind of device management method and management server
CN109032824A (en) * 2018-05-31 2018-12-18 康键信息技术(深圳)有限公司 Database method of calibration, device, computer equipment and storage medium
CN110244987A (en) * 2019-06-18 2019-09-17 腾讯科技(深圳)有限公司 Configuration data processing method, device, readable storage medium storing program for executing and computer equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10341841B2 (en) * 2017-10-02 2019-07-02 Servicenow, Inc. Operation of device and application discovery for a managed network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2512101A1 (en) * 2011-04-11 2012-10-17 Deutsche Telekom AG Method and system to pre-fetch user-specific HTTP requests for web applications
CN105429774A (en) * 2014-09-19 2016-03-23 中兴通讯股份有限公司 Method and device for network management system to debug network element configuration
CN107992409A (en) * 2017-11-21 2018-05-04 平安养老保险股份有限公司 Method for generating test case, device, computer equipment and storage medium
CN108898230A (en) * 2018-05-24 2018-11-27 华为技术有限公司 A kind of device management method and management server
CN108804618A (en) * 2018-05-31 2018-11-13 康键信息技术(深圳)有限公司 Configuration method for database, device, computer equipment and storage medium
CN109032824A (en) * 2018-05-31 2018-12-18 康键信息技术(深圳)有限公司 Database method of calibration, device, computer equipment and storage medium
CN110244987A (en) * 2019-06-18 2019-09-17 腾讯科技(深圳)有限公司 Configuration data processing method, device, readable storage medium storing program for executing and computer equipment

Also Published As

Publication number Publication date
CN112152841A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
CN107656874B (en) Interface testing method and device, simulation baffle and system
CN109240924B (en) Application program testing method and device
CN109741755B (en) Voice awakening word threshold management device and method for managing voice awakening word threshold
CN111159049B (en) Automatic interface testing method and system
CN107453960B (en) Method, device and system for processing test data in service test
CN106201574B (en) Application interface starting method and device
CN106713042B (en) Method and device for determining network topology
CN108874678B (en) Automatic testing method and device for intelligent program
CN109766483B (en) Regular expression generation method, device, computer equipment and storage medium
CN107463391B (en) Task processing method, device and equipment
CN111062797A (en) Micro-service generation method, device, server and storage medium
CN109618226B (en) Video auditing method and device, electronic equipment and storage medium
CN109413455B (en) User information display method and device for voice microphone interaction
CN114221866A (en) Method, device and medium for upgrading terminal
CN112152841B (en) Verification method, verification device, switch, equipment and storage medium
CN112988600A (en) Service scene testing method and device, electronic equipment and storage medium
CN111050217A (en) Video playing method and device
CN113742110A (en) Message transmission method and device, electronic equipment and storage medium
CN111752677B (en) Cloud resource configuration method, system, terminal and storage medium
CN113347062A (en) SIP performance test method, device, equipment and storage medium
CN104407846B (en) Information processing method and device
CN115392332A (en) AI model deployment method, system and storage medium
CN108648751B (en) Method and device for calling family information offline
CN112312212A (en) Upgrading method of digital television system and related device
US20140208438A1 (en) Download management method and device based on android browser

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