CN115827027A - Data processing method, data processing device, storage medium and electronic equipment - Google Patents

Data processing method, data processing device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115827027A
CN115827027A CN202211711857.5A CN202211711857A CN115827027A CN 115827027 A CN115827027 A CN 115827027A CN 202211711857 A CN202211711857 A CN 202211711857A CN 115827027 A CN115827027 A CN 115827027A
Authority
CN
China
Prior art keywords
equipment
upgraded
information
server
sending
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
Application number
CN202211711857.5A
Other languages
Chinese (zh)
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 CN202211711857.5A priority Critical patent/CN115827027A/en
Publication of CN115827027A publication Critical patent/CN115827027A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a data processing method, a data processing device, a storage medium and electronic equipment, wherein the method comprises the following steps: the method comprises the steps that a server obtains equipment information of equipment to be upgraded through a management network and stores the equipment information in a database of the server; the server sends an upgrading script to the equipment to be upgraded through a data network and receives first feedback information of the equipment to be upgraded; and under the condition that the first feedback information represents that the equipment to be upgraded is upgraded, sending the equipment information to the equipment to be upgraded through a data network. Through the method and the device, the problem that the server cannot be normally used due to the fact that information of the baseboard management controller is lost after the baseboard management controller is upgraded in the related art is solved.

Description

