A storage device testing method and electronic device
By monitoring the product lifecycle management system of storage devices and automating document parsing, the problem of untimely maintenance in storage device testing was solved, enabling efficient and accurate diagnostic testing, reducing reliance on fixed templates, and improving the maintenance efficiency and accuracy of storage devices.
Patent Information
- Application Number
- CN202511196476.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-26
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2045-08-26
AI Technical Summary
In existing storage device testing, untimely maintenance can lead to shutdowns of factory diagnostic testing. Furthermore, relying on factory production order information and fixed templates in technical instruction documentation is inefficient, resulting in high error rates and delays in firmware and MCS image updates.
By monitoring the product lifecycle management system of storage devices, unstructured engineering change notification event documents are automatically parsed. Regular expression matching and entity recognition models based on natural language processing are used to parse the documents, establish a dynamic mapping relationship table, perform integrity verification, download diagnostic resources for diagnostic testing, and avoid version conflicts.
It has achieved automation and efficiency in storage device testing, reduced labor costs, improved testing accuracy and efficiency, reduced firmware and MCS image update delays, and lowered the error rate.
Smart Images

Figure CN120704968B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a storage device testing method and electronic equipment. BACKGROUND
[0002] When the storage device is tested, the firmware and the MCS (Multi-Controller storage System) image maintenance need to manually analyze the ECN (Engineering Change Notice) instruction, and the maintenance is performed by scanning the production order information at a fixed interval, which has the problems of timeliness and accuracy: the ECN maintenance is delayed, the MPE (Manufacture Process Engineer) analyzes the engineering change instruction, which causes the firmware and the MCS image update to be delayed; the customized instruction is inefficient, and the fixed template dependence causes the error rate of the storage or server customized deployment to be 5%, and the firmware automatic analysis and automatic configuration maintenance need to rely on the factory order production information as the input, and the efficiency of the fixed time polling production information is low, which may cause the situation that the urgent order is online but not maintained, and if the instruction writer accidentally changes the template, the analysis failure may occur.
[0003] It can be seen that how to realize the storage device testing, avoid the situation that the factory diagnosis test is stopped due to the maintenance not being timely, reduce the dependence on the factory production order information and the technical instruction specification document fixed template, improve the efficiency and accuracy of the storage maintenance, and reduce the firmware and the MCS image update delay time are problems to be solved by the person skilled in the art. SUMMARY
[0004] The embodiment of the present application aims to provide a storage device testing method and electronic equipment, which can realize the storage device testing, avoid the situation that the factory diagnosis test is stopped due to the maintenance not being timely, reduce the dependence on the factory production order information and the technical instruction specification document fixed template, improve the efficiency and accuracy of the storage maintenance, and reduce the firmware and the MCS image update delay time. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses a storage device testing method, comprising:
[0006] The preset message queue in the product life cycle management system of the storage device is listened to, if a new engineering change notice event appears in the preset message queue, a corresponding target event document is acquired; the target event document is an unstructured document;
[0007] The target event document is subjected to a preset analysis operation to obtain structured data; the preset analysis operation includes a first analysis operation based on regular matching and a second analysis operation based on an entity recognition model of natural language processing;
[0008] The diagnostic resource corresponding to the structured data is screened from the resource pool;
[0009] A dynamic mapping relationship table is established between the engineering change notification event and the diagnostic resource based on the structured data, and the dynamic mapping relationship table is subjected to integrity verification;
[0010] If the integrity verification is passed, the diagnostic resource is downloaded to a diagnostic test system of the storage device, and it is judged whether there is a version conflict between a current device firmware version of the storage device and a required device firmware version recorded in the target event document, so that the diagnostic test system performs diagnostic testing on the storage device based on the obtained diagnostic resource when there is no version conflict.
[0011] In a second aspect, the present application discloses an electronic device, comprising:
[0012] A memory for storing a computer program;
[0013] A processor for executing the computer program to implement the steps of the foregoing storage device testing method.
[0014] In a third aspect, the present application discloses a computer readable storage medium, and the computer readable storage medium stores a computer program, wherein the computer program is executed by a processor to implement the steps of the foregoing storage device testing method.
[0015] It can be seen that the application provides a storage device test method, which comprises the following steps: listening to a preset message queue in a product life cycle management system of a storage device; if a new engineering change notification event is found in the preset message queue, obtaining a corresponding target event document; the target event document is an unstructured document; performing a preset analysis operation on the target event document to obtain structured data; the preset analysis operation comprises a first analysis operation based on regular matching and a second analysis operation based on an entity recognition model of natural language processing; screening diagnostic resources corresponding to the structured data from a resource pool; establishing a dynamic mapping relationship table between the engineering change notification event and the diagnostic resources based on the structured data, and performing integrity verification on the dynamic mapping relationship table; if the integrity verification is passed, downloading the diagnostic resources to a diagnostic test system of the storage device, and judging whether there is a version conflict between a current device firmware version of the storage device and a required device firmware version recorded in the target event document, so that the diagnostic test system performs diagnostic testing on the storage device based on the obtained diagnostic resources when there is no version conflict. The application listens to the new engineering change notification event in the preset message queue, obtains the corresponding target event document, and then performs the preset analysis operation on the target event document, which comprises the first analysis operation based on regular matching and the second analysis operation based on the entity recognition model of natural language processing, to obtain the unstructured document, supports breaking the document island of the unstructured document, realizes the cross-system intelligent analysis of the unstructured document, screens the diagnostic resources corresponding to the structured data from the resource pool, establishes the dynamic mapping relationship table between the engineering change notification event and the diagnostic resources, realizes the end-to-end automation of the engineering change notification event to the diagnostic system, performs the integrity verification on the dynamic mapping relationship table, downloads the diagnostic resources to the diagnostic test system of the storage device if the integrity verification is passed, judges whether there is a version conflict between the current device firmware version of the storage device and the required device firmware version recorded in the target event document, so that the diagnostic test system performs diagnostic testing on the storage device based on the obtained diagnostic resources when there is no version conflict, realizes the storage device test, avoids the situation that the factory diagnosis test is stopped due to the untimely maintenance, reduces the dependence on the factory production order information and the technical instruction specification document fixed template, and improves the efficiency and accuracy of storage maintenance. BRIEF DESCRIPTION OF DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the application, the drawings needed in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor.
[0017] Figure 1 A flow chart of a storage device test method disclosed by the application;
[0018] Figure 2 A storage device test specific flowchart disclosed by the present application is shown in the figure;
[0019] Figure 3 A preset analysis operation specific flowchart disclosed by the present application is shown in the figure;
[0020] Figure 4 A resource pool architecture diagram disclosed by the present application is shown in the figure;
[0021] Figure 5 A version conflict detection flowchart disclosed by the present application is shown in the figure;
[0022] Figure 6 A brief flowchart for implementing storage device testing disclosed by the present application is shown in the figure;
[0023] Figure 7 A storage device testing device structure schematic diagram disclosed by the present application is shown in the figure. DETAILED DESCRIPTION
[0024] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0025] When the storage device is tested for functions, the firmware and the MCS image maintenance need manual analysis of the ECN instruction, and the production order information is scanned at fixed intervals for maintenance, which has timeliness and accuracy problems: the ECN maintenance is lagging, the MPE analysis engineering change instruction causes the firmware and the MCS image update delay; the customized instruction is inefficient, and the fixed template dependence makes the storage or server customized deployment error rate reach 5%. Moreover, the firmware automatic analysis and automatic configuration maintenance need to rely on the factory order production information as input, and the fixed time polling production information is inefficient, which may cause the situation that the urgent order has been online but not maintained, and the instruction writing personnel may make accidental changes to the template, causing analysis failure. It can be seen that how to implement the storage device test, avoid the situation that the factory diagnosis test is stopped due to the delay of maintenance, reduce the dependence on the factory production order information and technical instruction specification document fixed template, improve the efficiency and accuracy of storage maintenance, and reduce the firmware and MCS image update delay time are problems to be solved by those skilled in the art.
[0026] Referring to Figure 1 The embodiment of the present application discloses a storage device test method, which can specifically include:
[0027] Step S11: Listen to the preset message queue in the product lifecycle management system of the storage device, and if a new engineering change notification event is detected in the preset message queue, obtain the corresponding target event document; the target event document is an unstructured document.
[0028] In this embodiment, the preset message queue in the product lifecycle management system of the storage device is listened to by using a preset listener; if a new engineering change notification event is detected in the preset message queue, an event identifier is generated based on the new engineering change notification event; a timestamp of the new engineering change notification event in an effective state and a storage device model associated with the new engineering change notification event are recorded, and a corresponding target event document is obtained.
[0029] The specific process of the storage device test in the present application is as shown in Figure 2 The ECN listener is deployed to listen to the ECN_PUBLISH preset message queue of the PLM (Product Lifecycle Management) system (for example, Windchill) of the enterprise, the message queue listening example is as follows:
[0030] channel.queue_declare(queue='ECN_PUBLISH', durable=True)
[0031] channel.basic_consume(queue='ECN_PUBLISH',
[0032] on_message_callback=ecn_callback, # trigger analysis function
[0033] auto_ack=True)。
[0034] When a new ECN is listened to, an event ID (Identity document) is generated:
[0035] ECN20240605_1732;
[0036] A globally unique event ID is generated:
[0037] ECN<year-month-day>_<hour-minute-second> (such as ECN20240605_1732);
[0038] Record the ECN effective timestamp, associated device model and event document, and obtain the corresponding target event document, which is an unstructured document and can be in the format of PDF (Portable Document Format) / DOCX (Document Sciences Corporation).
[0039] The application can realize automatic monitoring of engineering change notification events by monitoring the preset message queue in the product lifecycle management system of the storage device, thereby improving the efficiency and timeliness of monitoring.
[0040] Step S12: performing a preset analysis operation on the target event document to obtain structured data; the preset analysis operation includes a first analysis operation based on regular matching and a second analysis operation based on an entity recognition model of natural language processing.
[0041] In this embodiment, the target event document is subjected to semantic alignment and the first analysis operation based on regular matching to obtain a first analysis result; the target event document is subjected to the second analysis operation based on the entity recognition model of natural language processing to extract field information not matched in the first analysis operation from the target event document to obtain a second analysis result; the corresponding structured data is generated based on the first analysis operation and the second analysis result; the structured data includes an event identifier and a storage device model.
[0042] The specific process of the preset analysis operation in the application is shown in Figure 3 The process of the second analysis operation includes: constructing an initial entity recognition model of natural language processing based on a bidirectional encoder representation model; adjusting the initial entity recognition model based on historical documents to obtain an entity recognition model of natural language processing; and performing the second analysis operation on the target event document based on the entity recognition model to extract field information not matched in the first analysis operation from the target event document to obtain a second analysis result.
[0043] In addition, in the process of performing the preset analysis operation on the target event document, it also includes: performing logical conflict detection on the target event document to detect whether there are logically conflicting words in the target event document; if there are logically conflicting words in the target event document, the process of the preset analysis operation is stopped, and the first alarm information is generated and sent to the client.
[0044] This application adjusts the BERT (Bidirectional Encoder Representation from Transformers) model based on historical documents to dynamically identify target event documents; it uses semantic alignment to solve the problem of synonyms; and it automatically pauses the process and issues an alarm when logically conflicting words are detected in the target event document.
[0045] This application supports preset parsing operations for unstructured documents such as PDF / DOCX / Excel (Microsoft Office Excel), employing regular expression matching + NLP (Natural Language Processing) entity recognition:
[0046] Input: Unstructured ECN document (PDF / DOCX)
[0047] - Processing: Automatically extracting key parameters from ECN documents using an NLP-based entity recognition model (sample code optimized):
[0048] def ecn_parser(ecn_file):
[0049] # Use regular expressions and keyword matching to extract key parameters. Regular expressions match the core version number (priority 1).
[0050] patterns = {
[0051] "MCS_VER": r"MCS_Image[_\s]?v?(\d+\.\d+\.\d+)",
[0052] "BIOS_FILE": r"BIOS_UPDATE:\s*(\w+\.bin|bin_\d+\.\d+)",
[0053] "EFFECTIVE_DATE": r"Effective Date[::]\s*(\d{4}-\d{2}-\d{2})"
[0054] }
[0055] # NLP fallback identification (priority 2): Extracting unmatched fields based on the BERT model
[0056] if unmatched_fields:
[0057] nlp_result = bert_ner(ecn_text)
[0058] return {key: re.search(ptn, ecn_file).group(1) for key, ptn inpatterns.items(), **nlp_result}
[0059] - Output: Structured JSON data (with version number, file path, and effective time)
[0060] {
[0061] "ecn_id": "ECN20240605_1732",
[0062] "device_model": "US-5000", / / Associated device model
[0063] "resources": {
[0064] "mcs_image": "MCS_v2.3.4.img",
[0065] "firmwares": [
[0066] {"type": "BIOS", "version": "5.12", "file": "bios_5.12.bin"},
[0067] {"type": "CPLD", "version": "R122", "file": "cpld_r122.pkg"} ]
[0069] }
[0070] }。
[0071] The present application can solve the version management out-of-control problem in the field of storage device diagnosis and testing by performing a first parsing operation based on regular matching on the target event document, a second parsing operation based on an entity recognition model of natural language processing, and logical conflict detection, thereby reducing labor costs, eliminating manual intervention nodes, and improving testing efficiency and accuracy.
[0072] Step S13: Selecting diagnostic resources corresponding to the structured data from the resource pool.
[0073] In this embodiment, it is judged whether there is diagnostic resource corresponding to structured data in the resource pool; if there is no diagnostic resource corresponding to structured data in the resource pool, it is determined that the missing diagnostic resource corresponding to the structured data is missing in the resource pool, and the process of downloading the missing diagnostic resource is executed; if there is diagnostic resource corresponding to structured data in the resource pool, the diagnostic resource corresponding to the structured data is selected from the resource pool. As shown in the resource pool architecture in Figure 4 The resource pool in the present application is a resource pool based on a unified storage architecture, which refers to integrating firmware version, path and other structured data into a unified resource pool to realize centralized management, unified scheduling and flexible adaptation of storage resources, break the "island effect" of traditional storage, and meet the storage requirements of different businesses at the same time.
[0074] According to the structured JSON data (including version number, file path and effective time) parsed by the ECN, the corresponding diagnostic resource is downloaded and extracted:
[0075] The basic resource is automatically downloaded from the unified storage, and the Ceph distributed object storage is adopted. The resource pool of the unified storage architecture is divided according to the resource type:
[0076] / firmware_pool / BIOS / bios_5.12.bin
[0077] / mcs_pool / v2.3.4 / MCS_v2.3.4.img.
[0078] Step S14: A dynamic mapping relationship table between the engineering change notification event and the diagnostic resource is established based on the structured data, and the integrity of the dynamic mapping relationship table is verified.
[0079] In this embodiment, if the integrity verification fails, an alarm process is triggered, third alarm information representing that the integrity verification fails is generated and sent to the client, and the process of integrity verification is stopped.
[0080] In this embodiment, the code example for establishing the dynamic mapping relationship table between the engineering change notification event and the diagnostic resource is as follows:
[0081] CREATE TABLE ecn_resource_map (
[0082] ecn_id CHAR(16) PRIMARY KEY, -- ECN event ID
[0083] device_model VARCHAR(20) NOT NULL, -- device model
[0084] mcs_object_id VARCHAR(64) NOT NULL, -- MCS image object ID (Ceph OID)
[0085] firmware_set JSON NOT NULL, -- firmware set
[0086] signature CHAR(64) NOT NULL -- SHA-256 file signature );
[0088] And, the code example of the integrity verification is as follows:
[0089] sha256sum bios_5.12.bin > computed_hash
[0090] if [ "$(cat computed_hash)"!= "$db_signature" ]; then
[0091] trigger_alert("FILE_CORRUPTED") # trigger alert and terminate the process
[0092] fi.
[0093] Step S15: If the integrity verification passes, the diagnostic resource is downloaded to the diagnostic test system of the storage device, and it is judged whether there is a version conflict between the current device firmware version of the storage device and the required device firmware version recorded in the target event document, so that the diagnostic test system performs diagnostic testing on the storage device based on the obtained diagnostic resource when there is no version conflict.
[0094] In this embodiment, if the integrity verification passes, the diagnostic resource is downloaded to the diagnostic test system of the storage device by using the application programming interface; the current device firmware version of the storage device is obtained by using the management controller interface; the required device firmware version is extracted from the target event document; it is judged whether there is a version conflict between the current device firmware version of the storage device and the required device firmware version recorded in the target event document; if there is a version conflict between the current device firmware version of the storage device and the required device firmware version recorded in the target event document, second alarm information for representing the version conflict is generated and sent to the client, so that the client performs a version rollback operation based on the second alarm information.
[0095] In this embodiment, the diagnostic resource is downloaded to the diagnostic test system of the storage device using a REST API (Representational State Transfer Application Programming Interface), with the code example as follows:
[0096] PATCH https: / / diagnosis-server / api / v1 / config
[0097] Headers: {Authorization: Bearer <token>}
[0098] Body: {
[0099] "operation": "UPDATE_RESOURCES",
[0100] "ecn_id": "ECN20240605_1732",
[0101] "resources": {
[0102] "mcs_image": "ceph: / / mcs_pool / v2.3.4.img",
[0103] "firmwares": [
[0104] {"type": "BIOS", "path": "ceph: / / firmware_pool / BIOS / bios_5.12.bin"},
[0105] {"type": "CPLD", "path": "ceph: / / firmware_pool / CPLD / cpld_r122.pkg"} ]
[0107]
[0108] }。
[0109] The version rollback operation is to keep the last three valid versions and support one-key rollback operation.
[0110] The flow of the diagnostic test includes: judging whether there is a version conflict between the current device firmware version of the storage device and the required device firmware version recorded in the target event document, so that the diagnostic test system performs password verification and script verification on the storage device based on the obtained diagnostic resources when there is no version conflict; the password verification is verification based on the calculation of a hash value or a password hash function value and the use of a digital signature; and the script verification is verification based on the simulation execution of a preset script.
[0111] The version conflict detection flow of the present application is shown in Figure 5 The current device firmware version of the storage device is recorded first, and when there is a version conflict between the current device firmware version of the storage device and the required device firmware version recorded in the target event document, the related production line is automatically suspended, and the code example is as follows:
[0112] def version_check(device, ecn):
[0113] # Current version of the device: obtained from the BMC interface
[0114] curr_bios = get_device_bios(device.ip)
[0115] # ECN required version: extracted from resource pool metadata
[0116] require_bios = ecn.resources['BIOS'].version
[0117] if version_parse(curr_bios) > version_parse(require_bios):
[0118] trigger_meltdown(device.line_id) # Trigger line meltdown
[0119] In this embodiment, when there is no version conflict, the diagnostic test system performs password verification and script verification on the storage device based on the obtained diagnostic resources. The password verification is an instant SHA-256 / MD5 verification based on the diagnostic resources, which uses digital signature to verify the integrity of the firmware and image file (SHA-256). The script verification is to simulate the execution of the refresh script in a sandbox based on the diagnostic resources, and capture the abnormal return value (such as Python subprocess.check_output()).
[0120] When the verification fails, the diagnostic test system automatically triggers a rollback to the latest available version and notifies the PLM system to mark the ECN exception. When the verification succeeds, a maintenance report is automatically generated and sent to the engineer's mailbox.
[0121] The brief process of storage device testing implemented by the present application is shown in Figure 6 The present application improves the ECN response efficiency by 40 times, reduces the version error rate to less than one ten-thousandth, and fundamentally solves the problem of out-of-control version management in the field of storage device diagnostic testing. The method converts the dependence on fixed template parsing maintenance into an automated data flow of ECN metadata -> storage resources -> diagnostic configuration, realizes strong binding of diagnostic resources and logical versions through a resource pool, automatically maintains the firmware and MCS image system that need to be refreshed for storage devices, and automatically generates a test process and a report, thereby reducing labor costs, improving test efficiency and accuracy, reducing labor consumption, and improving product quality. Compared with the traditional method, the improvement range is shown in Table 1:
[0122] Table 1: Range of improvement compared with the traditional method
[0123]
[0124] Maintenance efficiency improvement: ECN response time reduced from hours to <5 minutes;
[0125] Accuracy: Version matching accuracy up to 99.98% (actual data);
[0126] Resource saving: Annual labor cost saving for a single production line.
[0127] Automated maintenance of storage devices requires refreshing firmware, such as BIOS (Basic Input / Output System), BMC (Baseboard Management Controller), CPLD (Complex Programmable Logic Device), etc., and requires filling the MCS image system, reducing labor costs, while greatly improving the accuracy and efficiency of testing.
[0128] In addition, the present application can also integrate the device context knowledge graph (such as device model compatibility rules) in the BERT model, dynamically correct the analysis results (for example: when the ECN requires "BIOS v5.12" but the device only supports ≥v6.0, automatically trigger an alarm), and perform cross-document association analysis, while analyzing the ECN document and the associated PLM change history record, identifying conflicting changes (such as: the firmware version of the same device model is modified multiple times within 24 hours), which can break through the limitations of single-document analysis and achieve global consistency verification of the change link. In addition, the present application can also add an intelligent management mechanism to the resource pool, for example, resource intelligent preloading: based on the ECN effective time prediction model, resources are migrated from cold storage pool to hot storage pool in advance (for example: automatically preheat resources 1 hour before the ECN takes effect); version gray release: reserve multiple versions for the same resource in the storage pool, and dynamically allocate versions according to production line batches (for example: A line uses v2.3.4, B line uses v2.3.5), which can reduce resource scheduling delays and support batch production.
[0129] In the embodiment, a preset message queue in a product life cycle management system of a storage device is monitored, if a new engineering change notification event is monitored in the preset message queue, a corresponding target event document is acquired; the target event document is an unstructured document; a preset analysis operation is performed on the target event document to obtain structured data; the preset analysis operation includes a first analysis operation based on regular matching and a second analysis operation based on an entity recognition model of natural language processing; diagnostic resources corresponding to the structured data are screened from a resource pool; a dynamic mapping relationship table between the engineering change notification event and the diagnostic resources is established based on the structured data, and the dynamic mapping relationship table is verified for integrity; if the integrity verification is passed, the diagnostic resources are downloaded to a diagnostic test system of the storage device, and whether there is a version conflict between a current device firmware version of the storage device and a required device firmware version recorded in the target event document is judged, so that the diagnostic test system performs diagnostic test on the storage device based on the acquired diagnostic resources when there is no version conflict. The application listens to a new engineering change notification event in a preset message queue, acquires a corresponding target event document, then performs a preset analysis operation on the target event document, the preset analysis operation includes a first analysis operation based on regular matching and a second analysis operation based on an entity recognition model of natural language processing, obtains an unstructured document, supports breaking the document island of the unstructured document, realizes cross-system intelligent analysis of the unstructured document, screens diagnostic resources corresponding to the structured data from a resource pool, establishes a dynamic mapping relationship table between the engineering change notification event and the diagnostic resources, realizes end-to-end automation of the engineering change notification event to the diagnostic system, verifies the dynamic mapping relationship table for integrity, if the integrity verification is passed, downloads the diagnostic resources to the diagnostic test system of the storage device, judges whether there is a version conflict between the current device firmware version of the storage device and the required device firmware version recorded in the target event document, so that the diagnostic test system performs diagnostic test on the storage device based on the acquired diagnostic resources when there is no version conflict, realizes storage device test, avoids the situation that factory diagnosis test is stopped due to untimely maintenance, reduces the dependence on factory production order information and technical instruction specification document fixed templates, improves the efficiency and accuracy of storage maintenance.
[0130] Referring to Figure 7 As shown in the figure, the embodiment of the application discloses a partition monitoring device for dual-partition deployment, which can specifically include:
[0131] The listening module 11 is configured to monitor a preset message queue in a product life cycle management system of a storage device, and acquire a target event document corresponding to a new engineering change notification event if the new engineering change notification event is monitored in the preset message queue; the target event document is an unstructured document;
[0132] The preset analysis operation module 12 is configured to perform a preset analysis operation on the target event document to obtain structured data; the preset analysis operation includes a first analysis operation based on regular matching and a second analysis operation based on an entity recognition model of natural language processing;
[0133] The screening module 13 is configured to screen a diagnostic resource corresponding to the structured data from a resource pool;
[0134] The integrity verification module 14 is configured to establish a dynamic mapping relationship table between the engineering change notification event and the diagnostic resource based on the structured data, and perform integrity verification on the dynamic mapping relationship table;
[0135] The version conflict judgment module 15 is configured to, if the integrity verification passes, download the diagnostic resource to a diagnostic test system of the storage device, and judge whether there is a version conflict between a current device firmware version of the storage device and a required device firmware version recorded in the target event document, so that the diagnostic test system performs diagnostic testing on the storage device based on the obtained diagnostic resource when there is no version conflict.
[0136] In some specific embodiments, the listening module 11 can specifically include:
[0137] The preset message queue listening module is configured to listen to a preset message queue in a product life cycle management system of the storage device by using a preset listener;
[0138] The event identifier generation module is configured to, if a new engineering change notification event appears in the preset message queue, generate an event identifier based on the new engineering change notification event;
[0139] The recording module is configured to record a time stamp when the new engineering change notification event is in an effective state, and a storage device model associated with the new engineering change notification event, and obtain a corresponding target event document.
[0140] In some specific embodiments, the preset analysis operation module 12 can specifically include:
[0141] The first analysis operation module is configured to perform semantic alignment on the target event document and a first analysis operation based on regular matching to obtain a first analysis result;
[0142] The second analysis operation module is configured to perform a second analysis operation on the target event document by using an entity recognition model of natural language processing to extract field information that is not matched in the first analysis operation from the target event document to obtain a second analysis result;
[0143] The structured data generation module is configured to generate corresponding structured data based on the first parsing operation and the second parsing result. The structured data comprises an event identifier and a storage device model.
[0144] In some embodiments, the preset parsing operation module 12 can specifically comprise:
[0145] The initial entity recognition model construction module is configured to construct an initial entity recognition model for natural language processing based on a bidirectional encoder representation model.
[0146] The adjustment module is configured to adjust the initial entity recognition model using historical documents to obtain an entity recognition model based on natural language processing.
[0147] The extraction module is configured to perform a second parsing operation on the target event document using the entity recognition model to extract field information in the target event document that is not matched in the first parsing operation to obtain a second parsing result. The extraction module is also configured to perform logical conflict detection on the target event document to detect whether there are logically conflicting words in the target event document.
[0148] The first alarm information sending module is configured to stop the preset parsing operation process if there are logically conflicting words in the target event document, generate and send first alarm information to the client.
[0149] In some embodiments, the preset parsing operation module 12 can specifically comprise:
[0150] The logical conflict detection module is configured to perform logical conflict detection on the target event document to detect whether there are logically conflicting words in the target event document.
[0151] The first alarm information generation and sending module is configured to stop the preset parsing operation process if there are logically conflicting words in the target event document, generate and send first alarm information to the client.
[0152] In some embodiments, the screening module 13 can specifically comprise:
[0153] The diagnostic resource judgment module is configured to determine whether there is a diagnostic resource corresponding to the structured data in the resource pool.
[0154] The missing diagnostic resource determination module is configured to determine a missing diagnostic resource corresponding to the structured data that is missing in the resource pool if there is no diagnostic resource corresponding to the structured data in the resource pool, and execute a missing diagnostic resource download process.
[0155] The diagnostic resource screening module is configured to screen out a diagnostic resource corresponding to the structured data from the resource pool if there is a diagnostic resource corresponding to the structured data in the resource pool.
[0156] In some embodiments, the version conflict judgment module 15 can specifically include:
[0157] The diagnostic resource downloading module is configured to download the diagnostic resource to the diagnostic test system of the storage device by using the application programming interface if the integrity verification passes.
[0158] The current device firmware version obtaining module is configured to obtain the current device firmware version of the storage device by using the management controller interface.
[0159] The required device firmware version extracting module is configured to extract the required device firmware version from the target event document.
[0160] The version conflict judgment module is configured to judge whether there is a version conflict between the current device firmware version of the storage device and the required device firmware version recorded in the target event document.
[0161] In some embodiments, the version conflict judgment module 15 can specifically include:
[0162] The second alarm information sending module is configured to generate and send second alarm information representing the version conflict to the client if there is a version conflict between the current device firmware version of the storage device and the required device firmware version recorded in the target event document, so that the client performs a version rollback operation based on the second alarm information.
[0163] In some embodiments, the integrity verification module 14 can specifically include:
[0164] The third alarm information sending module is configured to trigger an alarm process, generate and send third alarm information representing that the integrity verification fails to the client, and stop the process of the integrity verification if the integrity verification fails.
[0165] In some embodiments, the version conflict judgment module 15 can specifically include:
[0166] The password verification and script verification module is configured to judge whether there is a version conflict between the current device firmware version of the storage device and the required device firmware version recorded in the target event document, so that the diagnostic test system performs password verification and script verification on the storage device based on the obtained diagnostic resource if there is no version conflict; the password verification is verification based on the diagnostic resource to calculate a hash value or a password hash function value and by using a digital signature; and the script verification is verification based on the diagnostic resource to simulate execution of a preset script.
[0167] The features of the embodiments of the storage device testing apparatus can be understood by referring to the related descriptions of the embodiments of the partition monitoring method for dual-partition deployment, which will not be repeated here.
[0168] The embodiments of the present application also provide an electronic device, comprising a memory and a processor, the memory storing a computer program, and the processor being configured to execute the computer program to perform the steps in any of the above-mentioned embodiments of the storage device testing method.
[0169] The embodiments of the present application also provide a computer readable storage medium, which stores a computer program, and the computer program is configured to perform the steps in any of the above-mentioned embodiments of the storage device testing method when executed.
[0170] In an example embodiment, the above-mentioned computer readable storage medium can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store computer programs.
[0171] The skilled in the art can further realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized by electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been described in general terms in the above description. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. The skilled in the art can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0172] The above describes in detail the storage device testing method and the electronic device provided by the present application. The principles and implementation manners of the present application are described by applying specific examples. The above description of the examples is only applicable to help understand the method and its core idea of the present application. It should be pointed out that, for those skilled in the art, without departing from the principles of the present application, some improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.< / token>
Claims
1. A storage device testing method, characterized by, The application relates to a product lifecycle management system for a storage device. monitoring a preset message queue in a product lifecycle management system for a storage device, if a new engineering change notification event is monitored in the preset message queue, a target event document is obtained; the target event document is an unstructured document; performing a preset analysis operation on the target event document to obtain structured data; the preset analysis operation comprises a first analysis operation based on regular matching and a second analysis operation based on an entity recognition model of natural language processing; screening a diagnostic resource corresponding to the structured data from a resource pool; establishing a dynamic mapping relationship table between the engineering change notification event and the diagnostic resource based on the structured data, and performing integrity verification on the dynamic mapping relationship table; if the integrity verification is passed, the diagnostic resource is downloaded to a diagnostic test system of the storage device, and it is judged whether there is a version conflict between a current device firmware version of the storage device and a required device firmware version recorded in the target event document, so that the diagnostic test system performs diagnostic testing on the storage device based on the obtained diagnostic resource when there is no version conflict.
2. The storage device testing method of claim 1, wherein, The application relates to a product lifecycle management system for a storage device. monitoring a preset message queue in a product lifecycle management system for a storage device, if a new engineering change notification event is monitored in the preset message queue, a target event document is obtained; monitoring a preset message queue in a product lifecycle management system for a storage device by using a preset listener; if a new engineering change notification event is monitored in the preset message queue, an event identifier is generated based on the new engineering change notification event; 3. The storage device testing method of claim 2, wherein, a timestamp of a storage device model associated with the new engineering change notification event in an effective state is recorded, and a target event document is obtained. The application relates to a product lifecycle management system for a storage device. performing semantic alignment on the target event document and a first analysis operation based on regular matching to obtain a first analysis result; performing a second analysis operation on the target event document by using an entity recognition model based on natural language processing to extract field information in the target event document that is not matched in the first analysis operation to obtain a second analysis result; 4. The storage device testing method of claim 3, wherein, generating corresponding structured data based on the first analysis operation and the second analysis result; the structured data comprises the event identifier and the storage device model. The application relates to a product lifecycle management system for a storage device. constructing an initial entity recognition model of natural language processing based on a bidirectional encoder representation model; adjusting the initial entity recognition model by using historical documents to obtain an entity recognition model based on natural language processing; Perform a second parsing operation on the target event document by using the entity recognition model to extract field information that is not matched in the first parsing operation from the target event document, to obtain a second parsing result.
5. The storage device testing method of claim 1, wherein, The process of performing the preset parsing operation on the target event document further includes: Performing logical conflict detection on the target event document to detect whether there are logically conflicting words in the target event document; If there are logically conflicting words in the target event document, stop the preset parsing operation process, generate and send first alarm information to the client.
6. The storage device testing method of claim 1, wherein, The process of filtering the diagnostic resource corresponding to the structured data from the resource pool includes: Determine whether there is a diagnostic resource corresponding to the structured data in the resource pool; If there is no diagnostic resource corresponding to the structured data in the resource pool, determine the missing diagnostic resource corresponding to the structured data missing in the resource pool, and perform the process of downloading the missing diagnostic resource; If there is a diagnostic resource corresponding to the structured data in the resource pool, filter the diagnostic resource corresponding to the structured data from the resource pool.
7. The storage device testing method of claim 1, wherein, If the integrity verification is passed, download the diagnostic resource to the diagnostic test system of the storage device, and determine whether there is a version conflict between the current device firmware version of the storage device and the required device firmware version recorded in the target event document, including: If the integrity verification is passed, download the diagnostic resource to the diagnostic test system of the storage device by using the application programming interface; Obtain the current device firmware version of the storage device by using the management controller interface; Extract the required device firmware version from the target event document; Determine whether there is a version conflict between the current device firmware version of the storage device and the required device firmware version recorded in the target event document.
8. The storage device testing method of claim 7, wherein, After determining whether there is a version conflict between the current device firmware version of the storage device and the required device firmware version recorded in the target event document, the process further includes: If there is a version conflict between the current device firmware version of the storage device and the required device firmware version recorded in the target event document, generate and send second alarm information representing the version conflict to the client, so that the client performs a version rollback operation based on the second alarm information. Correspondingly, after performing the integrity verification on the dynamic mapping relationship table, the process further includes: If the integrity verification fails, trigger an alarm process, generate and send third alarm information representing that the integrity verification fails to the client, and stop the integrity verification process.
9. The storage device testing method of any one of claims 1 to 8, wherein, Determine whether there is a version conflict between the current device firmware version of the storage device and the required device firmware version recorded in the target event document, so that the diagnostic test system performs diagnostic testing on the storage device based on the obtained diagnostic resource when there is no version conflict, including: determining whether there is a version conflict between a current device firmware version of the storage device and a required device firmware version recorded in the target event document, so that the diagnostic test system performs password verification and script verification on the storage device based on the obtained diagnostic resource when there is no version conflict; the password verification is verification based on a diagnostic resource to calculate a hash value or a password hash function value and using a digital signature; and the script verification is verification based on a diagnostic resource to simulate execution of a preset script.
10. An electronic device, comprising: The method comprises the steps of: storing a computer program in a memory; implementing the steps of the storage device test method according to any one of claims 1 to 9 when a processor executes the computer program.
Citation Information
Patent Citations
Code change-based mobile application test script automatic maintenance method
CN106021103A
Device and method for detecting internal firmware of program based on mirror image simulation environment
CN116185838A