CN113672451B - BMC service detection method, device, equipment and readable storage medium - Google Patents

BMC service detection method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN113672451B
CN113672451B CN202110826620.0A CN202110826620A CN113672451B CN 113672451 B CN113672451 B CN 113672451B CN 202110826620 A CN202110826620 A CN 202110826620A CN 113672451 B CN113672451 B CN 113672451B
Authority
CN
China
Prior art keywords
bmc
field information
service
redfish
detection
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
CN202110826620.0A
Other languages
Chinese (zh)
Other versions
CN113672451A (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.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan data 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 Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN202110826620.0A priority Critical patent/CN113672451B/en
Publication of CN113672451A publication Critical patent/CN113672451A/en
Application granted granted Critical
Publication of CN113672451B publication Critical patent/CN113672451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • 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
    • 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/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • 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)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a BMC service detection method, device, equipment and readable storage medium, wherein the method comprises the following steps: sending a detection request to the BMC according to the received IP address and detection item of the BMC, and receiving first field information corresponding to the detection request returned by the BMC; establishing a local static BMC environment according to the first field information; and sending a Redfish service request to the local static BMC environment, acquiring second field information corresponding to the Redfish service request, comparing the second field information with Redfish standard field information corresponding to the Redfish standard specification file, and storing a comparison result. According to the technical scheme, the automatic detection of the BMC service is realized by sending the service request to the established local static BMC environment, so that the detection efficiency and detection accuracy are improved, the operation frequency of the BMC is reduced, and the influence on the BMC is reduced.

Description

BMC service detection method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of BMC detection technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for BMC service detection.
Background
BMC (Baseboard Management Controller ) is the whole server's caretaker, and mainly used detects the health status such as temperature, voltage of each parts such as central processing unit, memory, hard disk, fan, frame in the server, simultaneously according to the condition of each temperature acquisition point real-time adjustment fan rotational speed guarantee that the server does not produce the overtemperature, and control overall power consumption can not be too high again. If any abnormality occurs in a single component, the information is timely reported to an upper network manager through a plurality of industry universal specifications such as a Redfish (server out-of-band management standard) protocol, etc., so that operation and maintenance personnel can timely process the information, and business damage is guaranteed.
Redfish is an open industry standard specification published by the Distributed Management Task Force (DMTF), which aims to carry out modernization and security management on platform hardware, and is a management standard, and a data model representation is used in a hypermedia RESTful (Representational State Transfer, a network system of which an architecture style is described) interface. It is a hypermedia API (Application Programming Interface ) so it can represent various implementations through a consistent interface. It has mechanisms to manage data center resources, handle events, long-term tasks, and discovery.
In the BMC, it is necessary to detect whether the implementation of the BMC meets the standard specification in the Redfish so that the BMC can meet the standard specification in the Redfish. At present, when the BMC is subjected to service detection, related personnel generally list all the test interfaces to be tested, test requests of all the test interfaces are sent to postman (an interface debugging and testing tool supporting an http protocol), the postman sends corresponding test requests to the BMC and receives field information returned by the BMC, and then the related personnel respectively compare whether the field information is consistent with information specified in a Redfish. However, on the one hand, the existing test mode needs to be implemented manually, so that the detection efficiency is relatively low, omission and the like easily occur during comparison, so that the detection accuracy is relatively low, and on the other hand, the BMC needs to be operated every time of detection, so that the operation frequency of the BMC is increased, and the operation of the BMC may be influenced.
In summary, how to improve the detection efficiency and the detection accuracy and reduce the influence of the detection on the BMC is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the foregoing, an object of the present application is to provide a method, apparatus, device and readable storage medium for detecting a BMC service, which are used for improving detection efficiency and detection accuracy, and reducing the influence of detection on the BMC.
In order to achieve the above object, the present application provides the following technical solutions:
a BMC service detection method, comprising:
receiving an IP address and a detection item of a BMC, sending a detection request to the BMC according to the IP address and the detection item of the BMC, and receiving first field information which is returned by the BMC and corresponds to the detection request;
according to the first field information, a local static BMC environment is established;
and sending a Redfish service request to the local static BMC environment, acquiring second field information corresponding to the Redfish service request, comparing the second field information with Redfish standard field information corresponding to a Redfish standard specification file, and storing a comparison result.
Preferably, storing the comparison result includes:
if the second field information is consistent with the corresponding Redfish standard field information, storing the second field information with consistent comparison and a result with consistent comparison;
if the second field information is inconsistent with the corresponding Redfish standard field information, storing the inconsistent comparison second field information, inconsistent comparison and corresponding Redfish standard field information results.
Preferably, when storing the inconsistent comparison second field information and inconsistent comparison result, the method further comprises:
and sending out an error prompt that the second field information does not accord with the Redfish standard.
Preferably, after storing the inconsistent comparison second field information and inconsistent comparison result, the method further comprises:
and receiving field information after the second field information which is inconsistent in comparison is modified, and executing the step of sending a detection request to the BMC according to the IP address of the BMC and the detection item.
Preferably, storing the comparison result includes:
and storing the comparison result in a log in an html format.
Preferably, after receiving the first field information corresponding to the detection request returned by the BMC, the method further includes:
and storing the first field information into a target file according to the corresponding relation of the service in the BMC.
A BMC service detection apparatus, comprising:
the receiving module is used for receiving the IP address and the detection item of the BMC, sending a detection request to the BMC according to the IP address and the detection item of the BMC, and receiving first field information which is returned by the BMC and corresponds to the detection request;
the building module is used for building a local static BMC environment according to the first field information;
and the comparison module is used for sending a Redfish service request to the local static BMC environment, acquiring second field information corresponding to the Redfish service request, comparing the second field information with the Redfish standard field information corresponding to the Redfish standard specification file, and storing a comparison result.
Preferably, the comparison module includes:
the first storage unit is used for storing the second field information with consistent comparison and the result with consistent comparison if the second field information is consistent with the corresponding Redfish standard field information;
and the second storage unit is used for storing the inconsistent comparison second field information, the inconsistent comparison result and the corresponding Redfish standard field information if the second field information is inconsistent with the corresponding Redfish standard field information.
A BMC service detection apparatus, comprising:
a memory for storing a computer program;
a processor, configured to implement the steps of the BMC service detection method according to any of the above claims when executing the computer program.
A readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of the BMC service detection method according to any of the preceding claims.
The application provides a BMC service detection method, device, equipment and readable storage medium, wherein the method comprises the following steps: receiving an IP address and a detection item of the BMC, sending a detection request to the BMC according to the IP address and the detection item of the BMC, and receiving first field information which is returned by the BMC and corresponds to the detection request; according to the first field information, a local static BMC environment is established; and sending a Redfish service request to the local static BMC environment, acquiring second field information corresponding to the Redfish service request, comparing the second field information with Redfish standard field information corresponding to the Redfish standard specification file, and storing a comparison result.
According to the technical scheme, the first field information corresponding to the detection request sent according to the IP address and the detection item of the BMC is received and the local static BMC environment is built according to the first field information so as to simulate the BMC environment, the Redfish service request is sent to the local static BMC environment, the second field information corresponding to the Redfish service request is compared with the Redfish standard field information corresponding to the Redfish standard specification file, automatic detection of the BMC service is achieved, and therefore detection efficiency and detection accuracy are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings may be obtained according to the provided drawings without inventive effort to a person skilled in the art.
Fig. 1 is a flowchart of a BMC service detection method provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a BMC service detection device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a BMC service detection device according to an embodiment of the present application.
Detailed Description
The core of the application is to provide a BMC service detection method, device, equipment and readable storage medium, which are used for improving detection efficiency and detection accuracy and reducing the influence of detection on BMC.
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, a flowchart of a BMC service detection method provided by an embodiment of the present application is shown, where the BMC service detection method provided by the embodiment of the present application may include:
s11: and receiving the IP address and the detection item of the BMC, sending a detection request to the BMC according to the IP address and the detection item of the BMC, and receiving first field information which is returned by the BMC and corresponds to the detection request.
In the application, the IP address of the BMC and a detection item for detecting the service of the BMC issued by the user may be received, where the detection item mentioned herein may be all services of the BMC or a part of services of the BMC.
After receiving the IP address of the BMC and the detection item, finding out an actual BMC according to the IP address of the BMC, and sending a detection request to the found actual BMC according to the detection item, wherein if the detection item is all services of the BMC, traversing the services of the BMC from a V1 node in the BMC (the entry address of the whole service of the BMC), namely sending the detection request from the V1 node in the BMC according to the relation between the services in the BMC, and receiving first field information of each service corresponding to the detection request, returned by the BMC; if the detection item is a part of service of the BMC, a detection request is sent from a V1 node in the BMC, when the service corresponding to the last detection item is reached, the sending of the detection request is stopped, and at the moment, first field information of the part of service corresponding to the detection request returned by the BMC is received. When the detection item is a service of the BMC, only the first field information of the service needs to be returned.
In addition, when receiving the first field information corresponding to the detection request returned by the BMC, the first field information of each service returned by the BMC may be stored according to a relationship between services in the BMC (specifically, a hierarchical relationship between services), for example: there is a sub-service A1 under the service a, and there is a sub-service a11 under the sub-service A1, so when storing the first field information of the three-level service, there is a sub-folder in the folder storing the first field information a of the service a for storing the first field information A1 of the sub-service A1, and there is a sub-folder in the sub-folder storing the first field information A1 of the sub-service A1 for storing the first field information a11 of the sub-service a11.
Through the process, the first field information can be automatically acquired, so that the detection time of the BMC service is shortened, and the detection efficiency of the BMC service is improved.
It should be noted that, the above step S11 may be specifically implemented by a Redfish-Mockup-Creator (specifically, a BMC service collection tool), that is, the Redfish-Mockup-Creator is utilized to receive the IP address and the detection item of the BMC, the Redfish-Mockup-Creator is utilized to send the detection request to the BMC according to the IP address and the detection item of the BMC, and the Redfish-Mockup-Creator is utilized to receive the first field information corresponding to the detection request returned by the BMC, so as to improve the convenience and efficiency of implementing the BMC service detection. In addition, when implementing step S11 using the Redfish-Mockup-Creator, the tool may simultaneously generate a Redfish standard specification file (specifically, a metadata/index. Xml file).
S12: and establishing a local static BMC environment according to the first field information.
Based on step S11, a local static BMC environment may be established according to the corresponding relation of each first field information received and stored, so as to simulate and run a set of static BMC services executed locally, and the simulated environment is specifically an environment in the actual BMC, where the service of the first field information is to be detected and acquired according to the user requirement, so as to enable detection of the BMC service in the established local static BMC environment without operating the actual BMC.
It should be noted that, the step S12 may be specifically implemented by a Redfish-Mockup-Server (a static service tool), that is, a local static BMC environment may be established by using the Redfish-Mockup-Server according to the first field information, so as to improve convenience and efficiency of establishing the local static BMC environment, thereby being convenient to improve detection efficiency of the BMC service.
Considering that the version of the Redfish standard specification file generated by the Redfish-Mockup-Creator may not be the same as the version of the Redfish standard specification file to be used when the user actually detects, after step S12 is performed, the Redfish standard specification file generated by the Redfish-Mockup-Creator is deleted, so as to avoid the influence on the detection of the BMC service, thereby facilitating the improvement of the accuracy of the BMC service detection.
S13: and sending a Redfish service request to the local static BMC environment, acquiring second field information corresponding to the Redfish service request, comparing the second field information with Redfish standard field information corresponding to the Redfish standard specification file, and storing a comparison result.
After the local static BMC environment is obtained in step S12, detection of the BMC service can be implemented in the local static BMC environment without performing operation on an actual BMC to perform detection of the BMC service, so that the frequency of operation on the BMC is reduced, and the influence on the running performance of the BMC is reduced.
Specifically, a request for a Redfish service may be sent to the local static BMC environment, second field information corresponding to the request for the Redfish service may be obtained, and then the second field information is compared with corresponding Redfish standard field information in a Redfish standard specification file sent by a received user, so as to obtain a comparison result, and the comparison result is stored, so that the user may know whether the BMC service meets the standard specification in the Redfish by checking the comparison result later. The user can specifically send the Redfish standard description file when the BMC service needs to be detected.
The detection accuracy is improved by not only realizing the automatic detection of the BMC service through the process, shortening the detection time, improving the detection efficiency and reducing the operation difficulty of standard detection, but also avoiding the situations of missing field information and the like in the detection contrast process as much as possible, and the detection of the BMC service is realized by means of the established local static BMC environment without frequently operating the actual BMC, so that the operation of the actual BMC is reduced, and the influence on the running of the BMC is reduced.
It should be noted that, the step S13 may be specifically implemented by a Redfish-Service-validder (a Redfish standard detection tool), that is, the Redfish-Service-validder may be used to send a Redfish Service request to the local static BMC environment, the Redfish-Service-validder may be used to obtain second field information corresponding to the Redfish Service request, the Redfish-Service-validder may be used to compare the second field information with the Redfish standard field information corresponding to the Redfish standard specification file, and the comparison result may be stored by the Redfish-Service-validder, so as to implement detection of the BMC Service through a special tool, thereby improving detection efficiency and convenience of detection.
The three tools mentioned in the application can be operated in a linux system, the detection time can be recorded at the same time when the detection is performed, and the recorded detection time can be stored in a comparison result. And the three tools described above are in particular the python3 tool for checking the consistency of any "device" with a Redfish service interface according to the Redfish CSDL, which tools are designed to be device independent and driven based on the Redfish specification and mode supported by the device.
In addition, before the corresponding steps are implemented by using the three corresponding tools, the test environment may be detected first, specifically, whether the three tools, i.e. the Redfish-Mockup-Creator, redfish-Mockup-Server, redfish-Service-validzer, are complete and whether the Redfish standard description file sent by the user is received or not is detected, if the three tools are complete and the Redfish standard description file sent by the user is received, the detection of the BMC Service is started, and if at least one of the conditions is not satisfied, a prompt may be sent to facilitate timely correction of the detection environment by related personnel, thereby facilitating smooth implementation of the BMC Service detection.
According to the technical scheme, the first field information corresponding to the detection request sent according to the IP address and the detection item of the BMC is received and the local static BMC environment is built according to the first field information so as to simulate the BMC environment, the Redfish service request is sent to the local static BMC environment, the second field information corresponding to the Redfish service request is compared with the Redfish standard field information corresponding to the Redfish standard specification file, automatic detection of the BMC service is achieved, and therefore detection efficiency and detection accuracy are improved.
The method for detecting the BMC service, provided by the embodiment of the application, stores the comparison result, and may include:
if the second field information is consistent with the corresponding Redfish standard field information, storing the second field information with consistent comparison and a result with consistent comparison;
if the second field information is inconsistent with the corresponding Redfish standard field information, storing the inconsistent comparison second field information, inconsistent comparison results and the corresponding Redfish standard field information.
In the present application, when the comparison result is stored, if it is determined that the second field information is inconsistent with the corresponding Redfish standard field information in the Redfish standard specification file by comparing the second field information with the corresponding Redfish standard field information, then the inconsistent second field information (that is, the actually obtained second field information) and the comparison result (that may be specifically represented by 1 or of course may be represented by other forms) may be stored, if it is determined that the second field information is inconsistent with the corresponding Redfish standard field information in the Redfish standard specification file by comparing the second field information with the corresponding Redfish standard field information in the Redfish standard specification file, then the inconsistent second field information (that is, the actually obtained second field information) and the comparison result (that may be specifically represented by 0), and the corresponding Redfish standard information in the Redfish standard specification file may be represented by other forms may be also represented by other forms), and then the comparison result may be conveniently obtained by the user, and the comparison result may be intuitively obtained by satisfying the comparison result that may not satisfy the actual comparison result, and the comparison result may be obtained by the user.
The method for detecting the BMC service provided in the embodiment of the present application may further include:
and sending out an error prompt that the second field information does not accord with the Redfish standard.
In the application, when the inconsistent second field information and the inconsistent result are stored, an error prompt that the second field information does not accord with the Redfish standard can be sent out, so that a user can acquire the information through the error prompt in time, and the second field information which does not accord with the Redfish standard can be modified and adjusted in time.
It should be noted that, the error prompt may be sent by at least one mode of mail, short message, voice prompt, flashing alarm lamp and audible and visual alarm. Of course, the error indication may be issued in other ways.
The method for detecting the BMC service provided in the embodiment of the present application may further include, after storing the second field information with inconsistent comparison and the result with inconsistent comparison:
and receiving field information after the second field information which is inconsistent in comparison is modified, and executing the step of sending a detection request to the BMC according to the IP address and the detection item of the BMC.
After the second field information with inconsistent contrast and the result with inconsistent contrast are stored, if the user obtains the information by looking at the like and modifies and sends the second field information with inconsistent contrast, the field information sent by the user after modifying the second field information with inconsistent contrast can be received, and then the step of sending a detection request to the BMC according to the IP address and the detection item of the BMC can be executed, namely, the BMC service can be detected again after modifying the corresponding field information.
Through the process, the method and the device can conveniently realize one-time positioning to all second field information inconsistent in comparison, and modify all second field information inconsistent in comparison at one time, so that frequent operation of the BMC is avoided as much as possible, and influence on running of the BMC is reduced.
The method for detecting the BMC service, provided by the embodiment of the application, stores the comparison result, and may include:
the comparison result is stored in the html format in the log.
In the application, when the comparison result is stored, the comparison result is stored in the log in an html format, so that a user can browse and view the comparison result conveniently.
The method for detecting the BMC service provided in the embodiment of the present application may further include, after receiving the first field information corresponding to the detection request returned by the BMC:
and storing the first field information into the target file according to the corresponding relation of the service in the BMC.
After receiving the first field information corresponding to the detection request returned by the BMC, the first field information can be stored in a target file according to the corresponding relation of the service in the BMC (the target file can be determined according to the requirement), so that the corresponding first field information can be directly obtained from the target file and the local static BMC environment can be built, the building efficiency of the local static BMC environment can be improved, and the detection efficiency of the BMC service can be improved.
The embodiment of the application also provides a BMC service detection device, referring to fig. 2, which shows a schematic structural diagram of the BMC service detection device provided by the embodiment of the application, may include:
the receiving module 21 is configured to receive an IP address and a detection item of the BMC, send a detection request to the BMC according to the IP address and the detection item of the BMC, and receive first field information corresponding to the detection request returned by the BMC;
the establishing module 22 is configured to establish a local static BMC environment according to the first field information;
the comparison module 23 is configured to send a request for a Redfish service to the local static BMC environment, obtain second field information corresponding to the request for the Redfish service, compare the second field information with corresponding Redfish standard field information in the Redfish standard specification file, and store a comparison result.
The embodiment of the present application provides a BMC service detection device, where the comparison module 23 may include:
the first storage unit is used for storing the second field information with consistent comparison and the result with consistent comparison if the second field information is consistent with the corresponding Redfish standard field information;
and the second storage unit is used for storing the inconsistent comparison second field information, the inconsistent comparison result and the corresponding Redfish standard field information if the second field information is inconsistent with the corresponding Redfish standard field information.
The embodiment of the present application provides a BMC service detection device, where the comparison module 23 may further include:
and the error prompt unit is used for sending out error prompts of which the second field information does not accord with the Redfish standard when the second field information which is inconsistent in comparison and the result which is inconsistent in comparison are stored.
The embodiment of the present application provides a BMC service detection device, where the comparison module 23 may further include:
and the receiving unit is used for receiving the field information after the second field information inconsistent in comparison is modified after the second field information inconsistent in comparison and the result inconsistent in comparison are stored, and executing the step of sending a detection request to the BMC according to the IP address and the detection item of the BMC.
The embodiment of the present application provides a BMC service detection device, where the comparison module 23 may include:
and the storage unit is used for storing the comparison result in the journal in an html format.
The embodiment of the application provides a BMC service detection device, which may further include:
and the storage module is used for storing the first field information into the target file according to the corresponding relation of the service in the BMC after receiving the first field information which is returned by the BMC and corresponds to the detection request.
The embodiment of the application also provides a BMC service detection device, referring to fig. 3, which shows a schematic structural diagram of the BMC service detection device provided by the embodiment of the application, and may include:
a memory 31 for storing a computer program;
the processor 32, when executing the computer program stored in the memory 31, may implement the following steps:
receiving an IP address and a detection item of the BMC, sending a detection request to the BMC according to the IP address and the detection item of the BMC, and receiving first field information which is returned by the BMC and corresponds to the detection request; according to the first field information, a local static BMC environment is established; and sending a Redfish service request to the local static BMC environment, acquiring second field information corresponding to the Redfish service request, comparing the second field information with Redfish standard field information corresponding to the Redfish standard specification file, and storing a comparison result.
The embodiment of the application also provides a readable storage medium, wherein the readable storage medium stores a computer program, and the computer program can realize the following steps when being executed by a processor:
receiving an IP address and a detection item of the BMC, sending a detection request to the BMC according to the IP address and the detection item of the BMC, and receiving first field information which is returned by the BMC and corresponds to the detection request; according to the first field information, a local static BMC environment is established; and sending a Redfish service request to the local static BMC environment, acquiring second field information corresponding to the Redfish service request, comparing the second field information with Redfish standard field information corresponding to the Redfish standard specification file, and storing a comparison result.
The readable storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RandomAccess Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The description of the relevant parts in the BMC service detection device, the device and the readable storage medium provided in the embodiment of the present application may refer to the detailed description of the corresponding parts in the BMC service detection method provided in the embodiment of the present application, which is not repeated here.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 is inherent to. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. In addition, the parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of the corresponding technical solutions in the prior art, are not described in detail, so that redundant descriptions are avoided.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A BMC service detection method, comprising:
receiving an IP address and a detection item of a BMC, sending a detection request to the BMC according to the IP address and the detection item of the BMC, and receiving first field information of a service corresponding to the detection request returned by the BMC; storing the first field information according to the hierarchical relation among services;
according to the first field information, a local static BMC environment is established; the local static BMC environment simulates an environment of a service of the first field information, which is detected and acquired according to user requirements, in an actual BMC;
and sending a Redfish service request to the local static BMC environment, acquiring second field information corresponding to the Redfish service request, comparing the second field information with Redfish standard field information corresponding to a Redfish standard specification file, and storing a comparison result.
2. The BMC service detection method according to claim 1, wherein storing the comparison result comprises:
if the second field information is consistent with the corresponding Redfish standard field information, storing the second field information with consistent comparison and a result with consistent comparison;
if the second field information is inconsistent with the corresponding Redfish standard field information, storing the inconsistent comparison second field information, inconsistent comparison results and the corresponding Redfish standard field information.
3. The BMC service detection method according to claim 2, further comprising, when storing the second field information of the contrast inconsistency and the result of the contrast inconsistency:
and sending out an error prompt that the second field information does not accord with the Redfish standard.
4. The BMC service detection method according to claim 2, further comprising, after storing the second field information of the contrast inconsistency and the result of the contrast inconsistency:
and receiving field information after the second field information which is inconsistent in comparison is modified, and executing the step of sending a detection request to the BMC according to the IP address of the BMC and the detection item.
5. The BMC service detection method according to claim 1, wherein storing the comparison result comprises:
and storing the comparison result in a log in an html format.
6. The BMC service detection method according to claim 1, further comprising, after receiving first field information corresponding to the detection request returned by the BMC:
and storing the first field information into a target file according to the corresponding relation of the service in the BMC.
7. A BMC service detection apparatus, comprising:
the receiving module is used for receiving the IP address and the detection item of the BMC, sending a detection request to the BMC according to the IP address and the detection item of the BMC, and receiving first field information of a service corresponding to the detection request returned by the BMC; storing the first field information according to the hierarchical relation among services;
the building module is used for building a local static BMC environment according to the first field information; the local static BMC environment simulates an environment of a service of the first field information, which is detected and acquired according to user requirements, in an actual BMC;
and the comparison module is used for sending a Redfish service request to the local static BMC environment, acquiring second field information corresponding to the Redfish service request, comparing the second field information with the Redfish standard field information corresponding to the Redfish standard specification file, and storing a comparison result.
8. The BMC service detection apparatus according to claim 7, wherein said comparison module comprises:
the first storage unit is used for storing the second field information with consistent comparison and the result with consistent comparison if the second field information is consistent with the corresponding Redfish standard field information;
and the second storage unit is used for storing the inconsistent comparison second field information, the inconsistent comparison result and the corresponding Redfish standard field information if the second field information is inconsistent with the corresponding Redfish standard field information.
9. A BMC service detection apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the BMC service detection method according to any of claims 1 to 6 when executing said computer program.
10. A readable storage medium, wherein a computer program is stored in the readable storage medium, and the computer program realizes the steps of the BMC service detection method according to any one of claims 1 to 6 when executed by a processor.
CN202110826620.0A 2021-07-21 2021-07-21 BMC service detection method, device, equipment and readable storage medium Active CN113672451B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110826620.0A CN113672451B (en) 2021-07-21 2021-07-21 BMC service detection method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110826620.0A CN113672451B (en) 2021-07-21 2021-07-21 BMC service detection method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113672451A CN113672451A (en) 2021-11-19
CN113672451B true CN113672451B (en) 2023-12-22

Family

ID=78539959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110826620.0A Active CN113672451B (en) 2021-07-21 2021-07-21 BMC service detection method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113672451B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114816876B (en) * 2022-04-25 2024-06-21 宝德计算机系统股份有限公司 Automatic test system for server Redfish interface specifications
CN116737571B (en) * 2023-06-16 2024-09-03 合芯科技(苏州)有限公司 Redfish automated test methods, systems, devices, and storage media
CN116662018B (en) * 2023-07-28 2023-11-03 苏州浪潮智能科技有限公司 Management method, device and system of server, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080029684A (en) * 2006-09-29 2008-04-03 한국전자통신연구원 Apparatus for event processing for network event in open architecture environment and method thereof
CN108334411A (en) * 2018-01-30 2018-07-27 郑州云海信息技术有限公司 Resource transfer method and device based on Redfish in a kind of BMC
CN110427371A (en) * 2019-07-19 2019-11-08 苏州浪潮智能科技有限公司 Server FRU field management method, device, equipment and readable storage medium storing program for executing
CN111400167A (en) * 2020-02-21 2020-07-10 苏州浪潮智能科技有限公司 Redfish service compliance verification method, device, equipment and medium
CN112243033A (en) * 2020-10-15 2021-01-19 浪潮商用机器有限公司 Method, device and equipment for acquiring memory information and computer readable storage medium
CN112434307A (en) * 2020-06-21 2021-03-02 石高建 Data processing method combining big data and Internet of things and cloud computing server center
CN112506969A (en) * 2020-12-10 2021-03-16 北京浪潮数据技术有限公司 BMC address query method, system, equipment and readable storage medium
CN112769652A (en) * 2021-01-14 2021-05-07 苏州浪潮智能科技有限公司 Node service monitoring method, device, equipment and medium
WO2021088254A1 (en) * 2019-11-07 2021-05-14 苏州浪潮智能科技有限公司 Dual-stack access method, apparatus and device for user-mode network file system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10997092B2 (en) * 2017-08-10 2021-05-04 Seagate Technology Llc Enabling out-of-band hardware management via an in-band communications channel
US11513984B2 (en) * 2019-02-04 2022-11-29 American Megatrends International, Llc Common server san core solution to enable software defined storage

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080029684A (en) * 2006-09-29 2008-04-03 한국전자통신연구원 Apparatus for event processing for network event in open architecture environment and method thereof
CN108334411A (en) * 2018-01-30 2018-07-27 郑州云海信息技术有限公司 Resource transfer method and device based on Redfish in a kind of BMC
CN110427371A (en) * 2019-07-19 2019-11-08 苏州浪潮智能科技有限公司 Server FRU field management method, device, equipment and readable storage medium storing program for executing
WO2021088254A1 (en) * 2019-11-07 2021-05-14 苏州浪潮智能科技有限公司 Dual-stack access method, apparatus and device for user-mode network file system
CN111400167A (en) * 2020-02-21 2020-07-10 苏州浪潮智能科技有限公司 Redfish service compliance verification method, device, equipment and medium
CN112434307A (en) * 2020-06-21 2021-03-02 石高建 Data processing method combining big data and Internet of things and cloud computing server center
CN112243033A (en) * 2020-10-15 2021-01-19 浪潮商用机器有限公司 Method, device and equipment for acquiring memory information and computer readable storage medium
CN112506969A (en) * 2020-12-10 2021-03-16 北京浪潮数据技术有限公司 BMC address query method, system, equipment and readable storage medium
CN112769652A (en) * 2021-01-14 2021-05-07 苏州浪潮智能科技有限公司 Node service monitoring method, device, equipment and medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Poster: Prototype of onfigurable Redfish Query Proxy Module;Park, CY等;Park, CY等;全文 *
地理信息公共服务平台日志管理系统的设计与实现;张哲;王乃生;张翔;刘云鹤;;测绘技术装备(第03期);全文 *
基于Dalvik寄存器污点分析的Android漏洞检测方法;靖二霞;应凌云;路晔绵;苏璞睿;;计算机应用研究(第03期);全文 *
基于新型云化电信网络的服务器测试方法研究;穆博;张宇华;刘芷若;;电信网技术(第05期);全文 *

Also Published As

Publication number Publication date
CN113672451A (en) 2021-11-19

Similar Documents

Publication Publication Date Title
CN113672451B (en) BMC service detection method, device, equipment and readable storage medium
WO2022237507A1 (en) Intelligent server fault pushing method, apparatus, and device, and storage medium
CN110471831B (en) Automatic method and device for compatibility test
CN109254922B (en) Automatic testing method and device for BMC Redfish function of server
US8756385B2 (en) Software configuration item back-up facility
CN111130962B (en) Automatic configuration method, equipment, system and storage medium for switch
CN110943860B (en) BMC (baseboard management controller) firmware updating method and system, electronic equipment and storage medium
CN112804377B (en) Data query method, electronic equipment, server, storage equipment and gateway equipment
WO2015120687A1 (en) Method and apparatus for diagnosing and solving mobile terminal fault
WO2016197737A1 (en) Self-check processing method, apparatus and system
US7302477B2 (en) Administration tool for gathering information about systems and applications including the feature of high availability
WO2018010176A1 (en) Method and device for acquiring fault information
CN110063042A (en) A kind of response method and its terminal of database failure
CN111478792B (en) Cutover information processing method, system and device
CN113722181B (en) BMC process monitoring method, device, system and medium of server
CN111367766A (en) Method, device and equipment for determining connection relation between monitoring host and equipment
CN113326104A (en) Method, system and device for modifying internal configuration of virtual machine
CN109669905B (en) PCIE equipment heat removal method, system and related device
CN113656235B (en) Method, device, system and medium for controlling and testing power consumption of whole server
US12020039B2 (en) Compute instance warmup operations
CN109639784A (en) Server admin information acquisition method, device, client and storage medium
CN109039770B (en) Server CMC refreshing method and device and related equipment
CN112948131A (en) Data acquisition method and equipment
CN112036828A (en) Bare metal management method, device, equipment and medium
CN112667973B (en) Method and device for activating management software of network 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