CN113890818A - Equipment replacement alarm method, device, equipment and medium in server - Google Patents

Equipment replacement alarm method, device, equipment and medium in server Download PDF

Info

Publication number
CN113890818A
CN113890818A CN202111142114.6A CN202111142114A CN113890818A CN 113890818 A CN113890818 A CN 113890818A CN 202111142114 A CN202111142114 A CN 202111142114A CN 113890818 A CN113890818 A CN 113890818A
Authority
CN
China
Prior art keywords
equipment
slot
target
alarm
identification information
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
CN202111142114.6A
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.)
Guangzhou Chaoyun Technology Co ltd
Original Assignee
Guangzhou Chaoyun 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 Guangzhou Chaoyun Technology Co ltd filed Critical Guangzhou Chaoyun Technology Co ltd
Priority to CN202111142114.6A priority Critical patent/CN113890818A/en
Publication of CN113890818A publication Critical patent/CN113890818A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications

Abstract

The application provides an equipment replacement alarm method, device, equipment and medium in a server, and first identification information of target hardware equipment plugged in a target equipment slot is acquired; judging whether the first identification information is the same as second identification information of the initial hardware equipment which is stored in the server and is inserted in the target equipment slot; if the first identification information is different from the second identification information, generating an equipment replacement log and alarm information aiming at the target equipment slot; and generating equipment alarm confirmation information according to the generated equipment replacement log and the alarm information, and reporting the generated equipment alarm confirmation information to an alarm processing party so that the alarm processing party confirms the alarm aiming at the target equipment slot based on the equipment alarm confirmation information. When hardware equipment in the server is replaced, the equipment replacement log is generated, and meanwhile, an alarm is given to the equipment replacement, so that the source tracing time of the problems of compatibility, downtime and the like of the server is shortened, and the reliability of the server is improved.

Description

Equipment replacement alarm method, device, equipment and medium in server
Technical Field
The present application relates to the technical field of servers, and in particular, to a method, an apparatus, a device, and a medium for alarming for device replacement in a server.
Background
At present, with the development of server technology, the requirement of a user on the safety of a server is greatly improved. In the process that a user uses the server, old hardware equipment in the server is replaced, and the replacement of the equipment easily causes the replaced hardware equipment to be inconsistent with the configuration of the factory environment, so that a series of probabilistic problems such as compatibility and downtime occur in the server, and the hardware equipment with possible problems cannot be tracked or positioned.
Disclosure of Invention
In view of this, an object of the present application is to provide an apparatus replacement alarm method, apparatus, device, and medium in a server, which can generate an apparatus replacement log when a hardware apparatus in the server is replaced, and simultaneously alarm the apparatus replacement, so as to solve the problem that the hardware apparatus of the server cannot be traced in the prior art, increase the security of the server apparatus, shorten the tracing time for the problems of compatibility, downtime, and the like of the server, and quickly search an apparatus that may have problems according to the apparatus replacement log, thereby reducing the workload of server maintenance, and improving the reliability and fault handling efficiency of the server.
In a first aspect, an embodiment of the present application provides an alarm method for device replacement in a server, where the server is configured with a plurality of device slots and a plurality of hardware devices, and each device slot in the plurality of device slots is used for plugging a corresponding hardware device, and the method includes:
acquiring first identification information of target hardware equipment plugged into a target equipment slot; judging whether the first identification information is the same as second identification information of the initial hardware equipment which is stored in the server and is plugged in the target equipment slot; if the first identification information is different from the second identification information, generating an equipment replacement log and alarm information for the target equipment slot, wherein the alarm information is used for indicating that the hardware equipment plugged into the target equipment slot in the server is replaced, and the equipment replacement log comprises the first identification information of the target hardware equipment plugged into the target equipment slot and the second identification information of the initial hardware equipment; and generating equipment alarm confirmation information according to the generated equipment replacement log and the alarm information, and reporting the generated equipment alarm confirmation information to an alarm processing party so that the alarm processing party confirms the alarm aiming at the target equipment slot based on the equipment alarm confirmation information.
Optionally, creating a configuration folder for the device slot in the server; for each equipment slot, reading second identification information of the initial hardware equipment from the initial hardware equipment plugged into the equipment slot; and the read second identification information is put into the created configuration folder for storage.
Optionally, the step of acquiring first identification information of the target hardware device plugged into the target device slot includes: identifying hardware device types supported by a target device slot; if the hardware device type is a first device type, acquiring first identification information of a target hardware device inserted into a target device slot in a circulating detection mode, wherein the hardware device belonging to the first device type is a device supporting hot plug in the running process of the server; and if the hardware equipment type is a second equipment type, acquiring first identification information of target hardware equipment plugged in a target equipment slot when the server is started, wherein the hardware equipment belonging to the second equipment type is equipment supporting power-off plug-in.
Optionally, the step of generating a device replacement log and alarm information for the target device slot includes: judging whether the server completes a starting process or not; if the server finishes the starting process, generating equipment replacement log and alarm information aiming at the target equipment slot; if the server does not finish the starting process, entering a delay program; and after the execution of the delay program is finished, generating a device replacement log and alarm information aiming at the target device slot.
Optionally, the generated device replacement log is placed in a configuration folder corresponding to the target device slot; and/or, further comprising: determining the number of a target equipment slot, log generation time and the type of hardware equipment supported by the target equipment slot; and adding the determined number of the target equipment slot, the log generation time and the hardware equipment type supported by the target equipment slot into the equipment replacement log for storage.
Optionally, detecting whether each device slot in the server is plugged with an initial hardware device; if the initial hardware equipment is plugged, reading second identification information of the initial hardware equipment from the initial hardware equipment plugged into the equipment slot; if the initial hardware equipment is not plugged, recording the serial number, the detection time and the slot using state of the equipment slot without the initial hardware equipment, wherein the slot using state is used for indicating whether the initial hardware equipment is plugged into the equipment slot or not.
Optionally, if the first identification information is the same as the second identification information, generating early warning information, where the early warning information includes a confirmation identifier and target identification information, the confirmation identifier is used to indicate that identification information before and after the hardware device plugged into the target device slot is replaced is the same, and the target identification information is at least one of the first identification information of the target hardware device plugged into the target device slot and the second identification information of the initial hardware device; and reporting the generated alarm information to an alarm processing party so that the alarm processing party confirms the alarm aiming at the target equipment slot based on the early warning information.
In a second aspect, an embodiment of the present application further provides an apparatus replacement alarm device in a server, where the server is configured with a plurality of apparatus slots and a plurality of hardware apparatuses, and each of the apparatus slots is used to plug in a corresponding hardware apparatus, and the apparatus includes:
the first information acquisition module is used for acquiring first identification information of target hardware equipment plugged into a target equipment slot;
the information matching module is used for judging whether the first identification information is the same as second identification information of the initial hardware equipment which is stored in the server and is plugged in the target equipment slot;
a replacement log generation module, configured to generate a device replacement log and alarm information for a target device slot if the first identification information is different from the second identification information, where the alarm information is used to indicate that a hardware device plugged in the target device slot in the server is replaced, and the device replacement log includes the first identification information of the target hardware device plugged in the target device slot and the second identification information of the initial hardware device;
and the alarm information reporting module is used for generating equipment alarm confirmation information according to the generated equipment replacement log and the alarm information and reporting the generated equipment alarm confirmation information to the alarm processing party so that the alarm processing party confirms the alarm aiming at the target equipment slot based on the equipment alarm confirmation information.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine readable instructions when executed by the processor performing the steps of the device change alarm method in the server as described above.
In a fourth aspect, the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the steps of the device replacement alarm method in the server as described above.
According to the device replacement alarming method, device, equipment and medium in the server, when hardware equipment in the server is replaced, the equipment replacement log is generated and recorded, meanwhile, the method for alarming for device replacement solves the problem that equipment which is replaced by the server cannot be traced in the prior art, the safety of server equipment is improved, the tracing time of the server with problems of compatibility, downtime and the like is shortened, equipment which possibly has problems can be quickly searched according to the equipment replacement log, the workload of server maintenance is reduced, and the reliability of the server is improved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flowchart of a method for alarming for device replacement in a server according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another method for alarming for device replacement in a server according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an apparatus replacement alarm device in a server according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. Every other embodiment that can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present application falls within the protection scope of the present application.
First, an application scenario to which the present application is applicable will be described. The application can be applied to the server.
Research shows that with the development of server technology, the requirement of a user on the safety of the server is greatly improved. In the process that a user uses the server, old hardware equipment in the server is replaced, and the replacement of the equipment easily causes the replaced hardware equipment to be inconsistent with the configuration of the factory environment, so that a series of probabilistic problems such as compatibility and downtime occur in the server, and the hardware equipment with possible problems cannot be tracked or positioned.
Based on this, the embodiment of the application provides an alarm method for equipment replacement in a server, so as to increase the security of server equipment and shorten the source tracing time of problems such as compatibility and downtime of the server. In addition, hardware equipment which possibly has problems can be quickly searched according to the equipment replacement log, the workload of server maintenance is reduced, and the reliability and the maintenance efficiency of the server are improved.
Referring to fig. 1, fig. 1 is a flowchart illustrating an apparatus replacement alarm method in a server according to an embodiment of the present disclosure.
First, it should be noted that a plurality of device slots and a plurality of hardware devices are configured in the server, and each device slot in the plurality of device slots is used for plugging a corresponding hardware device, that is, one hardware device is plugged into one device slot.
For example, the plurality of hardware devices in the server may include, but are not limited to: battery, Central Processing Unit (CPU), memory, and hard disk. The server is provided with a plurality of equipment slots for plugging the hardware equipment.
As shown in fig. 1, an apparatus replacement alarm method in a server provided in an embodiment of the present application specifically includes:
s101, first identification information of the target hardware equipment plugged into the target equipment slot is obtained.
In the step, the server reads first identification information of the target hardware device from the target hardware device inserted in the target device slot.
Here, the server may read the first identification information of the hardware device by reading information stored in a storage module in the hardware device, or by scanning a barcode of the hardware device using a scanner, or the like.
Illustratively, the first identification information may include at least one of: device sn (serial number) code, serial number, authentication code, etc.
In an optional embodiment, the step of acquiring the first identification information of the target hardware device plugged into the target device slot may include: the types of hardware devices supported by the target device slot are identified.
And if the hardware device type is identified to be the first device type, acquiring first identification information of the target hardware device plugged in the target device slot in a circulating detection mode.
Here, the hardware device belonging to the first device type may refer to a device that supports hot plug during server operation. That is to say, for a hardware device supporting hot plug in a server, a loop detection manner may be adopted to obtain the first identification information of the hardware device. As an example, the loop detection mode may refer to reading information stored by a storage module in the hardware device at a predetermined time interval to obtain the first identification information of the hardware device.
And if the hardware device type is identified to be the second device type, acquiring first identification information of the target hardware device plugged in the target device slot when the server is started.
Here, the hardware device belonging to the second device type may refer to a device that supports power-off plugging, and it may also be understood that the hardware device belonging to the second device type may refer to a device that does not support hot-plugging during the operation of the server.
For the hardware equipment belonging to the first equipment type, because the hardware equipment can be replaced in the running process of the server, the first identification information of the hardware equipment can be acquired by adopting a circular detection mode, so that the timeliness of information acquisition is ensured, and the omission of information is avoided. For the hardware device belonging to the second device type, since the hardware device cannot be replaced in the operation process of the server, that is, the device needs to be replaced when the server is powered off, the first identification information of the hardware device can be acquired only when the server is powered on, so that the information processing efficiency and the utilization efficiency are improved.
For example, taking a target device slot in a server as a battery slot as an example, a hardware device that can be plugged in the battery slot is a battery, and the battery is a device that supports hot plug during the operation of the server and belongs to the first device type. In this way, the server may obtain the first identification information of the battery plugged into the battery slot in a cyclic detection manner.
Taking a target device slot in the server as a memory slot as an example, a hardware device into which the memory slot can be plugged is a memory, and the memory can be replaced only when the server is powered off, is a power-off plugging device, and belongs to the second device type. Therefore, the server can acquire the first identification information of the memory plugged into the memory slot only when the server is started.
For example, hardware devices belonging to the first device type may include, but are not limited to: a battery, a memory, and hardware devices belonging to the second device type may include but are not limited to: CPU, hard disk.
Through the method, the server can adopt the corresponding acquisition mode to obtain the first identification information of the hardware equipment according to different equipment types.
S102, judging whether the first identification information is the same as second identification information of the initial hardware equipment which is stored in the server and is plugged in the target equipment slot.
In this step, the server determines whether the first identification information is the same as second identification information of the hardware device plugged in the device slot corresponding to the first identification information stored in the server. The second identification information is the identification information of the initial hardware equipment which is stored in the server and is plugged into the target equipment slot.
Here, the step of the server acquiring the identification information of the initial hardware device includes: detecting whether each equipment slot in the server is plugged with initial hardware equipment or not; if the initial hardware equipment is plugged, reading second identification information of the initial hardware equipment from the initial hardware equipment plugged into the equipment slot; if the initial hardware equipment is not plugged, recording the serial number, the detection time and the slot using state of the equipment slot without the initial hardware equipment, wherein the slot using state is used for indicating whether the initial hardware equipment is plugged into the equipment slot or not.
That is, identification information of hardware devices plugged into the device slots can be obtained for each device slot in the server through the above-mentioned circular detection mode and/or detection mode at startup, the identification information detected for each device slot for the first time is stored in the server as second identification information, when the hardware devices are replaced, if the first identification information of the target hardware device plugged into the target device slot is the same as the second identification information of the initial hardware device plugged into the target device slot stored in the server, the second identification information stored in the server is not changed, if the first identification information is different from the second identification information, after the generated device alarm confirmation information is reported to the alarm processing party, feedback information for the device alarm confirmation information is received from the alarm processing party, and if it is determined based on the feedback information that there is a hardware device replacement problem, not changing the second identification information stored in the server, and if it is determined based on the feedback information that there is no hardware device replacement problem, that is, the replacement operation of the hardware device is a compliant operation, replacing the second identification information stored in the server with the acquired first identification information of the target hardware device, and storing the second identification information in the server. Preferably, the original second identification information (i.e., the second identification information before replacement) may also be stored in the server as the association information of the target device slot, and the stored association information is also put in the device replacement log for the alarm processing party to confirm the alarm.
Optionally, the step of the server reading the second identification information of the initial hardware device further includes: judging whether the initial hardware equipment is installed in the target equipment slot or not; and if the initial hardware equipment is not installed in the target equipment slot, generating a third log file according to the target equipment slot, the detection time and the installation condition of the initial hardware equipment, and storing the third log file into the configuration folder.
S103, if the first identification information is different from the second identification information, generating a device replacement log and alarm information aiming at the target device slot.
Here, the alarm information is used to indicate that the hardware device plugged into the target device slot in the server is replaced, and the device replacement log includes first identification information of the target hardware device plugged into the target device slot and second identification information of the initial hardware device. The alarm information also includes user information, administrator information, and the like.
Optionally, in the process of starting up the server, since the detection thread and the storage thread need to be run when the target hardware device in the target device slot is subjected to the detection, the detection of the target device hardware, the generation of the device replacement log, and the alarm information are completed in the detection thread, but the storage thread is run slowly in the process of starting up the server, that is, the storage thread is not run completely when the detection program is completed, and the device replacement log cannot be stored in the server. Therefore, the step of generating the device replacement log and alarm information for the target device slot in this case may include: judging whether the server completes the starting process or not; if the server finishes the starting process, generating equipment replacement log and alarm information aiming at the target equipment slot; if the server does not finish the starting process, entering a delay program; and after the execution of the delay program is finished, generating a device replacement log and alarm information aiming at the target device slot.
Therefore, the condition that the first identification information of the hardware equipment needs to be acquired when the hardware equipment is started can be ensured, and the equipment replacement log and the alarm information can be generated smoothly.
In a preferred example, the number of the target device slot, the log generation time, and the hardware device type supported by the target device slot may also be determined, and the determined number of the target device slot, the log generation time, and the hardware device type supported by the target device slot may be added to the device replacement log for storage.
And S104, generating equipment alarm confirmation information according to the generated equipment replacement log and the alarm information, and reporting the generated equipment alarm confirmation information to an alarm processing party so that the alarm processing party confirms the alarm aiming at the target equipment slot based on the equipment alarm confirmation information.
Illustratively, the alarm handler may be a server device manager or the like. Therefore, a server device manager can know that hardware devices are replaced in the server through the received alarm information, and can know specific information of device replacement of the server according to the received device update log, so that the safety and traceability of the device replacement of the server are guaranteed.
In a preferred example, the server device manager may determine whether the alarm indicated by the alarm information is a valid alarm according to the device update log, execute a corresponding alarm process if the alarm is a valid alarm, and send feedback information indicating to cancel the alarm to the server if the alarm is not a valid alarm. Here, the valid alarm indicates that there is a hardware device replacement problem, and the invalid alarm indicates that there is no hardware device replacement problem, for example, if a server device manager confirms that although identification information of hardware devices before and after replacement is different from each other, a target hardware device after replacement is applicable to a server according to a device update log, it is determined that the current alarm belongs to an invalid alarm, and if the target hardware device after replacement is not applicable to the server, it is determined that the current alarm belongs to a valid alarm.
In an optional embodiment, if the first identification information is the same as the second identification information, the processing is not executed, for example, the device replacement log and the alarm information for the target device slot may not be generated, or the second identification information stored in the server may not be changed.
In addition, optionally, for the case that the first identification information is the same as the second identification information, early warning information may be generated, and the generated early warning information is reported to the alarm handler, so that the alarm handler confirms an alarm for the target device slot based on the early warning information.
As an example, the early warning information may include, but is not limited to, a confirmation flag indicating that identification information before and after the hardware device plugged into the target device slot is replaced is the same, and target identification information that is at least one of first identification information of the target hardware device plugged into the target device slot and second identification information of the initial hardware device.
In the embodiment of the application, as long as the condition of hardware equipment replacement is found in the server, the alarm can be triggered and provided for the alarm processing party, so that the alarm can be triggered when the first identification information and the second identification information are determined to be the same, at the moment, after the alarm processing party receives the alarm information, the current alarm can be determined to be invalid according to the confirmation identification, the alarm processing efficiency is improved, and the overstock of the alarm information is avoided.
According to the alarm method for equipment replacement in the server, when hardware equipment in the server is replaced, the equipment replacement log is generated, and meanwhile, alarm is given to equipment replacement, so that the problem that the equipment replaced by the server cannot be traced in the prior art is solved, the safety of server equipment is improved, the tracing time of the server with problems of compatibility, downtime and the like is shortened, the equipment with problems can be quickly searched according to the equipment replacement log, the workload of server maintenance is reduced, and the reliability of the server is improved.
Referring to fig. 2, fig. 2 is a flowchart of another method for alarming device replacement in a server according to an embodiment of the present disclosure. As shown in fig. 2, another method for alarming device replacement in a server provided in an embodiment of the present application specifically includes:
s201, a configuration folder aiming at the equipment slot is created in the server.
In this step, before detecting the identification information of the device, a configuration folder for storing a device replacement log for the device slot needs to be newly built in a Baseboard Management Controller (BMC) of the server. As an example, the configuration folder may be specially used for storing identification information and a device replacement log corresponding to each device slot.
In a preferred embodiment, a configuration folder may be created for one server, and under the created configuration folder, one subfolder is created for each device slot, that is, a device replacement log corresponding to one device slot is stored in the corresponding one subfolder. And the subsequent data reading speed is improved by adopting an independent storage mode.
For example, the configuration folder may be a conf folder created in a baseboard management controller of the server. In this way, an independent storage area is divided in the baseboard management controller for exclusively storing the identification information corresponding to each device slot in the server.
S202, for each equipment slot, reading second identification information of the initial hardware equipment from the initial hardware equipment plugged into the equipment slot.
In this step, the second identification information of the initial hardware device corresponding to each device slot may be obtained in the manner of reading the first identification information described above, and this is not repeated herein.
S203, the read second identification information is put into the created configuration folder for storage.
In this step, the server stores the second identification information corresponding to the hardware devices inserted into the device slots into the configuration folder.
For the above case where multiple subfolders are created under the configuration folder, the server may store the obtained second identification information of the hardware device inserted into each device slot in the corresponding subfolders.
Optionally, if no hardware device is plugged into the device slot, the information that the hardware device is not plugged into the device slot is recorded in the configuration folder.
In a preferred example, the generated device replacement log may also be placed in a configuration folder corresponding to the target device slot, for example, the device replacement log may be stored in a subfolder corresponding to the target device slot.
According to the other equipment replacement alarming method in the server, the problem that equipment replacement cannot be traced back to the server in the prior art is solved by acquiring and recording the equipment replacement log and alarming for equipment replacement, so that the safety of server equipment is improved, the tracing time of the server with problems of compatibility, downtime and the like is shortened, equipment with problems can be quickly searched according to the equipment replacement log, the workload of server maintenance is reduced, and the reliability of the server is improved.
Based on the same inventive concept, the embodiment of the present application further provides an apparatus replacement alarm device in a server corresponding to the apparatus replacement alarm method in the server, and as the principle of solving the problem of the apparatus in the embodiment of the present application is similar to the apparatus replacement alarm method in the server in the embodiment of the present application, the implementation of the apparatus may refer to the implementation of the method, and repeated parts are not described again.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an apparatus replacement alarm device in a server according to an embodiment of the present application, where the apparatus replacement alarm device 300 in the server includes:
a first information obtaining module 310, configured to obtain first identification information of a target hardware device plugged into a target device slot;
the information matching module 320 is configured to determine whether the first identification information is the same as second identification information of the initial hardware device that is stored in the server and plugged in the target device slot;
a replacement log generating module 330, configured to generate a device replacement log and alarm information for the target device slot if the first identification information is different from the second identification information, where the alarm information is used to indicate that the hardware device plugged into the target device slot in the server is replaced, and the device replacement log includes the first identification information of the target hardware device plugged into the target device slot and the second identification information of the initial hardware device;
and an alarm information reporting module 340, configured to generate device alarm confirmation information according to the generated device replacement log and the alarm information, and report the generated device alarm confirmation information to an alarm processor, so that the alarm processor confirms an alarm for the target device slot based on the device alarm confirmation information.
The equipment replacement alarm device in the server provided by the embodiment of the application, through obtaining and recording the equipment replacement log, the problem that the equipment replaced by the server cannot be traced by the equipment replacement alarm device in the prior art is solved, the safety of the server equipment is improved, the tracing time of the problems of compatibility, downtime and the like of the server is shortened, the equipment which possibly goes wrong can be quickly searched according to the equipment replacement log, the workload of server maintenance is reduced, and the reliability of the server is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 4, the electronic device 400 includes a processor 410, a memory 420, and a bus 430.
The memory 420 stores machine-readable instructions executable by the processor 410, when the electronic device 400 runs, the processor 410 communicates with the memory 420 through the bus 430, and when the machine-readable instructions are executed by the processor 410, the steps of the device replacement alarm method in the server in the method embodiments shown in fig. 1 and fig. 2 may be executed.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the step of the device replacement alarm method in the server in the method embodiments shown in fig. 1 and fig. 2 may be executed.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An alarm method for device replacement in a server, wherein the server is configured with a plurality of device slots and a plurality of hardware devices, and each device slot of the plurality of device slots is used for plugging a corresponding hardware device, the alarm method comprising:
acquiring first identification information of target hardware equipment plugged into a target equipment slot;
judging whether the first identification information is the same as second identification information of the initial hardware equipment which is stored in the server and is plugged in the target equipment slot;
if the first identification information is different from the second identification information, generating an equipment replacement log and alarm information for the target equipment slot, wherein the alarm information is used for indicating that the hardware equipment plugged into the target equipment slot in the server is replaced, and the equipment replacement log comprises the first identification information of the target hardware equipment plugged into the target equipment slot and the second identification information of the initial hardware equipment;
and generating equipment alarm confirmation information according to the generated equipment replacement log and the alarm information, and reporting the generated equipment alarm confirmation information to an alarm processing party so that the alarm processing party confirms the alarm aiming at the target equipment slot based on the equipment alarm confirmation information.
2. The method of claim 1, further comprising:
creating a configuration folder for a device slot in a server;
for each equipment slot, reading second identification information of the initial hardware equipment from the initial hardware equipment plugged into the equipment slot;
and the read second identification information is put into the created configuration folder for storage.
3. The method of claim 1, wherein the step of obtaining first identification information of the target hardware device plugged into the target device slot comprises:
identifying hardware device types supported by a target device slot;
if the hardware device type is a first device type, acquiring first identification information of a target hardware device inserted into a target device slot in a circulating detection mode, wherein the hardware device belonging to the first device type is a device supporting hot plug in the running process of the server;
and if the hardware equipment type is a second equipment type, acquiring first identification information of target hardware equipment plugged in a target equipment slot when the server is started, wherein the hardware equipment belonging to the second equipment type is equipment supporting power-off plug-in.
4. The method of claim 1, wherein generating a device change log and alert information for a target device slot comprises:
judging whether the server completes a starting process or not;
if the server finishes the starting process, generating equipment replacement log and alarm information aiming at the target equipment slot;
if the server does not finish the starting process, entering a delay program;
and after the execution of the delay program is finished, generating a device replacement log and alarm information aiming at the target device slot.
5. The method of claim 2, further comprising: putting the generated equipment replacement log into a configuration folder corresponding to the target equipment slot;
and/or, further comprising:
determining the number of a target equipment slot, log generation time and the type of hardware equipment supported by the target equipment slot;
and adding the determined number of the target equipment slot, the log generation time and the hardware equipment type supported by the target equipment slot into the equipment replacement log for storage.
6. The method of claim 2, further comprising:
detecting whether each equipment slot in the server is plugged with initial hardware equipment or not;
if the initial hardware equipment is plugged, reading second identification information of the initial hardware equipment from the initial hardware equipment plugged into the equipment slot;
if the initial hardware equipment is not plugged, recording the serial number, the detection time and the slot using state of the equipment slot without the initial hardware equipment, wherein the slot using state is used for indicating whether the initial hardware equipment is plugged into the equipment slot or not.
7. The method of claim 1, further comprising:
if the first identification information is the same as the second identification information, generating early warning information, wherein the warning information comprises a confirmation identification and target identification information, the confirmation identification is used for indicating that the identification information before and after the hardware equipment plugged into the target equipment slot is replaced is the same, and the target identification information is at least one of the first identification information of the target hardware equipment plugged into the target equipment slot and the second identification information of the initial hardware equipment;
and reporting the generated early warning information to an alarm processing party so that the alarm processing party confirms the alarm aiming at the target equipment slot based on the early warning information.
8. An equipment replacement alarm device in a server, wherein the server is configured with a plurality of equipment slots and a plurality of hardware equipment, and each equipment slot in the plurality of equipment slots is used for plugging a corresponding hardware equipment, the device is characterized by comprising:
the first information acquisition module is used for acquiring first identification information of target hardware equipment plugged into a target equipment slot;
the information matching module is used for judging whether the first identification information is the same as second identification information of the initial hardware equipment which is stored in the server and is plugged in the target equipment slot;
a replacement log generation module, configured to generate a device replacement log and alarm information for a target device slot if the first identification information is different from the second identification information, where the alarm information is used to indicate that a hardware device plugged in the target device slot in the server is replaced, and the device replacement log includes the first identification information of the target hardware device plugged in the target device slot and the second identification information of the initial hardware device;
and the alarm information reporting module is used for generating equipment alarm confirmation information according to the generated equipment replacement log and the alarm information and reporting the generated equipment alarm confirmation information to the alarm processing party so that the alarm processing party confirms the alarm aiming at the target equipment slot based on the equipment alarm confirmation information.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1 to 7.
CN202111142114.6A 2021-09-28 2021-09-28 Equipment replacement alarm method, device, equipment and medium in server Pending CN113890818A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111142114.6A CN113890818A (en) 2021-09-28 2021-09-28 Equipment replacement alarm method, device, equipment and medium in server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111142114.6A CN113890818A (en) 2021-09-28 2021-09-28 Equipment replacement alarm method, device, equipment and medium in server

