CN116860339A - Method, device and equipment for starting server based on MAC address information - Google Patents
Method, device and equipment for starting server based on MAC address information Download PDFInfo
- Publication number
- CN116860339A CN116860339A CN202310825901.3A CN202310825901A CN116860339A CN 116860339 A CN116860339 A CN 116860339A CN 202310825901 A CN202310825901 A CN 202310825901A CN 116860339 A CN116860339 A CN 116860339A
- Authority
- CN
- China
- Prior art keywords
- server
- information
- address information
- delay time
- control address
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 85
- 238000004891 communication Methods 0.000 claims abstract description 64
- 238000012545 processing Methods 0.000 claims abstract description 53
- 238000013507 mapping Methods 0.000 claims description 105
- 230000003993 interaction Effects 0.000 claims description 52
- 230000004044 response Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 4
- 239000000203 mixture Substances 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000012512 characterization method Methods 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000011835 investigation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
- Small-Scale Networks (AREA)
Abstract
The application provides a method, a device and equipment for starting a server based on MAC address information, which are applied to a baseboard management controller in the server, wherein the baseboard management controller is provided with a network interface, and the method comprises the following steps: responding to the trigger instruction, initializing and obtaining the media access control address information of the network interface; the trigger instruction is used for indicating the server to perform initialization processing; determining the delay time of the server according to the media access control address information; the delay time is used for indicating the waiting time of the server; after determining that the delay time of the server is waiting for the duration characterized by the delay time, the server is started. The method can realize automatic batch starting of the server without depending on control of other management equipment except the server, reduce hardware cost required by batch starting of the server and reduce occupation of communication resources in the starting process of the server.
Description
Technical Field
The present application relates to the field of server technologies, and in particular, to a method, an apparatus, and a device for starting a server based on MAC address information.
Background
With the continuous development of computer technology, the use of servers and application scenarios are becoming more and more widespread. When a plurality of servers in one machine room are started at the same time, a surge phenomenon is easy to occur, and then devices in the servers are easy to damage, or power-down protection of the servers is triggered, so that the servers cannot be started.
In the related art, in order to avoid the problem that a plurality of servers are started at the same time, a management device is provided for sending a startup instruction to the plurality of servers in a time-sharing manner, so that the plurality of servers can be started in a peak-shifting manner.
However, the above manner requires additional management equipment to perform control of server startup, which is easy to cause waste of equipment resources and has high cost.
Disclosure of Invention
The method, the device and the equipment for starting the server based on the MAC address information are used for solving the problems that in the related art, the server is started in batches and needs additional management equipment for control, and the cost of required hardware is high.
In a first aspect, the present application provides a method for starting a server based on MAC address information, where the method is applied to a baseboard management controller in the server, where the baseboard management controller is provided with a network interface, and the method includes:
Responding to the trigger instruction, initializing and obtaining the media access control address information of the network interface; the trigger instruction is used for indicating the server to perform initialization processing;
determining the delay time of the server according to the media access control address information; the delay time is used for indicating the waiting time of the server;
and starting the server after determining the duration characterized by the delay time of the waiting server.
In one possible implementation, determining the delay time of the server according to the mac address information includes:
determining a delay time of the server according to the media access control address information and the first mapping information; wherein the first mapping information characterizes a correspondence between the media access control address information and the delay time; the first mapping information is determined based on the interaction information of the servers and the preset quantity; the interaction information is used for representing communication record information between every two servers; the preset number characterizes the maximum number of servers started in the same batch.
In one possible implementation manner, the interaction information specifically includes: at least two items of communication address information of the server, frequency information corresponding to the server, communication time corresponding to the server and information of equipment to be communicated;
Wherein, the communication address information characterizes the media access control address information of other servers which are in communication interaction with the server in the last working process of the server;
the frequency information represents the times of communication interaction between the server and the rest servers in a preset period;
the communication time characterizes time-consuming time duration of communication interaction between the server and the rest servers in a preset period;
and the equipment information to be communicated characterizes the media access control address information of the server which needs to be communicated and interacted after the server is started up.
In one possible implementation, determining the delay time of the server according to the mac address information includes:
determining the delay time of the server according to the media access control address information, the second mapping information and the third mapping information; wherein the second mapping information characterizes a correspondence between the media storage control address information and the grouping information of the server; the third mapping information is used for representing the startup interval of the server of the adjacent group information.
In one possible implementation, determining the delay time of the server according to the mac address information includes:
Determining delay time of the server according to the media access control address information, the equipment number information, the fourth mapping information and the fifth mapping information;
the equipment quantity information represents the quantity of servers which need to be started at this time; the fourth mapping information includes a plurality of combined data; the combined data corresponds to the equipment quantity information one by one; the combination data characterizes the corresponding relation between the media storage control address information and the grouping information of the server under the equipment quantity information; the fifth mapping information is used for representing the startup interval of the server between the grouping information.
In one possible implementation, determining the delay time of the server according to the mac address information includes:
determining delay time of the server according to the media access control address information, the actual total number, the sixth mapping information and the seventh mapping information;
wherein the actual total number characterizes the total number of packets divided by the server at the time of the start; the sixth mapping information includes a plurality of combination information; the combined information corresponds to the actual total number one by one; the combination information characterizes the corresponding relation between the media storage control address information and the grouping information of the server under the actual total number; the seventh mapping information is used for characterizing a startup interval of the server between the grouping information.
In one possible implementation, after determining that the delay time of the server is waiting for the duration characterized by the delay time, starting the server includes:
after determining that the time length represented by the delay time of the server is waited, sending a starting instruction to a central processing unit in the server; and the starting instruction is used for indicating the central processing unit to power on and start the server.
In one possible implementation, the method further includes:
in response to the server start failure, re-controlling the server start;
responding to the times of the server start failure exceeding a preset threshold value, and outputting alarm information; wherein the alert information includes a time at which the server attempted to start.
In a second aspect, the present application provides a server start-up device based on MAC address information, the device being applied to a baseboard management controller in a server, the baseboard management controller being provided with a network interface, the device comprising:
the first processing unit is used for responding to the trigger instruction and carrying out initialization processing;
an acquisition unit, configured to acquire media access control address information of the network interface; the trigger instruction is used for indicating the server to perform initialization processing;
A determining unit, configured to determine a delay time of the server according to the mac address information; the delay time is used for indicating the waiting time of the server;
and the second processing unit is used for starting the server after determining the duration characterized by the delay time waiting for the server.
In a possible implementation manner, the determining unit is specifically configured to:
determining a delay time of the server according to the media access control address information and the first mapping information; wherein the first mapping information characterizes a correspondence between the media access control address information and the delay time; the first mapping information is determined based on the interaction information of the servers and the preset quantity; the interaction information is used for representing communication record information between every two servers; the preset number characterizes the maximum number of servers started in the same batch.
In one possible implementation manner, the interaction information specifically includes: at least two items of communication address information of the server, frequency information corresponding to the server, communication time corresponding to the server and information of equipment to be communicated;
Wherein, the communication address information characterizes the media access control address information of other servers which are in communication interaction with the server in the last working process of the server;
the frequency information represents the times of communication interaction between the server and the rest servers in a preset period;
the communication time characterizes time-consuming time duration of communication interaction between the server and the rest servers in a preset period;
and the equipment information to be communicated characterizes the media access control address information of the server which needs to be communicated and interacted after the server is started up.
In a possible implementation manner, the determining unit is specifically configured to:
determining the delay time of the server according to the media access control address information, the second mapping information and the third mapping information; wherein the second mapping information characterizes a correspondence between the media storage control address information and the grouping information of the server; the third mapping information is used for representing the startup interval of the server of the adjacent group information.
In a possible implementation manner, the determining unit is specifically configured to:
determining delay time of the server according to the media access control address information, the equipment number information, the fourth mapping information and the fifth mapping information;
The equipment quantity information represents the quantity of servers which need to be started at this time; the fourth mapping information includes a plurality of combined data; the combined data corresponds to the equipment quantity information one by one; the combination data characterizes the corresponding relation between the media storage control address information and the grouping information of the server under the equipment quantity information; the fifth mapping information is used for representing the startup interval of the server between the grouping information.
In a possible implementation manner, the determining unit is specifically configured to:
determining delay time of the server according to the media access control address information, the actual total number, the sixth mapping information and the seventh mapping information;
wherein the actual total number characterizes the total number of packets divided by the server at the time of the start; the sixth mapping information includes a plurality of combination information; the combined information corresponds to the actual total number one by one; the combination information characterizes the corresponding relation between the media storage control address information and the grouping information of the server under the actual total number; the seventh mapping information is used for characterizing a startup interval of the server between the grouping information.
In one possible implementation, the second processing unit is specifically configured to:
after determining that the time length represented by the delay time of the server is waited, sending a starting instruction to a central processing unit in the server; and the starting instruction is used for indicating the central processing unit to power on and start the server.
In one possible implementation, the apparatus further includes:
the control unit is used for responding to the server starting failure and controlling the server starting again;
the output unit is used for responding to the fact that the number of times of the start failure of the server exceeds a preset threshold value, and outputting alarm information; wherein the alert information includes a time at which the server attempted to start.
In a third aspect, the present application provides an electronic device comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any one of the first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for performing the method of any of the first aspects when executed by a processor.
In a fifth aspect, the application provides a computer program product comprising a computer program which, when executed by a processor, implements the method of any of the first aspects.
In a sixth aspect, the present application provides a baseboard management controller for implementing the method of any one of the first aspects.
In a seventh aspect, the present application provides a server comprising a baseboard management controller; wherein the baseboard management controller is configured to implement the method of any one of the first aspects.
The application provides a method, a device and equipment for starting a server based on MAC address information, which are applied to a baseboard management controller in the server, wherein the baseboard management controller is provided with a network interface, and the method comprises the following steps: responding to the trigger instruction, initializing and obtaining the media access control address information of the network interface; the trigger instruction is used for indicating the server to perform initialization processing; determining the delay time of the server according to the media access control address information; the delay time is used for indicating the waiting time of the server; and starting the server after determining the duration characterized by the delay time of the waiting server. In this embodiment, when the server is started, the baseboard management controller in the server will perform an initialization process on the server first, and after the initialization process, the delay time corresponding to the server is determined by obtaining the media access control address information corresponding to the network interface of the baseboard management controller, so as to realize automatic batch starting of the server, without relying on the control of other management devices except the server, reduce the hardware cost required by batch starting of the server, and reduce the occupation of communication resources in the starting process of the server.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flow chart of a server starting method based on MAC address information according to an embodiment of the present application;
fig. 2 is a flowchart of another method for starting up a server based on MAC address information according to an embodiment of the present application;
fig. 3 is a flowchart of another method for starting up a server based on MAC address information according to an embodiment of the present application;
fig. 4 is a flowchart of another method for starting up a server based on MAC address information according to an embodiment of the present application;
fig. 5 is a schematic flow chart of a server startup provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a server starting device based on MAC address information according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another server starting device based on MAC address information according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application.
At present, with the continuous popularization of electronic devices such as computers, the generated data is also increasing, and the number of required servers is also increasing. In the process of starting up the server, if a plurality of readers deployed in the same machine room or position are started up simultaneously, a surge phenomenon is easy to occur, and further a phenomenon that the server cannot be started up normally is caused, for example, the server cannot be started up due to power-down protection of the server.
In the related art, in order to avoid the problem that a plurality of servers are started at the same time, a management device is provided for sending a startup instruction to the plurality of servers in a time-sharing manner, so that the plurality of servers can be started in a peak-shifting manner. For example, the management device may randomly one corresponding random number for each server based on a random number generation algorithm provided in the related art. Then, a grouping mode of servers corresponding to the random numbers is further achieved through a random number grouping method, and a plurality of servers are further controlled to achieve starting of grouping batch. However, in the above-described method, a management device other than the server needs to be added for control.
The method is applied to the baseboard management controller contained in the server, and after the initialization processing of the server is finished, the MAC address (Media Access Control Address, MAC for short) of the network interface configured by the baseboard management controller in the server corresponds to the starting delay time of the server so as to ensure that the server can automatically realize delayed starting without additional device control.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a flow chart of a server starting method based on MAC address information according to an embodiment of the present application, as shown in fig. 1, the method includes the following steps:
s101, responding to a trigger instruction, carrying out initialization processing and acquiring media access control address information of a network interface; the trigger instruction is used for indicating the server to perform initialization processing.
The server startup method provided in the present embodiment is applied to a baseboard management controller (Baseboard management controller, abbreviated as BMC) provided in a server, for example. And the baseboard management controller is also provided with a network interface so that the server can access the network to communicate with other devices.
When the baseboard management controller in the server receives a trigger instruction for instructing the server to perform initialization processing, the baseboard management controller performs the initialization processing on the server to complete the basic configuration before the server is started. The triggering instruction may be triggered by monitoring that the voltage value of the power supply signal corresponding to the baseboard management controller reaches the power supply threshold, or may be broadcasted by any one server of the plurality of servers, which is not particularly limited in this embodiment.
And after the initialization process of the baseboard management controller is finished, the media access control address information of the network interface corresponding to the baseboard management controller is further acquired. It should be noted that the network interface has its own unique corresponding mac address information.
In addition, the manner of acquiring the mac address information of the network interface by the baseboard management controller in this embodiment is not particularly limited, for example, when the network interface stores the corresponding mac address information therein, the mac address information may be acquired by accessing the network interface, or may be acquired from the other devices storing the mac address information.
S102, determining the delay time of a server according to the media access control address information; the delay time is used for indicating the waiting time of the server.
In this embodiment, when the baseboard management controller obtains the media access control address information corresponding to the server; further may be based on the medium access control address information; the delay time of how long the server needs to wait to perform the startup process is determined.
In one example, the delay time corresponding to the server may be determined according to a preset lookup table. Wherein, the delay time corresponding to the media access control address information of each baseboard management controller is stored in the comparison table. In the actual starting process, the baseboard management controller can directly perform table look-up processing according to the acquired media access control address information.
In one example, when the preset lookup table is set, in a possible implementation manner, the delay time corresponding to each piece of media access control address information is directly written; alternatively, in the preset comparison table, the delay time corresponding to the last several characters of the mac address information may be stored, that is, the delay time corresponding to the server corresponding to the mac address information having the same last several characters is the same.
S103, starting the server after determining the duration represented by the delay time of the server.
For example, after the baseboard management controller determines the delay time corresponding to the server, the baseboard management controller performs timing processing. After the baseboard management controller determines that the determined delay time has been waited, the server is further controlled to start.
It can be understood that in this embodiment, when the server is started, the baseboard management controller in the server will perform an initialization process on the server first, and after the initialization process, the delay time corresponding to the server is determined by obtaining the media access control address information corresponding to the network interface of the baseboard management controller, so as to realize automatic batch starting of the server, without relying on control of other management devices except the server, reduce hardware cost required by batch starting of the server, and reduce occupation of communication resources in the starting process of the server.
Fig. 2 is a flowchart of another method for starting up a server based on MAC address information according to an embodiment of the present application, as shown in fig. 2, the method includes the following steps:
S201, responding to a trigger instruction, carrying out initialization processing and acquiring media access control address information of a network interface; the trigger instruction is used for indicating the server to perform initialization processing;
the method provided in the present embodiment is exemplarily applied to a baseboard management controller provided in a server. In addition, the baseboard management controller is also provided with a network interface. The specific principle of step S201 in this embodiment may refer to step S101, and will not be described herein.
S202, determining delay time of a server according to media access control address information and first mapping information; wherein the first mapping information characterizes a correspondence between the media access control address information and the delay time; the first mapping information is determined based on the interaction information of the servers and the preset quantity; the interaction information is used for representing communication record information between every two servers; the preset number characterizes the maximum number of servers started in the same batch.
In this embodiment, when the baseboard management controller determines the corresponding delay time according to the acquired mac address information, the corresponding delay time is determined by combining with the first mapping information in advance.
The first mapping information may be used to indicate a correspondence between the mac address information and the delay time, and in this embodiment, the correspondence represented by the first mapping information is determined based on interaction information between servers.
Specifically, the interaction information may be recorded with communication record information that the servers in the plurality of servers communicate with each other before the current startup. Further, the servers that have been communicated are preferentially divided into the same group by the interaction information and the maximum value of the number of servers in the same group (i.e., the preset number).
For example, the interaction information may be specifically media access control address information corresponding to two servers that perform data interaction among the plurality of servers. Further, when determining the first mapping information, the servers corresponding to the media access control address information with communication association represented by the interaction information may be divided into the same group, and the maximum value of the number of servers included in the same group may be limited by combining preset data, so as to further determine the first mapping information.
It can be understood that in this embodiment, the first mapping information is determined based on the interaction information, and further, by means of the determination manner of the first mapping information, servers with communication association relations can be preferentially divided into the same group, so that the servers can be started simultaneously, communication interaction between the two servers is facilitated, and communication interaction efficiency of the servers is improved.
In one example, the interaction information specifically includes: at least two items of communication address information of the server, frequency information corresponding to the server, communication time corresponding to the server and information of equipment to be communicated; wherein, the communication address information characterizes the media access control address information of other servers which are in communication interaction with the server in the last working process of the server; the frequency information represents the number of times that the server performs communication interaction with the rest servers in a preset period; the communication time characterizes time-consuming time duration of communication interaction between the server and the rest servers in a preset period; the information of the equipment to be communicated characterizes the media access control address information of the server which needs to be communicated and interacted after the server is started up.
Illustratively, in the present embodiment, the communication address of the server may be set in the interaction information. The communication address of the server may be understood as the mac address information of the remaining servers that are corresponding to each server and perform communication interaction in the previous working process (i.e., the previous startup working process) of the server.
The communication time corresponding to the server in the interaction information can be understood as the communication duration of the server communicating with the rest of the servers in the preset period. It will be appreciated that the longer the communication duration between two servers, the higher the communication requirement between the two is characterized.
The frequency information corresponding to the servers in the interaction information can be understood as the number of times of communication interaction between each server and the server in communication with each server in a preset period. It will be appreciated that the higher the number of communications between the two servers, the higher the need to characterize the two servers to communicate.
The to-be-communicated equipment in the interaction information can be understood as media access control address information corresponding to the determined server needing to be communicated and interacted according to the to-be-processed task corresponding to each server.
In addition, the interaction information in this embodiment may include at least two items of the above information, and further, the first mapping information is determined in combination with the above interaction information and the preset number. For example, when determining the first mapping information, the devices to be communicated in the interaction information may be preferentially considered, that is, after the servers that need to be communicated after the current startup are divided into the same group, the servers that have been communicated are also divided together, where the frequency is greater than a preset value. That is, priority may be set for each data in the interaction information, and further, the packet information may be sequentially adjusted by the index.
It can be appreciated that in this embodiment, when the first mapping information is determined according to the interaction information, a plurality of indexes may be comprehensively considered, so that it is beneficial to divide the servers with larger communication demands into the same group, and it is beneficial to perform the processing of communication interaction between the servers as soon as possible.
S203, after determining that the time length represented by the delay time of the server is waited, sending a starting instruction to a central processing unit in the server; the starting instruction is used for indicating the central processing unit to power on the starting server.
In this embodiment, after the baseboard management controller determines the delay time corresponding to the server, the baseboard management server directly sends a start command for indicating the server to be immediately powered on to start to a central processing unit included in the server.
It can be appreciated that in this embodiment, when the baseboard management controller controls the server to start in a delayed manner, the baseboard management controller performs timing processing, and further sends a start instruction to the central processing unit after determining that the timing is finished (i.e. waiting for the determined delay time). Compared with the mode of sending a control instruction carrying delay time to the central processing unit so that the central processing unit controls the server to start in a delay mode, the data volume transmitted between the central processing unit and the substrate manager can be reduced, and the occupation of processing resources of the central processing unit is reduced.
S204, in response to the server startup failure, the server startup is controlled again.
Illustratively, the baseboard management controller in this embodiment also monitors whether the server is successfully started in real time after informing the central processing unit in the server to control the starting server. When the baseboard management controller determines that the current server is not successfully started, the baseboard management controller can continuously send a starting instruction to the central processing unit so as to re-control the server to restart. Here, the method of determining whether the server is successfully started is not particularly limited, and may be determined, for example, by monitoring the operating state of a device provided in the server, or by a start result returned by the central processor.
S205, outputting alarm information in response to the number of times of server start failure exceeding a preset threshold; wherein the alert information includes a time at which the server attempted to start.
When the baseboard management controller detects that the number of server startup failures exceeds a preset threshold, the baseboard management controller determines that a fault exists in the current server. Meanwhile, the baseboard management controller can also timely output alarm information for prompting the user that the current server cannot be started normally, so that the user can overhaul the server timely. In addition, the alarm information can also comprise the corresponding attempt starting time when the server fails to start, so that the user can conveniently position the fault. For example, the user may first search, through the above-mentioned start-up attempt time, whether the voltage value of the output corresponding to the power supply device corresponding to the server at the start-up attempt time does not satisfy the power-on requirement of the server. Or, the alarm information may directly carry the output power supply voltage corresponding to the time of the start-up attempt of the power supply device acquired by the baseboard management controller.
It can be appreciated that in this embodiment, the baseboard management controller may also monitor the startup status of the server, and control the server to continue to attempt startup when the startup of the server fails. And after the baseboard management server fails to start for many times, the baseboard management server can also timely output alarm information carrying the start failure time (namely, the time of starting the device) so as to facilitate the user to conduct fault investigation.
Fig. 3 is a flowchart of another method for starting up a server based on MAC address information according to an embodiment of the present application, as shown in fig. 3, the method includes the following steps:
s301, responding to a trigger instruction, carrying out initialization processing and acquiring media access control address information of a network interface; the trigger instruction is used for indicating the server to perform initialization processing.
The method provided in the present embodiment is exemplarily applied to a baseboard management controller provided in a server. In addition, the baseboard management controller is also provided with a network interface. The specific principle of step S301 in this embodiment may be referred to step S101, and will not be described herein.
S302, determining delay time of a server according to the media access control address information, the second mapping information and the third mapping information; the second mapping information characterizes the corresponding relation between the media storage control address information and the grouping information of the server; the third mapping information is used to characterize the power-on interval of the server of the adjacent packet information.
For example, the grouping information corresponding to the server in the present embodiment may be understood as information of the group to which the server is divided for startup. And, the second mapping information characterizes a correspondence between the medium access control address information and the packet information. And the third mapping information characterizes a time interval of starting corresponding to the adjacent two pieces of grouping information.
After the baseboard management controller obtains the media storage control address information, the grouping information corresponding to the server can be determined according to the corresponding relation indicated by the second mapping information. For example, the packet information corresponding to each media storage control address information may be stored in a preset mapping table in a one-to-one correspondence. Subsequently, when the delay time corresponding to the server needs to be adjusted, the time interval between the packets can be adjusted by adjusting the packets in which the server is positioned or directly adjusting the time interval between the packets.
And then, determining the delay time corresponding to the grouping information of the server in combination with the time interval indicated by the third configuration information. For example, when the baseboard manager determines that the current server is in the third packet, the summation processing may be performed between the first time interval between the first packet and the second time interval between the second packet and the third packet, which are indicated in the third configuration information, and the result after the summation processing is taken as the delay time corresponding to the server. Wherein the first time interval and the second time interval may be different.
S303, starting the server after determining that the duration represented by the delay time of the server is waited.
For example, the technical principle of step S303 may be referred to step S103, which is not described herein.
It can be understood that, in this embodiment, when the baseboard management controller determines the delay time corresponding to the server, the delay time may be further determined by combining the corresponding relationship indicated by the second mapping information and the time indicated by the third configuration information. Furthermore, the server can be automatically started by the method without depending on other external hardware devices, so that the hardware cost is reduced.
Fig. 4 is a flowchart of another method for starting up a server based on MAC address information according to an embodiment of the present application, as shown in fig. 4, the method includes the following steps:
s401, responding to the trigger instruction, initializing and obtaining the media access control address information of the network interface; the trigger instruction is used for indicating the server to perform initialization processing.
The method provided in the present embodiment is exemplarily applied to a baseboard management controller provided in a server. In addition, the baseboard management controller is also provided with a network interface. The specific principle of step S201 in this embodiment may refer to step S101, and will not be described herein.
S402, determining the delay time of the server according to the media access control address information, the equipment number information, the fourth mapping information and the fifth mapping information.
The equipment quantity information characterizes the quantity of servers which need to be started at this time; the fourth mapping information includes a plurality of combined data; the combined data corresponds to the equipment quantity information one by one; the combination data represents the corresponding relation between the media storage control address information and the grouping information of the server under the equipment quantity information; the fifth mapping information is used to characterize the power-on interval of the server between the packet information.
Illustratively, in the present embodiment, when the baseboard management controller determines the delay time, the delay time may be determined in combination with preset device number information, fourth mapping information, and fifth mapping information.
Specifically, the device number information may be used to characterize the total number of servers that need to be started up at this time, and in practical application, the total number may be written in advance to each server, or may be obtained by interaction between the baseboard management controllers in the remaining servers after the baseboard management controllers are powered on, which is not specifically limited in this embodiment.
The fourth mapping information may be provided with a plurality of combination data, where one combination data corresponds to a total number of devices, and one combination data may represent a correspondence between media storage control address information corresponding to the total number of devices and grouping information of the server. Furthermore, when the baseboard management controller controls the server to start, the combination data corresponding to the actual equipment quantity information of the current start can be determined according to the actual equipment quantity information, and then grouping information of the server is determined. Wherein the grouping information may characterize where the server started at which lot.
The fifth mapping information may characterize a power-on interval between the respective packet information. Further, after the grouping information corresponding to the server is determined according to the fourth mapping information and the equipment number information, the starting interval between the grouping information represented by the fifth mapping information can be further combined to determine the delay time corresponding to the grouping information where the server is currently located.
S403, starting the server after determining that the time duration represented by the delay time of the server is waited.
For example, the technical principle of step S403 may refer to step S103, which is not described herein.
It can be understood that in this embodiment, when determining the delay time, different combination data may be automatically determined according to the total number of servers that need to be started in practice to determine the packet corresponding to the current server, so as to further determine the delay time corresponding to the server. Further, by the above method, it is possible to avoid a packet having a large number of servers among a plurality of server packets when the number of servers increases. Moreover, the problem of long starting time caused by more groups divided by a plurality of servers when the number of the servers is small can be avoided.
In one possible implementation manner, when the baseboard management controller determines the delay time corresponding to the server according to the media access control address information, the method may further include the following steps:
determining delay time of the server according to the media access control address information, the actual total number, the sixth mapping information and the seventh mapping information; wherein, the actual total number represents the total number of the divided packets of the server at the time of starting; the sixth mapping information includes a plurality of combination information; the combined information corresponds to the actual total number one by one; the combination information characterizes the corresponding relation between the media storage control address information and the grouping information of the server under the actual total number; the seventh mapping information is used to characterize the power-on interval of the server between the packet information.
Illustratively, in the present embodiment, the actual total number may be understood as the total number of combinations in which the plurality of servers are divided.
The sixth mapping information includes a plurality of combination information, that is, it can be understood that the sixth mapping information includes a plurality of combination dividing modes. For example, one composition information characterization divides multiple servers into 2 compositions (i.e., the total number of compositions is 2 at this time); another combination information characterization divides the plurality of servers into 3 combinations and one actual total number corresponds to one combination information. The combination information specifically includes the mac address information corresponding to each combination in the combination division manner. That is, the combination information includes a correspondence relationship between the mac address information and the packet information of the server in the division manner corresponding to the combination information.
When the baseboard management controller obtains the sixth mapping information, first, according to the actual total number contained in the sixth mapping information, the combination information corresponding to the actual total number may be determined. Then, according to the media access control address information acquired by the baseboard management controller and the combination information corresponding to the actual total number determined at this time, further determining a starting batch corresponding to the media access control address information; i.e. the grouping information corresponding to the server comprising the baseboard management controller. And then, according to the determined grouping information and the seventh mapping information, determining the delay time corresponding to the grouping information corresponding to the server.
It can be understood that in this embodiment, the value of the actual total number is set in the sixth mapping information, and then, the grouping dividing manner corresponding to the server may be changed by adjusting the value of the actual total number, so as to improve the applicability of the server batch starting method.
For example, the mac address information may be a set of 12-bit hexadecimal data, such as a set of strings with the following format: "XX-XX-XX-XX-XX-XX" or "XX: XX: XX: XX: XX: XX"
Wherein X is used for representing hexadecimal characters and is one of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and A, B, C, D, E, F. When a large number of servers are contained in the machine room, the probability of 0-F appearing in the last bit in the mac address information can be considered to be substantially the same.
Accordingly, in setting the combination information corresponding to the sixth mapping information, the setting may be performed in the manner shown in table 1.
Table 1 grouping start group partitioning scheme based on MAC address
In table 1, the first column is used to represent possible values corresponding to the last character of the data mac address information. The table is used for representing the corresponding relation between the last character of the data media access control address information and the grouping information corresponding to the servers in the grouping division mode when the servers are respectively divided into 16, 8, 5, 3, 2 and 1 groups.
It should be noted that the above correspondence is merely illustrative, and in practical application, the correspondence between the multibit characters and the grouping information may be selected.
Fig. 5 is a schematic flow chart of server startup according to an embodiment of the present application. After the baseboard management controller receives the trigger instruction, the baseboard management controller BMC in the server firstly performs initialization operation on the server. And then, the MAC information of the network interface of the baseboard management controller is obtained, and the actual total number, the sixth mapping information and the seventh mapping information are obtained. And then, the baseboard management controller determines the delay time needed to wait for starting the server according to the acquired information. And then executing the BMC to execute the delay counting process, namely continuously judging whether the determined delay time is reached. When the delay time is reached, the server can be controlled to start. If the delay time is not reached, the delay counting process is continued.
Fig. 6 is a schematic structural diagram of a server starting device based on MAC address information according to an embodiment of the present application, where the device is applied to a baseboard management controller in a server, and the baseboard management controller is provided with a network interface, and the device includes:
A first processing unit 601, configured to perform an initialization process in response to a trigger instruction;
an obtaining unit 602, configured to obtain media access control address information of a network interface; the trigger instruction is used for indicating the server to perform initialization processing;
a determining unit 603, configured to determine a delay time of the server according to the mac address information; the delay time is used for indicating the waiting time of the server;
the second processing unit 604 is configured to start the server after determining a duration characterized by the delay time waiting for the server.
The device provided in this embodiment is configured to implement the technical scheme provided by the method, and the implementation principle and the technical effect are similar and are not repeated.
Fig. 7 is a schematic structural diagram of another server starting device based on MAC address information according to an embodiment of the present application, and in the device structure shown in fig. 6, the determining unit 603 is specifically configured to:
determining delay time of the server according to the media access control address information and the first mapping information; wherein the first mapping information characterizes a correspondence between the media access control address information and the delay time; the first mapping information is determined based on the interaction information of the servers and the preset quantity; the interaction information is used for representing communication record information between every two servers; the preset number characterizes the maximum number of servers started in the same batch.
In one possible implementation, the interaction information specifically includes: at least two items of communication address information of the server, frequency information corresponding to the server, communication time corresponding to the server and information of equipment to be communicated; wherein, the communication address information characterizes the media access control address information of other servers which are in communication interaction with the server in the last working process of the server; the frequency information represents the number of times that the server performs communication interaction with the rest servers in a preset period; the communication time characterizes time-consuming time duration of communication interaction between the server and the rest servers in a preset period; the information of the equipment to be communicated characterizes the media access control address information of the server which needs to be communicated and interacted after the server is started up.
In a possible implementation manner, the determining unit 603 is specifically configured to:
determining delay time of the server according to the media access control address information, the second mapping information and the third mapping information; the second mapping information characterizes the corresponding relation between the media storage control address information and the grouping information of the server; the third mapping information is used to characterize the power-on interval of the server of the adjacent packet information.
In a possible implementation manner, the determining unit 603 is specifically configured to:
determining delay time of the server according to the media access control address information, the equipment number information, the fourth mapping information and the fifth mapping information; the equipment quantity information characterizes the quantity of servers which need to be started at this time; the fourth mapping information includes a plurality of combined data; the combined data corresponds to the equipment quantity information one by one; the combination data represents the corresponding relation between the media storage control address information and the grouping information of the server under the equipment quantity information; the fifth mapping information is used to characterize the power-on interval of the server of the packet information.
In a possible implementation manner, the determining unit 603 is specifically configured to:
determining delay time of the server according to the media access control address information, the actual total number, the sixth mapping information and the seventh mapping information; wherein, the actual total number represents the total number of the divided packets of the server at the time of starting; the sixth mapping information includes a plurality of combination information; the combined information corresponds to the actual total number one by one; the combination information characterizes the corresponding relation between the media storage control address information and the grouping information of the server under the actual total number; the seventh mapping information is used to characterize the power-on interval of the server between the packet information.
In one possible implementation, the second processing unit 604 is specifically configured to:
after determining that the time length represented by the delay time of the server is waited, sending a starting instruction to a central processing unit in the server; the starting instruction is used for indicating the central processing unit to power on the starting server.
In one possible implementation, the apparatus further includes:
a control unit 605 for re-controlling the server start in response to the server start failure;
an output unit 606, configured to output alarm information in response to the number of server start failures exceeding a preset threshold; wherein the alert information includes a time at which the server attempted to start.
The device provided in this embodiment is configured to implement the technical scheme provided by the method, and the implementation principle and the technical effect are similar and are not repeated.
The present application provides an electronic device including: a processor, a memory communicatively coupled to the processor; wherein the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method as provided in any of the embodiments described above.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application, as shown in fig. 8, where the electronic device includes:
A processor 291, the electronic device further comprising a memory 292; a communication interface (Communication Interface) 293 and bus 294 may also be included. The processor 291, the memory 292, and the communication interface 293 may communicate with each other via the bus 294. Communication interface 293 may be used for information transfer. The processor 291 may call logic instructions in the memory 292 to perform the methods of the above-described embodiments.
Further, the logic instructions in memory 292 described above may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product.
The memory 292 is a computer readable storage medium, and may be used to store a software program, a computer executable program, and program instructions/modules corresponding to the methods in the embodiments of the present application. The processor 291 executes functional applications and data processing by running software programs, instructions and modules stored in the memory 292, i.e., implements the methods of the method embodiments described above.
Memory 292 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of the terminal device, etc. Further, memory 292 may include high-speed random access memory, and may also include non-volatile memory.
The present application provides a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, perform a method of any one of the above.
The present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method of any one of the claims.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (10)
1. A method for starting up a server based on MAC address information, wherein the method is applied to a baseboard management controller in the server, the baseboard management controller being provided with a network interface, the method comprising:
responding to the trigger instruction, initializing and obtaining the media access control address information of the network interface; the trigger instruction is used for indicating the server to perform initialization processing;
determining the delay time of the server according to the media access control address information; the delay time is used for indicating the waiting time of the server;
and starting the server after determining the duration characterized by the delay time of the waiting server.
2. The method of claim 1, wherein determining the delay time of the server based on the media access control address information comprises:
determining a delay time of the server according to the media access control address information and the first mapping information; wherein the first mapping information characterizes a correspondence between the media access control address information and the delay time; the first mapping information is determined based on the interaction information of the servers and the preset quantity; the interaction information is used for representing communication record information between every two servers; the preset number characterizes the maximum number of servers started in the same batch.
3. The method according to claim 2, wherein the interaction information specifically comprises: at least two items of communication address information of the server, frequency information corresponding to the server, communication time corresponding to the server and information of equipment to be communicated;
wherein, the communication address information characterizes the media access control address information of other servers which are in communication interaction with the server in the last working process of the server;
the frequency information represents the times of communication interaction between the server and the rest servers in a preset period;
the communication time characterizes time-consuming time duration of communication interaction between the server and the rest servers in a preset period;
and the equipment information to be communicated characterizes the media access control address information of the server which needs to be communicated and interacted after the server is started up.
4. The method of claim 1, wherein determining the delay time of the server based on the media access control address information comprises:
determining the delay time of the server according to the media access control address information, the second mapping information and the third mapping information; wherein the second mapping information characterizes a correspondence between the media storage control address information and the grouping information of the server; the third mapping information is used for representing the startup interval of the server of the adjacent group information.
5. The method of claim 1, wherein determining the delay time of the server based on the media access control address information comprises:
determining delay time of the server according to the media access control address information, the equipment number information, the fourth mapping information and the fifth mapping information;
the equipment quantity information represents the quantity of servers which need to be started at this time; the fourth mapping information includes a plurality of combined data; the combined data corresponds to the equipment quantity information one by one; the combination data characterizes the corresponding relation between the media storage control address information and the grouping information of the server under the equipment quantity information; the fifth mapping information is used for representing the startup interval of the server between the grouping information.
6. The method of claim 1, wherein determining the delay time of the server based on the media access control address information comprises:
determining delay time of the server according to the media access control address information, the actual total number, the sixth mapping information and the seventh mapping information;
wherein the actual total number characterizes the total number of packets divided by the server at the time of the start; the sixth mapping information includes a plurality of combination information; the combined information corresponds to the actual total number one by one; the combination information characterizes the corresponding relation between the media storage control address information and the grouping information of the server under the actual total number; the seventh mapping information is used for characterizing a startup interval of the server between the grouping information.
7. The method of claim 1, wherein starting the server after determining a duration characterized by a latency time waiting for the server comprises:
after determining that the time length represented by the delay time of the server is waited, sending a starting instruction to a central processing unit in the server; and the starting instruction is used for indicating the central processing unit to power on and start the server.
8. The method according to any one of claims 1-7, further comprising:
in response to the server start failure, re-controlling the server start;
responding to the times of the server start failure exceeding a preset threshold value, and outputting alarm information; wherein the alert information includes a time at which the server attempted to start.
9. A server start-up device based on MAC address information, the device being applied to a baseboard management controller in a server, the baseboard management controller being provided with a network interface, the device comprising:
the first processing unit is used for responding to the trigger instruction and carrying out initialization processing;
an acquisition unit, configured to acquire media access control address information of the network interface; the trigger instruction is used for indicating the server to perform initialization processing;
A determining unit, configured to determine a delay time of the server according to the mac address information; the delay time is used for indicating the waiting time of the server;
and the second processing unit is used for starting the server after determining the duration characterized by the delay time waiting for the server.
10. A baseboard management controller for implementing the method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310825901.3A CN116860339B (en) | 2023-07-06 | 2023-07-06 | Method, device and equipment for starting server based on MAC address information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310825901.3A CN116860339B (en) | 2023-07-06 | 2023-07-06 | Method, device and equipment for starting server based on MAC address information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116860339A true CN116860339A (en) | 2023-10-10 |
CN116860339B CN116860339B (en) | 2024-02-27 |
Family
ID=88235373
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310825901.3A Active CN116860339B (en) | 2023-07-06 | 2023-07-06 | Method, device and equipment for starting server based on MAC address information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116860339B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040005658A (en) * | 2002-07-09 | 2004-01-16 | 가부시끼가이샤 도시바 | Communication device, communication system and communication method |
CN109976495A (en) * | 2019-03-28 | 2019-07-05 | 苏州浪潮智能科技有限公司 | A kind of server start-up control method, device and server |
CN111475218A (en) * | 2020-04-26 | 2020-07-31 | 中国长城科技集团股份有限公司 | Server starting method, server and computer readable storage medium |
CN114442780A (en) * | 2022-01-21 | 2022-05-06 | 南昌逸勤科技有限公司 | Method and device for electrifying random delay of server system |
CN116192626A (en) * | 2023-02-10 | 2023-05-30 | 苏州浪潮智能科技有限公司 | Device access method and device, computer readable storage medium and electronic device |
-
2023
- 2023-07-06 CN CN202310825901.3A patent/CN116860339B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040005658A (en) * | 2002-07-09 | 2004-01-16 | 가부시끼가이샤 도시바 | Communication device, communication system and communication method |
CN109976495A (en) * | 2019-03-28 | 2019-07-05 | 苏州浪潮智能科技有限公司 | A kind of server start-up control method, device and server |
CN111475218A (en) * | 2020-04-26 | 2020-07-31 | 中国长城科技集团股份有限公司 | Server starting method, server and computer readable storage medium |
CN114442780A (en) * | 2022-01-21 | 2022-05-06 | 南昌逸勤科技有限公司 | Method and device for electrifying random delay of server system |
CN116192626A (en) * | 2023-02-10 | 2023-05-30 | 苏州浪潮智能科技有限公司 | Device access method and device, computer readable storage medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN116860339B (en) | 2024-02-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10042583B2 (en) | Device management method, device, and device management controller | |
CN111541762B (en) | Data processing method, management server, device and storage medium | |
US12041688B2 (en) | Screen projection method and system | |
US8533497B2 (en) | Power control method of servers | |
CN112947733A (en) | Control method, server and control terminal | |
CN1937509A (en) | Method and system for obtaining single board frame number | |
CN116860339B (en) | Method, device and equipment for starting server based on MAC address information | |
CN114398045A (en) | Network automation machine assembling method and device, server and storage medium | |
US10963183B2 (en) | Technologies for fine-grained completion tracking of memory buffer accesses | |
CN111669355B (en) | Method for batch processing of nginx network isolation space and nginx server | |
CN111669310B (en) | Batch processing method for network isolation space in pptp vpn and pptp vpn server | |
CN116860340B (en) | Method for determining starting time of server based on identification of baseboard management controller | |
CN116680010B (en) | Server starting method and device based on identification of memory | |
CN115086219B (en) | Virtual router determining method, device and computer readable storage medium | |
CN117370103B (en) | SoC system monitoring method, device, equipment and medium based on PCIE network card | |
CN115914288B (en) | Message transmission method and device, storage medium and electronic device | |
CN109271347B (en) | Starting method, device and equipment for storage unit of distributed file system | |
CN114143244B (en) | Message processing method and device, storage medium and gateway equipment | |
CN108494853B (en) | Mass equipment state self-maintenance method, device and system | |
CN111669357B (en) | Method for batch processing of haproxy network isolation space and haproxy proxy server | |
CN116208495A (en) | Network performance tuning method, BMC and server | |
CN113933579A (en) | Power-on method of power module and electronic equipment | |
CN112416454A (en) | Method and device for controlling starting of disk | |
CN114281551A (en) | Load balancing method, system, electronic device and storage medium | |
CN117651034A (en) | Network address conflict processing method, device, equipment, system and medium |
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 |