CN115712542A - Dynamic loading method, device and equipment for monitoring process and storage medium - Google Patents

Dynamic loading method, device and equipment for monitoring process and storage medium Download PDF

Info

Publication number
CN115712542A
CN115712542A CN202211482013.8A CN202211482013A CN115712542A CN 115712542 A CN115712542 A CN 115712542A CN 202211482013 A CN202211482013 A CN 202211482013A CN 115712542 A CN115712542 A CN 115712542A
Authority
CN
China
Prior art keywords
monitoring
equipment
place
kernel
starting
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
CN202211482013.8A
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.)
Inspur Power Commercial Systems Co Ltd
Original Assignee
Inspur Power Commercial Systems 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 Inspur Power Commercial Systems Co Ltd filed Critical Inspur Power Commercial Systems Co Ltd
Priority to CN202211482013.8A priority Critical patent/CN115712542A/en
Publication of CN115712542A publication Critical patent/CN115712542A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application discloses a dynamic loading method, a dynamic loading device, a dynamic loading equipment and a dynamic loading storage medium for a monitoring process, which relate to the technical field of servers, and the method comprises the following steps: starting a substrate management controller, detecting whether in-place equipment exists currently by using a preset drive code in a kernel of the substrate management controller, and if so, determining that the in-place equipment is in a connection state and generating a corresponding hot plug event through the kernel; if the kernel is monitored to generate the hot plug event, acquiring the initialized equipment information of the in-place equipment; and determining a monitoring management process corresponding to the in-place equipment, and starting the monitoring management process by using the initialized equipment information so as to monitor the in-place equipment by using the monitoring management process. Therefore, the device is dynamically discovered through the driving code, the corresponding monitoring management process is started for the discovered device, and the corresponding monitoring management process is not started by relying on the configuration file.

Description

Dynamic loading method, device and equipment for monitoring process and storage medium
Technical Field
The present invention relates to the technical field of servers, and in particular, to a method, an apparatus, a device, and a storage medium for dynamically loading a monitoring process.
Background
The rapid development of the internet also brings prosperity to the server market. The BMC (Baseboard Management Controller) plays a role of monitoring the Management server in the server. In the monitoring and management process of the server device, some devices need to be powered on to display information, and some devices have drivers in the kernel of the BMC. The kernel device tree configured in the driver of the BMC may be called and go to find the device only when the BMC is started, and the server is not started yet when the BMC is started. This is faced with a problem: when the BMC is started, the equipment depending on the starting cannot be found.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method, an apparatus, a device and a storage medium for dynamically loading a monitoring process, which can perform dynamic loading and monitoring management according to a real device on a current machine without a BMC fixed configuration. Relying on real devices to initiate monitoring services rather than relying on configuration files to initiate monitoring services. The specific scheme is as follows:
in a first aspect, the present application provides a dynamic loading method for a monitoring process, which is applied to a server and includes:
starting a substrate management controller, detecting whether in-place equipment exists currently by using a preset drive code in a kernel of the substrate management controller, and if so, determining that the in-place equipment is in a connection state and generating a corresponding hot plug event through the kernel;
if the kernel is monitored to generate the hot plug event, acquiring initialized equipment information of the in-place equipment;
and determining a monitoring management process corresponding to the in-place equipment, and starting the monitoring management process by using the initialized equipment information so as to monitor the in-place equipment by using the monitoring management process.
Optionally, before starting the baseboard management controller, the method further includes:
writing driving codes of various devices to be monitored, and completing configuration operation of the various devices to be monitored in the kernel device tree.
Optionally, after the starting the baseboard management controller, the method further includes:
starting a process for monitoring a successful starting signal of the server;
correspondingly, the detecting whether the in-place device currently exists by using the preset driver code located in the kernel of the baseboard management controller includes:
when a successful starting signal of the server is monitored, detecting whether a first class of in-place equipment exists currently by using a preset drive code in an inner core of the baseboard management controller; the first class of on-site devices are devices that can only be discovered after the server is powered on.
Optionally, the detecting, by using a preset driver code located in a kernel of the baseboard management controller, whether there is an in-place device currently includes:
detecting whether a second class of in-place equipment exists currently by using a preset drive code in a kernel of the baseboard management controller; the second type of in-place devices are devices that can be discovered after the baseboard management controller is started and before the server is powered on.
Optionally, before acquiring the post-initialization device information of the incumbent device, the method further includes:
initializing the in-place equipment detected by the preset drive codes to obtain initialized equipment information of the in-place equipment; the initialized device information comprises a device type, a device location and a device number.
Optionally, the determining a monitoring management process corresponding to the in-place device, and starting the monitoring management process by using the initialized device information, so as to monitor the in-place device by using the monitoring management process, includes:
and transmitting the initialized device information to a monitoring management device, and starting a monitoring management process of the in-place device corresponding to the initialized device information through the monitoring management device so as to monitor the in-place device by using the monitoring management process.
Optionally, the transmitting the initialized device information to a monitoring management device, and starting a monitoring management process of the in-place device corresponding to the initialized device information through the monitoring management device includes:
and transmitting the initialized equipment information to monitoring management equipment, and starting a corresponding monitoring management process through the monitoring management equipment according to the equipment type and the equipment position so as to monitor the in-place equipment by using the monitoring management process.
In a second aspect, the present application provides a dynamic loading apparatus for monitoring a process, which is applied to a server, and includes:
the device detection module is used for starting the substrate management controller, detecting whether the in-place device exists currently by using a preset drive code in a kernel of the substrate management controller, and if so, determining that the in-place device is in a connection state through the kernel and generating a corresponding hot plug event;
the information acquisition module is used for acquiring the initialized equipment information of the in-place equipment if the kernel is monitored to generate the hot plug event;
and the monitoring starting module is used for determining a monitoring management process corresponding to the in-place equipment and starting the monitoring management process by using the initialized equipment information so as to monitor the in-place equipment by using the monitoring management process.
In a third aspect, the present application provides an electronic device comprising a processor and a memory; the memory is used for storing a computer program, and the computer program is loaded and executed by the processor to realize the dynamic loading method of the monitoring process.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer program is executed by a processor to implement the foregoing dynamic loading method for a monitoring process.
According to the method, when the monitoring process is dynamically loaded, the baseboard management controller is started, whether the in-place equipment exists currently is detected by using the preset driving code located in the kernel of the baseboard management controller, and if the in-place equipment exists, the kernel determines that the in-place equipment is in a connection state and generates a corresponding hot plug event; if the kernel is monitored to generate the hot plug event, acquiring initialized equipment information of the in-place equipment; and determining a monitoring management process corresponding to the in-place equipment, and starting the monitoring management process by using the initialized equipment information so as to monitor the in-place equipment by using the monitoring management process. Therefore, the device is discovered by using the driver code, and after the device is simply initialized, if the device is discovered and successfully initialized, the device which is actually identified by the driver can send a signal and wake up the monitoring management process, the device which depends on starting can be discovered, different firmware monitoring processes can be started according to the type of the firmware discovered by the driver code, and the loading and monitoring of the monitoring device can be dynamically realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a dynamic loading method for a monitoring process according to the present application;
fig. 2 is a timing diagram of a dynamic loading method for a monitoring process according to the present application;
fig. 3 is a flowchart of a specific dynamic monitoring process loading method provided in the present application;
fig. 4 is a flowchart of a specific dynamic monitoring process loading method provided in the present application;
fig. 5 is a schematic structural diagram of a dynamic loading apparatus for monitoring a process according to the present application;
fig. 6 is a block diagram of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
In the prior art, the type and the address position of equipment are fixed, reading is carried out after the equipment is started, the equipment is not arranged in place when the equipment is not read, and configuration needs to be replaced according to conditions. In order to solve the above problems, the present application provides a dynamic loading method for a monitoring process, which can dynamically discover devices by driving codes, so that a user program is simpler and does not need to be fixed to a configuration, and only after a kernel discovers a device and is simply initialized, an application program starts a corresponding monitoring management process according to a real device.
Referring to fig. 1, an embodiment of the present invention discloses a dynamic loading method for a monitoring process, which is applied to a server, and includes:
step S11, starting a baseboard management controller, detecting whether in-place equipment exists currently by using a preset drive code located in a kernel of the baseboard management controller, and if so, determining that the in-place equipment is in a connection state through the kernel and generating a corresponding hot plug event.
In this embodiment, before the baseboard management controller is started, a driver code needs to be written to the BMC, that is, the device monitored by the baseboard management controller, and then the BMC is started, and after the BMC is started, the preset driver code located in the kernel of the baseboard management controller is used to detect whether there is an in-place device currently, as shown in fig. 2, the kernel is started, and it is recognized that a hot plug event is generated while the device is connected.
And S12, if the kernel is monitored to generate the hot plug event, acquiring the initialized device information of the in-place device.
In this embodiment, if it is monitored that the kernel generates the hot plug event, it indicates that a device is discovered, and then obtains the initialized device information of the in-place device. It should be noted that when the kernel finds a device, it may perform simple initialization, and the kernel driver may be a full-function driver, and after simple initialization, the application program may know that the current device is a specific device, and how many specific interfaces are such that specific information of the discovered device is accurately monitored.
And S13, determining a monitoring management process corresponding to the in-place equipment, and starting the monitoring management process by using the initialized equipment information so as to monitor the in-place equipment by using the monitoring management process.
In this embodiment, the monitoring management process corresponding to the in-place device is accurately determined by obtaining the initialized device information of the in-place device. For example, after a hard disk backboard is found, a process of monitoring the hard disk backboard is started according to the found model of the hard disk backboard, a front backboard of 12 disks is found, monitoring of the backboard is started to transmit necessary information of the 12 disks, the front backboard and the like to a monitoring management process of the hard disk, flexible dynamic loading is achieved, and some parameters are not fixed. The traditional method is from top to bottom, and in a specific embodiment, the traditional method is represented by a machine fixed type and position, a monitoring management process is started, and when the machine is started, the hard disk backboard information with the fixed type of the fixed position is taken out, and the hard disk backboard information is not in place when the hard disk backboard information is not read. The drive codes of the hard disk backplanes may support three types of hard disk backplanes, one type is matched with two types of hard disk backplanes, and the backplanes need to be replaced and configured when replaced. The mode provided by the application is from bottom to top, and by using the dynamic loading method provided by the invention, the machine type only needs to be configured to full configuration, when the machine is started, the device is discovered by using the driving code, and after simple initialization is carried out, if the device is discovered and successfully initialized, the device can send a signal and awaken the monitoring management process according to the device actually identified by the driving. Instead of monitoring the management process, the management process is started first, waits for the startup all the time, and then fixedly reads.
According to the method, when the monitoring process is dynamically loaded, the baseboard management controller is started, whether the in-place equipment exists currently is detected by using the preset driving code located in the kernel of the baseboard management controller, and if the in-place equipment exists, the kernel determines that the in-place equipment is in a connection state and generates a corresponding hot plug event; if the kernel is monitored to generate the hot plug event, acquiring initialized equipment information of the in-place equipment; and determining a monitoring management process corresponding to the in-place equipment, and starting the monitoring management process by using the initialized equipment information so as to monitor the in-place equipment by using the monitoring management process. Therefore, the device is found by using the driver code, and after the device is simply initialized, if the device is found and is successfully initialized, the device which is actually identified by the driver sends a signal and wakes up the monitoring management process, can find the device which depends on starting, starts different firmware monitoring processes according to the type of the firmware found by the driver code, and dynamically realizes the loading and monitoring of the monitoring device.
Based on the foregoing embodiments, it can be known that the present application uses the driver code to discover the device, and starts different firmware monitoring processes according to the firmware type discovered by the driver code, so as to dynamically implement loading and monitoring of the monitoring device, and a device discovery process is specifically described below.
Referring to fig. 3, an embodiment of the present invention discloses a specific dynamic loading method for a monitoring process, which is applied to a server and includes:
step S21, writing driving codes of various devices to be monitored, and completing configuration operation of the various devices to be monitored in the kernel device tree.
In this embodiment, in the monitoring management process of the device of the server, the device has a driver in the kernel of the BMC, and the kernel device tree is configured in the driver of the BMC, so that the device writing program to be monitored is stored in the kernel of the BMC first, and the driver codes can be called to find the device during monitoring. And all the devices are configured in the kernel device tree according to the possible maximum configuration, for example, a hard disk backplane may be configured on bus1-channel0-7, that is, the model at this time is full configuration, and the configuration does not need to be changed when the backplane is changed, it can be understood that the server BMC can write codes by using the maximum configuration in the development process, and different models burn the same firmware.
And step S22, starting the substrate management controller.
Step S23, detecting whether a second class of in-place equipment exists currently by using a preset drive code in a kernel of the baseboard management controller; the second type of in-place devices are devices that can be discovered after the baseboard management controller is started and before the server is powered on.
In this embodiment, when a baseboard management controller is started, a preset driver code located in a kernel of the baseboard management controller is used for the first time to detect whether devices are in place, where the devices can have information display without depending on power-on of a server, and the devices can be discovered before the server is not started, that is, the second type of in-place devices are devices that can be discovered after the baseboard management controller is started and before the server is started. It should be noted that when the kernel finds a device, it performs simple initialization, and after the simple initialization, the application program knows the current device is the specific device and how many specific interfaces.
And step S24, starting a process for monitoring a successful starting signal of the server.
Step S25, when a successful starting signal of the server is monitored, detecting whether first-class in-place equipment exists or not by using a preset driving code in an inner core of the baseboard management controller; the first class of on-site devices are devices that can only be discovered after the server is powered on.
In this embodiment, after the BMC is started, a driver in the kernel device is used first to detect whether the device is in place, which is a first detection, and the device that can be found after the baseboard management controller is started and before the server is started is detected, then a process of monitoring a startup signal is started, and after the startup is successfully monitored, the kernel driver is used again to detect the device, which is a second detection, and whether the first type of in-place device exists currently can be detected by using a preset driver code located in the kernel of the baseboard management controller; the first type of in-place device is a device which can not be discovered after the server is powered on. In this way, all devices, including devices that rely on power-on to power-up for information presentation, can be detected.
And S26, if the current equipment exists, determining that the current equipment is in a connection state through the kernel and generating a corresponding hot plug event.
According to the method, after the BMC is started, whether the second type of in-place equipment exists currently is detected by utilizing the preset driving codes located in the kernel of the baseboard management controller, and then after the signal that the starting is successful is monitored, whether the first type of in-place equipment exists currently is detected by utilizing the preset driving codes located in the kernel of the baseboard management controller again, so that all equipment can be fully detected, and the equipment depending on the starting of the server cannot be omitted.
Referring to fig. 4, an embodiment of the present invention discloses a specific dynamic loading method for a monitoring process, which is applied to a server and includes:
step S31, starting the substrate management controller, detecting whether the in-place equipment exists currently by using a preset drive code in a kernel of the substrate management controller, and if so, determining that the in-place equipment is in a connection state through the kernel and generating a corresponding hot plug event.
Step S32, initializing the in-place equipment detected by the preset drive code to obtain initialized equipment information of the in-place equipment; the initialized device information comprises a device type, a device location and a device number.
In this embodiment, when the device is detected by using the preset driver code in the kernel, the device is simply initialized to obtain the initialized device information of the in-place device, where the device information includes a device type, a device location, and a device number.
Step S33, if the kernel is monitored to generate the hot plug event, acquiring the initialized device information of the in-place device.
In this embodiment, if it is monitored that the kernel generates the hot plug event, it represents that a device is discovered, and if the device has been initialized successfully, the initialized device information of the in-place device is obtained, where the initialized device information includes a device type, a device location, and a device number.
Step S34, transmitting the initialized device information to a monitoring management device, and starting a monitoring management process of the in-place device corresponding to the initialized device information through the monitoring management device so as to monitor the in-place device by using the monitoring management process.
In this embodiment, the initialized device information is transmitted to a monitoring management device, and the monitoring management device starts a corresponding monitoring management process according to the device type and the device location, so as to monitor the in-place device by using the monitoring management process. In the conventional scheme, after the BMC is started, the monitoring process of the front backplane (fixed 12 disks) and the monitoring process of the rear backplane (fixed 4 disks) are started, and if the current server is in a power-on state, the monitoring management is performed. By the dynamic loading monitoring method, the corresponding monitoring management process can be started according to real equipment, flexible dynamic loading is achieved, and some parameters are not fixed.
As can be seen from the above, the device is discovered by using the driver code, and after simple initialization, if the device is discovered and successfully initialized, the device will send a signal and wake up the monitoring management process according to the device actually identified by the driver. Instead of monitoring the management process, the management process is started first, waits for the startup all the time, and then fixedly reads. Different firmware monitoring processes can be started according to the firmware types discovered by the driver, loading and monitoring of the monitoring equipment are dynamically realized, BMC fixed configuration is not needed, and monitoring service is started by relying on real equipment instead of relying on configuration files.
Referring to fig. 5, an embodiment of the present invention discloses a dynamic loading apparatus for a monitoring process, which is applied to a server and includes:
the device detection module 11 is configured to start a baseboard management controller, detect whether an in-place device currently exists by using a preset driver code located in a kernel of the baseboard management controller, and if the in-place device currently exists, determine that the in-place device is in a connected state and generate a corresponding hot plug event through the kernel;
the information obtaining module 12 is configured to obtain, if it is monitored that the kernel generates the hot plug event, device information after initialization of the in-place device;
and a monitoring starting module 13, configured to determine a monitoring management process corresponding to the in-place device, and start the monitoring management process by using the initialized device information, so as to monitor the in-place device by using the monitoring management process.
According to the method, when the monitoring process is dynamically loaded, the baseboard management controller is started, whether the in-place equipment exists currently is detected by using the preset driving code located in the kernel of the baseboard management controller, and if the in-place equipment exists, the kernel determines that the in-place equipment is in a connection state and generates a corresponding hot plug event; if the kernel is monitored to generate the hot plug event, acquiring initialized equipment information of the in-place equipment; and determining a monitoring management process corresponding to the in-place equipment, and starting the monitoring management process by using the initialized equipment information so as to monitor the in-place equipment by using the monitoring management process. Therefore, the device is discovered by using the driver code, and after the device is simply initialized, if the device is discovered and successfully initialized, the device which is actually identified by the driver can send a signal and wake up the monitoring management process, the device which depends on starting can be discovered, different firmware monitoring processes can be started according to the type of the firmware discovered by the driver code, and the loading and monitoring of the monitoring device can be dynamically realized.
In some specific embodiments, the device detection module 11 may specifically include:
and the code writing unit is used for writing driving codes of various devices to be monitored and completing configuration operation of the various devices to be monitored in the kernel device tree.
In some specific embodiments, the device detection module 11 may specifically include:
the process monitoring unit is used for starting a process for monitoring a successful starting signal of the server;
the first device detection unit is used for detecting whether first-class in-place devices exist currently or not by using a preset drive code in a kernel of the baseboard management controller when a successful starting signal of the server is monitored; the first type of in-place device is a device which can not be discovered after the server is powered on.
The second device detection unit is used for detecting whether second-class in-place devices exist currently or not by using preset drive codes in the kernel of the baseboard management controller; the second type of in-place devices are devices that can be discovered after the baseboard management controller is started and before the server is powered on.
In some specific embodiments, the information obtaining module 12 may specifically include:
the equipment initialization unit is used for initializing the in-place equipment detected by the preset drive codes to obtain initialized equipment information of the in-place equipment; the initialized device information comprises a device type, a device location and a device number.
In some specific embodiments, the monitoring and starting module 13 may specifically include:
and the information transmission unit is used for transmitting the initialized device information to the monitoring management device, and starting a monitoring management process of the in-place device corresponding to the initialized device information through the monitoring management device so as to monitor the in-place device by using the monitoring management process.
In some specific embodiments, the monitoring and starting module 13 may specifically include:
and the monitoring process starting unit is used for transmitting the initialized equipment information to monitoring management equipment and starting the corresponding monitoring management process through the monitoring management equipment according to the equipment type and the equipment position so as to monitor the in-place equipment by using the monitoring management process.
Further, an electronic device is disclosed in the embodiments of the present application, and fig. 6 is a block diagram of an electronic device 20 according to an exemplary embodiment, which should not be construed as limiting the scope of the application.
Fig. 6 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is configured to store a computer program, and the computer program is loaded and executed by the processor 21 to implement relevant steps in the monitoring process dynamic loading method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in this embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide a working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage manner may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device on the electronic device 20 and the computer program 222, and may be Windows Server, netware, unix, linux, or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the monitoring process dynamic loading method performed by the electronic device 20 disclosed in any of the foregoing embodiments.
Further, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the monitoring process dynamic loading method disclosed above. For the specific steps of the method, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The technical solutions provided by the present application are introduced in detail above, and specific examples are applied in the present application to explain the principles and embodiments of the present application, and the descriptions of the above examples are only used to help understanding the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A dynamic loading method for a monitoring process is applied to a server and comprises the following steps:
starting a substrate management controller, detecting whether in-place equipment exists currently by using a preset drive code in a kernel of the substrate management controller, and if so, determining that the in-place equipment is in a connection state and generating a corresponding hot plug event through the kernel;
if the kernel is monitored to generate the hot plug event, acquiring the initialized equipment information of the in-place equipment;
and determining a monitoring management process corresponding to the in-place equipment, and starting the monitoring management process by using the initialized equipment information so as to monitor the in-place equipment by using the monitoring management process.
2. The dynamic loading method for monitoring process according to claim 1, before starting the baseboard management controller, further comprising:
writing driving codes of various devices to be monitored, and completing configuration operation of the various devices to be monitored in a kernel device tree.
3. The dynamic loading method for monitoring process according to claim 1, further comprising, after the starting the baseboard management controller:
starting a process for monitoring a successful starting signal of the server;
correspondingly, the detecting whether the in-place device currently exists by using the preset driver code located in the kernel of the baseboard management controller includes:
when a successful starting signal of the server is monitored, detecting whether a first class of in-place equipment exists currently by using a preset drive code in an inner core of the baseboard management controller; the first type of in-place device is a device which can not be discovered after the server is powered on.
4. The method for dynamically loading a monitor process according to claim 1, wherein the detecting whether there is an in-place device currently by using a preset driver code located in a kernel of the bmc comprises:
detecting whether a second class of in-place equipment exists currently by using a preset drive code in a kernel of the baseboard management controller; the second type of in-place devices are devices that can be discovered after the baseboard management controller is started and before the server is powered on.
5. The dynamic loading method of monitoring process according to claim 1, wherein before acquiring the post-initialization device information of the on-site device, the method further comprises:
initializing the in-place equipment detected by using the preset drive codes to obtain initialized equipment information of the in-place equipment; the initialized device information comprises a device type, a device location and a device number.
6. The dynamic loading method for the monitoring process according to claim 5, wherein the determining the monitoring management process corresponding to the in-place device, and starting the monitoring management process by using the initialized device information, so as to monitor the in-place device by using the monitoring management process, includes:
and transmitting the initialized device information to a monitoring management device, and starting a monitoring management process of the in-place device corresponding to the initialized device information through the monitoring management device so as to monitor the in-place device by using the monitoring management process.
7. The method for dynamically loading a monitor process according to claim 6, wherein the transmitting the initialized device information to a monitor management device and starting the monitor management process of the in-place device corresponding to the initialized device information by the monitor management device includes:
and transmitting the initialized equipment information to monitoring management equipment, and starting a corresponding monitoring management process by the monitoring management equipment according to the equipment type and the equipment position so as to monitor the in-place equipment by using the monitoring management process.
8. The dynamic loading device for the monitoring process is applied to a server and comprises the following steps:
the device detection module is used for starting the substrate management controller, detecting whether the in-place device exists currently by using a preset drive code in a kernel of the substrate management controller, and if so, determining that the in-place device is in a connection state through the kernel and generating a corresponding hot plug event;
the information acquisition module is used for acquiring the initialized equipment information of the in-place equipment if the kernel is monitored to generate the hot plug event;
and the monitoring starting module is used for determining a monitoring management process corresponding to the in-place equipment and starting the monitoring management process by using the initialized equipment information so as to monitor the in-place equipment by using the monitoring management process.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the method of dynamic loading of a monitor process according to any of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program which, when executed by a processor, implements the method for dynamic loading of a monitor process according to any of claims 1 to 7.
CN202211482013.8A 2022-11-24 2022-11-24 Dynamic loading method, device and equipment for monitoring process and storage medium Pending CN115712542A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211482013.8A CN115712542A (en) 2022-11-24 2022-11-24 Dynamic loading method, device and equipment for monitoring process and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211482013.8A CN115712542A (en) 2022-11-24 2022-11-24 Dynamic loading method, device and equipment for monitoring process and storage medium

Publications (1)

Publication Number Publication Date
CN115712542A true CN115712542A (en) 2023-02-24

Family

ID=85234895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211482013.8A Pending CN115712542A (en) 2022-11-24 2022-11-24 Dynamic loading method, device and equipment for monitoring process and storage medium

Country Status (1)

Country Link
CN (1) CN115712542A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117707628A (en) * 2023-06-15 2024-03-15 荣耀终端有限公司 Device initialization method, electronic equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117707628A (en) * 2023-06-15 2024-03-15 荣耀终端有限公司 Device initialization method, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US6684327B1 (en) Extensible, flexible, memory efficient technique for network boot without special DHCP/PXE hardware
RU2427031C2 (en) Fast display initialisation and light up
US7554931B2 (en) System and method for remote dynamic network configuration
KR20040103424A (en) Computer system and method for supporting network-enabled devices
US7234053B1 (en) Methods for expansive netboot
KR20110080583A (en) Computer system to be able to remotely restore operation system and method for restoration thereof
CN115562734A (en) Data processor configuration method, device, equipment and medium
CN115712542A (en) Dynamic loading method, device and equipment for monitoring process and storage medium
US6128658A (en) Self-initiated system event using network resources
CN111367761B (en) Information management method, system and related components of universal server
CN107807789A (en) Configure RAID method, apparatus and server
CN107247596A (en) Starting-up method, device and electronic equipment
CN114327536A (en) Server operation and maintenance method, device, equipment and storage medium
US6691170B1 (en) Method and apparatus for simplifying addressing of a networked device
TW201523277A (en) Server system and node detection method
KR20040090318A (en) USB memory for auto run program and method thereof
CN114885032B (en) Method, device, equipment and medium for generating and displaying equipment information
US8850174B1 (en) Method for dedicated netboot
CN114968386B (en) Device information management method, device and equipment of electronic device
CN110377550A (en) A kind of method and computer equipment for realizing display warm connection function
CN114048465B (en) Stack state detection method, device, equipment and storage medium
CN116775139A (en) Method, device and storage medium for realizing remote starting based on Internet
CN114115917A (en) Operating system installation method and device
CN115061976A (en) Address configuration method, device, carrier board, core board, server and medium
CN114860325A (en) Network card adapting method, device, equipment 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