Solid state drive VPD information detection method, device, equipment and storage medium

The shell script tool calls the Redfish interface to obtain the VPD information of the solid state drive and perform consistency detection, which solves the problems of high cost, low efficiency and incomplete information of traditional detection methods, and achieves efficient, fast and accurate detection of VPD information.

CN114171107BActive Publication Date: 2024-09-10INSPUR (BEIJING) ELECTRONICS INFORMATION IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111425750.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-26
Publication Date
2024-09-10
Estimated Expiration
2041-11-26

AI Technical Summary

Technical Problem

The traditional VPD information detection method has expensive equipment, complex manual operations, low detection efficiency, error-prone, and difficulty in realizing automated and intelligent detection, resulting in incomplete information.

Method used

Use the shell Script tool to call the Redfish certification interface to obtain the VPD information of the solid state drive, and perform consistency testing with the preset standard VPD information to simplify the operation process and improve detection efficiency.

Benefits of technology

It achieves efficient and rapid detection of VPD information, saves costs, improves detection efficiency, simplifies the operation process, and ensures the comprehensiveness and accuracy of information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114171107B
    Figure CN114171107B
Patent Text Reader

Abstract

The present invention discloses a method for detecting VPD information of a solid-state hard disk, the method comprising the following steps: parsing a received solid-state hard disk VPD information detection request to obtain a target server to be detected; using a shell Script script tool to call the Redfish authentication interface of the target server to obtain the actual VPD information of each solid-state hard disk; obtaining preset standard VPD information; performing consistency detection on each actual VPD information and the standard VPD information to obtain a VPD information detection result. The method for detecting VPD information of a solid-state hard disk provided by the present invention simplifies the VPD information acquisition operation process, saves costs, and realizes comprehensive detection of VPD information efficiently and quickly, greatly improving the detection efficiency. The present invention also discloses a detection device, equipment and storage medium for VPD information of a solid-state hard disk, which have corresponding technical effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and in particular to a method, device, equipment and computer-readable storage medium for detecting VPD information of a solid state hard disk. Background Art

[0002] With the rapid development of information technology, information data is growing explosively. The demand for hard disks as information carriers is increasing. As a mainstream enterprise-level data storage carrier, NVMe SSD (Non-Volatile Memory express Solid State Drive) has a huge annual demand. Strict quality control of NVMe SSD is an indispensable part. Among the many and complicated testing processes, VPD (Vital Product Data) information testing is included. VPD information testing has become a factor affecting NVMe SSD production capacity.

[0003] There are two traditional methods for detecting VPD information. One is to detect through okaGate devices; the other is to obtain VPD information through the BMC (Baseboard Manager Controller) of the server IPMI (Intelligent Platform Management Interface) and then perform VPD information detection. However, both of the above two methods for detecting VPD information have certain defects. First, the detection method through okaGate devices is expensive, the manual detection operation is complicated, the detection efficiency is very low, and it is prone to errors. Secondly, the method of obtaining VPD information through the BMC of the server IPMI is prone to incomplete information, and it is difficult to achieve automated intelligent detection.

[0004] To sum up, how to effectively solve the problems of traditional VPD information detection methods, such as expensive equipment, complex manual detection operations, low detection efficiency, easy errors, incomplete information obtained, and difficulty in realizing automated and intelligent detection, is an issue that technical personnel in this field urgently need to solve. Summary of the invention

[0005] An object of the present invention is to provide a method for detecting VPD information of a solid-state hard disk, which simplifies the VPD information acquisition operation process, saves costs, and efficiently and quickly realizes comprehensive detection of VPD information, thereby greatly improving detection efficiency; another object of the present invention is to provide a detection device, equipment and computer-readable storage medium for VPD information of a solid-state hard disk.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0007] A method for detecting VPD information of a solid state hard disk, comprising:

[0008] Parse the received solid state drive VPD information detection request to obtain the target server to be detected;

[0009] Using a shell script tool to call the Redfish authentication interface of the target server to obtain the actual VPD information of each solid state drive;

[0010] Get the preset standard VPD information;

[0011] A consistency check is performed on each of the actual VPD information and the standard VPD information to obtain a VPD information detection result.

[0012] In a specific implementation of the present invention, the actual VPD information of each solid-state drive is obtained by using a shell script script tool to call the Redfish authentication interface of the target server, including:

[0013] Using the shell script tool to input the IPMI address, user and password of the target server, and obtain Redfish authentication token information;

[0014] Obtaining a solid state drive information interface through the Redfish authentication interface, and inputting the Redfish authentication token information through the solid state drive information interface to obtain the information storage path of each solid state drive;

[0015] The VPD information interface is obtained through the Redfish authentication interface, and each information storage path is input through the VPD information interface to obtain the actual VPD information of each solid state drive.

[0016] In a specific implementation of the present invention, inputting the Redfish authentication token information through the solid state drive information interface to obtain the information storage path of each solid state drive includes:

[0017] The Redfish authentication token information is input through the solid state drive information interface to obtain the number of solid state drives and the information storage path of each solid state drive.

[0018] In a specific implementation of the present invention, after obtaining the VPD information detection result, the method further includes:

[0019] The VPD information detection result is outputted, and a recording operation is performed on the VPD information detection result.

[0020] In a specific implementation of the present invention, after using the shell script script tool to call the Redfish authentication interface of the target server to obtain the actual VPD information of each solid state drive, before performing consistency detection on each of the actual VPD information and the standard VPD information, it also includes:

[0021] Get the preset standard data format;

[0022] Determining whether the data formats of each of the actual VPD information are all in the standard data format;

[0023] If not, the actual VPD information whose data format is inconsistent with the standard data format is determined as the target VPD information, and the data format of the target VPD information is converted into the standard data format.

[0024] In a specific implementation of the present invention, performing consistency detection on each of the actual VPD information and the standard VPD information to obtain a VPD information detection result includes:

[0025] Detecting whether there is actual VPD information containing invisible characters in each of the actual VPD information;

[0026] If yes, the actual VPD information containing the invisible characters is determined as abnormal VPD information;

[0027] Performing consistency detection on each of the actual VPD information except the abnormal VPD information and the standard VPD information to obtain an information consistency detection result;

[0028] generating the VPD information detection result by combining the abnormal VPD information and the information consistency detection result;

[0029] If not, a consistency check is performed on each of the actual VPD information and the standard VPD information to obtain a VPD information detection result.

[0030] In a specific implementation of the present invention, the actual VPD information of each solid-state drive is obtained by using a shell script script tool to call the Redfish authentication interface of the target server, including:

[0031] The shell script tool is used to call the Redfish authentication interface of the target server through the Curl command to obtain the actual VPD information of each solid state drive.

[0032] A device for detecting VPD information of a solid state hard disk, comprising:

[0033] A request parsing module, used to parse the received solid state drive VPD information detection request to obtain a target server to be detected;

[0034] An actual VPD information acquisition module, used to use a shell script script tool to call the Redfish authentication interface of the target server to obtain the actual VPD information of each solid state drive;

[0035] A standard VPD information acquisition module is used to acquire preset standard VPD information;

[0036] The detection result obtaining module is used to perform consistency detection on each of the actual VPD information and the standard VPD information to obtain a VPD information detection result.

[0037] A device for detecting VPD information of a solid state hard disk, comprising:

[0038] Memory for storing computer programs;

[0039] The processor is used to implement the steps of the method for detecting VPD information of a solid state hard disk as described above when executing the computer program.

[0040] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for detecting VPD information of a solid state hard disk as described above are implemented.

[0041] The method for detecting VPD information of a solid-state hard disk provided by the present invention parses a received solid-state hard disk VPD information detection request to obtain a target server to be detected; uses a shell Script script tool to call a Redfish authentication interface of the target server to obtain actual VPD information of each solid-state hard disk; obtains preset standard VPD information; and performs consistency detection between each actual VPD information and the standard VPD information to obtain a VPD information detection result.

[0042] It can be seen from the above technical solution that by using the shell Script script to call the Redfish authentication interface of the target server to obtain the actual VPD information of all solid-state hard drives in the target server, and comparing the actual VPD information obtained with the standard VPD information for consistency, the VPD information acquisition operation process is simplified, costs are saved, and comprehensive detection of VPD information is achieved efficiently and quickly, greatly improving detection efficiency.

[0043] Correspondingly, the present invention also provides a solid state drive VPD information detection device, equipment and computer-readable storage medium corresponding to the above-mentioned solid state drive VPD information detection method, which has the above-mentioned technical effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 A flowchart of a method for detecting VPD information of a solid state hard disk in an embodiment of the present invention;

[0046] Figure 2 Another implementation flow chart of the method for detecting VPD information of a solid state hard disk in an embodiment of the present invention;

[0047] Figure 3 It is a structural block diagram of a device for detecting VPD information of a solid state hard disk in an embodiment of the present invention;

[0048] Figure 4 It is a structural block diagram of a device for detecting VPD information of a solid state hard disk in an embodiment of the present invention;

[0049] Figure 5 A schematic diagram of the specific structure of a device for detecting VPD information of a solid state hard disk provided in this embodiment. DETAILED DESCRIPTION

[0050] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0051] See also Figure 1 , Figure 1 This is a flowchart of an implementation of a method for detecting VPD information of a solid state hard disk in an embodiment of the present invention. The method may include the following steps:

[0052] S101: Parse the received solid state drive VPD information detection request to obtain a target server to be detected.

[0053] When it is necessary to detect the VPD information of each SSD in a server, a SSD VPD information detection request is sent to the VPD information detection center, and the SSD VPD information detection request includes the target server to be detected. The VPD information detection center receives the SSD VPD information detection request, and parses the received SSD VPD information detection request to obtain the target server to be detected.

[0054] The SSD VPD information may include the version number, model, serial number, and other information of the SSD.

[0055] S102: Using a shell script tool to call the Redfish authentication interface of the target server to obtain actual VPD information of each solid state drive.

[0056] A shell script tool is pre-set. After parsing and obtaining the target server to be detected, the shell script tool is used to call the Redfish authentication interface of the target server to obtain the actual VPD information of each solid state drive.

[0057] Redfish is an open industry standard specification published by the Distributed Management Task Force (DMTF) to enable modern and secure management of platform hardware.

[0058] S103: Obtaining preset standard VPD information.

[0059] Preset the standard VPD information corresponding to each SSD of the target server, such as presetting the standard SSD version number, SSD model, and SSD serial number. After using the shell script script tool to call the Redfish authentication interface of the target server to obtain the actual VPD information of each SSD, obtain the preset standard VPD information.

[0060] S104: Perform consistency detection on each actual VPD information and the standard VPD information to obtain a VPD information detection result.

[0061] After obtaining the actual VPD information of each SSD and the preset standard VPD information, the actual VPD information and the standard VPD information are checked for consistency to obtain the VPD information test results. By using the shell script to call the target server Redfish authentication interface to obtain the actual VPD information of all SSDs in the target server, and comparing the obtained actual VPD information with the standard VPD information for consistency, the VPD information acquisition operation process is simplified, costs are saved, and comprehensive VPD information detection is achieved efficiently and quickly, greatly improving the detection efficiency.

[0062] It can be seen from the above technical solution that by using the shell Script script to call the Redfish authentication interface of the target server to obtain the actual VPD information of all solid-state hard drives in the target server, and comparing the actual VPD information obtained with the standard VPD information for consistency, the VPD information acquisition operation process is simplified, costs are saved, and comprehensive detection of VPD information is achieved efficiently and quickly, greatly improving detection efficiency.

[0063] It should be noted that, based on the above embodiment, the embodiment of the present invention also provides corresponding improved solutions. In the subsequent embodiments, the same steps or corresponding steps as those in the above embodiment can be referenced to each other, and the corresponding beneficial effects can also be referenced to each other, which will not be repeated one by one in the following improved embodiments.

[0064] See also Figure 2 , Figure 2 FIG. 4 is another implementation flow chart of a method for detecting VPD information of a solid state hard disk in an embodiment of the present invention. The method may include the following steps:

[0065] S201: Parse the received solid state drive VPD information detection request to obtain a target server to be detected.

[0066] S202: Use a shell script tool to input the IPMI address, user and password of the target server to obtain Redfish authentication token information.

[0067] The Redfish authentication token information of the target server is obtained by presetting the IPMI address, user and password of the target server. After parsing the target server to be detected, the IPMI address, user and password of the target server are input using the shell Script script tool to obtain the Redfish authentication token information.

[0068] In a specific implementation of the present invention, step S202 may include the following steps:

[0069] Use the shell script tool to enter the IPMI address, user, and password of the target server through the Curl command to obtain the Redfish authentication token information.

[0070] When obtaining the Redfish authentication token information of the target server, the shell Script script tool can be used to input the IPMI address, user and password of the target server through the Curl command to obtain the Redfish authentication token information, thereby using the shell Script script tool through the Curl command to achieve remote information transmission and control of the target server.

[0071] S203: Obtain a solid state drive information interface through a Redfish authentication interface, and input Redfish authentication token information through the solid state drive information interface to obtain information storage paths of each solid state drive.

[0072] The Redfish authentication token information can be used as a key to obtain the SSD information interface. After obtaining the Redfish authentication token information, the SSD information interface is obtained through the Redfish authentication interface, and the Redfish authentication token information is input through the SSD information interface to obtain the information storage path of each SSD, thereby obtaining the specific query path of each SSD.

[0073] In a specific embodiment of the present invention, inputting Redfish authentication token information through the solid state drive information interface to obtain the information storage path of each solid state drive may include the following steps:

[0074] Input the Redfish authentication token information through the SSD information interface to obtain the number of SSDs and the information storage path of each SSD.

[0075] The Redfish authentication token information is input through the solid-state drive information interface to obtain the number of solid-state drives and the information storage path of each solid-state drive. The number of solid-state drives is obtained while obtaining the information storage path of each solid-state drive. By counting the number of solid-state drives, omission of solid-state drive VPD information detection is avoided.

[0076] S204: Obtain a VPD information interface through the Redfish authentication interface, and input each information storage path through the VPD information interface to obtain actual VPD information of each solid state drive.

[0077] After obtaining the SSD information interface through the Redfish authentication interface and inputting the Redfish authentication token information through the SSD information interface to obtain the information storage path of each SSD, the VPD information interface is obtained through the Redfish authentication interface, and each information storage path is input through the VPD information interface to obtain the actual VPD information of each SSD.

[0078] S205: Obtain a preset standard data format.

[0079] Pre-set a unified standard data format and obtain the preset standard data format.

[0080] S206: Determine whether the data formats of each actual VPD information are all standard data formats, if not, execute step S207, if yes, execute step S208.

[0081] After obtaining the actual VPD information of each solid state drive and the preset standard data format, it is determined whether the data format of each actual VPD information is the standard data format. If not, step S207 is executed; if yes, step S208 is executed.

[0082] S207: Determine the actual VPD information whose data format is inconsistent with the standard data format as the target VPD information, and convert the data format of the target VPD information into the standard data format.

[0083] When it is determined that there is actual VPD information that is not in the standard data format among the data formats of the actual VPD information, the actual VPD information whose data format is inconsistent with the standard data format is determined as the target VPD information, and the data format of the target VPD information is converted into the standard data format, thereby achieving the unification of the data format and facilitating subsequent data consistency comparison.

[0084] S208: Obtain preset standard VPD information.

[0085] S209: Detect whether there is actual VPD information containing invisible characters in each actual VPD information, if so, execute step S210, if not, execute step S213.

[0086] A visible character range is pre-set, and characters outside the visible character range are determined as invisible characters. After the actual VPD information of each solid state drive is obtained, it is detected whether there is actual VPD information containing invisible characters in each actual VPD information. If so, step S210 is executed, and if not, step S213 is executed.

[0087] S210: Determine the actual VPD information containing the invisible characters as abnormal VPD information.

[0088] When it is determined that there is actual VPD information including invisible characters among the actual VPD information, the actual VPD information including the invisible characters is determined as abnormal VPD information.

[0089] S211: Perform consistency detection on each piece of actual VPD information except abnormal VPD information and standard VPD information to obtain an information consistency detection result.

[0090] After determining the actual VPD information containing the invisible characters as abnormal VPD information, a consistency check is performed between each actual VPD information except the abnormal VPD information and the standard VPD information to obtain an information consistency check result.

[0091] S212: Generate a VPD information detection result by combining the abnormal VPD information and the information consistency detection result.

[0092] After the abnormal VPD information is determined, and the actual VPD information except the abnormal VPD information is checked for consistency with the standard VPD information, and the information consistency check result is obtained, the abnormal VPD information and the information consistency check result are combined to generate a VPD information check result, that is, the abnormal VPD information and the actual VPD with the standard VPD information are determined as failed to pass the check.

[0093] S213: Perform consistency detection on each actual VPD information and the standard VPD information to obtain a VPD information detection result.

[0094] S214: Output the VPD information detection result, and record the VPD information detection result.

[0095] After the VPD information detection result is obtained, the VPD information detection result is output and recorded, which is convenient for the subsequent statistics, analysis and recording of the problem disk data.

[0096] Corresponding to the above method embodiment, the present invention also provides a device for detecting VPD information of a solid state drive. The device for detecting VPD information of a solid state drive described below and the method for detecting VPD information of a solid state drive described above can refer to each other.

[0097] See also Figure 3 , Figure 3 This is a structural block diagram of a device for detecting VPD information of a solid state hard disk in an embodiment of the present invention. The device may include:

[0098] The request parsing module 31 is used to parse the received solid state hard disk VPD information detection request to obtain the target server to be detected;

[0099] The actual VPD information acquisition module 32 is used to use a shell script script tool to call the Redfish authentication interface of the target server to obtain the actual VPD information of each solid state drive;

[0100] The standard VPD information acquisition module 33 is used to acquire preset standard VPD information;

[0101] The detection result obtaining module 34 is used to perform consistency detection between each actual VPD information and the standard VPD information to obtain a VPD information detection result.

[0102] It can be seen from the above technical solution that by using the shell Script script to call the Redfish authentication interface of the target server to obtain the actual VPD information of all solid-state hard drives in the target server, and comparing the actual VPD information obtained with the standard VPD information for consistency, the VPD information acquisition operation process is simplified, costs are saved, and comprehensive detection of VPD information is achieved efficiently and quickly, greatly improving detection efficiency.

[0103] In a specific implementation of the present invention, the actual VPD information acquisition module 32 includes:

[0104] The token information acquisition submodule is used to use the shell script script tool to input the IPMI address, user and password of the target server to obtain the Redfish authentication token information;

[0105] The storage path acquisition submodule is used to obtain the solid state drive information interface through the Redfish authentication interface, and input the Redfish authentication token information through the solid state drive information interface to obtain the information storage path of each solid state drive;

[0106] The actual VPD information acquisition submodule is used to obtain the VPD information interface through the Redfish authentication interface, and input each information storage path through the VPD information interface to obtain the actual VPD information of each solid state drive.

[0107] In a specific implementation of the present invention, the storage path acquisition submodule is specifically a module for acquiring the number of solid state drives and the information storage path of each solid state drive by inputting Redfish authentication token information through the solid state drive information interface.

[0108] In a specific embodiment of the present invention, the device may further include:

[0109] The result recording module is used to output the VPD information detection result after obtaining the VPD information detection result, and to record the VPD information detection result.

[0110] In a specific embodiment of the present invention, the device may further include:

[0111] A standard format acquisition module is used to acquire a preset standard data format;

[0112] A judgment module, used to judge whether the data formats of each actual VPD information are all standard data formats;

[0113] The format conversion module is used to determine the actual VPD information whose data format is inconsistent with the standard data format as the target VPD information when it is determined that the data format of each actual VPD information is not in the standard data format, and convert the data format of the target VPD information into the standard data format.

[0114] In a specific embodiment of the present invention, the detection result obtaining module 34 includes:

[0115] The invisible character detection submodule is used to detect whether there is actual VPD information containing invisible characters in each actual VPD information;

[0116] an abnormal VPD information determination submodule, for determining the actual VPD information containing the invisible characters as abnormal VPD information when it is determined that there is actual VPD information containing the invisible characters among the actual VPD information;

[0117] The consistency detection result obtaining submodule is used to perform consistency detection on each actual VPD information except abnormal VPD information and standard VPD information in each actual VPD information to obtain the information consistency detection result;

[0118] An information detection result generation submodule is used to generate a VPD information detection result by combining the abnormal VPD information and the information consistency detection result;

[0119] The information detection result obtaining submodule is used to perform consistency detection on each actual VPD information and the standard VPD information to obtain a VPD information detection result when it is determined that there is no actual VPD information containing non-visible characters in each actual VPD information.

[0120] In a specific implementation of the present invention, the actual VPD information acquisition module 32 is specifically a module that uses a shellScript script tool to call a Redfish authentication interface of a target server through a Curl command to acquire the actual VPD information of each solid state drive.

[0121] Corresponding to the above method embodiment, see Figure 4 , Figure 4 This is a schematic diagram of a device for detecting VPD information of a solid state hard disk provided by the present invention. The device may include:

[0122] A memory 332, for storing computer programs;

[0123] The processor 322 is configured to implement the steps of the method for detecting VPD information of a solid state drive of the above method embodiment when executing a computer program.

[0124] For details, please refer to Figure 5 , Figure 5A specific structural diagram of a device for detecting VPD information of a solid state drive provided in this embodiment, the device for detecting VPD information of the solid state drive may have relatively large differences due to different configurations or performances, and may include a processor (central processing units, CPU) 322 (for example, one or more processors) and a memory 332, and the memory 332 stores one or more computer applications 342 or data 344. Among them, the memory 332 can be a temporary storage or a permanent storage. The program stored in the memory 332 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the data processing device. Furthermore, the processor 322 can be configured to communicate with the memory 332 to execute a series of instruction operations in the memory 332 on the device 301 for detecting VPD information of the solid state drive.

[0125] The solid state drive VPD information detection device 301 may further include one or more power supplies 326 , one or more wired or wireless network interfaces 350 , one or more input and output interfaces 358 , and / or one or more operating systems 341 .

[0126] The steps in the method for detecting VPD information of a solid state hard disk described above can be implemented by the structure of a device for detecting VPD information of a solid state hard disk.

[0127] Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0128] The received SSD VPD information detection request is parsed to obtain the target server to be detected; the Redfish authentication interface of the target server is called by the shell Script script tool to obtain the actual VPD information of each SSD; the preset standard VPD information is obtained; the consistency of each actual VPD information and the standard VPD information is detected to obtain the VPD information detection result.

[0129] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0130] For an introduction to the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0131] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the devices, equipment and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0132] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the technical solution and core ideas of the present invention. It should be pointed out that for ordinary technicians in this technical field, the present invention can also be improved and modified without departing from the principles of the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A method for detecting VPD information of a solid state hard disk, characterized in that: include: Parse the received solid state drive VPD information detection request to obtain the target server to be detected; Use the shell script tool to input the IPMI address, user and password of the target server to obtain the Redfish authentication token information; Obtaining a solid state drive information interface through a Redfish authentication interface, and inputting the Redfish authentication token information through the solid state drive information interface to obtain an information storage path of each solid state drive; Acquire a VPD information interface through the Redfish authentication interface, and input each of the information storage paths through the VPD information interface to obtain actual VPD information of each of the solid state drives; Get the preset standard VPD information; A consistency check is performed on each of the actual VPD information and the standard VPD information to obtain a VPD information detection result.

2. The method for detecting VPD information of a solid state hard disk according to claim 1, characterized in that: Inputting the Redfish authentication token information through the solid state drive information interface to obtain the information storage path of each solid state drive includes: The Redfish authentication token information is input through the solid state drive information interface to obtain the number of solid state drives and the information storage path of each solid state drive.

3. The method for detecting VPD information of a solid state hard disk according to claim 1, characterized in that: After obtaining the VPD information detection result, it also includes: The VPD information detection result is outputted, and a recording operation is performed on the VPD information detection result.

4. The method for detecting VPD information of a solid state hard disk according to any one of claims 1 to 3, characterized in that: After using the shell script tool to call the Redfish authentication interface of the target server to obtain the actual VPD information of each solid state drive, and before performing consistency detection on each actual VPD information and the standard VPD information, the method further includes: Get the preset standard data format; Determining whether the data formats of each of the actual VPD information are all in the standard data format; If not, the actual VPD information whose data format is inconsistent with the standard data format is determined as the target VPD information, and the data format of the target VPD information is converted into the standard data format.

5. The method for detecting VPD information of a solid state hard disk according to claim 1, characterized in that: Performing consistency detection on each of the actual VPD information and the standard VPD information to obtain a VPD information detection result, including: Detecting whether there is actual VPD information containing invisible characters in each of the actual VPD information; If yes, the actual VPD information containing the invisible characters is determined as abnormal VPD information; Performing consistency detection on each of the actual VPD information except the abnormal VPD information and the standard VPD information to obtain an information consistency detection result; generating the VPD information detection result by combining the abnormal VPD information and the information consistency detection result; If not, a consistency check is performed on each of the actual VPD information and the standard VPD information to obtain a VPD information detection result.

6. The method for detecting VPD information of a solid state hard disk according to claim 1, characterized in that: The shellScript script tool is used to call the Redfish authentication interface of the target server to obtain the actual VPD information of each solid-state drive, including: The shell script tool is used to call the Redfish authentication interface of the target server through the Curl command to obtain the actual VPD information of each solid state drive.

7. A device for detecting VPD information of a solid state hard disk, characterized in that: include: A request parsing module, used to parse the received solid state drive VPD information detection request to obtain a target server to be detected; An actual VPD information acquisition module, wherein the actual VPD information acquisition module comprises: The token information acquisition submodule is used to use the shell script script tool to input the IPMI address, user and password of the target server to obtain the Redfish authentication token information; The storage path acquisition submodule is used to obtain the solid state drive information interface through the Redfish authentication interface, and input the Redfish authentication token information through the solid state drive information interface to obtain the information storage path of each solid state drive; The actual VPD information acquisition submodule is used to obtain the VPD information interface through the Redfish authentication interface, and input each information storage path through the VPD information interface to obtain the actual VPD information of each solid state drive; A standard VPD information acquisition module is used to acquire preset standard VPD information; The detection result obtaining module is used to perform consistency detection on each of the actual VPD information and the standard VPD information to obtain a VPD information detection result.

8. A device for detecting VPD information of a solid state hard disk, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for detecting VPD information of a solid state hard disk as claimed in any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for detecting VPD information of a solid state hard disk according to any one of claims 1 to 6 are implemented.