CN115714719B - Operation and maintenance processing method and device of server, electronic equipment and storage medium - Google Patents

Operation and maintenance processing method and device of server, electronic equipment and storage medium Download PDF

Info

Publication number
CN115714719B
CN115714719B CN202211318964.1A CN202211318964A CN115714719B CN 115714719 B CN115714719 B CN 115714719B CN 202211318964 A CN202211318964 A CN 202211318964A CN 115714719 B CN115714719 B CN 115714719B
Authority
CN
China
Prior art keywords
request
target server
maintenance
login
bmc system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211318964.1A
Other languages
Chinese (zh)
Other versions
CN115714719A (en
Inventor
邱允
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211318964.1A priority Critical patent/CN115714719B/en
Publication of CN115714719A publication Critical patent/CN115714719A/en
Application granted granted Critical
Publication of CN115714719B publication Critical patent/CN115714719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a method and a device for processing operation and maintenance of a server, electronic equipment and a storage medium, wherein the method comprises the following steps: determining a target server needing operation and maintenance processing; according to the login information of the target server and the data format of the login request, a login request is sent to the BMC system of the target server so as to log in the BMC system of the target server; after logging in the BMC system of the target server, sending an operation and maintenance request to the BMC system of the target server according to the login information of the target server and the data format of the operation and maintenance request so that the target server executes operation and maintenance processing according to the operation and maintenance request; the operation and maintenance request comprises a data collection request and/or a firmware upgrading request; and receiving response information sent by the BMC system of the target server. By the method, manual operation and maintenance can be simulated, operation and maintenance processing can be performed on the batch servers in an out-of-band mode, and operation and maintenance efficiency is improved.

Description

Operation and maintenance processing method and device of server, electronic equipment and storage medium
Technical Field
The present invention relates to the field of server technologies, and in particular, to a method and an apparatus for processing operation and maintenance of a server, an electronic device, and a storage medium.
Background
And the BMC (Baseboard Manager Controller, baseboard management controller) is configured on the server and used for monitoring and managing server hardware (CPU, memory, hard disk, fan, machine frame and the like). Through the BMC management system, operation and maintenance personnel can conveniently finish detection and operation and maintenance of the single server in an in-band or out-of-band mode. In general, the operation and maintenance management performed in the server operating system is called an in-band manner, and the server is operated and managed by server management software provided by the BMC system and running independently and separated from the server operating system, and is called an out-band manner, such as operation and maintenance management of the server by a Web page management function provided by the BMC, where a Web page is accessible through a browser. However, when the same maintenance is required to be performed on a plurality of servers under the local area network, the servers are processed one by one through the BMC management system, so that a large amount of repeated labor is time-consuming and labor-consuming, and errors are easily generated due to negligence of operation and maintenance personnel.
Disclosure of Invention
In view of the foregoing, embodiments of the present invention are provided to provide a method, an apparatus, an electronic device, and a storage medium for processing operation and maintenance of a server, which overcome or at least partially solve the foregoing problems.
In order to solve the above-mentioned problems, an embodiment of the present invention discloses an operation and maintenance processing method of a server, which is applied to a control device, wherein the control device communicates with a plurality of servers, and the plurality of servers have a Baseboard Management Controller (BMC) system, and the method includes:
Determining a target server needing operation and maintenance processing;
Acquiring login information and a data format of a login request corresponding to the target server, and sending the login request to a BMC system of the target server according to the login information and the data format of the login request so as to log in the BMC system of the target server;
After logging in a BMC system of the target server, acquiring a data format of an operation and maintenance request corresponding to the target server, and sending the operation and maintenance request to the BMC system of the target server according to the login information and the data format of the operation and maintenance request so that the target server executes operation and maintenance processing according to the operation and maintenance request; the operation and maintenance request comprises a data collection request and/or a firmware upgrading request;
And receiving response information sent by the BMC system of the target server, wherein the response information is generated by executing operation and maintenance processing by the BMC system of the target server in response to the operation and maintenance request.
Optionally, the control device is loaded with a request library, and the sending a login request to the BMC system of the target server to login the BMC system of the target server includes:
Calling the request library to send a login request to the BMC system of the target server so as to log in the BMC system of the target server;
the sending an operation and maintenance request to the BMC system of the target server so that the target server executes operation and maintenance processing according to the operation and maintenance request comprises:
And calling the request library to send an operation and maintenance request to a BMC system of the target server so that the target server executes operation and maintenance processing according to the operation and maintenance request.
Optionally, the calling the request library to send a login request to the BMC system of the target server to login to the BMC system of the target server includes:
Before a login request is sent to the BMC system of the target server, calling the request library to create a session corresponding to the BMC system of the target server; after a session is established, calling the request library to send a login request to the BMC system of the target server under the session so as to log in the BMC system of the target server;
The calling the request library to send an operation and maintenance request to the BMC system of the target server so that the target server executes operation and maintenance processing according to the operation and maintenance request comprises the following steps:
and after logging in the BMC system of the target server is completed under the session, calling the request library to send an operation and maintenance request to the BMC system of the target server under the session, so that the target server executes operation and maintenance processing according to the operation and maintenance request.
Optionally, the sending an operation and maintenance request to the BMC system of the target server according to the login information and the data format of the operation and maintenance request includes:
according to the login information and the data format of the data collection request, sending a data collection request to a BMC system of the target server;
The receiving the response information sent by the BMC system of the target server comprises the following steps:
Receiving response information sent by the BMC system of the target server in response to the data collection request, wherein the response information is generated by the BMC system of the target server in response to the data collection request by executing data collection processing, and the response information comprises: at least one of sensor information of the server, hardware information of the server, and a system log of the server.
Optionally, the control device is loaded with an parsing library, and the method further includes:
After receiving response information sent by the BMC system of the target server, calling the analysis library to analyze the response information so as to extract target content and store the target content; the target content includes: at least one of sensor information, hardware information, system logs, firmware upgrade information.
Optionally, the method further comprises:
Accessing a Web login interface of a BMC system in the server through a browser, completing login of a BMC Web page and obtaining a data format of a login request according to login information of the BMC system of the server;
and after logging in the BMC Web page of the server, performing data collection operation and acquiring a data format of a data collection request, and/or performing firmware upgrading operation and acquiring a data format of a firmware upgrading request.
Optionally, the login information includes: IP address, login username and password of the BMC system.
The embodiment of the invention also discloses an operation and maintenance processing device of the server, which is applied to control equipment, wherein the control equipment is communicated with a plurality of servers, the servers are provided with BMC systems, and the device comprises:
The target server confirming module is used for determining a target server needing operation and maintenance processing;
The request sending module is used for obtaining login information corresponding to the target server and a data format of a login request, and sending the login request to a BMC system of the target server according to the login information and the data format of the login request so as to log in the BMC system of the target server; after logging in the BMC system of the target server, the method is used for acquiring a data format of an operation and maintenance request corresponding to the target server, and sending the operation and maintenance request to the BMC system of the target server according to the login information and the data format of the operation and maintenance request so that the target server executes operation and maintenance processing according to the operation and maintenance request; the operation and maintenance request comprises a data collection request and/or a firmware upgrading request;
And the response information receiving module is used for receiving response information sent by the BMC system of the target server, and the response information is generated by executing operation and maintenance processing by the BMC system of the target server in response to the operation and maintenance request.
Optionally, the login information includes: IP address, login username and password of the BMC system.
Optionally, the control device is loaded with a request library, and the request sending module is used for calling the request library to send a login request to the BMC system of the target server so as to log in the BMC system of the target server; and calling the request library to send an operation and maintenance request to a BMC system of the target server so that the target server executes operation and maintenance processing according to the operation and maintenance request.
Optionally, the request sending module is configured to invoke the request library to create a session corresponding to the BMC system of the target server before sending a login request to the BMC system of the target server; after a session is established, calling the request library to send a login request to the BMC system of the target server under the session so as to log in the BMC system of the target server; and after logging in the BMC system of the target server is completed under the session, calling the request library to send an operation and maintenance request to the BMC system of the target server under the session, so that the target server executes operation and maintenance processing according to the operation and maintenance request.
Optionally, the request sending module is configured to send a data collection request to a BMC system of the target server according to the login information and a data format of the data collection request.
Optionally, the response information receiving module is configured to receive response information sent by the BMC system of the target server in response to the data collection request, where the response information is generated by the BMC system of the target server by performing data collection processing in response to the data collection request, and the response information includes: at least one of sensor information of the server, hardware information of the server, and a system log of the server.
Optionally, the control device is loaded with an parsing library, and the response information receiving module is used for receiving response information sent by the BMC system of the target server, and then invoking the parsing library to parse the response information so as to extract target content and store the target content; the target content includes: at least one of sensor information, hardware information, system logs, firmware upgrade information.
The embodiment of the invention also discloses an electronic device, which comprises: a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor, implements the steps of the method for operation and maintenance of a server as described above.
The embodiment of the invention also discloses a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of the operation and maintenance processing method of the server when being executed by a processor.
The embodiment of the invention has the following advantages:
According to the method and the device, the control equipment sends the login request to the BMC system of the target server according to the login information of the target server and the data format of the login request, so that the BMC system of the target server can be simulated to be manually operated and maintained to log in an out-of-band mode; after logging in the BMC system of the target server, according to the login information of the target server and the data format of the operation and maintenance request, the operation and maintenance request is sent to the BMC system of the target server, and the target server can execute operation and maintenance processing in an out-of-band mode by simulating the artificial operation and maintenance. The control device automatically sends a request to the BMC system, and executes login processing and operation and maintenance processing, so that the artificial operation and maintenance can be converted into machine operation and maintenance processing of the server can be finished in batches, the efficiency is improved, meanwhile, the work which cannot be finished by the artificial operation and maintenance can be finished, for example, under the condition that the BMC does not provide a downloading log and a firmware in-band upgrading function, the data collection and firmware upgrading operation and maintenance processing can be finished in an out-of-band mode.
Drawings
Fig. 1 is a step flowchart of a method for processing operation and maintenance of a server according to an embodiment of the present invention;
Fig. 2 is a block diagram of an operation and maintenance processing device of a server according to an embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
The BMC monitors and maintains all hardware of the server through various sensors on the substrate, for example, monitors the temperature, voltage, fans, power supply and other conditions of the system, and timely makes proper adjustment work to ensure that the server is in a healthy state. Besides monitoring the state of each hardware of the server, the BMC is also responsible for recording information and logs of various hardware, maintaining firmware information of various components and the like.
Currently, for operation and maintenance of a server, the operation and maintenance are generally completed through a Web page management function provided by a BMC. The BMC is mainly used for collecting various sensor information on a single server and simultaneously providing the sensor information for upper-layer applications. The first two means are mainly used for acquiring the sensor information acquired by the BMC, wherein the BMC can provide a large number of private interfaces for upper-layer application inquiry, such as a man-machine interface of a command line and the like and a machine interface of SNMP, IPMI, restful and the like; the second is active reporting, when detecting that a fault is generated, the BMC can report to a server of an upper layer application through SNMP trap information, SMTP mail information, REDFISH HTTP Json information and other means, so that operation and maintenance personnel can identify and process the fault in time. In general, a message reported by the BMC explicitly indicates which component has failed, and a processing suggestion.
When the servers under the same local area network are operated in batches, a large number of repeated works are needed to be completed through the BMC Web, the efficiency is low, and the accuracy is greatly affected by the outside. In addition, different server manufacturers and different server types can not necessarily provide methods and tools for upgrading firmware in-band, and firmware upgrading can only be completed through Web functions in an out-of-band manner.
One of the core ideas of the embodiment of the invention is that the data collection and firmware upgrading of the server in a batch processing scene are completed in an out-of-band mode, namely by a Web page management function provided by the BMC.
Referring to fig. 1, a step flow chart of an operation and maintenance processing method of a server provided by an embodiment of the present invention is shown, where the method is applied to a control device, and the control device communicates with a plurality of servers, where the plurality of servers have a BMC system, and the method specifically may include the following steps:
step 101, determining a target server needing operation and maintenance processing.
The target server may be a server or a batch of servers. The operation and maintenance process can be the operation and maintenance of only data collection, the operation and maintenance of only firmware upgrading, and the operation and maintenance of data collection and firmware upgrading. Alternatively, it may be configured that one batch of servers performs operation and maintenance processing of data collection, and another batch of servers performs operation and maintenance processing of firmware upgrade. And can be selected according to the requirements.
Step 102, obtaining login information and a data format of a login request corresponding to the target server, and sending the login request to a BMC system of the target server according to the login information and the data format of the login request so as to log in the BMC system of the target server.
Typically, a server will be configured with a BMC system, and each BMC system will be configured with corresponding login information, where the login information includes: IP address, login user name, password, etc. of the BMC system.
The login information such as the IP address, the login user name and the password can be obtained from operation and maintenance personnel, can be obtained from corresponding server management functions, and can be set and collected by the user. For example: all servers are placed under the same local area network, local area network addresses are distributed to each server through the DHCP service of the central server and the routing management function, and then the IP addresses of the BMC systems of the servers can be collected. After the IP address, login user name and password of the BMC system are collected, the IP address, login user name and password can be stored on the control device.
Optionally, the data format of the login request of the target server is obtained by: the Web login interface of the BMC system in the server is accessed through the browser, login of the BMC Web page is completed according to login information of the BMC system of the server, and a data format of a login request is obtained.
Specifically, the manner of completing the login of the BMC Web page and obtaining the data format of the login request may be:
And opening the browser, namely using a Chrome browser, opening a developer tool (default shortcut key F12) of the browser, and inputting the IP address of the BMC system in the browser address bar to access the Web login interface of the BMC. And (3) inputting a user name and a password into a Web login interface of the BMC, clicking a login button, and entering a Web page of the BMC.
The HTTP (Hyper Text Transfer Protocol ) request during login may be obtained in the BMC Web page, where the obtaining method is: and locating the HTTP request initiated by the login in a developer tool of the BMC Web page, wherein the BMC Web page can display the whole content of the HTTP request initiated by the login.
Each click operation on the browser initiates a network request based on the HTTP protocol. The browser sends a request to the server, and waits to receive a response of the server, wherein the response content can be a group of data or a state that a certain action is successfully completed. The HTTP protocol is a response protocol that enables communication between a client and a server, and is also used as a request between a "client" and a "server". The "client" here refers to a Web page logged in using a browser, and the "server" refers to a BMC system independent of the physical server operating system mentioned in the present application.
The browser uses the HTTP protocol as the application-layer protocol for encapsulating the requested text information and TCP/IP (Transmission Control Protocol, transmission control protocol; internet Protocol Address, internet protocol address) as the transport-layer protocol. The process of making one HTTP request is: ① A connection needs to be established using a Request URL (Uniform Resource Locator ) first before sending the Request. Each HTTP Request corresponding to an operation on the BMC Web page has a unique Request URL, which is essentially an address; ② After the connection is established successfully, a request can be sent to a 'server', which refers to a BMC system in the application. The content of the request comprises a request line, wherein the request line is used for indicating a request method, generally GET and POST; the request header is used for reporting basic information of the browser to the server, such as a client operating system carrying the browser, a browser kernel, domain name information of the current request, cookie information of the browser and the like; a request body, which is used for sending parameters and the like of a 'server side'; ③ After the request is successfully sent, the server processes the received request, then responds to the client, returns data to the browser, and then disconnects.
The user completes one operation through the BMC Web page, which essentially completes three processes of HTTP Request, and the parts of the Request URL, the HTTP Request head and the Request body are mainly required to be extracted in the three processes. The method comprises the steps of replacing the IP address, login user name and password of the BMC system with the IP address, login user name and password of the other BMC system in a Request URL, an HTTP Request header and a Request body of a login Request, and sending the replaced HTTP login Request to the other BMC system to complete the login of a BMC Web page of the other BMC system. Therefore, the data format of the login request of the BMC system can be understood as other contents except the IP address, the login user name and the password of the BMC system in the HTTP login request, if a BMC Web page of a certain BMC system needs to be logged in, the login request of the BMC system can be obtained by combining the IP address, the login user name and the password of the BMC system and the data format of the login request of the BMC system, and the login request can be sent to the BMC system to complete the login of the BMC Web page.
In one embodiment, the control device is loaded with a request library, and the request library may be invoked to send a login request to the BMC system of the target server to log in to the BMC system of the target server. The request store may be a request store of requests.
Because the application logs in through the Web page of the BMC system, the login request adopts a request based on the HTTP protocol, and the HTTP protocol is stateless, the server side can not record the client side identification for sending the request, so that a request library can be called to create a session corresponding to the BMC system of the target server before the login request is sent to the BMC system of the target server; after the session is created, the call request library sends a login request to the BMC system of the target server under the session to log in the BMC system of the target server.
Specifically, a session mechanism of the requests can be used to create a session corresponding to the BMC system of the target server, and the session mechanism is used to record the user state and the identity when the BMC login information is used to log in the BMC Web page for the first time. Under the same session, the request continuously initiated to the server does not need to carry out identity authentication again.
The requests request library can simultaneously send HTTP login requests to each server BMC system to log in the BMC system of the target server, and simultaneously complete the login of the BMC system of the target server; logging in and operation of the BMC system of the target server can be completed in a traversing mode. For example, an HTTP request is sent to a BMC system of one of the target servers to log in the BMC system of the server, after the login is completed, an operation and maintenance request is continuously sent to the BMC system of the server, and after the BMC system of the server responds to the operation and maintenance request and executes the operation and maintenance process, the login request and the operation and maintenance request are sent to the BMC system of the next server of the target servers until the target servers all complete the preset operation and maintenance process. In the step, manual operation and maintenance are simulated, and the login of the BMC system is realized by sending an out-of-band mode of requesting to access the BMC Web page, and the login of the BMC system under a batch processing scene is realized.
Step 103, after logging in the BMC system of the target server, acquiring a data format of an operation and maintenance request corresponding to the target server, and sending the operation and maintenance request to the BMC system of the target server according to the login information and the data format of the operation and maintenance request so as to enable the target server to execute operation and maintenance processing according to the operation and maintenance request; the operation and maintenance request comprises a data collection request and/or a firmware upgrade request.
Optionally, the data format of the operation and maintenance request of the target server is obtained by: accessing a Web login interface of a BMC system in a server through a browser, and completing login of a BMC Web page according to login information of the BMC system of the server; after logging in the BMC Web page of the server, performing data collection operation and acquiring a data format of the data collection request, and/or performing firmware upgrading operation and acquiring a data format of the firmware upgrading request.
Optionally, after the BMC Web page of the BMC system is logged in, a 'management' - 'CPLD firmware update' can be clicked on a menu bar of the BMC Web page in turn to enter a CPLD update page, wherein CPLD (Complex Programming logic device) refers to a complex programmable logic device; selecting 'MainBoard (. Vme)' on the CPLD update page, and clicking to enter a CPLD update mode; selecting a firmware file and uploading the firmware file; and finally clicking the 'start refreshing', waiting for refreshing, and finishing firmware upgrading operation and maintenance when refreshing is finished. In the process of completing firmware upgrade through the BMC Web page, it is also necessary to collect HTTP requests sent by each operation, including clicking HTTP requests sent by "manage", clicking HTTP requests sent by "CPLD firmware update", selecting HTTP requests sent by "MainBoard (. Vme)", clicking HTTP requests sent by entering CPLD update mode, and so on. The HTTP requests described above may also be viewed and collected in the developer tool of the BMC Web page. After the HTTP requests for completing the firmware upgrade operations are obtained, it can be understood that the portion of the HTTP requests for the firmware upgrade operations related to the BMC system login information is removed, and the remaining HTTP request content is the data format of the firmware upgrade operation and maintenance request. If the firmware upgrading operation and maintenance is required to be completed after a BMC Web page of a certain BMC system is logged in, combining the login information of the BMC system and the data format of the firmware upgrading of the BMC system to obtain a firmware upgrading request of the BMC system, and sending the firmware upgrading request to the BMC system to complete the firmware upgrading operation and maintenance processing.
The data collection operation and maintenance can be completed by performing corresponding operation on the menu bar of the BMC Web page, and HTTP requests sent by each operation in the data collection process can be checked and obtained in the developer tool of the BMC Web page. The data format of the data collection operation and maintenance request can be understood as removing the content of the data collection HTTP request regarding the BMC system login information part.
It should be noted that, the BMC Web pages of servers of different models or different manufacturers may be displayed differently, and the operation and maintenance operation methods may also be different correspondingly, so those skilled in the art may obtain the data format of the login request and the data format of the operation and maintenance request for the BMC system of the server in other manners according to the concept of the present application, which is not limited in this application.
In one embodiment, a data collection request may be sent to a BMC system of a target server according to login information of the target server and a data format of the data collection request, so that the target server performs a data collection process according to the data collection request; or the firmware upgrading request can be sent to the BMC system of the target server according to the login information of the target server and the data format of the firmware upgrading request so that the target server executes the firmware upgrading process; or the data collection request and the firmware upgrading request can be sent to the BMC system of the target server according to the login information of the target server, the data format of the data collection request and the data format of the firmware upgrading request, so that the target server executes the data collection processing and the firmware upgrading processing.
In one embodiment, the request library may be invoked to send an operation and maintenance request to the BMC system of the target server, so that the target server performs operation and maintenance processing according to the operation and maintenance request.
In one embodiment, after logging in the BMC system of the target server is completed under the session, the request library is called to send an operation and maintenance request to the BMC system of the target server under the session, so that the target server executes operation and maintenance processing according to the operation and maintenance request. Specifically, after the requests request library creates a session and completes the login of the BMC system of the target server, the requests can be used to automatically send HTTP requests of corresponding processes to the server under the session to complete data collection of the BMC system and/or firmware upgrading operation and maintenance processing.
In the step, the manual operation and maintenance is simulated, and after logging in the BMC Web page of the target server, the operation and maintenance request is continuously sent to enable the target server to perform operation and maintenance processing, so that the operation and maintenance of the target server are realized under a batch processing scene, the operation and maintenance efficiency is improved, and the error operation caused by negligence of operation and maintenance personnel during the manual operation and maintenance is avoided.
And 104, receiving response information sent by the BMC system of the target server, wherein the response information is generated by executing operation and maintenance processing by the BMC system of the target server in response to the operation and maintenance request.
And each time the control device sends an HTTP request, the BMC system of the target server responds to the HTTP request, performs corresponding processing, generates response information and feeds the response information back to the control device.
In one embodiment, the control device sends a data collection request to the BMC system of the target server according to the login information and the data format of the data collection request; the control device receives response information sent by the BMC system of the target server in response to the data collection request, the response information is generated by the BMC system of the target server in response to the data collection request by executing data collection processing, and the response information comprises: at least one of sensor information of the server, hardware information of the server, and a system log of the server.
In one embodiment, the control device may have a parsing library loaded thereon, which may be Beautifulsoup parsing library. After receiving the response information sent by the BMC system of the target server, the analysis library can be called to analyze the response information so as to extract target content and store the target content; the target content comprises: at least one of sensor information, hardware information, system logs, firmware upgrade information. The firmware upgrading information is generated by the BMC system of the target server by responding to the firmware upgrading request and executing firmware upgrading processing.
The content of the response information is generally a Web page written by using HTML (hypertext markup language), and the content of the response information needs to be parsed, formatted and target content is extracted by using a parsing library, and then the target content is cleaned and stored in a database or in a text form for subsequent data analysis and decision.
According to the method and the device, the control equipment sends the login request to the BMC system of the target server according to the login information of the target server and the data format of the login request, so that the BMC system of the target server can be simulated to be manually operated and maintained to log in an out-of-band mode; after logging in the BMC system of the target server, according to the login information of the target server and the data format of the operation and maintenance request, the operation and maintenance request is sent to the BMC system of the target server, and the target server can execute operation and maintenance processing in an out-of-band mode by simulating the artificial operation and maintenance. The control device automatically sends a request to the BMC system, and executes login processing and operation and maintenance processing, so that the artificial operation and maintenance can be converted into machine operation and maintenance processing of the server can be finished in batches, the efficiency is improved, meanwhile, the work which cannot be finished by the artificial operation and maintenance can be finished, for example, under the condition that the BMC does not provide a downloading log and a firmware in-band upgrading function, the data collection and firmware upgrading operation and maintenance processing can be finished in an out-of-band mode.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 2, a block diagram of an operation and maintenance processing apparatus of a server according to an embodiment of the present invention is applied to a control device, where the control device communicates with a plurality of servers, and the plurality of servers have a BMC system, where the apparatus specifically may include the following modules:
the target server confirmation module 201 is configured to determine a target server that needs to perform an operation and maintenance process.
The request sending module 202 is configured to obtain login information and a data format of a login request corresponding to the target server, and send the login request to a BMC system of the target server according to the login information and the data format of the login request, so as to log in the BMC system of the target server; after logging in the BMC system of the target server, the method is used for acquiring a data format of an operation and maintenance request corresponding to the target server, and sending the operation and maintenance request to the BMC system of the target server according to the login information and the data format of the operation and maintenance request so that the target server executes operation and maintenance processing according to the operation and maintenance request; the operation and maintenance request includes a data collection request, and/or a firmware upgrade request.
And the response information receiving module 203 is configured to receive response information sent by the BMC system of the target server, where the response information is generated by the BMC system of the target server by performing operation and maintenance processing in response to the operation and maintenance request.
Optionally, the login information includes: IP address, login username and password of the BMC system.
Optionally, the control device is loaded with a request library, and the request sending module 202 is configured to invoke the request library to send a login request to the BMC system of the target server, so as to log in the BMC system of the target server; and the call request library sends an operation and maintenance request to the BMC system of the target server so that the target server executes operation and maintenance processing according to the operation and maintenance request.
Optionally, the request sending module 202 is configured to invoke the request library to create a session corresponding to the BMC system of the target server before sending a login request to the BMC system of the target server; after a session is established, a request library is called to send a login request to a BMC system of a target server under the session so as to log in the BMC system of the target server; after logging in the BMC system of the target server is completed under the session, the request library is called to send an operation and maintenance request to the BMC system of the target server under the session, so that the target server executes operation and maintenance processing according to the operation and maintenance request.
Optionally, the request sending module 202 is configured to send a data collection request to the BMC system of the target server according to the login information and the data format of the data collection request.
Optionally, the response information receiving module 203 is configured to receive response information sent by a BMC system of the target server in response to the data collection request, where the response information is generated by the BMC system of the target server in response to the data collection request by performing data collection processing, and the response information includes: at least one of sensor information of the server, hardware information of the server, and a system log of the server.
Optionally, the control device is loaded with an parsing library, and after receiving the response information sent by the BMC system of the target server, the response information receiving module 203 invokes the parsing library to parse the response information to extract the target content and store the target content; the target content comprises: at least one of sensor information, hardware information, system logs, firmware upgrade information.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The embodiment of the invention also provides electronic equipment, which comprises:
The operation and maintenance processing method comprises a processor, a memory and a computer program which is stored in the memory and can run on the processor, wherein the computer program realizes all the processes of the operation and maintenance processing method embodiment of the server when being executed by the processor, can achieve the same technical effect, and is not repeated here.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, realizes the processes of the operation and maintenance processing method embodiment of the server, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or terminal device that comprises the element.
The foregoing describes in detail the operation and maintenance processing method, apparatus, electronic device and storage medium of a server, and specific examples are applied to illustrate the principles and embodiments of the present invention, and the description of the foregoing examples is only used to help understand the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. The operation and maintenance processing method of the server is characterized by being applied to control equipment, wherein the control equipment is communicated with a plurality of servers, and the servers are provided with a Baseboard Management Controller (BMC) system; the method comprises the following steps:
Determining a target server needing operation and maintenance processing;
Acquiring login information and a data format of a login request corresponding to the target server, and sending the login request to a BMC system of the target server according to the login information and the data format of the login request so as to log in the BMC system of the target server;
After logging in a BMC system of the target server, acquiring a data format of an operation and maintenance request corresponding to the target server, and sending the operation and maintenance request to the BMC system of the target server according to the login information and the data format of the operation and maintenance request so that the target server executes operation and maintenance processing according to the operation and maintenance request; the operation and maintenance request comprises a data collection request and/or a firmware upgrading request;
And receiving response information sent by the BMC system of the target server, wherein the response information is generated by executing operation and maintenance processing by the BMC system of the target server in response to the operation and maintenance request.
2. The method according to claim 1, wherein the control device has a request library loaded thereon, and the sending a login request to the BMC system of the target server to login to the BMC system of the target server includes:
Calling the request library to send a login request to the BMC system of the target server so as to log in the BMC system of the target server;
the sending an operation and maintenance request to the BMC system of the target server so that the target server executes operation and maintenance processing according to the operation and maintenance request comprises:
And calling the request library to send an operation and maintenance request to a BMC system of the target server so that the target server executes operation and maintenance processing according to the operation and maintenance request.
3. The method of claim 2, wherein the invoking the request library to send a login request to the BMC system of the target server to login to the BMC system of the target server comprises:
Before a login request is sent to the BMC system of the target server, calling the request library to create a session corresponding to the BMC system of the target server; after a session is established, calling the request library to send a login request to the BMC system of the target server under the session so as to log in the BMC system of the target server;
The calling the request library to send an operation and maintenance request to the BMC system of the target server so that the target server executes operation and maintenance processing according to the operation and maintenance request comprises the following steps:
and after logging in the BMC system of the target server is completed under the session, calling the request library to send an operation and maintenance request to the BMC system of the target server under the session, so that the target server executes operation and maintenance processing according to the operation and maintenance request.
4. The method of claim 1, wherein the sending the operation and maintenance request to the BMC system of the target server according to the login information and the data format of the operation and maintenance request comprises:
according to the login information and the data format of the data collection request, sending a data collection request to a BMC system of the target server;
The receiving the response information sent by the BMC system of the target server comprises the following steps:
Receiving response information sent by the BMC system of the target server in response to the data collection request, wherein the response information is generated by the BMC system of the target server in response to the data collection request by executing data collection processing, and the response information comprises: at least one of sensor information of the server, hardware information of the server, and a system log of the server.
5. The method of claim 1, wherein the control device has a parsing library loaded thereon, the method further comprising:
After receiving response information sent by the BMC system of the target server, calling the analysis library to analyze the response information so as to extract target content and store the target content; the target content includes: at least one of sensor information, hardware information, system logs, firmware upgrade information.
6. The method as recited in claim 1, further comprising:
Accessing a Web login interface of a BMC system in a server through a browser, completing login of a BMC Web page and obtaining a data format of a login request according to login information of the BMC system of the server;
and after logging in the BMC Web page of the server, performing data collection operation and acquiring a data format of a data collection request, and/or performing firmware upgrading operation and acquiring a data format of a firmware upgrading request.
7. The method of claim 1, wherein the login information comprises: IP address, login username and password of the BMC system.
8. An operation and maintenance processing apparatus of a server, applied to a control device, the control device communicating with a plurality of servers having a BMC system, the apparatus comprising:
The target server confirming module is used for determining a target server needing operation and maintenance processing;
The request sending module is used for obtaining login information corresponding to the target server and a data format of a login request, and sending the login request to a BMC system of the target server according to the login information and the data format of the login request so as to log in the BMC system of the target server; after logging in the BMC system of the target server, the method is used for acquiring a data format of an operation and maintenance request corresponding to the target server, and sending the operation and maintenance request to the BMC system of the target server according to the login information and the data format of the operation and maintenance request so that the target server executes operation and maintenance processing according to the operation and maintenance request; the operation and maintenance request comprises a data collection request and/or a firmware upgrading request;
And the response information receiving module is used for receiving response information sent by the BMC system of the target server, and the response information is generated by executing operation and maintenance processing by the BMC system of the target server in response to the operation and maintenance request.
9. An electronic device, comprising: a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor, implements the steps of the operation and maintenance processing method of a server according to any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the operation and maintenance processing method of a server according to any one of claims 1-7.
CN202211318964.1A 2022-10-26 2022-10-26 Operation and maintenance processing method and device of server, electronic equipment and storage medium Active CN115714719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211318964.1A CN115714719B (en) 2022-10-26 2022-10-26 Operation and maintenance processing method and device of server, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211318964.1A CN115714719B (en) 2022-10-26 2022-10-26 Operation and maintenance processing method and device of server, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115714719A CN115714719A (en) 2023-02-24
CN115714719B true CN115714719B (en) 2024-05-14

Family

ID=85231387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211318964.1A Active CN115714719B (en) 2022-10-26 2022-10-26 Operation and maintenance processing method and device of server, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115714719B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9648138B1 (en) * 2012-03-27 2017-05-09 Open Text Corporation Method and system for virtual server dormancy
CN108809702A (en) * 2018-05-25 2018-11-13 联想(北京)有限公司 A kind of device management method and device management platform
CN113536304A (en) * 2021-08-04 2021-10-22 久盈世纪(北京)科技有限公司 Operation and maintenance audit system-based bypassing prevention method and equipment
CN113708957A (en) * 2021-08-03 2021-11-26 中移(杭州)信息技术有限公司 Configuration method, terminal device and medium for server BMC
CN114327536A (en) * 2021-11-30 2022-04-12 浪潮电子信息产业股份有限公司 Server operation and maintenance method, device, equipment and storage medium
CN114491210A (en) * 2022-01-28 2022-05-13 深圳快银付信息科技有限公司 Data acquisition method and device based on web crawler

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9648138B1 (en) * 2012-03-27 2017-05-09 Open Text Corporation Method and system for virtual server dormancy
CN108809702A (en) * 2018-05-25 2018-11-13 联想(北京)有限公司 A kind of device management method and device management platform
CN113708957A (en) * 2021-08-03 2021-11-26 中移(杭州)信息技术有限公司 Configuration method, terminal device and medium for server BMC
CN113536304A (en) * 2021-08-04 2021-10-22 久盈世纪(北京)科技有限公司 Operation and maintenance audit system-based bypassing prevention method and equipment
CN114327536A (en) * 2021-11-30 2022-04-12 浪潮电子信息产业股份有限公司 Server operation and maintenance method, device, equipment and storage medium
CN114491210A (en) * 2022-01-28 2022-05-13 深圳快银付信息科技有限公司 Data acquisition method and device based on web crawler

Also Published As

Publication number Publication date
CN115714719A (en) 2023-02-24

Similar Documents

Publication Publication Date Title
US6219708B1 (en) System for network resource management
US10931730B2 (en) Method and system for ISP network performance monitoring and fault detection
US11392873B2 (en) Systems and methods for simulating orders and workflows in an order entry and management system to test order scenarios
CN103905258B (en) A kind of method of testing and device of client data upload function
CN101933003A (en) Automated application dependency mapping
CN101605056A (en) A kind of J2EE server monitoring device and adopt the method for supervising of this device
WO2004053737A1 (en) Method and system for automatic detection of monitoring data sources
US8311979B2 (en) Method and system for importing an application and server map to a business systems manager display
CN109254922B (en) Automatic testing method and device for BMC Redfish function of server
WO2007064129A1 (en) Grid computing control method for testing application program capacity of server and service method thereof
CN107634871B (en) Connectivity test method, device and system
CN112506969A (en) BMC address query method, system, equipment and readable storage medium
CN107463490B (en) Cluster log centralized collection method applied to platform development
CN115913942A (en) Power meter remote upgrading method and system based on intranet penetration technology
CN115714719B (en) Operation and maintenance processing method and device of server, electronic equipment and storage medium
JP2009517733A (en) Grid computing system for testing server application program performance
JP2000207254A (en) Server management device, method therefor and recording medium recorded with server managing program
US20130246523A1 (en) Browser based recovery discovery
CN108183821B (en) Application performance obtaining method and device for power grid service
US9479396B2 (en) XML based generic UNIX discovery framework
US20210119863A1 (en) Workflow for self provisioning smart well controller
CN113726808A (en) Website monitoring method, device, equipment and storage medium
Cisco Troubleshooting
Cisco Release Notes for Voice Health Monitor 1.0 on Windows 2000
JP6927930B2 (en) Programs, devices and methods for creating a network status model for each contract line for each subscriber

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