Data processing method, data processing device, storage medium and electronic equipment
Technical Field
The embodiment of the application relates to the field of computers, in particular to a data processing method, a data processing device, a storage medium and electronic equipment.
Background
With the popularization of the trust and creation server, namely a domestic server, enterprises using the trust and creation server and use scenes are gradually expanded. When the trusted server is used, the BMC (Baseboard Management Controller) in the trusted server may be upgraded when the architecture design is changed and the capacity of the storage chip of the server host is low.
However, when the BMC is upgraded, the BMC configuration defined by the original client, such as the IP, administrator information, password, etc. of the BMC, may be lost, so that the BMC may not be normally used due to the loss of information, and the use of the trusted server may be affected.
Disclosure of Invention
The embodiment of the application provides a data processing method, a data processing device, a storage medium and electronic equipment, and aims to at least solve the problem that a server cannot be normally used due to information loss of a baseboard management controller after the baseboard management controller is upgraded in the related art.
According to an embodiment of the present application, there is provided a data processing method including: the method comprises the steps that a server obtains equipment information of equipment to be upgraded through a management network and stores the equipment information in a database of the server; the method comprises the steps that a server sends an upgrading script to equipment to be upgraded through a data network and receives first feedback information of the equipment to be upgraded; and under the condition that the first feedback information represents that the equipment to be upgraded is upgraded, sending the equipment information to the equipment to be upgraded through a data network.
Optionally, the sending, by the server, the upgrade script to the device to be upgraded through the data network includes: obtaining system type information, system version information and network type of equipment to be upgraded from the equipment information; acquiring an upgrading script of equipment to be upgraded from a database according to the system type information and the system version information; and determining a data network connected with the equipment to be upgraded according to the network type, and sending the upgrading script to the equipment to be upgraded through the data network.
Optionally, after the server sends the upgrade script to the device to be upgraded through the data network, the method further includes: under the condition that the first feedback information represents that the equipment to be upgraded is not upgraded, generating first alarm information in the server, and resending the upgrade script to the equipment to be upgraded; judging whether the first feedback information is received within preset time, and generating second alarm information under the condition that the first feedback information is not received within the preset time, wherein the second alarm information represents that the equipment to be upgraded is upgraded overtime; after the first feedback information is received, the first feedback information is analyzed, whether feedback content in the first feedback information is abnormal or not is judged, and third warning information is generated under the condition that the feedback content is abnormal.
Optionally, after the server obtains the device information of the device to be upgraded through the management network, the method further includes: extracting digital information in the equipment information, calculating the digital information through a preset algorithm to obtain a calculation result, and determining the calculation result as an equipment identifier of the equipment to be upgraded; adding the equipment identification to the upgrading script, and executing the step of sending the upgrading script to the equipment to be upgraded through a data network; under the condition that the first feedback information represents that the equipment to be upgraded finishes upgrading, the step of sending the equipment information to the equipment to be upgraded through a data network comprises the following steps: and identifying the equipment carrying the equipment identifier from the plurality of pieces of equipment, and sending the equipment information to the equipment carrying the equipment identifier through a data network.
Optionally, sending the device information to the device to be upgraded through the data network includes: acquiring an equipment number in the equipment information, and determining equipment corresponding to the equipment number from a plurality of pieces of equipment through a data network to obtain equipment to be upgraded; and encrypting the equipment information to obtain encrypted information, and sending the encrypted information to the equipment to be upgraded.
Optionally, after sending the device information to the device to be upgraded through the data network, the method further includes: sending instruction information to the equipment to be upgraded through the server, and receiving second feedback information returned after the equipment to be upgraded responds to the instruction information, wherein the second feedback information comprises current equipment information of the equipment to be upgraded; acquiring equipment information of equipment to be upgraded from a database of a server, and comparing the equipment information with current equipment information to obtain a comparison result; and generating fourth alarm information under the condition that the comparison result represents that the equipment information is different from the current equipment information, wherein the fourth alarm information represents that the step of sending the equipment information to the equipment to be upgraded through the data network is abnormal.
Optionally, after the device information is sent to the device to be upgraded through the data network, the method further includes: sending identification information to the equipment to be upgraded through a data network, wherein the identification information is used for identifying whether a management network exists between the equipment to be upgraded and the server after the equipment to be upgraded is upgraded; and under the condition that the management network does not exist between the equipment to be upgraded and the server after the equipment to be upgraded is upgraded, sending the network setting program to the equipment to be upgraded, and receiving third feedback information sent by the equipment to be upgraded through the management network, wherein the third feedback information represents that the setting of the management network is completed.
According to another embodiment of the present application, there is provided a data processing apparatus including: the system comprises an acquisition unit, a database and a storage unit, wherein the acquisition unit is used for acquiring equipment information of equipment to be upgraded by a server through a management network and storing the equipment information in the database of the server; the system comprises a first sending unit, a second sending unit and a control unit, wherein the first sending unit is used for sending an upgrading script to equipment to be upgraded through a data network by a server and receiving first feedback information of the equipment to be upgraded; and the second sending unit is used for sending the equipment information to the equipment to be upgraded through the data network under the condition that the first feedback information represents that the equipment to be upgraded finishes upgrading.
According to a further embodiment of the application, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
According to yet another embodiment of the present application, there is also provided an electronic device, comprising a memory in which a computer program is stored and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
According to the method and the device, when the equipment needs to be upgraded, the equipment information of the equipment to be upgraded is obtained through the server, the equipment information backup is completed in the server, the upgrade script is sent to the equipment to be upgraded after the equipment information backup is completed, the equipment to be upgraded is upgraded through the upgrade script, at the moment, the equipment information in the equipment to be upgraded is deleted, the equipment to be upgraded returns feedback information to the server after the upgrade is completed, the upgrade result can be returned to a user in the feedback information in a log mode, the server can send the backup equipment information to the equipment to be upgraded after the feedback information is obtained, and therefore the integrity and the accuracy of data in the equipment to be upgraded are guaranteed. Therefore, the problem that the server cannot be normally used due to the fact that information of the baseboard management controller is lost after the baseboard management controller is upgraded in the related art can be solved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal of a data processing method according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of data processing according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an alternative data processing system according to an embodiment of the present application;
FIG. 4 is a flow chart of an alternative data processing method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a data processing apparatus 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 embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal (electronic device), a computer terminal, or a similar computing device. Taking an example of the method performed by a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal according to the data processing method in the embodiment of the present application. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those of ordinary skill in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the mobile terminal. For example, the mobile terminal 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 can be used for storing computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the data processing method in the embodiment of the present application, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The 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 located remotely from the processor 102, which may be connected to the mobile terminal over 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 the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices via a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In the present embodiment, a method for operating the mobile terminal (electronic device) is provided, and fig. 2 is a flowchart of a data processing method according to an embodiment of the present application, and as shown in fig. 2, the flowchart includes the following steps:
step S202, the server obtains the equipment information of the equipment to be upgraded through the management network and stores the equipment information in a database of the server.
It should be noted that fig. 3 is a schematic diagram of an alternative data processing system according to an embodiment of the present application, and as shown in fig. 3, a server, that is, an operation and maintenance management server, is connected to multiple devices through a switch, where each device is a BMC in a trusted server. The data processing method in the embodiment of the application can be applied to the data processing system.
Specifically, the server may be an operation and maintenance server, and is configured to control a plurality of BMCs, and may upgrade and monitor the BMCs that need to be upgraded. The device to be upgraded is also the BMC which needs firmware or system upgrade, and the BMC and the server are connected through a management network and a data network, wherein the management network is an internal network, and the data network is an external network.
When a BMC needs to be upgraded, the upgrade information needs to be sent to the operation and maintenance server through the management network, so that an upgrade instruction and data content required for upgrading are received from the operation and maintenance server. The BMC loses the equipment information after upgrading, so that the equipment information can be sent to the operation and maintenance server for backup when the upgrading information is sent to the operation and maintenance server, the equipment information can be written back from the operation and maintenance server when the equipment information of the BMC is lost, and the completeness of data can be guaranteed after upgrading of the BMC.
Step S204, the server sends an upgrade script to the equipment to be upgraded through a data network and receives first feedback information of the equipment to be upgraded.
Specifically, after receiving the upgrade information sent by the BMC to be upgraded, the operation and maintenance server needs to obtain an upgrade script corresponding to the BMC device from a database of the operation and maintenance server and send the upgrade script to the BMC device through a data network, at this time, the BMC device may upgrade according to the received upgrade script and send an upgraded upgrade result, for example, an upgrade result log, as feedback information to the operation and maintenance server, so as to inform the operation and maintenance server of the upgrade result of the BMC device, and perform subsequent operations according to the upgrade result.
And step S206, under the condition that the first feedback information represents that the equipment to be upgraded finishes upgrading, sending the equipment information to the equipment to be upgraded through a data network.
Specifically, after the BMC device finishes upgrading, the operation and maintenance server determines the upgrading condition of the BMC device by reading the log content in the first feedback information, and sends the device information to the BMC device through the data network under the condition that upgrading is finished, so that the device information of the BMC device is guaranteed to be written back and restored, and the completeness and accuracy of data can be guaranteed after upgrading of the BMC device.
It should be noted that, because the device information is completely lost when the BMC device is upgraded, the management network associated with the device information is also disconnected, and at this time, the device information can only be written back to the BMC device through the data network, thereby ensuring the stability of information transmission.
The method comprises the following steps: the method comprises the steps that a server obtains equipment information of equipment to be upgraded through a management network and stores the equipment information in a database of the server; the server sends an upgrading script to the equipment to be upgraded through a data network and receives first feedback information of the equipment to be upgraded; and under the condition that the first feedback information represents that the equipment to be upgraded finishes upgrading, sending the equipment information to the equipment to be upgraded through a data network. When equipment needs to be upgraded, equipment information of equipment to be upgraded is acquired through the server, backup of the equipment information is completed in the server, an upgrade script is sent to the equipment to be upgraded after the backup of the equipment information is completed, the equipment to be upgraded is upgraded through the upgrade script, at the moment, the equipment information in the equipment to be upgraded is deleted, after the upgrade is completed, the equipment to be upgraded can return feedback information to the server, an upgrade result can be returned to a user in the feedback information in a log mode, the server can send the backed-up equipment information to the equipment to be upgraded after the backup of the feedback information is acquired, and therefore integrity and accuracy of data in the equipment to be upgraded are guaranteed. Therefore, the problem that the server cannot be normally used due to the fact that information of the baseboard management controller is lost after the baseboard management controller is upgraded in the related art can be solved.
The executing body of the above steps may be a mobile terminal (electronic device), a computer terminal, or a similar computing device, but is not limited thereto.
Optionally, the sending, by the server, the upgrade script to the device to be upgraded through the data network includes: obtaining system type information, system version information and network type of equipment to be upgraded from the equipment information; acquiring an upgrading script of equipment to be upgraded from a database according to the system type information and the system version information; and determining a data network connected with the equipment to be upgraded according to the network type, and sending the upgrading script to the equipment to be upgraded through the data network.
Specifically, after the operation and maintenance server obtains the device information of the device to be upgraded, the operation and maintenance server may determine the system type and the system version of the BMC device according to the device information, determine the upgrade content that the BMC device should perform according to the system type and the system version, and determine the corresponding upgrade script according to the upgrade content, thereby ensuring that the BMC device can correctly complete the upgrade operation.
For example, if the current system version of the BMC device is v2.0, and the trusted server where the BMC device is located needs to upgrade the firmware in the BMC device to v4.0, the upgrade script corresponding to v4.0 is directly determined as the upgrade script corresponding to the BMC device.
Further, after the upgrade script is determined, the network type of the BMC device needs to be determined, so that a data network that can be connected to the BMC device can be determined from a plurality of data networks, and the upgrade script is sent to the BMC device according to the data network, thereby completing the upgrade of the BMC device through the upgrade script.
Optionally, after the server sends the upgrade script to the device to be upgraded through the data network, the method further includes: under the condition that the first feedback information represents that the equipment to be upgraded is not upgraded, generating first alarm information in the server, and resending the upgrade script to the equipment to be upgraded; judging whether the first feedback information is received within preset time, and generating second alarm information under the condition that the first feedback information is not received within the preset time, wherein the second alarm information represents that the equipment to be upgraded is upgraded overtime; after the first feedback information is received, the first feedback information is analyzed, whether feedback content in the first feedback information is abnormal or not is judged, and third warning information is generated under the condition that the feedback content is abnormal.
Specifically, when the BMC device is upgraded through the upgrade script, an abnormal upgrade situation may occur, that is, a failure of representing the upgrade in the log in the feedback information may occur, and at this time, many factors may cause the upgrade failure of the BMC device, so that the first alarm information needs to be generated in the operation and maintenance server to notify the operation and maintenance personnel of the upgrade failure, and the upgrade script is sent to the BMC device again at the same time, so that the BMC device performs the upgrade operation again.
Further, a situation that the first feedback information cannot be received for a long time may occur, and at this time, the first feedback information may not be received due to timeout of the device upgrade, or the first feedback information may not be received due to an abnormality in the data network, so that under the condition that the first feedback information is not received for a long time, the second alarm information needs to be generated to notify the BMC of the operation and maintenance staff that the device upgrade is timeout.
Further, after the first feedback information is successfully received, it is also necessary to determine whether the feedback content in the first feedback information is abnormal, that is, after the update is successful, the BMC device also needs to feed back the updated state information to the operation and maintenance server, at this time, if the state information is abnormal, even if the first feedback information represents that the BMC device is successfully updated, a problem still exists, the update needs to be performed again, and at this time, third alarm information may be generated to notify the operation and maintenance personnel that the update result of the BMC device is abnormal. And then whether the BMC equipment completes the upgrade correctly is determined according to the receiving condition and the information content of the first feedback information.
Optionally, after the server obtains the device information of the device to be upgraded through the management network, the method further includes: extracting digital information in the equipment information, calculating the digital information through a preset algorithm to obtain a calculation result, and determining the calculation result as an equipment identifier of the equipment to be upgraded; adding the equipment identification to the upgrading script, and executing the step of sending the upgrading script to the equipment to be upgraded through a data network; under the condition that the first feedback information represents that the equipment to be upgraded finishes upgrading, the step of sending the equipment information to the equipment to be upgraded through a data network comprises the following steps: and identifying the equipment carrying the equipment identifier from the plurality of pieces of equipment, and sending the equipment information to the equipment carrying the equipment identifier through a data network.
It should be noted that, after the BMC device is upgraded, the device information in the device is deleted, so that an identifier needs to be added to the device information, and the device corresponding to the device information is determined according to the identifier, thereby avoiding that the device information is sent to an unmatched device, which may cause an information error.
Specifically, the device information may include information such as a BMC firmware configuration administrator user, an administrator password, a BMC network configuration IP address, etc., digital information, such as a password, an IP address, etc., may be obtained from a plurality of pieces of information in the device information, and the plurality of pieces of digital information are changed and encrypted according to a preset algorithm, such as a hash algorithm, to obtain updated digital information, and the information is determined as identification information of the BMC device, so that the BMC device may be located according to the identification information.
After the identification is generated, the identification can be added into the upgrading script when the upgrading script is sent to the equipment to be upgraded through the data network, so that after the upgrading is finished, the identification is located in the upgrading script, the identification cannot be deleted together with the equipment information, at the moment, when the server sends the equipment information to the equipment to be upgraded through the data network, the BMC equipment corresponding to the equipment information can be identified according to the identification, and therefore the equipment information cannot be sent to the non-corresponding BMC equipment.
Optionally, sending the device information to the device to be upgraded through the data network includes: acquiring an equipment number in the equipment information, and determining equipment corresponding to the equipment number from a plurality of pieces of equipment through a data network to obtain equipment to be upgraded; and encrypting the equipment information to obtain encrypted information, and sending the encrypted information to the equipment to be upgraded.
Specifically, in another embodiment, the device number may be directly obtained from the device, or a certain unique identifier information may be directly obtained from an operating system of the BMC device through a certain preset instruction, and the identifier information and the device information are sent to the server together, and when the server returns the device information to the BMC device, the BMC device corresponding to the device information may be determined using the identifier information, and the device information may be encrypted through the identifier information, so that the security of some important device information is ensured.
Optionally, after the device information is sent to the device to be upgraded through the data network, the method further includes: sending instruction information to the equipment to be upgraded through the server, and receiving second feedback information returned after the equipment to be upgraded responds to the instruction information, wherein the second feedback information comprises current equipment information of the equipment to be upgraded; acquiring equipment information of equipment to be upgraded from a database of a server, and comparing the equipment information with current equipment information to obtain a comparison result; and generating fourth alarm information under the condition that the comparison result represents that the equipment information is different from the current equipment information, wherein the fourth alarm information represents that the step of sending the equipment information to the equipment to be upgraded through the data network is abnormal.
Specifically, after the BMC device finishes upgrading, instruction information may be sent to the upgraded device through the server, where the instruction information is to request current device information from the BMC device, and after the server receives the current device information, the current device information is compared with the device information of the BMC device stored in the server database, so as to determine whether the device information sent by the server to the BMC device is abnormal in the sending process according to the comparison result, resulting in a difference between the current device information of the BMC device and the device information before upgrading.
Optionally, after the device information is sent to the device to be upgraded through the data network, the method further includes: sending identification information to the equipment to be upgraded through a data network, wherein the identification information is used for identifying whether a management network exists between the equipment to be upgraded and a server after the equipment to be upgraded is upgraded; and under the condition that the management network does not exist between the equipment to be upgraded and the server after the equipment to be upgraded is upgraded, sending the network setting program to the equipment to be upgraded, and receiving third feedback information sent by the equipment to be upgraded through the management network, wherein the third feedback information represents that the setting of the management network is completed.
Specifically, after the BMC device completes the upgrade, the identification information needs to be sent to the BMC device completing the upgrade through the server, so as to identify whether the management network between the server and the BMC device is restored to be connected, at this time, under the condition that the management network between the server and the BMC device is not connected, the connection of the management network needs to be completed through a network setting program, and whether the connection of the management network is completed is determined by returning third feedback information through the management network, so that it is ensured that the updated BMC device returns to the network connection state before the upgrade.
Fig. 4 is a flowchart of an optional data processing method according to an embodiment of the present application, and as shown in fig. 4, first, a server sends an IPMI (intelligent platform management interface) instruction to obtain configuration information of a BMC, such as information of a BMC firmware configuration administrator user, an administrator password, a BMC network configuration IP address, and the like, through a BMC management network, and writes the configuration information into a file, and names the configuration information with a BMC host number. The host number value can be obtained by using an operating system (dmidreode) instruction.
And returning the acquired BMC configuration file named by the BMC host number to the server. And the server sends the upgrading script corresponding to the BMC device, upgrades the BMC device through the script, generates an upgrading log in the BMC device and sends the upgrading log to the server.
After receiving the log of successful refreshing of the target host, the server copies the retrieved information named by the host number to the BMC device in a script form, executes the IPMI instruction to write back the information again, and returns a write-back information log, so that an administrator can check whether the write-back information is correct or not by looking up the log. Therefore, when the equipment needs to be upgraded, the equipment information of the equipment to be upgraded is obtained through the server, the equipment information backup in the server is completed, the upgrading script is sent to the equipment to be upgraded after the equipment information backup is completed, the equipment to be upgraded is upgraded through the upgrading script, at the moment, the equipment information in the equipment to be upgraded is deleted, after the upgrading is completed, the equipment to be upgraded can return feedback information to the server, the feedback information can return an upgrading result to a user in a log mode, the server can send the backup equipment information to the equipment to be upgraded after the feedback information is obtained, and therefore the integrity and accuracy of data in the equipment to be upgraded are guaranteed. Therefore, the problem that the server cannot be normally used due to the fact that information of the baseboard management controller is lost after the baseboard management controller is upgraded in the related art can be solved.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method according to the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
In this embodiment, a data processing apparatus is further provided, which is used to implement the foregoing embodiments and preferred embodiments, and the description that has been already made is omitted. As used hereinafter, the terms "unit", "module" and "modules" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a schematic diagram of a data processing apparatus according to an embodiment of the present application, as shown in fig. 5, the apparatus including: an acquisition unit 51, a first transmission unit 52, a second transmission unit 53.
An obtaining unit 51, configured to obtain, by the server through the management network, device information of the device to be upgraded, and store the device information in a database of the server.
The first sending unit 52 is configured to send the upgrade script to the device to be upgraded through the data network, and receive first feedback information of the device to be upgraded.
And the second sending unit 53 is configured to send the device information to the device to be upgraded through the data network under the condition that the first feedback information represents that the device to be upgraded completes upgrading.
In the data processing apparatus provided in the embodiment of the present application, the server obtains the device information of the device to be upgraded through the management network by using the obtaining unit 51, and stores the device information in the database of the server. The first sending unit 52 sends the upgrade script to the device to be upgraded through the data network, and receives the first feedback information of the device to be upgraded. The second sending unit 53 sends the device information to the device to be upgraded through the data network under the condition that the first feedback information represents that the device to be upgraded completes the upgrade. When equipment needs to be upgraded, equipment information of equipment to be upgraded is acquired through the server, backup of the equipment information is completed in the server, an upgrade script is sent to the equipment to be upgraded after the backup of the equipment information is completed, the equipment to be upgraded is upgraded through the upgrade script, at the moment, the equipment information in the equipment to be upgraded is deleted, after the upgrade is completed, the equipment to be upgraded can return feedback information to the server, an upgrade result can be returned to a user in the feedback information in a log mode, the server can send the backed-up equipment information to the equipment to be upgraded after the backup of the feedback information is acquired, and therefore integrity and accuracy of data in the equipment to be upgraded are guaranteed. Therefore, the problem that the server cannot be normally used due to the fact that information of the baseboard management controller is lost after the baseboard management controller is upgraded in the related art can be solved.
Optionally, in the data processing apparatus provided in the embodiment of the present application, the first sending unit 52 includes: the first acquisition module is used for acquiring system type information, system version information and network type of equipment to be upgraded from the equipment information; the second acquisition module is used for acquiring the upgrading script of the equipment to be upgraded from the database according to the system type information and the system version information; and the determining module is used for determining a data network connected with the equipment to be upgraded according to the network type and sending the upgrading script to the equipment to be upgraded through the data network.
Optionally, in the data processing apparatus provided in the embodiment of the present application, the apparatus further includes: the first generating unit is used for generating first alarm information in the server under the condition that the first feedback information represents that the equipment to be upgraded does not finish upgrading, and resending the upgrading script to the equipment to be upgraded; the second generating unit is used for judging whether the first feedback information is received within the preset time, and generating second warning information under the condition that the first feedback information is not received within the preset time, wherein the second warning information represents that the equipment to be upgraded is upgraded overtime; and the third generating unit is used for analyzing the first feedback information after receiving the first feedback information, judging whether the feedback content in the first feedback information is abnormal or not, and generating third alarm information under the condition that the feedback content is abnormal.
Optionally, in the data processing apparatus provided in the embodiment of the present application, the apparatus further includes: the calculation unit is used for extracting the digital information in the equipment information, calculating the digital information through a preset algorithm to obtain a calculation result, and determining the calculation result as the equipment identifier of the equipment to be upgraded; an adding unit, configured to add the device identifier to the upgrade script, and execute a step of sending the upgrade script to the device to be upgraded via a data network; the second transmitting unit 53 includes: the first sending module is used for identifying the equipment carrying the equipment identifier from the plurality of pieces of equipment and sending the equipment information to the equipment carrying the equipment identifier through a data network.
Optionally, in the data processing apparatus provided in the embodiment of the present application, the second sending unit 53 includes: the third acquisition module is used for acquiring the equipment number in the equipment information and determining the equipment corresponding to the equipment number from the plurality of equipment through a data network to obtain the equipment to be upgraded; and the second sending module is used for encrypting the equipment information to obtain encrypted information and sending the encrypted information to the equipment to be upgraded.
Optionally, in the data processing apparatus provided in the embodiment of the present application, the apparatus further includes: the receiving unit is used for sending instruction information to the equipment to be upgraded through the server and receiving second feedback information returned by the equipment to be upgraded after responding to the instruction information, wherein the second feedback information comprises current equipment information of the equipment to be upgraded; the comparison unit is used for acquiring the equipment information of the equipment to be upgraded from the database of the server and comparing the equipment information with the current equipment information to obtain a comparison result; and the fourth generating unit is used for generating fourth alarm information under the condition that the comparison result represents that the equipment information is different from the current equipment information, wherein the fourth alarm information represents that the step of sending the equipment information to the equipment to be upgraded through the data network is abnormal.
Optionally, in the data processing apparatus provided in the embodiment of the present application, the apparatus further includes: the third sending unit is used for sending identification information to the equipment to be upgraded through a data network, wherein the identification information is used for identifying whether a management network exists between the equipment to be upgraded and the server after the equipment to be upgraded is upgraded; and the fourth sending unit is used for sending the network setting program to the equipment to be upgraded under the condition that the management network does not exist between the equipment to be upgraded and the server after the equipment to be upgraded is upgraded, and receiving third feedback information sent by the equipment to be upgraded through the management network, wherein the third feedback information represents that the setting of the management network is completed.
It should be noted that the above modules may be implemented by software or hardware, and all the modules are located in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present application further provide a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present application further provide an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps in any one of the method embodiments described above.
In an exemplary embodiment, the electronic device may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the present application described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing devices, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into separate integrated circuit modules, or multiple ones 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 above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A data processing method, comprising:
the method comprises the steps that a server obtains equipment information of equipment to be upgraded through a management network and stores the equipment information in a database of the server;
the server sends an upgrading script to the equipment to be upgraded through a data network and receives first feedback information of the equipment to be upgraded;
and under the condition that the first feedback information represents that the equipment to be upgraded finishes upgrading, sending the equipment information to the equipment to be upgraded through the data network.
2. The method of claim 1, wherein the server sending an upgrade script to the device to be upgraded over a data network comprises:
acquiring system type information, system version information and network type of the equipment to be upgraded from the equipment information;
acquiring an upgrading script of the equipment to be upgraded from the database according to the system type information and the system version information;
and determining a data network connected with the equipment to be upgraded according to the network type, and sending the upgrading script to the equipment to be upgraded through the data network.
3. The method of claim 1, wherein after the server sends an upgrade script to the device to be upgraded over a data network, the method further comprises:
under the condition that the first feedback information represents that the equipment to be upgraded is not upgraded, generating first alarm information in the server, and resending the upgrade script to the equipment to be upgraded;
judging whether the first feedback information is received within preset time, and generating second alarm information under the condition that the first feedback information is not received within the preset time, wherein the second alarm information represents that the equipment to be upgraded is upgraded overtime;
after the first feedback information is received, analyzing the first feedback information, judging whether feedback content in the first feedback information is abnormal or not, and generating third alarm information under the condition that the feedback content is abnormal.
4. The method of claim 1, wherein after the server obtains the device information of the device to be upgraded through the management network, the method further comprises:
extracting digital information in the equipment information, calculating the digital information through a preset algorithm to obtain a calculation result, and determining the calculation result as an equipment identifier of the equipment to be upgraded;
adding the equipment identification to the upgrading script, and executing the step of sending the upgrading script to the equipment to be upgraded through a data network;
under the condition that the first feedback information represents that the equipment to be upgraded finishes upgrading, the step of sending the equipment information to the equipment to be upgraded through the data network comprises the following steps:
and identifying the equipment carrying the equipment identification from the plurality of equipment, and sending the equipment information to the equipment carrying the equipment identification through the data network.
5. The method of claim 1, wherein sending the device information to the device to be upgraded over the data network comprises:
acquiring the equipment number in the equipment information, and determining equipment corresponding to the equipment number from a plurality of pieces of equipment through the data network to obtain the equipment to be upgraded;
and encrypting the equipment information to obtain encrypted information, and sending the encrypted information to the equipment to be upgraded.
6. The method of claim 1, wherein after sending the device information to the device to be upgraded over the data network, the method further comprises:
sending instruction information to the equipment to be upgraded through the server, and receiving second feedback information returned by the equipment to be upgraded after responding to the instruction information, wherein the second feedback information comprises current equipment information of the equipment to be upgraded;
acquiring the equipment information of the equipment to be upgraded from a database of the server, and comparing the equipment information with the current equipment information to obtain a comparison result;
and generating fourth warning information under the condition that the comparison result represents that the equipment information is different from the current equipment information, wherein the fourth warning information represents that the step of sending the equipment information to the equipment to be upgraded through the data network is abnormal.
7. The method of claim 1, wherein after sending the device information to the device to be upgraded over the data network, the method further comprises:
sending identification information to the equipment to be upgraded through the data network, wherein the identification information is used for identifying whether the management network exists between the equipment to be upgraded and the server after the equipment to be upgraded is upgraded;
and under the condition that the management network does not exist between the equipment to be upgraded and the server after the equipment to be upgraded is upgraded, sending a network setting program to the equipment to be upgraded, and receiving third feedback information sent by the equipment to be upgraded through the management network, wherein the third feedback information represents that the setting of the management network is completed.
8. A data processing apparatus, comprising:
the system comprises an acquisition unit, a database and a storage unit, wherein the acquisition unit is used for acquiring equipment information of equipment to be upgraded by a server through a management network and storing the equipment information in the database of the server;
the first sending unit is used for sending the upgrading script to the equipment to be upgraded by the server through a data network and receiving first feedback information of the equipment to be upgraded;
and the second sending unit is used for sending the equipment information to the equipment to be upgraded through the data network under the condition that the first feedback information represents that the equipment to be upgraded finishes upgrading.
9. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
10. 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 steps of the method as claimed in any of claims 1 to 7 are implemented when the computer program is executed by the processor.
CN202211711857.5A 2022-12-29 2022-12-29 Data processing method, data processing device, storage medium and electronic equipment Pending CN115827027A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211711857.5A CN115827027A (en) 2022-12-29 2022-12-29 Data processing method, data processing device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211711857.5A CN115827027A (en) 2022-12-29 2022-12-29 Data processing method, data processing device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115827027A true CN115827027A (en) 2023-03-21

Family

ID=85519402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211711857.5A Pending CN115827027A (en) 2022-12-29 2022-12-29 Data processing method, data processing device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115827027A (en)

Similar Documents

Publication Publication Date Title
KR101512611B1 (en) Systems and methods for repairing system files
CN111225064A (en) Ceph cluster deployment method, system, device and computer-readable storage medium
CN111008026A (en) Cluster management method, device and system
CN113672270A (en) Upgrading method, computer system and remote upgrading device
US20200409683A1 (en) Updating method, terminal and electronic device
CN111831350A (en) Application process configuration updating method, system, terminal device and storage medium
US11403113B2 (en) Server with system setting data synchronization function
CN113239114A (en) Data storage method, data storage device, storage medium and electronic device
CN111984287A (en) Equipment upgrading method and system
CN111385613B (en) Television system repairing method, storage medium and application server
CN107678917B (en) Test machine automation management method, device, equipment and storage medium
CN115827027A (en) Data processing method, data processing device, storage medium and electronic equipment
CN110958287A (en) Operation object data synchronization method, device and system
CN112579247A (en) Method and device for determining task state
CN114791832B (en) IOS system repairing method and device when equipment space is insufficient and related components
CN115460271B (en) Network control method and device based on edge calculation and storage medium
CN111176871B (en) Target application processing method and device, storage medium and electronic device
CN109683924B (en) Application software upgrading method, system, equipment and computer readable storage medium
US20230297724A1 (en) Hardware identity restoration post-device repair
CN107451035B (en) Error state data providing method for computer device
CN117873519A (en) Firmware upgrading method and device, storage medium and electronic device
CN113778497A (en) Hot patch application management method and device
CN118170405A (en) Method and device for sensing Pod application state and automatically updating application configuration
CN117742761A (en) Firmware updating method and device, storage medium and electronic equipment
CN115658103A (en) System upgrading method, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination