CN108733403B - BIOS setting method and device - Google Patents

BIOS setting method and device Download PDF

Info

Publication number
CN108733403B
CN108733403B CN201810488686.1A CN201810488686A CN108733403B CN 108733403 B CN108733403 B CN 108733403B CN 201810488686 A CN201810488686 A CN 201810488686A CN 108733403 B CN108733403 B CN 108733403B
Authority
CN
China
Prior art keywords
menu item
setting
sol
bios
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
CN201810488686.1A
Other languages
Chinese (zh)
Other versions
CN108733403A (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.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C Information Technologies 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 New H3C Information Technologies Co Ltd filed Critical New H3C Information Technologies Co Ltd
Priority to CN201810488686.1A priority Critical patent/CN108733403B/en
Publication of CN108733403A publication Critical patent/CN108733403A/en
Application granted granted Critical
Publication of CN108733403B publication Critical patent/CN108733403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a BIOS setting method and a device, wherein the method comprises the following steps: establishing a network-based serial port SOL session with a target device; sending a setting instruction to the target device through the SOL session, and controlling a menu item of a Basic Input Output System (BIOS) of the target device to switch; obtaining a message returned by the target equipment in response to the setting instruction; analyzing the message to obtain a feature code representing the current menu item, and determining the current menu item according to the feature code; and if the current menu item is the menu item needing to be set, setting the current menu item through the SOL session.

Description

BIOS setting method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a BIOS setting method and apparatus.
Background
The Basic Input Output System (BIOS) is a program that is fixed to a Read Only Memory (ROM) chip on a server motherboard, and stores the most important Basic Input and Output program of the server, System setting information, a self-test program after power-on, and a System self-start program. Its main function is to provide the bottom most direct hardware setting and control for the computer, which is the interface and bridge between software and hardware.
In order to optimize the performance of the server and adapt to the needs of different software and hardware, a user needs to configure the configurations in the server according to a predetermined application scenario, and when the user purchases a large number of servers, the BIOS in each server is generally set by the following method: the BIOS settings are made for each server in turn by means of tools provided by the BIOS vendor, for example, the AMI vendor may provide SCE tools that can export the BIOS configuration of one server to a file and then import it to another server. However, different tools provided by different BIOS manufacturers require different tools for setting different servers, which results in a large workload for users, and secondly, the SCE must be used under an Operating System (OS), a user needs to install the OS for configuration, and before installing the OS, the user needs to configure BIOS options, and the configuration of some BIOS options may cause the OS not to operate normally, which brings inconvenience to users.
Disclosure of Invention
In view of the above, an object of the present application is to provide a BIOS configuration method and device, which are used to solve the problem of low efficiency in BIOS configuration on a server in the prior art.
In a first aspect, an embodiment of the present application provides a BIOS setting method, applied to a computing device, including:
establishing a network-based serial port SOL session with a target device;
sending a setting instruction to the target device through the SOL session, and controlling a menu item of a Basic Input Output System (BIOS) of the target device to switch;
obtaining a message returned by the target equipment in response to the setting instruction;
analyzing the message to obtain a feature code representing the current menu item, and determining the current menu item according to the feature code;
and if the current menu item is the menu item needing to be set, setting the current menu item through the SOL session.
Optionally, the controlling the menu item of the BIOS of the target device to switch specifically includes:
sending a setting instruction of cursor right movement or cursor left movement to the target equipment through the SOL session, and controlling the switching between adjacent main menu items of a menu of a BIOS of the target equipment;
sending a setting instruction of cursor up or cursor down to the target device through the SOL session, controlling the switching between adjacent submenus of the same main menu of the BIOS menu of the target device, and controlling the switching between adjacent menu items of the same submenu.
Optionally, the setting the current menu item through the SOL session includes:
and sending the setting instruction to the target equipment through the SOL session, switching the current menu item to the setting item of the current menu item, and hitting the target setting item to complete the setting of the current menu item.
Optionally, the setting the current menu item through the SOL session includes:
sending the setting instruction of cursor right movement or carriage return to the target device through the SOL session, and switching from the current menu item to the setting item of the current menu item;
and sending the setting instruction of cursor downward movement or cursor upward movement to the target equipment through the SOL session, and hitting a target setting item in each setting item to complete the setting of the current menu item.
In a second aspect, an embodiment of the present application provides a BIOS setting apparatus, including:
the establishing module is used for establishing a network-based serial port SOL session with the target equipment;
the control module is used for sending a setting instruction to the target equipment through the SOL session and controlling the switching of menu items of a Basic Input Output System (BIOS) of the target equipment;
an obtaining module, configured to obtain a message returned by the target device in response to the setting instruction;
a determining module, configured to analyze the packet to obtain a feature code representing a current menu item, and determine the current menu item according to the feature code
And the setting module is used for setting the current menu item through the SOL session if the current menu item is the menu item needing to be set.
Optionally, the control module is specifically configured to:
sending a setting instruction of cursor right movement or cursor left movement to the target equipment through the SOL session, and controlling the switching between adjacent main menu items of a menu of a BIOS of the target equipment;
sending a setting instruction of cursor up or cursor down to the target device through the SOL session, controlling the switching between adjacent submenus of the same main menu of the BIOS menu of the target device, and controlling the switching between adjacent menu items of the same submenu.
Optionally, the setting module is specifically configured to:
and sending the setting instruction to the target equipment through the SOL session, switching the current menu item to the setting item of the current menu item, and hitting the target setting item to complete the setting of the current menu item.
Optionally, the setting module is further configured to:
sending the setting instruction of cursor right movement or carriage return to the target device through the SOL session, and switching from the current menu item to the setting item of the current menu item;
and sending the setting instruction of cursor downward movement or cursor upward movement to the target equipment through the SOL session, and hitting a target setting item in each setting item to complete the setting of the current menu item.
In a third aspect, an embodiment of the present application provides a computing device including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the steps of the method when executing the computer program.
The BIOS setting method provided by the embodiment of the application establishes an SOL session with a target device, sends a setting instruction to the target device through the SOL session to control the switching of the menu items of the BIOS in the target device, obtains a message returned by the target device, analyzes the message to obtain a feature code representing the current menu item, further determines the current menu item, and sets the current menu item through the SOL session after determining the current menu item as the menu item needing to be set. Therefore, the current menu item is determined by analyzing the feature code obtained from the message acquired from the target equipment, so that the BIOS menu item in the target equipment is set, the probability of BIOS configuration failure of the target equipment is reduced, the efficiency of BIOS configuration of the server is improved, and the user experience is improved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a first flowchart illustrating a BIOS setting method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a BIOS display interface according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of another BIOS display interface provided by the embodiments of the present application;
FIG. 4 is a schematic diagram of a BIOS setting information packet according to an embodiment of the present application;
FIG. 5 is a diagram illustrating the contents of a second configuration file provided by an embodiment of the present application;
FIG. 6 is a second flowchart illustrating a BIOS setting method according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a BIOS setting apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a computing device 800 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 clearer, the technical solutions in 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, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
An embodiment of the present application provides a BIOS setting method, as shown in fig. 1, applied to a computing device, the method including the following steps:
s101, establishing a Serial Over Lan (SOL) session with a target device;
here, the target device includes, but is not limited to, a computing device, a mobile terminal, a portable device, a PC, etc., and the target device in the present application is generally a computing device, such as a server.
Establishing an SOL session with a target device specifically comprises the following steps:
connecting the target equipment according to the authentication information of the target equipment;
judging whether the SOL port of the target equipment is opened or not, and if not, indicating the target equipment to open the SOL port;
and establishing an SOL session with the target equipment through the SOL port.
Here, the authentication information is stored in a preset first configuration file, and generally includes information such as a Baseboard Management Controller (BMC) Address, a BMC user name, and a password, where the BMC Address is generally a BMC Internet Protocol Address (IP Address).
In a specific implementation, the computing device first reads a first configuration file, and obtains BMC login information, such as information of a BMC address, a BMC username, a password, and the like, from the first configuration file, so that the computing device is connected to the target device.
After the computing device is connected to the target device, whether the SOL port in the target device is opened or not is judged, if the SOL port in the target device is not opened, the target device is instructed to open the SOL port, and the method for opening the SOL port has been described in detail in the prior art, and will not be described too much here. Since the SOL has a characteristic that an Intelligent Platform Management Interface (IPMI) specification requires support, the application can perform BIOS setting on servers of a plurality of different manufacturers by opening the SOL port. After opening the SOL port, the computing device may remotely display BIOS menu options on the command line using IPMI tools.
The BIOS menu options displayed by the computing device via the SOL session are passed to the IPMI tool via a network (e.g., an IP network). The message (i.e. the BIOS information data packet) returned by the server is captured through the SOL session, and if the message is encrypted, the computing device needs to further decrypt the encrypted message, which increases the workload of the computing device, so that in order to reduce the workload of the computing device, after the SOL port is opened, the encryption function of the SOL port can be closed.
For example, the encryption function of the SOL port may be turned off by the following command:
ip-U user name-P password raw 0x 060 x 550 x 010 x 10 x00 of ipmitool, exe-I lan plus-H management port
S102, sending a setting instruction to the target equipment through the SOL session, and controlling the switching of a menu item of a Basic Input Output System (BIOS) of the target equipment;
here, the setting command includes a cursor right movement command, a cursor left movement command, a cursor up movement command, a cursor down movement command, an enter command, and the like, the menu items of the BIOS include a Main menu item and corresponding sub menu items, the Main menu item may include a Main menu item, an Advanced menu item, a Platform Configuration menu item, a Socket Configuration menu item, and the like, each Main menu item includes a plurality of sub menu items, for example, the Platform Configuration menu item includes a PCH Configuration menu item, a michellaneous Configuration menu item, a Server ME Configuration menu item, and the like, which may be referred to fig. 2. It should be noted here that the BIOS menu items of different vendors may be different, and should be subject to practical conditions.
The switching by the menu item of the BIOS of the SOL session control target device includes the steps of:
sending the setting instruction of cursor right movement or cursor left movement to the target equipment through the SOL session, and controlling the switching between adjacent main menus of the BIOS of the target equipment; and sending the setting instruction of cursor up-movement or cursor down-movement to the target equipment through the SOL session, controlling the switching between adjacent submenus of the same main menu of the BIOS menu of the target equipment, and controlling the switching between adjacent menu items of the same submenu.
Here, the cursor right movement, the cursor left movement, the cursor up movement, the cursor down movement and the carriage return are represented by ASCII codes, for example, ASCII code corresponding to the cursor right movement is \033\133\104, and sending the setting instruction carrying \033\133\104 to the target device can control the BIOS menu item (here, the main menu item) in the target device to move to the right, where the above example is not taken for each setting instruction.
In a specific implementation, if a setting command sent by the computing device to the target device includes an ASCII code representing a cursor moving to the right or left, the target device may move to the left or right in the BIOS main menu according to the received ASCII code; if the setting command sent by the computing device to the target device includes an ASCII code representing the cursor to move up or down, the target device moves up and down in the submenu items of the current BIOS main menu item according to the received ASCII code. If the setting command sent by the computing device to the target device includes an ASCII code representing a carriage return, the target device will enter a submenu item of the current BIOS main menu item according to the received ASCII code.
For example, the current main menu item in the target device is a Socket Configuration menu item, the cursor stays in a Memory Configuration submenu item, if the target device receives an ASCII code representing that the cursor moves to the right, the BIOS main menu item is moved to the right, the menu item after the movement to the right is a Server Management menu item, if the current main menu item is the Socket Configuration menu item, the target device receives a ASCII code representing that the cursor moves down, then the submenu item of the current main menu item is moved down, the submenu item after the movement is an IIO Configuration submenu item, if the current submenu item is the IIO Configuration submenu item, then, the target device receives an ASCII code representing a carriage return, and at this time, the target device enters the IIO Configuration submenu item.
S103, obtaining the message returned by the target device in response to the setting instruction.
Here, the message generally carries the feature code, the name of the menu item, and the like, and the message may be, but is not limited to, a data message, a hypertext transfer protocol message, and the like, which is not limited in this application.
S104, analyzing the message to obtain a feature code representing the current menu item, and determining the current menu item according to the feature code;
here, the feature code is used to represent a display style of the current menu item, and the display style may include a white word with a blue background, a blue word with a grey background, a white word with a grey background, and the like; the method for parsing the message has been described in detail in the prior art, and will not be described too much here.
When the BIOS option is moved in the target device, the currently operated menu item can be distinguished through the background color or font color of the menu item on the BIOS menu interface, so that the computing device can determine the current menu item in the target device through the feature code and the corresponding menu item name carried in the message returned to the computing device by the target device.
In a specific implementation, taking as an example a BIOS interface of a main menu item after switching a BIOS menu item from a Platform Configuration menu item to the menu item, referring to fig. 3, a message obtained by a computing device includes: ASCII code [ 0; 37; 44m, the corresponding feature code is 5b 303 b 33373 b 34346 d, the display style is blue-bottom white, and the corresponding menu item names are Main, Advanced and Platform Configuration; ASCII code [ 0; 34; 47m corresponds to feature code 5b 303 b 33343 b 34376 d with a grey blue character, and the name of the corresponding menu item is Socket Configuration, as shown in fig. 4. The display style of the main menu where the cursor stays is grey blue, the corresponding submenu item is grey white, and the submenu item corresponding to the Socket Configuration menu item can be determined to be the Memory Configuration menu item as the current menu item through the feature code obtained by analysis.
And S105, if the current menu item is the menu item needing to be set, setting the current menu item through the SOL session.
Setting the current menu item through the SOL session, comprising the following steps:
and sending the setting instruction to the target equipment through the SOL session, switching the current menu item to the setting item of the current menu item, and hitting the target setting item to complete the setting of the current menu item.
Specifically, the setting the current menu item through the SOL session includes:
sending a setting instruction of cursor right movement or carriage return to the target equipment through the SOL session, and switching from the current menu item to a setting item of the current menu item;
and sending the setting instruction of cursor downward movement or cursor upward movement to the target equipment through the SOL session, and hitting a target setting item in each setting item to complete the setting of the current menu item.
In a specific implementation, after the current menu item is determined, the ASCII code representing carriage return or cursor right movement is sent to the target device, the target device is controlled to be switched to the setting item of the current menu item from the current menu item, and further, the computing device sends the ASCII code representing cursor up movement or cursor down movement to the target device, and the setting item of the current menu item is switched to the target setting item.
For example, if the setting item corresponding to the PCIe PLL SSC menu item is Disable, the target setting item of the PCIe PLL SSC menu item is Auto, and the PCIe PLL SSC menu item is switched from the setting item Disable to the target setting item Auto by moving up or down the cursor.
It should be noted that, if the setting item of the current menu item has a dependent menu item, the second configuration file stores information of the dependent menu item in advance, and when the setting item of the current menu item is set, the setting item of the dependent menu item of the setting item needs to be set.
For example, the current main menu item is a Platform Configuration menu item, a sub-menu item in the Platform Configuration menu item is a michelsaneous Configuration menu item, the michelsaneous Configuration menu item includes a Debug Mode menu item, and the Debug Mode menu item is a dependent item of the SOL Mode menu item, that is, if a setting item of the Debug Mode menu item is Disabled, the SOL Mode menu item is not displayed in the BIOS interface, and only after the setting item of the Debug Mode menu item is set to Enabled, the SOL Mode menu item is displayed in the sub-menu of the michelsaneous Configuration menu item, and the SOL Mode menu item is further set.
The computing device stores a first configuration file, and also stores a second configuration file in advance, where the second configuration file includes setting information of a BIOS menu item, and the second configuration file may be preset by a user or a file exported from a server, and the application is not limited thereto.
The second configuration file may include a plurality of main menu items and setting items, each main menu item includes a plurality of sub-menu items, and each sub-menu item includes a sub-menu item. For example, with the Platform Configuration menu item as a main menu item, the main menu item includes a PCH Configuration menu item, a Miscellaneous Configuration menu item, the PCH Configuration menu item includes a PCH Devices menu item, the PCH Devices menu item includes a PCIe PLL SSC menu item, and a setting item corresponding to the PCIe PLL SSC menu item is Auto, which can refer to fig. 5.
In a specific implementation, if the setting information of the BIOS menu item included in the second configuration file is: the method comprises the steps that a main menu item Platform Configuration is adopted, a sub-menu item corresponding to the main menu item is a PCH Configuration menu item, a sub-menu item corresponding to the PCH Configuration menu item is a PCH Devices menu item, a sub-menu item corresponding to the PCH Devices menu item is a PCIe PLL SSC menu item, the PCIe PLL SSC menu item is also a setting item, and a value to be set is Auto.
In the prior art, an IPMI command is sent to a BMC of a server, a BIOS menu item is set by the BMC, and if the IPMI command includes a BIOS menu item that the server cannot set, the server cannot complete the setting. According to the method and the device, the BIOS menu items in the target device are controlled to be switched through the SOL session, the message returned by the target device is captured, the BIOS menu items in the target device are set, the probability of BIOS configuration failure of the target device is reduced, and the user experience is improved.
Referring to fig. 6, in one embodiment, the first configuration file of the computing device stores authentication information (such as a BMC address and a password) of the target device, and after acquiring the first configuration file and the second configuration file, the computing device includes the following steps:
s601, connecting the target equipment according to the BMC address and the password of the target equipment in the first configuration file, and opening an SOL port in the target equipment;
s602, judging whether an SOL port in the target equipment is opened or not, if so, executing S603; if not, S601 is executed.
Here, if the start of the SOL port in the target device fails, the log file including the SOL port information of which the start fails is saved, so that the user can analyze the cause of the start failure of the SOL port through the log file, and the process returns to execute step S601.
S603, closing the encryption function of the SOL port;
s604, acquiring and analyzing a BIOS information data packet of the target equipment through the SOL session to obtain a current menu item; the BIOS information data packet comprises the feature codes and the corresponding menu item names, and the current menu item can be determined through the feature codes.
For example, the current main menu item obtained by analyzing the BIOS information packet is a Socket Configuration menu item, and the corresponding sub-menu item is a Memory Configuration menu item.
S605, comparing the current menu item with the BIOS menu item in the second configuration file. If the current menu item is not consistent with the BIOS menu item in the second configuration file, executing S606; if the current menu item is consistent with the BIOS menu item in the second configuration file, S607 is executed.
Continuing with the example in step S604, the BIOS menu item in the second configuration file comprises: the method is a main menu item Platform Configuration, the main menu item comprises a PCH Configuration menu item and a Miscellaneous Configuration menu item, the PCH Configuration menu item comprises a PCH Devices menu item, the PCH Devices menu item comprises a PCIe PLL SSC menu item, and the setting item corresponding to the PCIe PLL SSC menu item is Auto. After comparing the Socket Configuration menu item with the Platform Configuration menu item, it is determined that the current menu item is inconsistent with the corresponding BIOS menu item in the second Configuration file, and step S606 is performed.
S606, sending a setting instruction to the target device, and returning to execute S604 after sending the setting instruction to the target device.
In a specific implementation, the computing device sends a setting instruction to the target device according to a preset rule.
For example, continuing the example in step S605, the computing device sends a setting instruction for right movement of the cursor to the target device, and after the main menu item in the target device is moved to the right, step S604 is executed, repeating the steps of S604 to S606 until the cursor is moved to the PCIe PLL SSC menu item in the PCH Devices menu item in the PCH Configuration menu item in the Platform Configuration menu item.
S607, setting the current menu item through the SOL session.
Continuing with the example in step S606, the current menu item is the PCIe PLL SSC menu item, a setting instruction (cursor up or cursor down) is sent to the target device, and the setting item corresponding to the PCIe PLL SSC menu item is set to AUTO. Here, the setting instruction for setting the setting item transmitted to the target device according to the preset cursor movement rule, for example, only the cursor up-movement setting instruction in the transmitted setting command.
When the authentication information of the plurality of target devices is stored in the first profile, the steps of S601 to S607 may be performed for each target device until the setting of each target device in the first profile is completed. Here, the target devices in the first configuration file generally belong to the same manufacturer, and if the stored target devices belong to different manufacturers, BIOS menu items that need to be set in the target devices of different manufacturers may be different, and the BIOS menu items that need to be set and are stored in the second configuration file may not be common to different manufacturers, which may result in a failure in batch configuration of the target devices.
An embodiment of the present application provides a BIOS setting apparatus, as shown in fig. 7, the apparatus includes:
the establishing module 71 is configured to establish a network-based serial SOL session with a target device;
a control module 72, configured to send a setting instruction to the target device through the SOL session, and control a menu item of a basic input output system BIOS of the target device to switch;
an obtaining module 73, configured to obtain a message returned by the target device in response to the setting instruction;
a determining module 74, configured to analyze the packet to obtain a feature code representing a current menu item, and determine the current menu item according to the feature code
A setting module 75, configured to set the current menu item through the SOL session if the current menu item is a menu item that needs to be set.
Optionally, the control module 72 is specifically configured to:
sending a setting instruction of cursor right movement or cursor left movement to the target equipment through the SOL session, and controlling the switching between adjacent main menu items of a menu of a BIOS of the target equipment;
sending a setting instruction of cursor up or cursor down to the target device through the SOL session, controlling the switching between adjacent submenus of the same main menu of the BIOS menu of the target device, and controlling the switching between adjacent menu items of the same submenu.
Optionally, the setting 75 module is specifically configured to:
and sending the setting instruction to the target equipment through the SOL session, switching the current menu item to the setting item of the current menu item, and hitting the target setting item to complete the setting of the current menu item.
Optionally, the setting module 75 is further configured to:
sending the setting instruction of cursor right movement or carriage return to the target device through the SOL session, and switching from the current menu item to the setting item of the current menu item;
and sending the setting instruction of cursor downward movement or cursor upward movement to the target equipment through the SOL session, and hitting a target setting item in each setting item to complete the setting of the current menu item.
As shown in fig. 8, an embodiment of the present application provides a computing device 800 for executing the BIOS setting method in fig. 1, the device includes a memory 801, a processor 802, and a computer program stored on the memory 801 and executable on the processor 802, wherein the processor 802 implements the steps of the BIOS setting method when executing the computer program.
Specifically, the memory 801 and the processor 802 may be general memories and general processors, which are not specifically limited herein, and when the processor 802 runs a computer program stored in the memory 801, the BIOS setting method may be executed, so as to solve the problem of low efficiency in configuring a BIOS for a server in the prior art. Therefore, the current menu item is determined by analyzing the feature code obtained from the message acquired from the target equipment, so that the BIOS menu item in the target equipment is set, the probability of BIOS configuration failure of the target equipment is reduced, the efficiency of BIOS configuration of the server is improved, and the user experience is improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the present disclosure, which should be construed in light of the above teachings. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A BIOS setting method applied to a computing device comprises the following steps:
establishing a network-based serial port SOL session with a target device;
sending a setting instruction to the target device through the SOL session, and controlling a menu item of a Basic Input Output System (BIOS) of the target device to switch, wherein the setting instruction comprises an ASCII (American standard code for information interchange) code representing a cursor movement rule;
obtaining a message returned by the target equipment in response to the setting instruction;
analyzing the message to obtain a feature code representing the current menu item, and determining the current menu item according to the feature code, wherein the feature code is used for representing the display style of the current menu item;
if the current menu item is a menu item needing to be set, setting the current menu item through the SOL session;
when the computing device stores a first configuration file, the first configuration file stores authentication information of a target device, the authentication information includes a BMC address and a password, and the establishing of a network-based serial port SOL session with the target device includes:
connecting the target equipment according to the BMC address and the password of the target equipment in the first configuration file;
judging whether an SOL port in the target equipment is opened or not; if so, closing the encryption function of the SOL port, otherwise, opening the SOL port in the target equipment, and closing the encryption function of the SOL port;
establishing an SOL session with the target device through the SOL port;
when the computing device stores a second configuration file, the second configuration file comprises setting information of a BIOS menu item, and after establishing a network-based serial port SOL session with a target device, the setting method further comprises:
acquiring and analyzing a BIOS information data packet of the target equipment through the SOL session to obtain a current menu item; the BIOS information data packet comprises feature codes and corresponding menu item names, and the current menu item can be determined through the feature codes;
comparing the current menu item with the BIOS menu item in the second configuration file to determine whether the current menu item and the BIOS menu item are consistent;
if the current menu item is inconsistent with the preset menu item, sending a setting instruction to the target equipment according to a preset rule, and after the setting instruction is sent to the target equipment, returning to execute the BIOS information data packet obtained through the SOL session and analyzed by the target equipment to obtain the current menu item;
and when the current menu item is consistent with the current menu item, setting the current menu item through the SOL session.
2. The method of claim 1, wherein the controlling the menu item of the BIOS of the target device to switch comprises:
sending a setting instruction of cursor right movement or cursor left movement to the target equipment through the SOL session, and controlling the switching between adjacent main menu items of a menu of a BIOS of the target equipment;
sending a setting instruction of cursor up or cursor down to the target device through the SOL session, controlling the switching between adjacent submenus of the same main menu of the BIOS menu of the target device, and controlling the switching between adjacent menu items of the same submenu.
3. The method of claim 1, wherein said setting said current menu item through said SOL session comprises:
and sending the setting instruction to the target equipment through the SOL session, switching the current menu item to the setting item of the current menu item, and hitting the target setting item to complete the setting of the current menu item.
4. The method of claim 3, wherein said setting said current menu item through said SOL session comprises:
sending the setting instruction of cursor right movement or carriage return to the target device through the SOL session, and switching from the current menu item to the setting item of the current menu item;
and sending the setting instruction of cursor downward movement or cursor upward movement to the target equipment through the SOL session, and hitting a target setting item in each setting item to complete the setting of the current menu item.
5. A BIOS setting apparatus, comprising:
the establishing module is used for establishing a network-based serial port SOL session with the target equipment;
the control module is used for sending a setting instruction to the target device through the SOL session and controlling the switching of menu items of a Basic Input Output System (BIOS) of the target device, wherein the setting instruction comprises an ASCII code representing a cursor movement rule;
an obtaining module, configured to obtain a message returned by the target device in response to the setting instruction;
the determining module is used for analyzing the message to obtain a feature code representing the current menu item and determining the current menu item according to the feature code, wherein the feature code is used for representing the display style of the current menu item;
the setting module is used for setting the current menu item through the SOL session if the current menu item is the menu item needing to be set;
when a first configuration file is stored in the computing device, authentication information of the target device is stored in the first configuration file, the authentication information includes a BMC address and a password, and when the establishing module is used for establishing a network-based serial port SOL session with the target device, the establishing module is used for:
connecting the target equipment according to the BMC address and the password of the target equipment in the first configuration file;
judging whether an SOL port in the target equipment is opened or not; if so, closing the encryption function of the SOL port, otherwise, opening the SOL port in the target equipment, and closing the encryption function of the SOL port;
establishing an SOL session with the target device through the SOL port;
when the computing device stores a second configuration file, the second configuration file includes setting information of a BIOS menu item, and after the establishing module is configured to establish a network-based serial port SOL session with a target device, the setting apparatus is further configured to:
acquiring and analyzing a BIOS information data packet of the target equipment through the SOL session to obtain a current menu item; the BIOS information data packet comprises feature codes and corresponding menu item names, and the current menu item can be determined through the feature codes;
comparing the current menu item with the BIOS menu item in the second configuration file to determine whether the current menu item and the BIOS menu item are consistent;
if the current menu item is inconsistent with the preset menu item, sending a setting instruction to the target equipment according to a preset rule, and after the setting instruction is sent to the target equipment, returning to execute the BIOS information data packet obtained through the SOL session and analyzed by the target equipment to obtain the current menu item;
when consistent, the current menu item is set through the SOL session.
6. The apparatus of claim 5, wherein the control module is specifically configured to:
sending a setting instruction of cursor right movement or cursor left movement to the target equipment through the SOL session, and controlling the switching between adjacent main menu items of a menu of a BIOS of the target equipment;
sending a setting instruction of cursor up or cursor down to the target device through the SOL session, controlling the switching between adjacent submenus of the same main menu of the BIOS menu of the target device, and controlling the switching between adjacent menu items of the same submenu.
7. The apparatus of claim 5, wherein the setup module is specifically configured to:
and sending the setting instruction to the target equipment through the SOL session, switching the current menu item to the setting item of the current menu item, and hitting the target setting item to complete the setting of the current menu item.
8. The apparatus of claim 7, wherein the setup module is further to:
sending the setting instruction of cursor right movement or carriage return to the target device through the SOL session, and switching from the current menu item to the setting item of the current menu item;
and sending the setting instruction of cursor downward movement or cursor upward movement to the target equipment through the SOL session, and hitting a target setting item in each setting item to complete the setting of the current menu item.
9. A computing device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of any of the preceding claims 1 to 4 are implemented when the computer program is executed by the processor.
CN201810488686.1A 2018-05-21 2018-05-21 BIOS setting method and device Active CN108733403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810488686.1A CN108733403B (en) 2018-05-21 2018-05-21 BIOS setting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810488686.1A CN108733403B (en) 2018-05-21 2018-05-21 BIOS setting method and device

Publications (2)

Publication Number Publication Date
CN108733403A CN108733403A (en) 2018-11-02
CN108733403B true CN108733403B (en) 2022-04-08

Family

ID=63937886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810488686.1A Active CN108733403B (en) 2018-05-21 2018-05-21 BIOS setting method and device

Country Status (1)

Country Link
CN (1) CN108733403B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109800029A (en) * 2019-01-02 2019-05-24 郑州云海信息技术有限公司 Batch sets method, apparatus, terminal and the storage medium of server B IOS parameter
CN110851057A (en) * 2019-11-21 2020-02-28 西安易朴通讯技术有限公司 Method and device for configuring configuration options of BIOS
CN113609348B (en) * 2021-06-24 2023-08-08 苏州浪潮智能科技有限公司 Method, device, equipment and medium for retrieving BIOS graphical interface
CN113986361B (en) * 2021-10-21 2024-02-09 山东云海国创云计算装备产业创新中心有限公司 Out-of-band setting method, system and related device for BIOS options

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642101A (en) * 2004-01-15 2005-07-20 英业达股份有限公司 Omnirange remote control system and method
CN101419502A (en) * 2007-10-22 2009-04-29 株式会社东芝 Information processing device and method for processing data
CN102880479A (en) * 2011-07-15 2013-01-16 联想(北京)有限公司 Method and device for remotely modifying basic input output system (BIOS) attribute parameters
CN103186392A (en) * 2011-12-29 2013-07-03 英业达科技有限公司 Computer system
CN103473141A (en) * 2013-09-13 2013-12-25 浪潮电子信息产业股份有限公司 Method for out-of-band check and modification of BIOS (basic input/output system) setting options
CN104363117A (en) * 2014-11-04 2015-02-18 浪潮电子信息产业股份有限公司 IPMI (intelligent platform management interface) based method for serial port redirection
CN107122324A (en) * 2017-04-20 2017-09-01 紫光华山信息技术有限公司 A kind of method for message transmission and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7337309B2 (en) * 2003-03-24 2008-02-26 Intel Corporation Secure online BIOS update schemes
TWI396135B (en) * 2009-02-12 2013-05-11 Inventec Corp Method for setting basic input/output system
CN103412769B (en) * 2013-07-25 2017-11-21 华为技术有限公司 External card parameter configuration, equipment and system
CN105005471A (en) * 2015-06-24 2015-10-28 北京百度网讯科技有限公司 Method, device, server and system for modifying configuration parameters of BIOS
CN106681738A (en) * 2017-01-05 2017-05-17 郑州云海信息技术有限公司 Method of modifying BIOS current values of Rack server based on Map String
CN107861760A (en) * 2017-11-24 2018-03-30 联想(北京)有限公司 BIOS collocation method, terminal and server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642101A (en) * 2004-01-15 2005-07-20 英业达股份有限公司 Omnirange remote control system and method
CN101419502A (en) * 2007-10-22 2009-04-29 株式会社东芝 Information processing device and method for processing data
CN102880479A (en) * 2011-07-15 2013-01-16 联想(北京)有限公司 Method and device for remotely modifying basic input output system (BIOS) attribute parameters
CN103186392A (en) * 2011-12-29 2013-07-03 英业达科技有限公司 Computer system
CN103473141A (en) * 2013-09-13 2013-12-25 浪潮电子信息产业股份有限公司 Method for out-of-band check and modification of BIOS (basic input/output system) setting options
CN104363117A (en) * 2014-11-04 2015-02-18 浪潮电子信息产业股份有限公司 IPMI (intelligent platform management interface) based method for serial port redirection
CN107122324A (en) * 2017-04-20 2017-09-01 紫光华山信息技术有限公司 A kind of method for message transmission and device

Also Published As

Publication number Publication date
CN108733403A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
US11815991B2 (en) Systems and methods to reprogram mobile devices including a cross-matrix controller to port connection
CN108733403B (en) BIOS setting method and device
EP3382942A1 (en) Network service configuration method and network management device
CN111541956B (en) Optical port self-adaption method, device, switch and computer readable storage medium
US20210306242A1 (en) Non-intrusive it device monitoring and performing action based on it device state
US11283689B2 (en) Method for managing multiple servers and device employing method
CN110430280B (en) Account automatic login method and system, storage medium and cloud desktop server
WO2020000758A1 (en) Server acceptance method and apparatus, computer device, and storage medium
CN108924219B (en) Method, device and system for remotely operating terminal
CN113626133B (en) Virtual machine control method, device, equipment and computer readable storage medium
CN112996020B (en) Bluetooth-based automatic test method and device and Bluetooth test terminal
CN113064643A (en) Method, system and medium for instantly-effective modification of BIOS set value
CN109688150A (en) A kind of multi-platform account interoperability methods and device
CN111651232A (en) One-machine multi-control method, device and system and electronic equipment
CN111078424A (en) Information interaction method and device, computer equipment and storage medium
CN113407469A (en) Parameter configuration method and device, storage medium and electronic device
US11941127B2 (en) Firmware password management
CN116700751A (en) Upgrading method of server firmware and computing device
US20220046064A1 (en) Gateway action framework
US11757976B2 (en) Unified application management for heterogeneous application delivery
WO2017096889A1 (en) Method and device for upgrading and downgrading system
CN111447147A (en) Router, detachable intelligent screen, routing equipment and routing configuration method
CN111031145A (en) Remote assistance method and system based on intelligent terminal
CN116827604B (en) Application login control method, system, terminal and storage medium
CN116192603A (en) Out-of-band management method and device suitable for servers of different manufacturers

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310000 11/F, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Xinhua Sanxin Information Technology Co., Ltd.

Address before: 310000 11/F, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant before: Huashan Information Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant