CN112463528B - In-band and out-band data interaction method, device, equipment and readable medium - Google Patents

In-band and out-band data interaction method, device, equipment and readable medium Download PDF

Info

Publication number
CN112463528B
CN112463528B CN202011313541.1A CN202011313541A CN112463528B CN 112463528 B CN112463528 B CN 112463528B CN 202011313541 A CN202011313541 A CN 202011313541A CN 112463528 B CN112463528 B CN 112463528B
Authority
CN
China
Prior art keywords
command
band
executed
user
request command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011313541.1A
Other languages
Chinese (zh)
Other versions
CN112463528A (en
Inventor
段谊海
郭锋
王晓通
王朋飞
邵凡
赵阳阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011313541.1A priority Critical patent/CN112463528B/en
Publication of CN112463528A publication Critical patent/CN112463528A/en
Application granted granted Critical
Publication of CN112463528B publication Critical patent/CN112463528B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0656Data buffering arrangements

Abstract

The invention discloses an in-band and out-band data interaction method, which comprises the following steps: receiving a user request command, and putting the user request command into a command cache area to be executed; in response to receiving the polling command of the in-band executor, returning a user request command in a command cache area to be executed to the in-band executor; receiving a processing result of the in-band executor on the user request command, and putting the processing result into a command execution result cache region; and in response to receiving the user polling command, returning the processing result of the command execution result cache area to the user. The invention also discloses a device for interacting the in-band and out-band data, computer equipment and a readable storage medium. The invention completes the interaction of in-band and out-band data and finishes the acquisition of in-band information from out-of-band, thereby realizing the comprehensive monitoring of the equipment.

Description

In-band and out-band data interaction method, device, equipment and readable medium
Technical Field
The invention relates to the technical field of data interaction, in particular to a method, a device, equipment and a readable medium for in-band and out-band data interaction.
Background
With the rapid development of the internet, the internet of things and artificial intelligence, it is crucial that a data center can provide a reliable running environment, however, from the current server monitoring, the BMC can only provide relevant information and running state of hardware, and cannot acquire running state, performance and basic information of an in-band operating system, and cannot meet the requirement for comprehensive monitoring of equipment.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, an apparatus, a device, and a readable medium for interacting in-band and out-band data, which completes acquiring in-band information from out-of-band by increasing a buffer area and completing interaction of the in-band and out-of-band data, thereby implementing comprehensive monitoring on the device.
Based on the above object, an aspect of the embodiments of the present invention provides an in-band and out-band data interaction method, including the following steps: receiving a user request command, and putting the user request command into a command cache area to be executed; in response to receiving the polling command of the in-band executor, returning the user request command in the command cache area to be executed to the in-band executor; receiving a processing result of the in-band executor on the user request command, and putting the processing result into a command execution result cache region; and in response to receiving the user polling command, returning a processing result of the command execution result cache region to the user.
In some embodiments, a user request command is received and placed into a to-be-executed command buffer envelope: and receiving a user page request command, packaging data, and placing the request command subjected to data packaging into a command cache area to be executed.
In some embodiments, further comprising: and numbering the user request commands of the command cache area to be executed, returning the numbers to the user, and judging the execution state of the commands to be executed by the user based on the numbers.
In some embodiments, returning the user request command in the command buffer to be executed to the in-band executor comprises: returning the user request command in the command cache area to be executed to the in-band executor; and deleting the user request command from the command cache to be executed.
In another aspect of the embodiments of the present invention, an in-band external data interaction apparatus is further provided, including: the external receiving module is configured to receive a user request command and place the user request command into a command cache area to be executed; the in-band polling module is configured for responding to the received in-band executor polling command and returning the user request command in the command cache area to be executed to the in-band executor; the internal receiving module is configured to receive a processing result of the in-band executor on the user request command and place the processing result into a command execution result cache region; and the external polling module is configured for responding to the received user polling command and returning the processing result of the command execution result cache area to the user.
In some embodiments, the external receiving module is further configured to: and receiving a user page request command, packaging data, and placing the request command subjected to data packaging into a command cache area to be executed.
In some embodiments, the system further includes a numbering module configured to number the user request command in the command buffer to be executed, and return the number to the user, where the user determines an execution state of the command to be executed based on the number.
In some embodiments, the intra-polling module is further configured to: returning the user request command in the command cache area to be executed to the in-band executor; and deleting the user request command from the command cache to be executed.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: and the interaction of in-band and out-band data is communicated, and the in-band information is acquired from the out-of-band, so that the equipment is comprehensively monitored.
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 description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a diagram illustrating an embodiment of an in-band and out-band data interaction method provided by the present invention;
FIG. 2 is a schematic diagram of an embodiment of an in-band and out-band data interaction apparatus provided in the present invention;
FIG. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention;
FIG. 4 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the above, a first aspect of the embodiments of the present invention provides an embodiment of an in-band and out-band data interaction method. Fig. 1 is a schematic diagram illustrating an embodiment of an in-band and out-band data interaction method provided by the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps performed at the maintenance device side:
s01, receiving a user request command, and placing the user request command into a command cache area to be executed;
s02, responding to the received polling command of the in-band executor, and returning the user request command in the command cache area to be executed to the in-band executor;
s03, receiving the processing result of the in-band executor to the user request command, and putting the processing result into a command execution result buffer area; and
and S04, responding to the received user polling command, and returning the processing result of the command execution result cache area to the user.
In this embodiment, the system includes a client, a server, and an agent executor. The client is installed in the BMC system and is responsible for receiving a page request command of a user, performing data encapsulation, performing a first request on a back-end service execution command, checking whether back-end service returns data or not in a polling mode, and analyzing and returning to a page if the back-end service returns data. The server is installed in the BMC system and is responsible for monitoring the request and caching or responding the valid data, when the server receives the request of executing the command of the client, the request command is put into a request cache region, the request number is set, and the request number is returned to the client; and when the client side makes a request for executing the command result, returning the command execution result according to the number of the request. The agent executor is arranged in the in-band operating system and is responsible for regularly requesting the command to be executed by the server, and after the command is executed, the execution result is subjected to data encapsulation, and then the server is requested again to set the execution command result.
In this embodiment, the proxy executor in the in-band system queries the primitive command request by ipmitool, performs query on the command to be executed, analyzes and executes the command, encapsulates the data format of the executed result, and returns the encapsulated result to the out-of-band server.
In some embodiments of the present invention, a user request command is received and placed into a to-be-executed command buffer envelope: and receiving a user page request command, packaging data, and putting the request command subjected to data packaging into a command cache area to be executed.
In this embodiment, the command input by the user page or automatically invoked inside the system may be a user request command, and data is encapsulated according to the following table:
Figure BDA0002790592420000041
Figure BDA0002790592420000051
in some embodiments, further comprising: and numbering the user request commands of the command cache area to be executed, returning the numbers to the user, and judging the execution state of the commands to be executed by the user based on the numbers.
In this embodiment, after receiving the request command, the server places the command to be executed in the command to be executed cache region, numbers seq to the command to be executed, and returns the numbers to the user. After the request is initiated, the user carries out timing query according to the seq of the request to judge whether the execution result is returned, and if the execution result is returned, the analysis is returned to the page. And after the execution result is returned, deleting the execution result from the cache.
In some embodiments, returning the user request command in the command buffer to be executed to the in-band executor comprises: returning the user request command in the command cache area to be executed to the in-band executor; and deleting the user request command from the command cache to be executed.
In this embodiment, when the agent executor queries a command to be executed, the server returns the command to be executed to the agent, and deletes the command to be executed from the cache.
It should be particularly noted that, the steps in the embodiments of the in-band and out-of-band data interaction method described above can be mutually intersected, replaced, added, or deleted, and therefore, the reasonable permutation and combination transformation of the in-band and out-of-band data interaction method shall also belong to the scope of the present invention, and shall not limit the scope of the present invention to the embodiments.
In view of the above, a second aspect of the embodiments of the present invention provides an in-band and out-of-band data interaction apparatus. Fig. 2 is a schematic diagram illustrating an embodiment of an in-band and out-band data interaction apparatus provided by the present invention. As shown in fig. 2, the embodiment of the present invention includes the following modules: the external receiving module S11 is configured to receive a user request command and place the user request command into a command cache area to be executed; the internal polling module S12 is configured to respond to the received polling command of the in-band executor and return the user request command in the command cache area to be executed to the in-band executor; the internal receiving module S13 is configured to receive the processing result of the in-band executor to the user request command and place the processing result into a command execution result cache region; and an external polling module S14 configured to, in response to receiving the user polling command, return a processing result of the command execution result buffer to the user.
In some embodiments, the external receiving module S11 is further configured to: and receiving a user page request command, packaging data, and placing the request command subjected to data packaging into a command cache area to be executed.
In some embodiments, the system further includes a numbering module configured to number the user request command in the command to be executed cache region, and return the number to the user, and the user determines the execution state of the command to be executed based on the number.
In some embodiments, the intra-polling module S12 is further configured to: returning the user request command in the command cache area to be executed to the in-band executor; and deleting the user request command from the command cache to be executed.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device. Fig. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 3, an embodiment of the present invention includes the following means: at least one processor S21; and a memory S22, the memory S22 storing computer instructions S23 executable on the processor, the instructions when executed by the processor implementing the steps of the above method.
The invention also provides a computer readable storage medium. FIG. 4 illustrates a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 4, the computer readable storage medium stores S31 a computer program that, when executed by a processor, performs the method as described above S32.
Finally, it should be noted that, as those skilled in the art can understand, all or part of the processes in the methods of the embodiments described above can be implemented by instructing relevant hardware through a computer program, and the program of the inband and outband data interaction method can be stored in a computer-readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a read-only memory (ROM), or a Random Access Memory (RAM). The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments corresponding thereto.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. 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 disclosed embodiments of the present invention.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. An in-band and out-band data interaction method is characterized by comprising the following steps:
receiving a user request command, and putting the user request command into a command cache area to be executed;
in response to receiving an in-band executor polling command, returning the user request command in the command cache area to be executed to the in-band executor;
receiving a processing result of the in-band executor on the user request command, and putting the processing result into a command execution result cache region; and
and responding to the received user polling command, and returning the processing result of the command execution result cache region to the user.
2. The method of claim 1, wherein a user request command is received and placed into a to-be-executed command buffer envelope:
receiving a user page request command, carrying out data encapsulation, and putting the request command after the data encapsulation into a command cache region to be executed.
3. The method for interacting the in-band data and the out-band data according to claim 1, further comprising:
and numbering the user request commands in the command cache area to be executed, returning the numbers to the user, and judging the execution state of the commands to be executed by the user based on the numbers.
4. The method for interacting the in-band and out-of-band data as claimed in claim 1, wherein returning the user request command in the command buffer to be executed to the in-band executor comprises:
returning the user request command in the command cache area to be executed to the in-band executor;
and deleting the user request command from the command cache to be executed.
5. An in-band external data interaction device, comprising:
the external receiving module is configured to receive a user request command and place the user request command into a command cache area to be executed;
the internal polling module is configured to respond to the received polling command of the in-band executor and return the user request command in the command cache area to be executed to the in-band executor;
the internal receiving module is configured to receive a processing result of the in-band executor on the user request command and place the processing result into a command execution result cache region; and
and the external polling module is configured to respond to a received user polling command and return the processing result of the command execution result cache area to the user.
6. The in-band and out-band data interaction device according to claim 5, wherein the external receiving module is further configured to:
receiving a user page request command, carrying out data encapsulation, and putting the request command after data encapsulation into a command cache area to be executed.
7. The in-band and out-band data interaction device according to claim 5, further comprising a numbering module configured to number the user request command in the to-be-executed command buffer and return the number to the user, and the user determines the execution status of the to-be-executed command based on the number.
8. The in-band and out-of-band data interaction device of claim 5, wherein the intra-poll module is further configured to:
returning the user request command in the command cache area to be executed to the in-band executor;
and deleting the user request command from the command cache to be executed.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of any of the methods 1-4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN202011313541.1A 2020-11-20 2020-11-20 In-band and out-band data interaction method, device, equipment and readable medium Active CN112463528B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011313541.1A CN112463528B (en) 2020-11-20 2020-11-20 In-band and out-band data interaction method, device, equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011313541.1A CN112463528B (en) 2020-11-20 2020-11-20 In-band and out-band data interaction method, device, equipment and readable medium

Publications (2)

Publication Number Publication Date
CN112463528A CN112463528A (en) 2021-03-09
CN112463528B true CN112463528B (en) 2022-07-12

Family

ID=74798750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011313541.1A Active CN112463528B (en) 2020-11-20 2020-11-20 In-band and out-band data interaction method, device, equipment and readable medium

Country Status (1)

Country Link
CN (1) CN112463528B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110781042B (en) * 2019-09-29 2022-11-29 苏州浪潮智能科技有限公司 Method, device and medium for detecting UBM (Universal boot Module) backboard based on BMC (baseboard management controller)
CN111158610B (en) * 2019-12-31 2022-02-22 苏州浪潮智能科技有限公司 Method, device and equipment for synchronously setting cache acceleration and readable medium
CN111581133A (en) * 2020-05-06 2020-08-25 苏州浪潮智能科技有限公司 Method, system, equipment and readable medium for multi-core memory consistency

Also Published As

Publication number Publication date
CN112463528A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN111752799A (en) Service link tracking method, device, equipment and storage medium
CN106293887A (en) Data base processing method and device
CN106713469B (en) Dynamic loading method, device and system for distributed container
CN110019001A (en) Promote method, system and the monitoring module of message-oriented middleware message trace ability
CN109582655B (en) Method and device for positioning system log and computer readable storage medium
CN112416708B (en) Asynchronous call link monitoring method and system
CN110647460A (en) Test resource management method and device and test client
CN104461929B (en) Distributed data cache method based on blocker
CN109857391A (en) Processing method and processing device, storage medium and the electronic device of data
CN110457132B (en) Method and device for creating functional object and terminal equipment
CN112003915A (en) File access method, device, equipment and readable medium
CN108365976B (en) Network service optimization method and device
CN112463528B (en) In-band and out-band data interaction method, device, equipment and readable medium
CN116204239A (en) Service processing method, device and computer readable storage medium
CN113254227B (en) Method and system for remote method call across data centers
CN110620819B (en) Block chain interaction method and device, computer equipment and readable storage medium
CN112579406B (en) Log call chain generation method and device
CN109743366B (en) Resource locking method, device and system for multi-living scene
CN114500348B (en) CDN gateway testing method and system
CN114157639B (en) Method, device and equipment for collecting information of intelligent network card of server and readable medium
CN112905617B (en) Data writing method, server and computer readable storage medium
JP2006146615A (en) Object-related information management program, management method and management apparatus
CN112910835B (en) Block chain-based configuration management method, apparatus, system, device, and medium
CN104735097A (en) Information collecting method and system
CN114070787A (en) Police service big data oriented data aggregation method and device, storage medium and electronic equipment

Legal Events

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