CN116627917A - Read control method, device, equipment and storage medium - Google Patents

Read control method, device, equipment and storage medium Download PDF

Info

Publication number
CN116627917A
CN116627917A CN202310473759.0A CN202310473759A CN116627917A CN 116627917 A CN116627917 A CN 116627917A CN 202310473759 A CN202310473759 A CN 202310473759A CN 116627917 A CN116627917 A CN 116627917A
Authority
CN
China
Prior art keywords
data
management controller
baseboard management
log entry
target log
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
CN202310473759.0A
Other languages
Chinese (zh)
Inventor
郭巍松
陈翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310473759.0A priority Critical patent/CN116627917A/en
Publication of CN116627917A publication Critical patent/CN116627917A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a reading control method, a device, equipment and a storage medium, wherein the method comprises the following steps: receiving a target log entry sent by a baseboard management controller, wherein the target log entry is generated when the baseboard management controller detects that the data of a non-variable node of external equipment changes; updating a status database according to the target log entry; in response to the update operation of the state database, the data of the non-volatile node corresponding to the target log entry is read from the baseboard management controller.

Description

Read control method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer applications, and in particular, to a method, an apparatus, a device, and a storage medium for controlling reading.
Background
The baseboard management controller (Baseboard Management Controller, BMC) is a self-contained system that is not dependent on other hardware on the system (e.g., CPU, memory, etc.) and is typically used to monitor and manage servers, including status monitoring management of server peripherals (e.g., fans, power supplies, etc.), and as white-box switches are widely used in data centers, many switches also begin to use BMC to manage peripherals.
Although the BMC has an independent management address, the network management system does not directly manage the BMC when operating normally, but only takes the CPU plane as a management object, but the CPU plane cannot directly read the data of the peripheral devices, so that the BMC is required to provide an interface, and in the read data, the variable data such as a temperature value, a fan rotation speed, a power supply voltage and the like, and the information such as equipment in-place and field replaceable unit (Field Replace Unit, FRU) information and the like are rarely changed, because the CPU cannot monitor the content changes, the CPU is generally provided with instant reading or background task timing reading when acquiring the application, and considering the instant reading, the reading is required to be performed by accessing hardware in the BMC part, the reading speed is very slow, the number of the peripheral devices involved is very large, and the content required to be read by each peripheral device is very much, so that the complete reading often takes a period of several minutes, the requirement of some applications cannot be satisfied, and a background task reading mode becomes the mainstream. The period of such reading must not be too long in order that the information obtained is not excessively distorted.
However, for these rarely changing information, polling is performed once at regular intervals, which is obviously very wasteful, wastefully consumes many CPUs, and is an additional burden for BMCs whose performance cost is relatively weak.
Disclosure of Invention
The embodiment of the application aims to provide a read control method, a read control device, read control equipment and a read control storage medium, which solve the problems that when the traditional CPU reads BMC peripheral data, unnecessary consumption of the CPU is caused by frequent reading of non-volatile data, waste is caused, and extra burden is added to BMC with weaker performance, and the specific technical scheme is as follows:
in a first aspect of the present application, there is provided a read control method, including:
receiving a target log entry sent by a baseboard management controller, wherein the target log entry is generated when the baseboard management controller detects that the data of a non-variable node of external equipment changes;
updating a status database according to the target log entry;
and responding to the updating operation of the state database, and reading the data of the non-volatile node corresponding to the target log entry from the baseboard management controller.
Optionally, the receiving the target log entry sent by the baseboard management controller includes:
sending an Rsyslog configuration file to the baseboard management controller;
and receiving target log entries sent by the baseboard management controller through the Rsyslog configuration file.
Optionally, the updating the status database according to the target log entry includes:
the target log entry is sent to a first log file, and target field information of the first log file is generated;
triggering a writing state database through the target field information.
Optionally, the triggering the writing state database through the target field information includes:
and triggering a writing state database under the condition that the target field information is detected to be consistent with preset characteristic information, wherein the preset characteristic information is stored in an Rsyslog configuration file issued by a CPU (Central processing Unit).
Optionally, the method further comprises:
in response to the starting of the CPU, starting a local daemon;
and reading the data of the initial non-volatile node of the external device through the daemon.
Optionally, after the reading, by the daemon, the data of the initial non-volatile node of the external device further includes:
subscribing to the status database;
and under the condition that the subscription to the state database is in an updating event, reading the data of the non-volatile node of the current external device from the baseboard management controller.
Optionally, the reading, from the baseboard management controller, the data of the non-volatile node corresponding to the target log entry in response to the update operation of the status database includes:
responding to the updating operation of the state database, and triggering the reading operation of a local daemon;
and reading the data of the non-volatile node corresponding to the target log entry from the baseboard management controller through the reading operation.
In a second aspect of the present application, there is also provided a read control device, comprising:
the first receiving module is used for receiving a target log entry sent by the baseboard management controller, wherein the target log entry is generated when the baseboard management controller detects that the data of the non-variable node of the external equipment changes;
the first updating module is used for updating the state database according to the target log entry;
and the first reading module is used for responding to the updating operation of the state database and reading the data of the non-volatile node corresponding to the target log entry from the baseboard management controller.
In a third aspect of the present application, there is also provided a communication device comprising: a transceiver, a memory, a processor, and a program stored on the memory and executable on the processor;
the processor is configured to read a program in the memory to implement the read control method described in any one of the above.
In a fourth aspect of the present application, there is also provided a computer-readable storage medium having instructions stored therein, which when run on a computer, cause the computer to perform any of the above-described read control methods.
According to the reading control method provided by the embodiment of the application, the target log entry sent by the baseboard management controller is received, so that the baseboard management controller detects the data change of the non-volatile node of the external device, the problem of relatively large delay in reading by the CPU is avoided, the state database is updated according to the target log entry, the CPU determines that the data of the non-volatile node of the external device managed by the baseboard management controller at the moment changes, and the data of the non-volatile node corresponding to the target log entry is read from the baseboard management controller in response to the updating operation of the state database, so that the CPU reads the data only when the data of the non-volatile node of the external device managed by the baseboard management controller is determined to change, and unnecessary consumption of the CPU is reduced. According to the embodiment of the application, the substrate management controller detects the change of the data of the non-volatile node of the external device to avoid the delay of CPU reading, and the target log entry carrying the data change information of the non-volatile node is updated to the state database of the CPU, so that the CPU can read the data only when the data of the non-volatile node of the external device managed by the substrate management controller changes, unnecessary consumption of the CPU is reduced, and the burden is reduced for the BMC with weaker performance.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a flowchart showing steps of a read control method according to an embodiment of the present application;
FIG. 2 is a flowchart of step 101 of the read control method provided by the embodiment of the present application shown in FIG. 1;
FIG. 3 is a second flowchart of a read control method according to an embodiment of the present application;
FIG. 4 is a third flowchart illustrating steps of a read control method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a read control device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a communication device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present application, numerous technical details have been set forth in order to provide a better understanding of the present application. However, the claimed application may be practiced without these specific details and with various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not be construed as limiting the specific implementation of the present application, and the embodiments can be mutually combined and referred to without contradiction.
Referring to fig. 1, one of the step flowcharts of the read control method provided by the embodiment of the present application is shown, where the method may include:
step 101, receiving a target log entry sent by the baseboard management controller, wherein the target log entry is generated when the baseboard management controller detects that the data of the non-volatile node of the external device changes.
The baseboard management controller in the embodiment of the application is a system independent of a CPU, is a special controller for monitoring and managing a server/switch, and has the main functions of: device information management: recording server/switch information (model, manufacturer, date, production and technology information of each component, chassis information, main board information, etc.), BMC information (server/switch hostname, IP, BMC firmware version, etc.); server state monitoring management: detecting and managing the health states of the temperature, voltage and the like of each component (CPU, memory, hard disk, fan, frame and the like) of the server/switch; remote control management of servers/switches: powering on and powering off, restarting, maintaining, updating firmware, installing a system and the like of the server; maintenance management: log management, user management, BIOS management, alarm management, etc. Therefore, the CPU is required to manage the external device of the server/switch, and cannot access directly, and the BMC is required to provide a corresponding interface for access, where the interface provided by the BMC may be a RESTful API or an IPMI interface, and the present application is not limited herein specifically.
The CPU reads the data of the external equipment, such as the temperature value, the fan rotating speed, the power supply voltage and the like of the variable node, and the data of the non-variable node, such as the on-site information, FRU information and the like, which are rarely changed, of the equipment, because the read speed is very slow in the BMC part and the related peripheral equipment is very much, the content required to be read by each peripheral equipment is very much, and the complete read is often carried out for a plurality of minutes, the embodiment of the application limits the read of the data of the non-variable node, and the CPU is informed of the read of the data of the non-variable node only when the change of the data of the non-variable node is detected, and in addition, the substrate management controller detects the change of the data of the non-variable node of the external equipment, so that the problem of relatively large delay caused by the read judgment of the CPU can be effectively avoided.
It should be noted that, because the data of the non-volatile node is information that is rarely changed, when these data are changed, the level of the log is changed, usually, a warning level or a serious level, and the embodiment of the present application distinguishes the changed non-volatile node data and the unchanged non-volatile node data based on the change of the log level, and uses the log entry of the level corresponding to the changed non-volatile node data as the target log entry that needs to be received by the CPU.
Step 102, updating the state database according to the target log entry.
In the embodiment of the application, after receiving a target log entry, a CPU sends the target log entry to a first log file of the CPU, then converts the target log entry into target field information of the first log file according to a preset rule, so that the first log file of the CPU changes, then matches the field information in the first log file of the CPU through an Rsyslog plug-in added to the CPU, and when the Rsyslog plug-in has preset characteristic information in the field information matched to the first log file of the CPU, triggers a write state database, specifically, updates the state database according to the target log entry, the method comprises the following steps:
the target log entry is sent to a first log file, and target field information of the first log file is generated;
triggering a writing state database through the target field information. Wherein triggering a write status database via the target field information comprises:
and triggering a writing state database under the condition that the target field information is detected to be consistent with preset characteristic information, wherein the preset characteristic information is stored in an Rsyslog configuration file issued by a CPU (Central processing Unit).
It should be noted that, the preset rule is set by the acquired module information of the non-volatile node and the level information of the log, and the preset rule can set different field information according to different information carried by the target log entry, for example, the data change of the non-volatile node of different modules can be identified by the field information of a digital type, the different level information of the target log entry can be identified by the field information of a letter type, the preset feature information is set in an Rsyslog configuration file issued by the CPU end, and the preset feature information basically covers the target field information converted by the preset rule from the log file of the data change of all the non-volatile nodes.
And step 103, responding to the updating operation of the state database, and reading the data of the non-volatile node corresponding to the target log entry from the baseboard management controller.
In the embodiment of the application, the data of the non-volatile node of the baseboard management controller is read through the original daemon locally of the CPU, wherein the daemon is a special process running in the background and used for executing specific system tasks. Many daemons start up at system boot time and run until the system is shut down, others start only when needed, and end automatically after completion of the task. The daemon process in the embodiment of the application is initially started along with the system start, then does not read the data of the non-volatile nodes at regular intervals, but keeps waiting until the data of the non-volatile nodes are changed and can not trigger the reading again.
Specifically, in response to an update operation of the state database, reading data of a non-volatile node corresponding to a target log entry from the baseboard management controller, including:
responding to the update operation of the state database, and triggering the reading operation of the local daemon;
and reading the data of the non-volatile node corresponding to the target log entry from the baseboard management controller through the reading operation.
According to the reading control method provided by the embodiment of the application, the target log entry sent by the baseboard management controller is received, so that the baseboard management controller detects the data change of the non-volatile node of the external device, the problem of relatively large delay in reading by the CPU is avoided, the state database is updated according to the target log entry, the CPU determines that the data of the non-volatile node of the external device managed by the baseboard management controller at the moment changes, and the data of the non-volatile node corresponding to the target log entry is read from the baseboard management controller in response to the updating operation of the state database, so that the CPU reads the data only when the data of the non-volatile node of the external device managed by the baseboard management controller is determined to change, and unnecessary consumption of the CPU is reduced. According to the embodiment of the application, the substrate management controller detects the change of the data of the non-volatile node of the external device to avoid the delay of CPU reading, and the target log entry carrying the data change information of the non-volatile node is updated to the state database of the CPU, so that the CPU can read the data only when the data of the non-volatile node of the external device managed by the substrate management controller changes, unnecessary consumption of the CPU is reduced, and the burden is reduced for the BMC with weaker performance.
Referring to fig. 2, a flowchart of step 101 of a read control method provided by the embodiment of the present application shown in fig. 1 is shown, and specifically includes:
step 201, send Rsyslog configuration file to baseboard management controller.
The Rsyslog configuration file of the embodiment of the application is issued to the baseboard management controller through the CPU, so that the Rsyslog of the baseboard management controller can synchronize the log entries meeting the conditions to the CPU, wherein the Rsyslog configuration file can control the output of different types of logs by modifying parameters, can set the level of the logs according to different conditions, and can send the log entries meeting the conditions to a target position by making rules.
In addition, because the data of the non-volatile node changes, a log entry is locally generated by the Rsyslog service of the baseboard management controller, so that the CPU end sends the Rsyslog configuration file to the baseboard management controller in order to monitor the data change of the non-volatile node of the external device of the baseboard management controller.
It should be noted that, because the external device of the baseboard management controller has both the data of the non-volatile node and the data of the volatile node, in order to avoid the interference of the data of the volatile node to the data of the non-volatile node, the data of the volatile node and the data of the non-volatile node are respectively put into different Cache registers on the baseboard management controller for storage.
Step 202, receiving a target log entry sent by the baseboard management controller through the Rsyslog configuration file.
In the embodiment of the application, the CPU sends the Rsyslog configuration file to the baseboard management controller, so that when the Rsyslog at the baseboard management controller side has the log entry meeting the condition, the Rsyslog at the CPU side is sent to the log entry, and the condition can be set through the grade of the target log entry, for example, when the grade of the log is a warning grade or a serious grade, the Rsyslog is used as the target log entry to be sent to the CPU side.
According to the reading control method provided by the embodiment of the application, the target log entry sent by the baseboard management controller is received, so that the baseboard management controller detects the data change of the non-volatile node of the external device, the problem of relatively large delay in reading by the CPU is avoided, the state database is updated according to the target log entry, the CPU determines that the data of the non-volatile node of the external device managed by the baseboard management controller at the moment changes, and the data of the non-volatile node corresponding to the target log entry is read from the baseboard management controller in response to the updating operation of the state database, so that the CPU reads the data only when the data of the non-volatile node of the external device managed by the baseboard management controller is determined to change, and unnecessary consumption of the CPU is reduced. According to the embodiment of the application, the substrate management controller detects the change of the data of the non-volatile node of the external device to avoid the delay of CPU reading, and the CPU updates the target log entry carrying the data change information of the non-volatile node to the state database of the CPU, so that the CPU can read the data only when the data of the non-volatile node of the external device managed by the substrate management controller changes, unnecessary consumption of the CPU is reduced, the burden on the BMC with weaker performance is reduced, and meanwhile, the Rsyslog configuration of the substrate management controller is issued by the CPU, so that the appointed log information can be synchronized to the CPU end.
Referring to fig. 3, a second step flowchart of a read control method provided by an embodiment of the present application is shown, which specifically includes:
in step 301, a local daemon is started in response to the start of the CPU.
In the embodiment of the application, the local daemon process is started by default when the CPU is started for the first time.
Step 302, the daemon reads data of an initial non-volatile node of the external device.
After the local daemon of the CPU in the embodiment of the application is started, the data of the initial non-volatile node of the external equipment can be read. In addition, because the external device comprises volatile node data and non-volatile node data, the data of the volatile node needs to be updated frequently, a fixed updating period is set, the volatile node data of the external device is read periodically according to the updating period, the non-volatile node data is not easy to change, and therefore the local daemon of the CPU only reads the data of the initial non-volatile node when the CPU is started for the first time and then keeps waiting, and the non-volatile node data of the external device cannot be read periodically according to the updating period.
Step 303, subscribing to a status database.
In the embodiment of the application, after the daemon process of the CPU reads the data of the initial non-volatile node of the external equipment in the baseboard management controller at the initial starting, the data of the non-volatile node is not read at regular intervals but is waited for in the background operation, but in order to trigger the reading again when the data of the non-volatile node of the external equipment in the baseboard management controller changes later, a state database is arranged at the CPU end, the change of the data of the non-volatile node of the external equipment in the baseboard management controller is monitored through the state database, and the state database is required to be subscribed in order to confirm the monitoring result of the state database.
And step 304, under the condition that the update event exists in the subscribed state database, reading the data of the non-volatile node of the current external device from the baseboard management controller.
The subscription in the embodiment of the application is a method for acquiring the latest data of the state database in real time at low cost, and because the rsyslog plug-in of the CPU triggers writing the state database when receiving the matching of the specific log entry, the standby daemon is operated in the background to trigger the re-reading operation after subscribing to the update event of the state database through the subscription state database, and the data of the non-volatile node of the current external device is read from the baseboard management controller.
According to the reading control method provided by the embodiment of the application, the target log entry sent by the baseboard management controller is received, so that the baseboard management controller detects the data change of the non-volatile node of the external device, the problem of relatively large delay in reading by the CPU is avoided, the state database is updated according to the target log entry, the CPU determines that the data of the non-volatile node of the external device managed by the baseboard management controller at the moment changes, and the data of the non-volatile node corresponding to the target log entry is read from the baseboard management controller in response to the updating operation of the state database, so that the CPU reads the data only when the data of the non-volatile node of the external device managed by the baseboard management controller is determined to change, and unnecessary consumption of the CPU is reduced. According to the embodiment of the application, the time delay of CPU reading is avoided by detecting the change of the data of the non-volatile node of the external device through the baseboard management controller, and the CPU realizes the reading of the data only when the data of the non-volatile node of the external device managed by the baseboard management controller changes by updating the target log entry carrying the data change information of the non-volatile node to the state database of the CPU, so that unnecessary consumption of the CPU is reduced, the burden on the BMC with weaker performance is reduced, and meanwhile, the daemon subscribes to the state database to trigger the re-acquisition of the data of the non-volatile node on the baseboard management controller, thereby effectively reducing the consumption of the CPU.
Referring to fig. 4, a third step flowchart of a read control method according to an embodiment of the present application is shown, and specifically includes:
the read control method of the embodiment of the application comprises a baseboard management controller and a CPU, wherein the baseboard management controller reads data of a non-volatile node of an external device after being started, the CPU injects an Rsyslog configuration file into the baseboard management controller after being started, when the configuration file is changed, the Rsyslog starts to synchronize target log entries conforming to conditions to the Rsyslog of the CPU, target field information of the CPU log file is generated according to the target log entries, the Rsyslog of the CPU is started at the moment, after confirming that the conforming target field information is received, the CPU is put into a state database, at the moment, a subscribed state database generates an update event, a re-read operation is triggered, at the moment, the non-volatile node acquires a daemon, reads the data of the current non-volatile node, wherein the CPU starts the daemon for the first time, the operation of immediately reading the data of the non-volatile node is triggered, then the daemon needs to subscribe the state database again, after the state database generates an update event, the re-read operation non-volatile node is triggered to acquire the daemon, and the data of the current non-volatile node is read again.
Referring to fig. 5, a schematic structural diagram of a read control device according to an embodiment of the present application is shown, and as shown in fig. 5, the device may include:
a first receiving module 401, configured to receive a target log entry sent by a baseboard management controller, where the target log entry is generated when the baseboard management controller detects that data of a non-volatile node of an external device changes;
a first updating module 402, configured to update a status database according to the target log entry;
and a first reading module 403, configured to read, from the baseboard management controller, data of a non-volatile node corresponding to the target log entry in response to an update operation of the status database.
Optionally, the first receiving module 401 further includes:
a first sending sub-module, configured to send an Rsyslog configuration file to the baseboard management controller;
and the first receiving submodule is used for receiving the target log entry sent by the baseboard management controller through the Rsyslog configuration file.
Optionally, the first updating module 402 further includes:
the first generation sub-module is used for sending the target log entry to a first log file and generating target field information of the first log file;
and the first triggering sub-module is used for triggering the writing state database through the target field information.
Optionally, the first triggering sub-module further includes:
the triggering unit is used for triggering the writing state database under the condition that the target field information is detected to be consistent with the preset characteristic information, and the preset characteristic information is stored in an Rsyslog configuration file issued by the CPU.
Optionally, the read control device further includes:
and the second reading module is used for responding to the starting of the CPU and starting a local daemon.
And the third reading module is used for reading the data of the initial non-volatile node of the external device through the daemon.
The first subscription module is used for subscribing the state database;
and the fourth reading module is used for reading the data of the non-volatile node of the current external device from the baseboard management controller under the condition that the subscribed state database is in an updating event.
Optionally, the first reading module 403 further includes:
the first acquisition sub-module is used for responding to the updating operation of the state database and triggering the reading operation of the local daemon;
and the first reading submodule is used for reading the data of the non-volatile node corresponding to the target log entry from the baseboard management controller through the reading operation.
According to the reading control method provided by the embodiment of the application, the target log entry sent by the baseboard management controller is received, so that the baseboard management controller detects the data change of the non-volatile node of the external device, the problem of relatively large delay in reading by the CPU is avoided, the state database is updated according to the target log entry, the CPU determines that the data of the non-volatile node of the external device managed by the baseboard management controller at the moment changes, and the data of the non-volatile node corresponding to the target log entry is read from the baseboard management controller in response to the updating operation of the state database, so that the CPU reads the data only when the data of the non-volatile node of the external device managed by the baseboard management controller is determined to change, and unnecessary consumption of the CPU is reduced. According to the embodiment of the application, the substrate management controller detects the change of the data of the non-volatile node of the external device to avoid the delay of CPU reading, and the target log entry carrying the data change information of the non-volatile node is updated to the state database of the CPU, so that the CPU can read the data only when the data of the non-volatile node of the external device managed by the substrate management controller changes, unnecessary consumption of the CPU is reduced, and the burden is reduced for the BMC with weaker performance.
The embodiment of the application also provides a communication device, as shown in fig. 6, comprising a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 complete communication with each other through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501 is configured to execute the program stored in the memory 503, and implement the following steps:
receiving a target log entry sent by a baseboard management controller, wherein the target log entry is generated when the baseboard management controller detects that the data of a non-variable node of external equipment changes;
updating a status database according to the target log entry;
and responding to the updating operation of the state database, and reading the data of the non-volatile node corresponding to the target log entry from the baseboard management controller.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The present application also provides a readable storage medium which, when executed by a processor of an electronic device, enables the electronic device to perform the access control method of the foregoing embodiment.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. The required structure for a construction of such a system is apparent from the description above. In addition, the present application is not directed to any particular programming language. It will be appreciated that the teachings of the present application described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present application.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the above description of exemplary embodiments of the application, various features of the application are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed application requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this application.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Various component embodiments of the application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functions of some or all of the components in a sorting device according to the present application may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). The present application may also be implemented as an apparatus or device program for performing part or all of the methods described herein. Such a program embodying the present application may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the application, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the application.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
It should be noted that, in the embodiment of the present application, the related processes of obtaining various data are all performed under the premise of conforming to the corresponding data protection rule policy of the country of the location and obtaining the authorization given by the owner of the corresponding device.

Claims (10)

1. A method of read control, the method comprising:
receiving a target log entry sent by a baseboard management controller, wherein the target log entry is generated when the baseboard management controller detects that the data of a non-variable node of external equipment changes;
updating a status database according to the target log entry;
and responding to the updating operation of the state database, and reading the data of the non-volatile node corresponding to the target log entry from the baseboard management controller.
2. The method of claim 1, wherein receiving the target log entry sent by the baseboard management controller comprises:
sending an Rsyslog configuration file to the baseboard management controller;
and receiving target log entries sent by the baseboard management controller through the Rsyslog configuration file.
3. The method of claim 1, wherein updating the status database based on the target log entry comprises:
the target log entry is sent to a first log file, and target field information of the first log file is generated;
triggering a writing state database through the target field information.
4. A method according to claim 3, wherein said triggering a write status database by said target field information comprises:
and triggering a writing state database under the condition that the target field information is detected to be consistent with preset characteristic information, wherein the preset characteristic information is stored in an Rsyslog configuration file issued by a CPU (Central processing Unit).
5. The method as recited in claim 1, further comprising:
in response to the starting of the CPU, starting a local daemon;
and reading the data of the initial non-volatile node of the external device through the daemon.
6. The method of claim 5, wherein after the reading, by the daemon, the data of the initial non-volatile node of the external device, further comprising:
subscribing to the status database;
and under the condition that the subscription to the state database is in an updating event, reading the data of the non-volatile node of the current external device from the baseboard management controller.
7. The method of claim 1, wherein the reading data of the non-volatile node corresponding to the target log entry from the baseboard management controller in response to the update operation of the status database comprises:
responding to the updating operation of the state database, and triggering the reading operation of a local daemon;
and reading the data of the non-volatile node corresponding to the target log entry from the baseboard management controller through the reading operation.
8. A read control device, comprising:
the first receiving module is used for receiving a target log entry sent by the baseboard management controller, wherein the target log entry is generated when the baseboard management controller detects that the data of the non-variable node of the external equipment changes;
the first updating module is used for updating the state database according to the target log entry;
and the first reading module is used for responding to the updating operation of the state database and reading the data of the non-volatile node corresponding to the target log entry from the baseboard management controller.
9. A communication device, comprising: a transceiver, a memory, a processor, and a program stored on the memory and executable on the processor;
the processor being arranged to read a program in a memory for implementing the steps of the read control method according to any one of claims 1-7.
10. A readable storage medium storing a program, wherein the program, when executed by a processor, implements the steps of the read control method according to any one of claims 1 to 7.
CN202310473759.0A 2023-04-27 2023-04-27 Read control method, device, equipment and storage medium Pending CN116627917A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310473759.0A CN116627917A (en) 2023-04-27 2023-04-27 Read control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310473759.0A CN116627917A (en) 2023-04-27 2023-04-27 Read control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116627917A true CN116627917A (en) 2023-08-22

Family

ID=87591080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310473759.0A Pending CN116627917A (en) 2023-04-27 2023-04-27 Read control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116627917A (en)

Similar Documents

Publication Publication Date Title
US9489029B2 (en) Operating system independent network event handling
US7000161B1 (en) Reconfigurable programmable logic system with configuration recovery mode
WO2016028988A1 (en) Managing applications for power conservation
CN113434356A (en) Method and system for automatically detecting and alerting computing device component changes
WO2021232651A1 (en) Method and apparatus for upgrading multi-level management system, and device and medium
US6904546B2 (en) System and method for interface isolation and operating system notification during bus errors
CN116627917A (en) Read control method, device, equipment and storage medium
CN116302136A (en) Firmware configuration method, device, equipment and readable storage medium
US11714696B2 (en) Custom baseboard management controller (BMC) firmware stack watchdog system and method
CN115967659A (en) Method and device for checking resource pool equipment
US8359220B2 (en) Technical support routing among members of a technical support group
CN114185804A (en) Interface testing method and device and terminal equipment
CN112612592A (en) Configurable timed task processing method, device, equipment and storage medium
CN109298892B (en) Device and method for controlling startup and shutdown of server
CN107632917B (en) Server system and temperature monitoring method thereof
CN112099857B (en) Dormancy awakening method of electronic equipment and electronic equipment
CN112866008B (en) NAT rule enabling attribute configuration method, NAT rule enabling attribute configuration device, electronic equipment and storage medium
CN114884724B (en) Cloud server interaction method and device, readable storage medium and terminal equipment
CN115097879B (en) Temperature regulation and control method, device, equipment and medium
CN114448791B (en) Configuration method and device of routing module, electronic equipment and readable storage medium
CN112241283B (en) Software upgrading method, device, computer equipment and storage medium
CN116910123A (en) Container task query method, device, equipment and storage medium
CN116011017A (en) BMC (baseboard management controller) safety remote control system and method
CN118093320A (en) Method and device for monitoring processor information, storage medium and electronic equipment
CN116795594A (en) Service processing method and substrate management controller

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