Publications (1)

Publication Number Publication Date
CN113890818A true CN113890818A (en) 2022-01-04

Family

ID=79007394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111142114.6A Pending CN113890818A (en) 2021-09-28 2021-09-28 Equipment replacement alarm method, device, equipment and medium in server

Country Status (1)

Country Link
CN (1) CN113890818A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114629832A (en) * 2022-03-17 2022-06-14 广州超云科技有限公司 Remote automatic test method, system, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6134615A (en) * 1997-05-13 2000-10-17 Micron Electronics, Inc. System for facilitating the replacement or insertion of devices in a computer system through the use of a graphical user interface
US20100210240A1 (en) * 2009-02-17 2010-08-19 Flexilis, Inc. System and method for remotely securing or recovering a mobile device
WO2011051999A1 (en) * 2009-10-26 2011-05-05 富士通株式会社 Information processing device and method for controlling information processing device
CN102306117A (en) * 2011-08-12 2012-01-04 奇智软件(北京)有限公司 Automatic hardware test alarm method and device
CN103810417A (en) * 2014-02-19 2014-05-21 立德高科(北京)数码科技有限责任公司 Method for releasing alerting signal on the basis of unconformity of host identify and authentication terminal thereof
CN105912361A (en) * 2016-04-07 2016-08-31 浪潮电子信息产业股份有限公司 Method, device and system for updating configuration information of hardware device
WO2017004865A1 (en) * 2015-07-09 2017-01-12 中兴通讯股份有限公司 Alarm processing method and apparatus, and terminal
CN111291427A (en) * 2020-02-10 2020-06-16 山东超越数控电子股份有限公司 Server hard disk security measurement method and device
CN113094224A (en) * 2019-12-20 2021-07-09 中移全通系统集成有限公司 Server asset management method and device, computer equipment and storage medium
US20210297330A1 (en) * 2020-03-23 2021-09-23 Quanta Computer Inc. Method and system for automatic detection and alert of changes of computing device components

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6134615A (en) * 1997-05-13 2000-10-17 Micron Electronics, Inc. System for facilitating the replacement or insertion of devices in a computer system through the use of a graphical user interface
US20100210240A1 (en) * 2009-02-17 2010-08-19 Flexilis, Inc. System and method for remotely securing or recovering a mobile device
WO2011051999A1 (en) * 2009-10-26 2011-05-05 富士通株式会社 Information processing device and method for controlling information processing device
CN102306117A (en) * 2011-08-12 2012-01-04 奇智软件(北京)有限公司 Automatic hardware test alarm method and device
CN103810417A (en) * 2014-02-19 2014-05-21 立德高科(北京)数码科技有限责任公司 Method for releasing alerting signal on the basis of unconformity of host identify and authentication terminal thereof
WO2017004865A1 (en) * 2015-07-09 2017-01-12 中兴通讯股份有限公司 Alarm processing method and apparatus, and terminal
CN105912361A (en) * 2016-04-07 2016-08-31 浪潮电子信息产业股份有限公司 Method, device and system for updating configuration information of hardware device
CN113094224A (en) * 2019-12-20 2021-07-09 中移全通系统集成有限公司 Server asset management method and device, computer equipment and storage medium
CN111291427A (en) * 2020-02-10 2020-06-16 山东超越数控电子股份有限公司 Server hard disk security measurement method and device
US20210297330A1 (en) * 2020-03-23 2021-09-23 Quanta Computer Inc. Method and system for automatic detection and alert of changes of computing device components

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114629832A (en) * 2022-03-17 2022-06-14 广州超云科技有限公司 Remote automatic test method, system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108804114A (en) For the firmware of server unit and the setting method of self-defined setting
CN111324192A (en) System board power supply detection method, device, equipment and storage medium
CN110399267B (en) PCIE (peripheral component interface express) equipment monitoring method, system and equipment of server and readable storage medium
WO2017125014A1 (en) Method and device for monitoring hard disk
CN109189627B (en) Hard disk fault monitoring and detecting method, device, terminal and storage medium
CN103530199A (en) Software running error repairing method, device and system
CN113434356A (en) Method and system for automatically detecting and alerting computing device component changes
CN111352779A (en) On-off test method of AC power supply of MOC card and related assembly
CN113890818A (en) Equipment replacement alarm method, device, equipment and medium in server
CN113504932A (en) Firmware data updating method and device
CN107451003B (en) Test method and device for storage system
CN112099825A (en) Method, device and equipment for upgrading component and storage medium
US20120154158A1 (en) Computing device and alarm method of the computing device
CN113868058A (en) Peripheral component high-speed interconnection equipment fault detection method and device and server
CN111858178A (en) Method, device and equipment for judging power supply starting type and readable medium
CN113703823A (en) BMC (baseboard management controller) firmware upgrading method and device, electronic equipment and storage medium
CN115080132A (en) Information processing method, information processing apparatus, server, and storage medium
CN113268206B (en) Network target range resource hot plug implementation method and system
CN115098342A (en) System log collection method, system, terminal and storage medium
CN110442387B (en) Parameter self-adaption method and device of vehicle-mounted system and vehicle
CN113467801A (en) BMC firmware application updating method, BMC, system and storage medium
CN110795155B (en) System starting method and device, electronic equipment and storage medium
CN117337413A (en) Programmable logic controller, terminal device, program management system, program management method, and program
CN113535212A (en) Method, system, equipment and medium for independently upgrading components
JP2011154465A (en) Management device, management method, and management program for information processor

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