CN117742817A - Control method and device of baseboard management controller - Google Patents
Control method and device of baseboard management controller Download PDFInfo
- Publication number
- CN117742817A CN117742817A CN202311616695.1A CN202311616695A CN117742817A CN 117742817 A CN117742817 A CN 117742817A CN 202311616695 A CN202311616695 A CN 202311616695A CN 117742817 A CN117742817 A CN 117742817A
- Authority
- CN
- China
- Prior art keywords
- bmc
- webpage
- group
- server
- bmcs
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 230000004044 response Effects 0.000 claims abstract description 35
- 238000004590 computer program Methods 0.000 claims description 16
- 238000004891 communication Methods 0.000 claims description 8
- 230000001960 triggered effect Effects 0.000 claims description 5
- 239000000758 substrate Substances 0.000 claims 3
- 239000000523 sample Substances 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 7
- 230000003993 interaction Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 230000036541 health Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012216 screening Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000009516 primary packaging Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the application provides a control method and device of a baseboard management controller, wherein the method comprises the following steps: when a web server is configured in the first device, a first web page is sent to the target client in response to a first access request sent to the web server by the target client, the web server is used for acquiring state information of a server acquired by each BMC in a group of baseboard management controllers BMCs, the group of BMCs comprises a plurality of BMCs of different types, a group of web pages is stored in the first device, the group of web pages is used for displaying state information of the server acquired by each BMC in the group of BMCs, and when the second web page comprises an identifier of a first BMC in the group of BMCs, the state information of the server acquired by the first BMC is acquired to the first BMC in response to a second access request sent to the web server by the target client, and the state information of the server acquired by the first BMC is sent to the target client.
Description
Technical Field
The embodiment of the application relates to the field of computers, in particular to a control method and device of a baseboard management controller.
Background
Currently, each BMC (Baseboard Management Controller ) Web server (Web-based server management tool) occupies more BMC resources including memory and processor utilization under the BMC own system, and more data are stored under the BMC system along with longer and longer machine running time; and the machine is iteratively upgraded, so that the functions are more and more, the BMC resources occupied by the web server are gradually increased, and the BMC performance is obviously reduced. And after a browser of a control computer opens a plurality of BMC webs, a control end computer is blocked, and each BMC is provided with a tag page, so that the information such as the machine position and the like is not convenient to compare and visually check, and misoperation is easy to occur. Therefore, the control method of the baseboard management controller in the related art has a problem of low control efficiency.
Disclosure of Invention
The embodiment of the application provides a control method and device of a baseboard management controller, which at least solve the problem of low control efficiency of a control mode of the baseboard management controller in the related art.
According to an embodiment of the present application, there is provided a control method of a baseboard management controller, including: in the case that a web server is configured in a first device, a first web page is sent to a target client in response to a first access request sent to the web server by the target client, wherein the web server is used for acquiring state information of a server acquired by each BMC in a group of baseboard management controllers BMCs, the group of BMCs comprises a plurality of BMCs of different types, a group of web pages is stored in the first device, and the group of web pages is used for displaying the state information of the server acquired by each BMC in the group of BMCs, and the group of web pages comprises the first web page; under the condition that the first webpage comprises the identification of a first BMC in the group of BMCs, responding to a second access request sent by the target client to the webpage server, acquiring the state information of the server acquired by the first BMC from the first BMC, and sending the state information of the server acquired by the first BMC to the target client, wherein the second access request is used for requesting to acquire the state information of the server acquired by the first BMC, and the second access request is an access request sent to the webpage server in response to a triggering operation executed on the identification of the first BMC.
In an exemplary embodiment, the sending, to the target client, the state information of the server collected by the first BMC includes: the state information of the server acquired by the first BMC is used as a display element of the first webpage to be sent to the target client; or sending a second webpage to the target client, wherein the second webpage comprises the state information of the server acquired by the first BMC, and the group of webpages comprises the second webpage.
In an exemplary embodiment, the obtaining, from the first BMC, the state information of the server acquired by the first BMC includes: acquiring a target interface corresponding to the first BMC, wherein the target interface is used for communicating with the first BMC; sending a state information acquisition request to the first BMC through the target interface, wherein the state information acquisition request is used for requesting to acquire the state information of the server acquired by the first BMC; and acquiring the state information of the server acquired by the first BMC and sent by the first BMC through the target interface.
In an exemplary embodiment, before the sending the first web page to the target client, the method further includes: acquiring a webpage source code of a webpage corresponding to each BMC in a group of BMCs and media resources required for generating the corresponding webpage; generating a group of webpages according to the webpage source codes of webpages corresponding to each BMC in the group of BMCs and media resources required for generating the corresponding webpages, and storing the group of webpages in the first device, wherein the ith webpage in the group of webpages is a webpage generated according to the webpage source codes of the ith webpage corresponding to the ith BMC in the group of BMCs and the media resources required for generating the ith webpage, and i is a positive integer greater than or equal to 1.
In an exemplary embodiment, the obtaining the web page source code of the web page corresponding to each BMC in the set of BMCs and the media resource required for generating the corresponding web page includes: under the condition that the web server establishes communication connection with a j-1 webpage source code and j-1 group media resources in the group of BMCs for the first time, and the web server obtains j-1 webpage source codes and j-1 group media resources, the j-1 webpage source codes and the j-1 group media resources correspond to the j-1 BMCs in the group of BMCs, the j-1 webpage source codes and the j-1 group media resources are used for generating j-1 webpages, the j-1 webpages are used for displaying state information of the server collected by the j-1 BMCs, the j-1 group media resources are media resources required for generating j-1 webpages, and j is a positive integer greater than or equal to 2; under the condition that the description information of the jth BMC is different from the description information of the j-1 BMC, acquiring a jth webpage source code and a jth group of media resources corresponding to the jth BMC, wherein the jth webpage source code and the jth group of media resources are used for generating a jth webpage, the jth webpage is used for displaying the state information of the server acquired by the jth BMC, and the jth group of media resources are media resources required for generating the jth webpage; and under the condition that the description information of the jth BMC is the same as the description information of the kth BMC, determining the kth webpage source code corresponding to the kth BMC as the jth webpage source code corresponding to the jth BMC, and determining the kth group of media resources corresponding to the kth BMC as the jth group of media resources corresponding to the jth BMC, wherein the j-1 BMC comprises the kth BMC, k is a positive integer greater than or equal to 1, the kth webpage source code and the kth group of media resources are used for generating the kth webpage, the kth webpage is used for displaying the state information of the server acquired by the kth BMC, and the kth group of media resources are media resources required for generating the kth webpage.
In an exemplary embodiment, after the obtaining the description information of the jth BMC, the method further includes one of: judging whether the version number of the jth BMC is the same as the j-1 version number indicated by the description information of the j-1 BMC under the condition that the description information of the jth BMC indicates the jth version number of the jth BMC; under the condition that the version number of the jth BMC is different from the j-1 version number indicated by the description information of the j-1 BMC, determining that the description information of the jth BMC is different from the description information of the j-1 BMC; judging whether the j-th webpage identifier is identical to the j-1 webpage identifier of the j-1 webpage represented by the j-1 BMC description information under the condition that the j-th BMC description information represents the j-th webpage identifier of the j-th webpage corresponding to the j-th BMC; and under the condition that the j-th webpage identifier is different from the j-1 webpage identifier, determining that the description information of the j-th BMC is different from the description information of the j-1 BMC.
In an exemplary embodiment, before the sending the first web page to the target client, the method further includes: under the condition that the webpage source code of the webpage corresponding to the P-th BMC in the group of BMCs is incomplete, displaying an original management webpage of the P-th BMC according to the input IP address of the P-th BMC, wherein P is a positive integer greater than or equal to 1; and under the condition that each button in the group of buttons on the original management webpage is triggered, recording interface information corresponding to each button in the group of buttons, wherein the interface information comprises at least one of the following components: the interface type, the parameter that needs to be transferred when the interface calls; according to the recorded interface information, determining the webpage source code of the webpage corresponding to the p-th BMC, and generating the p-th webpage corresponding to the p-th BMC, wherein the p-th webpage is used for the state information of the server acquired by the p-th BMC, the p-th webpage comprises the group of buttons, and each button in the group of buttons is used for acquiring the state information of at least one dimension in the state information of the server acquired by the p-th BMC.
According to another embodiment of the present application, there is also provided a control method of a baseboard management controller, including: under the condition that a web server is configured in first equipment, a first access request is sent to the web server, and a first web page sent by the web server in response to the first access request is displayed, wherein the web server is used for acquiring state information of a server acquired by each BMC in a group of Baseboard Management Controllers (BMCs), the group of BMCs comprises a plurality of BMCs of different types, a group of web pages is stored in the first equipment, and the group of web pages is used for displaying the state information of the server acquired by each BMC in the group of BMCs, and comprises the first web page; under the condition that the identification of a first BMC in the group of BMCs is displayed in the first webpage, responding to a triggering operation executed on the identification of the first BMC, and sending a second access request to the webpage server, wherein the second access request is used for acquiring the state information of the server acquired by the first BMC; and displaying the state information of the server acquired by the first BMC in the first webpage or a second webpage different from the first webpage, wherein the group of webpages comprises the second webpage.
According to still another embodiment of the present application, there is provided a control apparatus of a baseboard management controller, including: a first sending unit, configured to send, in a case where a web server is configured in a first device, a first web page to a target client in response to a first access request sent by the target client to the web server, where the web server is configured to obtain state information of a server collected by each BMC in a set of baseboard management controllers BMCs, the set of BMCs includes a plurality of BMCs of different types, a set of web pages is stored in the first device, and the set of web pages is configured to display state information of a server collected by each BMC in the set of BMCs, where the set of web pages includes the first web page; the first execution unit is configured to, when the first web page includes an identifier of a first BMC in the set of BMCs, obtain, from the first BMC, state information of a server acquired by the first BMC in response to a second access request sent by the target client to the web server, and send, from the target client, state information of the server acquired by the first BMC, where the second access request is used to request to obtain the state information of the server acquired by the first BMC, and the second access request is an access request sent to the web server in response to a trigger operation performed on the identifier of the first BMC.
According to still another embodiment of the present application, there is provided a control apparatus of a baseboard management controller, including: the third execution unit is configured to send a first access request to a web server when the web server is configured in a first device, and display a first web page sent by the web server in response to the first access request, where the web server is configured to obtain state information of a server acquired by each BMC in a set of baseboard management controllers BMCs, the set of BMCs includes a plurality of BMCs of different types, a set of web pages is stored in the first device, and the set of web pages is configured to display state information of the server acquired by each BMC in the set of BMCs, and the set of web pages includes the first web page; the second sending unit is used for responding to a triggering operation executed on the identification of the first BMC under the condition that the identification of the first BMC in the group of BMCs is displayed in the first webpage, and sending a second access request to the webpage server, wherein the second access request is used for acquiring the state information of the server acquired by the first BMC; and the second display unit is used for displaying the state information of the server acquired by the first BMC in the first webpage or a second webpage different from the first webpage, wherein the group of webpages comprises the second webpage.
According to a further embodiment of the present application, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the present application, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the method and the system, a mode of uniformly managing a group of BMCs by one platform is adopted, webpages of a plurality of BMCs are stored in one webpage server, real-time state data of the corresponding BMCs are obtained according to access requests and displayed in the corresponding webpages, management of the BMCs is concentrated on one platform, the management of the BMCs is not limited to regions and machine types, the management of the BMCs is not limited to manufacturers, uniform management of all BMCs can be achieved, resources required by Web servers are not required to be stored in each BMC system, resources occupied in the BMC system can be avoided, resource load of the BMC system is reduced, running performance of the BMC is improved, and meanwhile control efficiency of the BMC is improved. Therefore, the problem of low control efficiency in the control mode of the baseboard management controller in the related technology can be solved, and the effect of improving the control efficiency is achieved.
Drawings
Fig. 1 is a schematic diagram of a hardware environment of a control method of a baseboard management controller according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative baseboard management controller control method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an alternative baseboard management controller control method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another alternative baseboard management controller control method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a control method of yet another alternative baseboard management controller according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a control method of yet another alternative baseboard management controller according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a control method of yet another alternative baseboard management controller according to an embodiment of the present application;
FIG. 8 is a flow chart of another alternative baseboard management controller control method according to an embodiment of the present application;
FIG. 9 is a flow chart of a control method of yet another alternative baseboard management controller according to an embodiment of the present application;
FIG. 10 is a block diagram of an alternative baseboard management controller control device according to an embodiment of the present application;
Fig. 11 is a block diagram of a control device of another alternative baseboard management controller according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a server device or similar computing device. Taking the example of running on a server device, fig. 1 is a block diagram of a hardware structure of a server device of a control method of a baseboard management controller according to an embodiment of the present application. As shown in fig. 1, the server device may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU, a programmable logic device FPGA, or the like processing means) and a memory 104 for storing data, wherein the server device may further include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those of ordinary skill in the art that the architecture shown in fig. 1 is merely illustrative and is not intended to limit the architecture of the server apparatus described above. For example, the server device may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a control method of a baseboard management controller in the embodiment of the present application, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located with respect to the processor 102, which may be connected to the server device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, a control method of a baseboard management controller is provided, fig. 2 is a schematic flow chart of a control method of an alternative baseboard management controller according to an embodiment of the present application, as shown in fig. 2, the flow includes the following steps:
step S202, under the condition that a web server is configured in a first device, a first web page is sent to a target client in response to a first access request sent to the web server by the target client, wherein the web server is used for acquiring state information of a server acquired by each BMC in a group of Baseboard Management Controllers (BMCs), the group of BMCs comprises a plurality of BMCs of different types, a group of web pages is stored in the first device, the group of web pages is used for displaying the state information of the server acquired by each BMC in the group of BMCs, and the group of web pages comprises the first web page;
in step S204, when the first web page includes the identifier of the first BMC in the set of BMCs, the second access request is sent to the web server in response to the trigger operation performed on the identifier of the first BMC, where the second access request is used to request to obtain the state information of the server acquired by the first BMC, and the second access request is an access request sent to the web server in response to the trigger operation performed on the identifier of the first BMC.
The control method of the baseboard management controller in the embodiment can be applied to a scene of monitoring the BMC. The BMC is used as an important component of the server, and can monitor the health state of the server in real time, including but not limited to the parameter information such as voltage and temperature in the server in the running process and the running state information of the fan and other parts.
In the related technology, the related data and the state acquired by the BMC can be checked through logging in the web of the BMC. However, in the related art, the Web server corresponding to each BMC is under the system of the BMC itself, and the Web server occupies more BMC resources (including memory resources and processor resources). As the running time of the machine is longer and longer, more and more data needs to be stored under the BMC system, and in the iterative upgrade process of the machine, although the functions of the machine are more and more, the BMC resources occupied by the corresponding web server are gradually increased, so that the BMC performance is obviously reduced. In addition, when the states of a plurality of BMCs need to be checked, the web corresponding to the plurality of BMCs needs to be opened in one browser, which easily causes the situation that the control end computer is blocked. And each BMC corresponds to a tag page, the note pages of a plurality of BMCs cannot be displayed at the same time, comparison is inconvenient, related information such as the position of a machine where each BMC is located cannot be visually checked, and misoperation is easy to occur.
In order to solve at least some of the above problems, one Web server may be used to uniformly manage a plurality of BMCs, that is, web servers of the plurality of BMCs are collected together, a set of Web pages is managed in one Web server, and each Web page in the set of Web pages may be used to display state information of the server acquired by one BMC, respectively.
The first device in this embodiment may be a device configured with a web server, and may be a server. The first device may be a different device than the server where the set of BMCs is located. The device in which the target client is located may be a different device than the first device, and may be a computer. As shown in fig. 3, the device where the target client is located is a device a, a Web server (Web server) is configured on the device B, a set of Web pages is stored, each Web page corresponds to one BMC, and the Web server can manage BMC1, BMC 2.
The target client may request to display a web page related to the BMC from the web server, where the first web page in this embodiment is a web page corresponding to the first BMC, and may be a web page including only the state information of the server acquired by the first BMC as shown in fig. 4, or may be a web page including a plurality of BMC icons including the first BMC icon as shown in fig. 5. The state information may be an operation state of the BMC, and may include parameter information such as voltage and temperature in the server during operation, and operation state information of components such as a fan.
It should be noted that, the above web server is a platform, and the web server is a centralized control platform, as shown in fig. 6, a group of machine room icons (XX machine room 1, XX machine room 2, XX machine room n) may be displayed in the centralized control platform. Here, one room icon in the set of room icons is used to represent one room, one room includes a set of cabinets, one cabinet includes a set of machines (servers), and one machine includes at least one BMC in the set of BMCs.
The machine room may be classified according to a machine room position. In the display page, the position of the machine room icon can be dragged at will, namely, an operator can divide the area between the common machine and other machines according to own habit, and the method is not limited to the division rule of the use frequency. The operator can define the information of each machine room, and the information is not limited to the information such as names, IP, machine quantity, on-off state and the like. The information can be statistics of all machines in one machine room, and when the machines are abnormal, new information can be embodied at the upper right corner of the fault machine room icon, so that an operator can be guided to conduct fault treatment conveniently. The operator can add or delete machine rooms as needed. In the process of adding the machine room, the machine room can be arranged according to the region position.
Optionally, after displaying a set of room icons in the centralized control platform, the method further includes: in response to a click operation on a target room icon of the set of room icons, status information of a set of cabinets of the target room is displayed on the centralized control platform as shown in fig. 7. Here, the status information includes at least one of: power, temperature, network segment. The current state of the target enclosure is adjusted in response to a state adjustment operation on the target enclosure in the set of enclosures.
In a page displaying a set of cabinets, a display of a special mark may also be made for a cabinet in which an abnormality exists (e.g., an abnormality icon is displayed in the upper right corner of one cabinet icon in fig. 7, etc.). The centralized control platform can control the ambient temperature and process faults according to the current cabinet information. The state information of the cabinet may be determined by information uploaded by the cabinet.
After displaying the state information of a group of cabinets in the target machine room on the centralized control platform, the method further comprises: and in response to clicking operation on the target machine in the set of machine cabinets, displaying identification information of a second BMC of the target machine on the centralized control platform. Here, the identification information includes at least one of: the model number, IP address, serial number, boot state, firmware version number, health state of the second BMC.
The identification information of the second BMC may be obtained by an ipmitool (platform management tool in a command line mode) command, SNMP (Simple Network Management Protocol ) or other modes, or may be obtained from the BMC in other modes.
After displaying the identification information of the second BMC of the target machine on the centralized control platform, the method further comprises the following steps: and responding to clicking operation of the second BMC, and displaying a management page of the second BMC on the centralized control platform.
Optionally, before entering the management page of the second BMC, the login page of the second BMC may be displayed first, and the management page may be entered by inputting an account number and a password. The method can avoid secret login before entering next time in a mode of saving account passwords, and operation steps are reduced. Optionally, in the web server, the web page of the corresponding BMC may also be searched directly by a search method, where the search method may be to perform accurate search by using SN or IP. For management of each BMC on the web server, screening conditions (such as a power-on/off state, a network segment, a machine type, a manufacturer and the like) can be preset, and quick acceptance arrangement is realized according to detection of screening instructions. In addition, there may be a one-touch operation on the web server, and in response to detecting the one-touch operation indication, a one-touch operation on the web server or the corresponding BMC may be implemented. The one-key operation may be operator-defined, such as one-key power on/off, one-key log collection, etc.
By the steps, under the condition that a web server is configured in the first device, a first web page is sent to the target client in response to a first access request sent to the web server by the target client, wherein the web server is used for acquiring state information of a server acquired by each BMC in a group of Baseboard Management Controllers (BMCs), the group of BMCs comprises a plurality of BMCs of different types, a group of web pages is stored in the first device, the group of web pages is used for displaying the state information of the server acquired by each BMC in the group of BMCs, and the group of web pages comprises the first web page; under the condition that the first webpage comprises the identification of a first BMC in a group of BMCs, responding to a second access request sent by a target client to a webpage server, acquiring the state information of the server acquired by the first BMC from the first BMC, and sending the state information of the server acquired by the first BMC to the target client, wherein the second access request is used for requesting to acquire the state information of the server acquired by the first BMC, and the second access request is sent to the webpage server in response to a triggering operation executed on the identification of the first BMC, so that the problem that the control efficiency is low in a control mode of a baseboard management controller in the related art is solved, and the control efficiency of the BMC is improved.
The main execution body of the above steps may be a server, a terminal, or the like, but is not limited thereto.
In an exemplary embodiment, sending, to the target client, the state information of the server acquired by the first BMC includes:
s11, sending the state information of the server acquired by the first BMC to a target client as a display element of the first webpage; or,
s12, sending a second webpage to the target client, wherein the second webpage comprises the state information of the server acquired by the first BMC, and one group of webpages comprises the second webpage.
When the first web page is a web page including only the state information of the server collected by the first BMC, sending the state information of the server collected by the first BMC to the target client may mean sending the state information of the server collected by the first BMC as a display element of the first web page to the target client, that is, directly using the state information as the display element of the first web page to display the state information in the first web page. The display element here may be an element corresponding to the state information of the server.
Optionally, when the first web page is a web page that only includes the state information of the server acquired by the first BMC and a group of display elements are already displayed on the first web page, on the display interface of the target client, the received display elements may be used to replace different original display elements on the first web page.
When the first web page is a web page including a plurality of BMC icons including the first BMC icon, the state information of the server collected by the first BMC may be sent to the target client because the state information collected by the first BMC displayed on the first web page is limited and the first BMC cannot be controlled on the first web page, and the second web page needs to be entered into a web page (i.e., a second web page) including only the state information of the server collected by the first BMC. The status information in the second web page may be displayed in a form corresponding to the display element.
Optionally, the target client may simultaneously display web pages of multiple BMCs, so as to facilitate operations such as comparison. An operator can adjust the display area of each webpage according to actual demands.
According to the embodiment, whether a new display element or a new page needs to be sent to the target client is determined according to the page where the current actual page is located, repeated sending of the same information can be avoided, resources required to be consumed by message transmission are reduced, and meanwhile display efficiency of the page is improved.
In an exemplary embodiment, obtaining, from the first BMC, state information of the server acquired by the first BMC includes:
S21, a target interface corresponding to the first BMC is obtained, wherein the target interface is used for communicating with the first BMC;
s22, sending a state information acquisition request to the first BMC through a target interface, wherein the state information acquisition request is used for requesting to acquire the state information of the server acquired by the first BMC;
s23, acquiring state information of the server acquired by the first BMC and sent by the first BMC through a target interface.
In this embodiment, the interaction between the page server and the BMC may be implemented by calling an interface, and different types of BMCs may correspond to different interfaces. After detecting that the operator clicks on a page or a button, a corresponding interface may be called, a corresponding API (Application Programming Interface ) request is sent to a Json (JavaScript Object Notation, a lightweight data exchange format) library, the function raised by the Json library processes the API request, converts the request into a state information acquisition request in Json data format, and then sends the state information acquisition request to the first BMC corresponding to the request. In addition, before entering the webpage corresponding to the first BMC, the Json library can be loaded, so that the expansion speed of the webpage is improved.
The interface may be a restful (Representational State Transfer full, a service interface for communication using HTTP (Hyper Text Transfer Protocol, hypertext transfer protocol)) interface, i.e. one of the API interfaces.
It should be noted that, the state information of the server acquired by the first BMC sent by the first BMC may be converted into a format by the Json library and then forwarded to the web server. As shown in fig. 8, after the operator clicks a page or a button, the operator invokes a corresponding interface to send a request to Json, and if the interface is determined to be incorrect, the request is ignored or the operator is prompted to reprocess, and if the interface is determined to be incorrect, the request is processed, the processed request is sent to a corresponding BMC, and then information returned by the BMC is received and sent to the centralized control platform to display.
Optionally, when the related state information obtaining request is not received, the data corresponding to the state information displayed on each web page in the set of web pages in the web page server may be refreshed according to a preset frequency. Specifically, the data displayed on the web page corresponding to the web page displayed on the current target client in the set of web pages may be refreshed according to the first preset frequency, and the data displayed on the other web pages not corresponding to the web page displayed on the current target client in the set of web pages may be refreshed according to the second preset frequency. The first preset frequency may be greater than the second preset frequency. The first preset frequency can be 2 seconds and 1 time, and the second preset frequency can be 30 seconds and 1 time, so that the condition of insufficient platform bandwidth caused by too large data volume is avoided.
Through the embodiment, the information interaction between the webpage server and the BMC is completed through the calling interface, so that the management of the webpage server on the BMC on a plurality of different servers can be realized, and the control efficiency of the BMC is improved.
In an exemplary embodiment, before sending the first web page to the target client, the method further includes:
s31, acquiring a webpage source code of a webpage corresponding to each BMC in a group of BMCs and media resources required for generating the corresponding webpage;
s32, generating a group of webpages according to the webpage source codes of webpages corresponding to each BMC in the group of BMCs and media resources required for generating the corresponding webpages, and storing the group of webpages in the first device, wherein the ith webpage in the group of webpages is a webpage generated according to the webpage source codes of the ith webpage corresponding to the ith BMC in the group of BMCs and the media resources required for generating the ith webpage, and i is a positive integer greater than or equal to 1.
In this example, when the web server performs a first handshake with the BMCs (establishes a communication connection), it is required to obtain the web source code of the web page corresponding to each BMC in the set of BMCs and the media resource required for generating the corresponding web page. Here, the web page source code and the media resources may be transmitted to the web page server by each BMC, respectively.
Optionally, after the webpage source code and the media resource corresponding to the BMC are obtained from the BMC, the webpage source code and the media resource can be deleted from the BMC system, so that the resource occupancy rate in the BMC system is reduced.
The web page source code may be an initial code required for generating a web page, and may include a function corresponding to a corresponding button in the web page and a code corresponding to an interface. According to the webpage source code and the media resource corresponding to each BMC, the generated management webpage corresponding to each BMC can be different in display elements on the webpage and interaction logic corresponding to each button.
According to the embodiment, based on the acquired webpage source codes and the media resources, the corresponding webpages are generated, so that the adaptation degree of each webpage on the webpage server and the corresponding BMC can be improved, and the control efficiency of the webpage server on different BMCs can be improved.
In an exemplary embodiment, obtaining the web page source code of the web page corresponding to each BMC in the set of BMCs and the media resources required for generating the corresponding web page includes:
s41, under the condition that a web server establishes communication connection with a j-1 webpage source code and j-1 group media resources in a group of BMCs for the first time, and the web server has acquired j-1 webpage source codes and j-1 group media resources, acquiring description information of the j-1 webpage source codes and j-1 group media resources corresponding to the j-1 BMCs in the group of BMCs, wherein the j-1 webpage source codes and the j-1 group media resources are used for generating j-1 webpages, the j-1 webpages are used for displaying state information of the server acquired by the j-1 BMCs, and the j-1 group media resources are media resources required for generating the j-1 webpages, wherein j is a positive integer greater than or equal to 2;
S42, under the condition that the description information of the jth BMC is different from the description information of the j-1 BMC, acquiring a jth webpage source code and a jth group of media resources corresponding to the jth BMC, wherein the jth webpage source code and the jth group of media resources are used for generating the jth webpage, the jth webpage is used for displaying the state information of the server acquired by the jth BMC, and the jth group of media resources are media resources required for generating the jth webpage;
s43, determining the kth webpage source code corresponding to the kth BMC as the jth webpage source code corresponding to the jth BMC and determining the kth group of media resources corresponding to the kth BMC as the jth group of media resources corresponding to the jth BMC under the condition that the description information of the kth BMC is identical to that of the kth BMC, wherein the j-1 BMC comprises the kth BMC, k is a positive integer greater than or equal to 1, the kth webpage source code and the kth group of media resources are used for generating the kth webpage, the kth webpage is used for displaying the state information of the server acquired by the kth BMC, and the kth group of media resources are media resources required for generating the kth webpage.
In this embodiment, for a plurality of BMCs with the same description information, the web page source code and the media resource may be acquired only once, and a plurality of identical web pages may be generated for the plurality of BMCs with the same description information by using the acquired web page source code and the media resource.
Optionally, after the description information of the jth BMC is acquired, the method further includes one of the following:
judging whether the version number of the jth BMC is the same as the j-1 version number indicated by the description information of the j-1 BMC under the condition that the description information of the jth BMC indicates the jth version number of the jth BMC; under the condition that the version number of the jth BMC is different from the j-1 version number indicated by the description information of the j-1 BMC, determining that the description information of the jth BMC is different from the description information of the j-1 BMC;
judging whether the j-th webpage identifier is identical to the j-1 webpage identifier of the j-1 webpage represented by the description information of the j-1 BMC under the condition that the description information of the j-th BMC represents the j-th webpage identifier of the j-th webpage corresponding to the j-th BMC; and under the condition that the j-th webpage identifier is different from the j-1 webpage identifier, determining that the description information of the j-th BMC is different from the description information of the j-1 BMC.
Optionally, after determining whether the version number of the jth BMC is the same as the j-1 version number indicated by the description information of the j-1 BMC, determining that the description information of the jth BMC is the same as the description information of the j-1 BMC if the version number of the jth BMC is the same as the j-1 version number indicated by the description information of the j-1 BMC.
Optionally, after determining whether the j-1 webpage identifier of the j-1 webpage represented by the j-1 webpage identifier is the same as the j-1 webpage identifier of the j-1 BMC, determining that the j-1 webpage identifier is the same as the j-1 webpage identifier, and determining that the j-1 BMC has the same description information as the j-1 BMC.
It should be noted that, the version numbers of the BMCs may indicate whether different BMCs belong to the same generation, and the same version number indicates that the BMCs belong to the same generation. The web page identifier of the web page corresponding to the BMC can be used for indicating whether the web pages corresponding to different BMCs are the same. In this embodiment, the same machine of the same generation or BMC web can share the media resources related to the web page and the related data of the web page source code, so as to avoid the bandwidth occupation caused by repeated uploading of the resources.
In addition, if the same generation or BMC wb has a certain difference in interaction between the corresponding web page and the BMC, the interaction between the web page and the BMC can be modified or supplemented according to the actual interaction condition after the web page is controlled.
By the embodiment, for machines with the same web of the same generation or BMC, media resources related to the web page and related data of the web page source code are shared, repeated uploading of the same resources can be avoided, and the occupancy rate of the bandwidth is low.
In an exemplary embodiment, before sending the first web page to the target client, the method further includes:
s51, under the condition that the webpage source code of the webpage corresponding to the P-th BMC in the group of BMCs is incomplete, displaying an original management webpage of the P-th BMC according to the input IP address of the P-th BMC, wherein P is a positive integer greater than or equal to 1;
s52, under the condition that each button in a group of buttons on an original management webpage is triggered, recording interface information corresponding to each button in the group of buttons, wherein the interface information comprises at least one of the following: the interface type, the parameter that needs to be transferred when the interface calls;
s53, determining the webpage source code of the webpage corresponding to the p-th BMC according to the recorded interface information, and generating the p-th webpage corresponding to the p-th BMC, wherein the p-th webpage is used for the state information of the server acquired by the p-th BMC, the p-th webpage comprises a group of buttons, and each button in the group of buttons is used for acquiring the state information of at least one dimension in the state information of the server acquired by the p-th BMC.
In this embodiment, when the acquired webpage source code of the webpage corresponding to the P-th BMC is incomplete or the webpage source code of the webpage corresponding to the P-th BMC is not acquired, a learning mode of the webpage server may be started, an IP address of the P-th BMC is input in an autonomous learning window of the webpage server, an original management webpage of the P-th BMC is displayed, and by triggering each button on the original management webpage, acquisition of interfaces corresponding to each button and parameters required to be transferred by each interface is completed, and then the webpage corresponding to the BMC is constructed according to acquired information.
It should be noted that, in the autonomous learning process, after each button is triggered, the web server may record the restful interface corresponding to each button, and for a post (interface for adding data) or a push (interface for updating or replacing data) type interface, the parameters transferred by the rest interface may be additionally recorded. In addition, if the operator only needs to check a certain write parameter of the BMC, the method can also be independently set, and the web page does not need to be completely opened, namely, when the operator needs to check the BMC, the web server sends the corresponding restful interface and the parameter to be transferred to the corresponding machine in a session or basic (an identity verification mode) mode, and if the display interface displays the preset content at first, the current page can be closed directly after the check is finished, and the complete BMC web page can also be opened selectively.
In the autonomous learning process, after the details of the interface corresponding to each button are collected, other functions of the original management webpage corresponding to the BMC can be further learned. The learning mode may be that a UI (user Interface) corresponding to the BMC web is generated in the autonomous learning window (including summary information, storage, fan, power supply, setting, user, etc.), and an operator clicks a function in the UI first and then clicks an Interface corresponding to the function in the original BMC web, so that a restful Interface called when clicking the original BMC web is saved under a button of the UI.
After the interface picking operation is completed, the finally obtained UI can be subjected to operations such as primary packaging or encapsulation, renaming and the like. The centralized control platform can add the model into the machine library, and if other identical models are needed to be added, the model is only selected from the machine library, and the learning operation is not needed to be repeated. In addition, if the function is found to be picked up incorrectly in the use process, an operator can also carry out custom editing through the centralized control platform.
According to the embodiment, the webpage corresponding to the BMC is generated in an autonomous learning mode, so that machines of different models of various manufacturers can be compatible to the maximum extent, and the type number of the BMCs managed by the webpage server is improved.
There is also provided a control method of a baseboard management controller in this embodiment, and fig. 9 is a flowchart of another alternative control method of a baseboard management controller according to an embodiment of the present application, as shown in fig. 9, where the flowchart includes the following steps:
s902, under the condition that a web server is configured in first equipment, a first access request is sent to the web server, and a first web page sent by the web server in response to the first access request is displayed, wherein the web server is used for acquiring state information of the server acquired by each BMC in a group of Baseboard Management Controllers (BMCs), the group of BMCs comprises a plurality of BMCs of different types, a group of web pages is stored in the first equipment, the group of web pages is used for displaying the state information of the server acquired by each BMC in the group of BMCs, and the group of web pages comprises the first web page;
S904, under the condition that the identification of a first BMC in a group of BMCs is displayed in a first webpage, a second access request is sent to a webpage server in response to a triggering operation executed on the identification of the first BMC, wherein the second access request is used for acquiring the state information of the server acquired by the first BMC;
s906, displaying the state information of the server acquired by the first BMC in the first webpage or a second webpage different from the first webpage, wherein the set of webpages comprises the second webpage.
It should be noted that, the application scenario of the control method of the baseboard management controller in this embodiment may be similar to that of the foregoing embodiment, and the description of this embodiment is omitted here.
Through the steps S902 to S906, in the case that the web server is configured in the first device, a first access request is sent to the web server, and a first web page sent by the web server in response to the first access request is displayed, where the web server is configured to obtain state information of the server collected by each BMC in the group of baseboard management controllers BMCs, the group of BMCs includes multiple BMCs of different types, a group of web pages is stored in the first device, the group of web pages is configured to display state information of the server collected by each BMC in the group of BMCs, and the group of web pages includes the first web page; under the condition that the identification of a first BMC in a group of BMCs is displayed in a first webpage, responding to a triggering operation executed on the identification of the first BMC, and sending a second access request to a webpage server, wherein the second access request is used for acquiring the state information of the server acquired by the first BMC; the state information of the server acquired by the first BMC is displayed in the first webpage or a second webpage different from the first webpage, wherein one group of webpages comprises the second webpage, the problem that the control efficiency is low in a control mode of the baseboard management controller in the related technology is solved, and the control efficiency of the BMC is improved.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present application.
The present embodiment also provides a control device of the baseboard management controller, which is used to implement the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 10 is a block diagram of a control device of an alternative baseboard management controller according to an embodiment of the present application, and as shown in fig. 10, the device includes:
a first sending unit 1002, configured to send, in a case where a web server is configured in a first device, a first web page to a target client in response to a first access request sent by the target client to the web server, where the web server is configured to obtain state information of a server collected by each BMC in a set of baseboard management controllers BMCs, the set of BMCs includes a plurality of BMCs of different types, a set of web pages is stored in the first device, and the set of web pages is configured to display state information of the server collected by each BMC in the set of BMCs, where the set of web pages includes the first web page;
a first execution unit 1004, configured to, when the first web page includes an identifier of a first BMC in a set of BMCs, obtain, from the first BMC, state information of a server acquired by the first BMC in response to a second access request sent to the web server by the target client, and send, to the target client, state information of the server acquired by the first BMC, where the second access request is for requesting to obtain the state information of the server acquired by the first BMC, and the second access request is an access request sent to the web server in response to a trigger operation performed on the identifier of the first BMC
It should be noted that, the first sending unit 1002 in this embodiment may be used to indicate the step S202 described above, and the first executing unit 1004 in this embodiment may be used to indicate the step S204 described above.
According to the embodiment of the application, under the condition that the web server is configured in the first device, a first web page is sent to the target client in response to a first access request sent to the web server by the target client, wherein the web server is used for acquiring state information of a server acquired by each BMC in a group of Baseboard Management Controllers (BMCs), the group of BMCs comprises a plurality of BMCs of different types, a group of web pages is stored in the first device, the group of web pages is used for displaying the state information of the server acquired by each BMC in the group of BMCs, and the group of web pages comprises the first web page; under the condition that the first webpage comprises the identification of a first BMC in a group of BMCs, responding to a second access request sent to the webpage server by the target client, acquiring the state information of the server acquired by the first BMC from the first BMC, and sending the state information of the server acquired by the first BMC to the target client, wherein the second access request is used for requesting to acquire the state information of the server acquired by the first BMC, and the second access request is sent to the webpage server in response to a triggering operation executed on the identification of the first BMC, so that the problem that the control efficiency is low in a control mode of a baseboard management controller in the related art is solved.
In one exemplary embodiment, the first execution unit includes:
the first sending module is used for sending the state information of the server acquired by the first BMC to the target client as a display element of the first webpage; or,
the second sending module is used for sending a second webpage to the target client, wherein the second webpage comprises the state information of the server acquired by the first BMC, and the group of webpages comprises the second webpage.
In one exemplary embodiment, the first execution unit includes:
the first acquisition module is used for acquiring a target interface corresponding to the first BMC, wherein the target interface is used for communicating with the first BMC;
the second acquisition module is used for sending a state information acquisition request to the first BMC through the target interface, wherein the state information acquisition request is used for requesting to acquire the state information of the server acquired by the first BMC;
the third acquisition module is used for acquiring the state information of the server acquired by the first BMC and sent by the first BMC through the target interface.
In an exemplary embodiment, the above apparatus further includes:
the acquisition unit is used for acquiring the webpage source code of the webpage corresponding to each BMC in the group of BMCs and the media resources required for generating the corresponding webpage before sending the first webpage to the target client;
The second execution unit is used for generating a group of webpages according to the webpage source codes of webpages corresponding to each BMC in the group of BMCs and media resources required for generating the corresponding webpages, and storing the group of webpages in the first device, wherein the ith webpage in the group of webpages is a webpage generated according to the webpage source codes of the ith webpage corresponding to the ith BMC in the group of BMCs and the media resources required for generating the ith webpage, and i is a positive integer greater than or equal to 1.
In one exemplary embodiment, the acquisition unit includes:
the fourth acquisition module is used for acquiring description information of the j-1 th BMC under the condition that the web server and the j-1 th BMC in the group of BMCs are in communication connection for the first time and the web server acquires j-1 web source codes and j-1 groups of media resources, wherein the j-1 web source codes and the j-1 groups of media resources correspond to the j-1 BMCs in the group of BMCs, the j-1 web source codes and the j-1 groups of media resources are used for generating j-1 web pages, the j-1 web pages are used for displaying state information of the server acquired by the j-1 BMCs, and the j-1 groups of media resources are media resources required for generating the j-1 web pages, and j is a positive integer greater than or equal to 2;
the fifth acquisition module is used for acquiring a jth webpage source code and a jth group of media resources corresponding to the jth BMC under the condition that the description information of the jth BMC is different from the description information of the j-1 BMC, wherein the jth webpage source code and the jth group of media resources are used for generating the jth webpage, the jth webpage is used for displaying the state information of the server acquired by the jth BMC, and the jth group of media resources are media resources required for generating the jth webpage;
The determining module is configured to determine, when the description information of the kth BMC is the same as the description information of the kth BMC, the kth web page source code corresponding to the kth BMC as the jth web page source code corresponding to the jth BMC, and determine, as the jth group of media resources corresponding to the jth BMC, the kth-1 BMC, where the jth-1 BMC includes the kth BMC, k is a positive integer greater than or equal to 1, the kth web page source code and the kth group of media resources are used to generate the kth web page, and the kth web page is used to display the state information of the server acquired by the kth BMC, where the kth group of media resources is a media resource required for generating the kth web page.
In an exemplary embodiment, the apparatus further comprises one of:
the first judging unit is used for judging whether the version number of the jth BMC is the same as the j-1 version number indicated by the description information of the j-1 BMC or not under the condition that the description information of the jth BMC indicates the jth version number of the jth BMC after the description information of the jth BMC is obtained; under the condition that the version number of the jth BMC is different from the j-1 version number indicated by the description information of the j-1 BMC, determining that the description information of the jth BMC is different from the description information of the j-1 BMC;
The second judging unit is used for judging whether the j-th webpage identifier is the same as the j-1 webpage identifier of the j-1 webpage represented by the description information of the j-1 BMC under the condition that the description information of the j-th BMC represents the j-th webpage identifier of the j-th webpage corresponding to the j-th BMC; and under the condition that the j-th webpage identifier is different from the j-1 webpage identifier, determining that the description information of the j-th BMC is different from the description information of the j-1 BMC.
In an exemplary embodiment, the above apparatus further includes:
the first display unit is used for displaying an original management webpage of a P-th BMC according to an input IP address of the P-th BMC under the condition that the webpage source code of the webpage corresponding to the P-th BMC in a group of BMCs is incomplete before the first webpage is sent to a target client, wherein P is a positive integer greater than or equal to 1;
the recording unit is used for recording interface information corresponding to each button in the group of buttons under the condition that each button in the group of buttons on the original management webpage is triggered, wherein the interface information comprises at least one of the following components: the interface type, the parameter that needs to be transferred when the interface calls;
the system comprises a determining unit, a processing unit and a processing unit, wherein the determining unit is used for determining the webpage source code of the webpage corresponding to the p-th BMC according to the recorded interface information and generating the p-th webpage corresponding to the p-th BMC, the p-th webpage is used for acquiring the state information of the server acquired by the p-th BMC, the p-th webpage comprises a group of buttons, and each button in the group of buttons is used for acquiring the state information of at least one dimension in the state information of the server acquired by the p-th BMC.
There is also provided in this embodiment a control device of a baseboard management controller, and fig. 11 is a block diagram of a control device of another alternative baseboard management controller according to an embodiment of the present application, as shown in fig. 11, including:
the third execution unit 1102 is configured to send a first access request to a web server and display a first web page sent by the web server in response to the first access request when the web server is configured in the first device, where the web server is configured to obtain state information of a server collected by each BMC in a set of baseboard management controllers BMCs, the set of BMCs includes multiple BMCs of different types, a set of web pages is stored in the first device, the set of web pages is configured to display state information of the server collected by each BMC in the set of BMCs, and the set of web pages includes the first web page;
a second sending unit 1104, configured to send a second access request to the web server in response to a triggering operation performed on the identifier of the first BMC when the identifier of the first BMC in the group of BMCs is displayed in the first web page, where the second access request is used to obtain state information of the server acquired by the first BMC;
The second display unit 1106 is configured to display the state information of the server acquired by the first BMC in the first web page or a second web page different from the first web page, where a set of web pages includes the second web page. .
It should be noted that, the third execution unit 1102 in this embodiment may be used to indicate the above step S902, the second transmission unit 1104 in this embodiment may be used to indicate the above step S904, and the second display unit 1106 in this embodiment may be used to indicate the above step S906.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Embodiments of the present application also provide an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic device may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application should be included in the protection scope of the present application.
Claims (12)
1. A control method of a baseboard management controller is characterized in that,
comprising the following steps:
in the case that a web server is configured in a first device, a first web page is sent to a target client in response to a first access request sent to the web server by the target client, wherein the web server is used for acquiring state information of a server acquired by each BMC in a group of baseboard management controllers BMCs, the group of BMCs comprises a plurality of BMCs of different types, a group of web pages is stored in the first device, and the group of web pages is used for displaying the state information of the server acquired by each BMC in the group of BMCs, and the group of web pages comprises the first web page;
under the condition that the first webpage comprises the identification of a first BMC in the group of BMCs, responding to a second access request sent by the target client to the webpage server, acquiring the state information of the server acquired by the first BMC from the first BMC, and sending the state information of the server acquired by the first BMC to the target client, wherein the second access request is used for requesting to acquire the state information of the server acquired by the first BMC, and the second access request is an access request sent to the webpage server in response to a triggering operation executed on the identification of the first BMC.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the sending, to the target client, the state information of the server acquired by the first BMC includes:
the state information of the server acquired by the first BMC is used as a display element of the first webpage to be sent to the target client; or,
and sending a second webpage to the target client, wherein the second webpage comprises the state information of the server acquired by the first BMC, and the group of webpages comprises the second webpage.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the obtaining, from the first BMC, the state information of the server acquired by the first BMC includes:
acquiring a target interface corresponding to the first BMC, wherein the target interface is used for communicating with the first BMC;
sending a state information acquisition request to the first BMC through the target interface, wherein the state information acquisition request is used for requesting to acquire the state information of the server acquired by the first BMC;
and acquiring the state information of the server acquired by the first BMC and sent by the first BMC through the target interface.
4. The method of claim 1, wherein the step of determining the position of the substrate comprises,
before the sending the first web page to the target client, the method further includes:
acquiring a webpage source code of a webpage corresponding to each BMC in a group of BMCs and media resources required for generating the corresponding webpage;
generating a group of webpages according to the webpage source codes of webpages corresponding to each BMC in the group of BMCs and media resources required for generating the corresponding webpages, and storing the group of webpages in the first device, wherein the ith webpage in the group of webpages is a webpage generated according to the webpage source codes of the ith webpage corresponding to the ith BMC in the group of BMCs and the media resources required for generating the ith webpage, and i is a positive integer greater than or equal to 1.
5. The method of claim 4, wherein the step of determining the position of the first electrode is performed,
the obtaining the web page source code of the web page corresponding to each BMC in the group of BMCs and the media resource required for generating the corresponding web page includes:
under the condition that the web server establishes communication connection with a j-1 webpage source code and j-1 group media resources in the group of BMCs for the first time, and the web server obtains j-1 webpage source codes and j-1 group media resources, the j-1 webpage source codes and the j-1 group media resources correspond to the j-1 BMCs in the group of BMCs, the j-1 webpage source codes and the j-1 group media resources are used for generating j-1 webpages, the j-1 webpages are used for displaying state information of the server collected by the j-1 BMCs, the j-1 group media resources are media resources required for generating j-1 webpages, and j is a positive integer greater than or equal to 2;
Under the condition that the description information of the jth BMC is different from the description information of the j-1 BMC, acquiring a jth webpage source code and a jth group of media resources corresponding to the jth BMC, wherein the jth webpage source code and the jth group of media resources are used for generating a jth webpage, the jth webpage is used for displaying the state information of the server acquired by the jth BMC, and the jth group of media resources are media resources required for generating the jth webpage;
and under the condition that the description information of the jth BMC is the same as the description information of the kth BMC, determining the kth webpage source code corresponding to the kth BMC as the jth webpage source code corresponding to the jth BMC, and determining the kth group of media resources corresponding to the kth BMC as the jth group of media resources corresponding to the jth BMC, wherein the j-1 BMC comprises the kth BMC, k is a positive integer greater than or equal to 1, the kth webpage source code and the kth group of media resources are used for generating the kth webpage, the kth webpage is used for displaying the state information of the server acquired by the kth BMC, and the kth group of media resources are media resources required for generating the kth webpage.
6. The method of claim 5, wherein the step of determining the position of the probe is performed,
after the description information of the jth BMC is obtained, the method further includes one of the following:
judging whether the version number of the jth BMC is the same as the j-1 version number indicated by the description information of the j-1 BMC under the condition that the description information of the jth BMC indicates the jth version number of the jth BMC; under the condition that the version number of the jth BMC is different from the j-1 version number indicated by the description information of the j-1 BMC, determining that the description information of the jth BMC is different from the description information of the j-1 BMC;
judging whether the j-th webpage identifier is identical to the j-1 webpage identifier of the j-1 webpage represented by the j-1 BMC description information under the condition that the j-th BMC description information represents the j-th webpage identifier of the j-th webpage corresponding to the j-th BMC; and under the condition that the j-th webpage identifier is different from the j-1 webpage identifier, determining that the description information of the j-th BMC is different from the description information of the j-1 BMC.
7. The method according to any one of claim 1 to 6, wherein,
before the sending the first web page to the target client, the method further includes:
Under the condition that the webpage source code of the webpage corresponding to the p-th BMC in the group of BMCs is incomplete, displaying an original management webpage of the p-th BMC according to the input IP address of the p-th BMC, wherein p is a positive integer greater than or equal to 1;
and under the condition that each button in the group of buttons on the original management webpage is triggered, recording interface information corresponding to each button in the group of buttons, wherein the interface information comprises at least one of the following components: the interface type, the parameter that needs to be transferred when the interface calls;
according to the recorded interface information, determining the webpage source code of the webpage corresponding to the p-th BMC, and generating the p-th webpage corresponding to the p-th BMC, wherein the p-th webpage is used for the state information of the server acquired by the p-th BMC, the p-th webpage comprises the group of buttons, and each button in the group of buttons is used for acquiring the state information of at least one dimension in the state information of the server acquired by the p-th BMC.
8. A control method of a baseboard management controller is characterized in that,
comprising the following steps:
under the condition that a web server is configured in first equipment, a first access request is sent to the web server, and a first web page sent by the web server in response to the first access request is displayed, wherein the web server is used for acquiring state information of a server acquired by each BMC in a group of Baseboard Management Controllers (BMCs), the group of BMCs comprises a plurality of BMCs of different types, a group of web pages is stored in the first equipment, and the group of web pages is used for displaying the state information of the server acquired by each BMC in the group of BMCs, and comprises the first web page;
Under the condition that the identification of a first BMC in the group of BMCs is displayed in the first webpage, responding to a triggering operation executed on the identification of the first BMC, and sending a second access request to the webpage server, wherein the second access request is used for acquiring the state information of the server acquired by the first BMC;
and displaying the state information of the server acquired by the first BMC in the first webpage or a second webpage different from the first webpage, wherein the group of webpages comprises the second webpage.
9. A control device of a baseboard management controller is characterized in that,
comprising the following steps:
a first sending unit, configured to send, in a case where a web server is configured in a first device, a first web page to a target client in response to a first access request sent by the target client to the web server, where the web server is configured to obtain state information of a server collected by each BMC in a set of baseboard management controllers BMCs, the set of BMCs includes a plurality of BMCs of different types, a set of web pages is stored in the first device, and the set of web pages is configured to display state information of a server collected by each BMC in the set of BMCs, where the set of web pages includes the first web page;
The first execution unit is configured to, when the first web page includes an identifier of a first BMC in the set of BMCs, obtain, from the first BMC, state information of a server acquired by the first BMC in response to a second access request sent by the target client to the web server, and send, from the target client, state information of the server acquired by the first BMC, where the second access request is used to request to obtain the state information of the server acquired by the first BMC, and the second access request is an access request sent to the web server in response to a trigger operation performed on the identifier of the first BMC.
10. A control device of a baseboard management controller is characterized in that,
comprising the following steps:
the third execution unit is configured to send a first access request to a web server when the web server is configured in a first device, and display a first web page sent by the web server in response to the first access request, where the web server is configured to obtain state information of a server acquired by each BMC in a set of baseboard management controllers BMCs, the set of BMCs includes a plurality of BMCs of different types, a set of web pages is stored in the first device, and the set of web pages is configured to display state information of the server acquired by each BMC in the set of BMCs, and the set of web pages includes the first web page;
The second sending unit is used for responding to a triggering operation executed on the identification of the first BMC under the condition that the identification of the first BMC in the group of BMCs is displayed in the first webpage, and sending a second access request to the webpage server, wherein the second access request is used for acquiring the state information of the server acquired by the first BMC; and the second display unit is used for displaying the state information of the server acquired by the first BMC in the first webpage or a second webpage different from the first webpage, wherein the group of webpages comprises the second webpage.
11. A computer-readable storage medium comprising,
the computer readable storage medium having stored therein a computer program, wherein the computer program when executed by a processor implements the method of any of claims 1 to 8.
12. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that,
the processor, when executing the computer program, implements the method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311616695.1A CN117742817A (en) | 2023-11-29 | 2023-11-29 | Control method and device of baseboard management controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311616695.1A CN117742817A (en) | 2023-11-29 | 2023-11-29 | Control method and device of baseboard management controller |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117742817A true CN117742817A (en) | 2024-03-22 |
Family
ID=90282282
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311616695.1A Pending CN117742817A (en) | 2023-11-29 | 2023-11-29 | Control method and device of baseboard management controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117742817A (en) |
-
2023
- 2023-11-29 CN CN202311616695.1A patent/CN117742817A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107800565B (en) | Inspection method, inspection device, inspection system, computer equipment and storage medium | |
US20150081878A1 (en) | Describing datacenter rack information in management system | |
CN112506755B (en) | Log acquisition method, device, computer equipment and storage medium | |
JP2008191878A (en) | Remote diagnostic-failure responding system, remote diagnostic-failure responding device, remote diagnostic-failure response instruction device, remote diagnostic-falure responding method, and remote diagnostic-failure responding program | |
CN101771565B (en) | Analogy method for realizing multitudinous or different baseboard management controllers by single server | |
US10833914B2 (en) | Device or vendor independent network switch management via embedded management controller stack | |
US10664551B2 (en) | Intuitive user interface (UI) for device or vendor independent network switch management via embedded management controller | |
CN112527397A (en) | Method and device for modifying basic input output system options and computer equipment | |
CN111736938B (en) | Information display method and device, storage medium and electronic device | |
CN117130318B (en) | Industrial data acquisition method, device, system and readable storage medium | |
CN112153146A (en) | Operation notification method and apparatus, storage medium, and electronic apparatus | |
CN111694550B (en) | Page display control method, device and system | |
US9575531B2 (en) | Multi-vendor power distribution unit support in rack management software | |
CN107241385B (en) | Internet of things data acquisition system and method | |
CN112135302B (en) | Control method and device for base station topology information and computer readable storage medium | |
CN117742817A (en) | Control method and device of baseboard management controller | |
US20170108851A1 (en) | Industrial automation electronic pinboard | |
US11792269B2 (en) | Method for generating application for controlling external electronic device and electronic apparatus for supporting the same | |
CN116827604A (en) | Application login control method, system, terminal and storage medium | |
CN112215587B (en) | Method, device and system for automatically executing business process interaction tasks by multiple devices | |
CN116980286A (en) | Device configuration method, device control method, storage medium, and terminal | |
CN113676353A (en) | Control method and device for equipment, storage medium and electronic device | |
US12038821B2 (en) | Alert rule manipulation in sync of temporary configuration change | |
CN113726587B (en) | Network security management method and equipment | |
CN115277652B (en) | Streaming media processing method and device based on reasoning service and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |