CN108984359A - A kind of system UUID synchronization detecting method, device, equipment and storage medium - Google Patents
A kind of system UUID synchronization detecting method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN108984359A CN108984359A CN201810799051.3A CN201810799051A CN108984359A CN 108984359 A CN108984359 A CN 108984359A CN 201810799051 A CN201810799051 A CN 201810799051A CN 108984359 A CN108984359 A CN 108984359A
- Authority
- CN
- China
- Prior art keywords
- unique identifier
- universally unique
- comparison value
- standard comparison
- consistent
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to a kind of system UUID synchronization detecting method, device, equipment and storage mediums, which comprises obtains the globally unique identifier of baseboard management controller as standard comparison value by intelligent platform management interface;The Universally Unique Identifier of system is obtained by system information scan tool;Judge whether the Universally Unique Identifier and the standard comparison value are consistent: it is no, then the Universally Unique Identifier is modified according to the standard comparison value.The present invention realizes automatic synchronization BMC GUID and System UUID, supervises without tester by obtaining the globally unique identifier of baseboard management controller and the Universally Unique Identifier of system automatically, and by the way that the two is compared unification.The invention not only saves the testing time, increases testing reliability, while also saving a large amount of testing costs for company.
Description
Technical field
The invention belongs to server debugging technique fields, and in particular to a kind of system UUID synchronization detecting method, is set device
Standby and storage medium.
Background technique
UUID (Universally Unique Identifier) refers to the number generated on a machine, it guarantees
It is all unique to aerial all machines when same.Usual platform can provide the API of generation.According to Open Software Foundation
(OSF) criterion calculation formulated, has used Ethernet card address, nsec, chip id code and many possible numbers.
BMC web interface is logged in, can check the GUID (globally unique identifier) of a server, it is by one group 32
16 binary digits constitute, the unique identification as a server.Equally, (system information checks work to general DMI under system
Tool) tool, it can also find the value of one group of UUID (Universally Unique Identifier).For the server of early stage, BMC GUID and
System UUID is nonsynchronous.They respectively by BMC and BIOS before factory by corresponding tool into writing server
On.And in present server, it is synchronous with System UUID's that BMC GUID has been done step-by-step.
Currently, gimmick test b MC GUID synchronous with System UUID's is more traditional, by BIOS publication packet
DMI tool carries out the refreshing of system uuid under system, after the completion of refreshing verification whether from it is different before, restart system again
It is secondary to check numerical value, whether identical then open BMC web check digit.Repetition test for several times, checks whether very realize same
Step.Existing test method is relatively complicated, wastes time and manpower.
Summary of the invention
It is an object of the present invention to design a kind of system UUID synchronization in view of the above-mentioned drawbacks of the prior art, providing
Detection method, device, equipment and storage medium, to solve the above technical problems.
In a first aspect, the embodiment of the present application provides a kind of system UUID synchronization detecting method, which comprises
The globally unique identifier of baseboard management controller is obtained as standard comparison by intelligent platform management interface
Value;
The Universally Unique Identifier of system is obtained by system information scan tool;
Judge whether the Universally Unique Identifier and the standard comparison value are consistent:
It is no, then the Universally Unique Identifier is modified according to the standard comparison value.
With reference to first aspect, in the first embodiment of first aspect, the method also includes:
Restart server;
Judge whether the Universally Unique Identifier and the standard comparison value are consistent:
It is that then display synchronizes success;
It is no, then it modifies the Universally Unique Identifier and restarts server.
With reference to first aspect, in second of embodiment of first aspect, the method also includes:
The synchronous detection number of repetition of setting;
Standard comparison value and Universally Unique Identifier that every subsynchronous detection obtains are stored to editor's log;
Universally Unique Identifier and the consistent synchronous detection number of standard comparison value in retrieval editor's log, and knot will be retrieved
Fruit stores into testing result log.
Second aspect, the embodiment of the present application provide a kind of system UUID sync detection device, and described device includes:
Standard acquiring unit is configured to intelligent platform management interface and obtains the overall situation of baseboard management controller only
One identifier is as standard comparison value;
Parameter acquiring unit is configured to the Universally Unique Identifier that system information scan tool obtains system;
Contrast judgement unit is configured to judge whether the Universally Unique Identifier and the standard comparison value are consistent;
Parameter modifying unit is configured to modify the Universally Unique Identifier according to the standard comparison value.
In conjunction with second aspect, in the first embodiment of second aspect, described device further include:
Restart unit, is configured to restart server;
Verification unit is configured to judge whether the Universally Unique Identifier and the standard comparison value are consistent;
Display unit is configured to display and synchronizes success;
Cycling element is configured to modify the Universally Unique Identifier and restarts server.
In conjunction with second aspect, in second of embodiment of second aspect, described device further include:
Setup unit is configured to set synchronous detection number of repetition;
Storage unit, be configured to by it is every it is subsynchronous detection obtain standard comparison value and Universally Unique Identifier store to
Edit log;
Retrieval unit, is configured to that Universally Unique Identifier and standard comparison value in retrieval editor's log are consistent synchronous to be examined
Number is surveyed, and search result is stored into testing result log.
The third aspect, the embodiment of the present application provide a kind of equipment, comprising: one or more processors;Memory, for depositing
One or more programs are stored up, when one or more of programs are executed by one or more of processors, so that described one
A or multiple processors execute the method as described in first aspect and any embodiment of first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium for being stored with computer program, should
The method as described in first aspect and any embodiment of first aspect is realized when program is executed by processor.
The beneficial effects of the present invention are,
System UUID synchronization detecting method provided by the invention, by obtaining the globally unique of baseboard management controller automatically
The Universally Unique Identifier of identifier and system, and unified by comparing the two, realize automatic synchronization BMC GUID and
System UUID is supervised without tester.The invention not only saves the testing time, increases testing reliability, while
A large amount of testing costs are saved for company.
System UUID sync detection device provided by the invention, by obtaining the globally unique of baseboard management controller automatically
The Universally Unique Identifier of identifier and system, and unified by comparing the two, realize automatic synchronization BMC GUID and
System UUID is supervised without tester.The invention not only saves the testing time, increases testing reliability, while
A large amount of testing costs are saved for company.
Equipment provided by the invention can be realized system UUID synchronization detecting method provided by the invention, by obtaining automatically
The globally unique identifier of baseboard management controller and the Universally Unique Identifier of system are taken, and unified by comparing the two,
Automatic synchronization BMC GUID and System UUID is realized, is supervised without tester.When the invention not only saves test
Between, testing reliability is increased, while also saving a large amount of testing costs for company.
The computer readable storage medium provided by the invention for being stored with computer program, when which is executed by processor
Realize system UUID synchronization detecting method provided by the invention, the computer readable storage medium by obtaining substrate management automatically
The globally unique identifier of controller and the Universally Unique Identifier of system, and it is unified by comparing the two, it realizes automatic
Synchronous BMC GUID and System UUID, is supervised without tester.The invention not only saves the testing time, increases survey
Reliability is tried, while also saving a large amount of testing costs for company.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention have substantive distinguishing features outstanding and it is significant ground it is progressive, implementation
Beneficial effect be also obvious.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is the illustrative flow chart of system UUID synchronization detecting method provided by the embodiments of the present application;
Fig. 2 is the illustrative flow chart of system UUID synchronization detecting method provided by the embodiments of the present application.
Fig. 3 is the illustrative flow chart of system UUID synchronization detecting method provided by the embodiments of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
The embodiment of the present application provides a kind of system UUID synchronization detecting method, which comprises
The globally unique identifier of baseboard management controller is obtained as standard comparison by intelligent platform management interface
Value;
The Universally Unique Identifier of system is obtained by system information scan tool;
Judge whether the Universally Unique Identifier and the standard comparison value are consistent:
It is no, then the Universally Unique Identifier is modified according to the standard comparison value.
In a preferred embodiment, this method further include:
Restart server;
Judge whether the Universally Unique Identifier and the standard comparison value are consistent:
It is that then display synchronizes success;
It is no, then it modifies the Universally Unique Identifier and restarts server.
In another preferred embodiment, this method further include:
The synchronous detection number of repetition of setting;
Standard comparison value and Universally Unique Identifier that every subsynchronous detection obtains are stored to editor's log;
Universally Unique Identifier and the consistent synchronous detection number of standard comparison value in retrieval editor's log, and knot will be retrieved
Fruit stores into testing result log.
In order to facilitate the understanding of the present invention, the principle synchronized below with detection system UUID of the present invention, in conjunction with the embodiments
In the process detected is synchronized to system UUID, system UUID synchronization detecting method provided by the invention is further retouched
It states.
Embodiment 1
Referring to FIG. 1, the present embodiment provides a kind of system UUID synchronization detecting methods, the specific steps are as follows:
S1, detection script is set according to testing requirements, will test script and store to specified directory, booting executes inspection automatically
Survey script.
S2, booting execute detection script, obtain the overall situation of baseboard management controller only by intelligent platform management interface
One identifier is as standard comparison value;The Universally Unique Identifier of system is obtained by system information scan tool.
S3, detection script judge acquisition Universally Unique Identifier and the standard comparison value it is whether consistent: it is no, then according to
The standard comparison value modifies the Universally Unique Identifier.
S4, be repeated several times step S2-S3, until repeated detection result be acquisition Universally Unique Identifier and the mark
Quasi- comparison value is consistent, improves.
Embodiment 2
Referring to FIG. 2, the present embodiment provides a kind of system UUID synchronization detecting methods, the specific steps are as follows:
S1, detection script is set according to testing requirements, will test script and store to specified directory, booting executes inspection automatically
Survey script.
The parameters such as detection method, detection number are set in the detection script.
It will test script, the information such as document under the root for copying linux OS to by USB flash disk, are held to reach booting
The purpose of row detection script.
S2, booting execute detection script, obtain the overall situation of baseboard management controller only by intelligent platform management interface
One identifier is stored as standard comparison value, and by Comparison of standards value into text;It is obtained by system information scan tool and is
The Universally Unique Identifier of system.
S3, detection script judge acquisition Universally Unique Identifier and the standard comparison value it is whether consistent: it is no, then according to
The standard comparison value modifies the Universally Unique Identifier in a manner of auto.System stores system uuid and comparison result
To edit.log.
S4, restart server, execute step S2-S3, until judging the Universally Unique Identifier obtained and institute in step S3
It is consistent to state standard comparison value.
S5, step S2-S4 is repeated, improves the accuracy of detection.
Embodiment 3
Referring to FIG. 3, the present embodiment provides a kind of system UUID synchronization detecting methods, the specific steps are as follows:
S1, detection script is set according to testing requirements, will test script and store to specified directory, booting executes inspection automatically
Survey script.
The parameters such as detection method, detection number are set in the detection script.
It will test script, the information such as document under the root for copying linux OS to by USB flash disk, are held to reach booting
The purpose of row detection script.
S2, booting execute detection script, obtain the overall situation of baseboard management controller only by intelligent platform management interface
One identifier is stored as standard comparison value, and by Comparison of standards value into text;It is obtained by system information scan tool and is
The Universally Unique Identifier of system.
S3, detection script judge acquisition Universally Unique Identifier and the standard comparison value it is whether consistent: it is no, then according to
The standard comparison value modifies the Universally Unique Identifier in a manner of auto.System stores system uuid and comparison result
To edit.log.
S4, restart server, execute step S2-S3.
S5, step S2-S4 is executed according to the detection number of detection script design, retrieves general unique knowledge in edit.log
Other code and the consistent synchronous detection number of standard comparison value, and search result is stored into Result.log.
S6, test terminate, and check Result.log.
The embodiment of the present application provides a kind of system UUID sync detection device, and described device includes:
Standard acquiring unit is configured to intelligent platform management interface and obtains the overall situation of baseboard management controller only
One identifier is as standard comparison value;
Parameter acquiring unit is configured to the Universally Unique Identifier that system information scan tool obtains system;
Contrast judgement unit is configured to judge whether the Universally Unique Identifier and the standard comparison value are consistent;
Parameter modifying unit is configured to modify the Universally Unique Identifier according to the standard comparison value.
In a preferred embodiment, described device further include:
Restart unit, is configured to restart server;
Verification unit is configured to judge whether the Universally Unique Identifier and the standard comparison value are consistent;
Display unit is configured to display and synchronizes success;
Cycling element is configured to modify the Universally Unique Identifier and restarts server.
In another preferred embodiment, described device further include:
Setup unit is configured to set synchronous detection number of repetition;
Storage unit, be configured to by it is every it is subsynchronous detection obtain standard comparison value and Universally Unique Identifier store to
Edit log;
Retrieval unit, is configured to that Universally Unique Identifier and standard comparison value in retrieval editor's log are consistent synchronous to be examined
Number is surveyed, and search result is stored into testing result log.
The embodiment of the present application provides a kind of equipment, comprising: one or more processors;Memory, for store one or
Multiple programs, when one or more of programs are executed by one or more of processors, so that one or more of
Processor executes method provided by the embodiments of the present application.
The embodiment of the present application provides a kind of computer readable storage medium for being stored with computer program, which is characterized in that
The program realizes method provided by the embodiments of the present application when being executed by processor.
Disclosed above is only the preferred embodiment of the present invention, but the present invention is not limited to this, any this field
What technical staff can think does not have creative variation, and without departing from the principles of the present invention made by several improvement and
Retouching, should all be within the scope of the present invention.
Claims (8)
1. a kind of system UUID synchronization detecting method, which is characterized in that the described method includes:
The globally unique identifier of baseboard management controller is obtained as standard comparison value by intelligent platform management interface;
The Universally Unique Identifier of system is obtained by system information scan tool;
Judge whether the Universally Unique Identifier and the standard comparison value are consistent:
It is no, then the Universally Unique Identifier is modified according to the standard comparison value.
2. the method according to claim 1, wherein the method also includes:
Restart server;
Judge whether the Universally Unique Identifier and the standard comparison value are consistent:
It is that then display synchronizes success;
It is no, then it modifies the Universally Unique Identifier and restarts server.
3. the method according to claim 1, wherein the method also includes:
The synchronous detection number of repetition of setting;
Standard comparison value and Universally Unique Identifier that every subsynchronous detection obtains are stored to editor's log;
Universally Unique Identifier and the consistent synchronous detection number of standard comparison value in retrieval editor's log, and search result is deposited
Storage is into testing result log.
4. a kind of system UUID sync detection device, which is characterized in that described device includes:
Standard acquiring unit is configured to the globally unique mark that intelligent platform management interface obtains baseboard management controller
Know symbol and is used as standard comparison value;
Parameter acquiring unit is configured to the Universally Unique Identifier that system information scan tool obtains system;
Contrast judgement unit is configured to judge whether the Universally Unique Identifier and the standard comparison value are consistent;
Parameter modifying unit is configured to modify the Universally Unique Identifier according to the standard comparison value.
5. device according to claim 4, which is characterized in that described device further include:
Restart unit, is configured to restart server;
Verification unit is configured to judge whether the Universally Unique Identifier and the standard comparison value are consistent;
Display unit is configured to display and synchronizes success;
Cycling element is configured to modify the Universally Unique Identifier and restarts server.
6. device according to claim 4, which is characterized in that described device further include:
Setup unit is configured to set synchronous detection number of repetition;
Storage unit is configured to store standard comparison value and Universally Unique Identifier that every subsynchronous detection obtains to editor
Log;
It is secondary to be configured to Universally Unique Identifier and the consistent synchronous detection of standard comparison value in retrieval editor's log for retrieval unit
Number, and search result is stored into testing result log.
7. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors
Execute method as claimed in any one of claims 1-3.
8. a kind of computer readable storage medium for being stored with computer program, which is characterized in that the program is executed by processor
Shi Shixian method as claimed in any one of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810799051.3A CN108984359A (en) | 2018-07-19 | 2018-07-19 | A kind of system UUID synchronization detecting method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810799051.3A CN108984359A (en) | 2018-07-19 | 2018-07-19 | A kind of system UUID synchronization detecting method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108984359A true CN108984359A (en) | 2018-12-11 |
Family
ID=64549470
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810799051.3A Pending CN108984359A (en) | 2018-07-19 | 2018-07-19 | A kind of system UUID synchronization detecting method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108984359A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114996687A (en) * | 2022-08-01 | 2022-09-02 | 北京网藤科技有限公司 | Method and system for generating unique ID of USB flash disk |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2043320B1 (en) * | 2007-09-28 | 2009-12-09 | Zimory GmbH | Method and system for automatic and remote server provisioning using virtual machine appliances |
CN105068920A (en) * | 2015-07-17 | 2015-11-18 | 浪潮电子信息产业股份有限公司 | Shell-based method for testing stability of rack asset information |
CN107506307A (en) * | 2017-09-29 | 2017-12-22 | 郑州云海信息技术有限公司 | DMI method for refreshing and system in a kind of storage product test |
CN107704390A (en) * | 2017-09-28 | 2018-02-16 | 郑州云海信息技术有限公司 | A kind of method of test FRU consistency on messagings |
CN107943698A (en) * | 2017-11-23 | 2018-04-20 | 郑州云海信息技术有限公司 | A kind of DMI information and FRU synchronizing informations automated testing method and system |
CN107943699A (en) * | 2017-11-24 | 2018-04-20 | 郑州云海信息技术有限公司 | A kind of method and system of test server FRU and DMI synchronizing information function |
CN108268285A (en) * | 2018-03-01 | 2018-07-10 | 郑州云海信息技术有限公司 | Method, apparatus, equipment and the readable storage medium storing program for executing of bios version upgrading |
-
2018
- 2018-07-19 CN CN201810799051.3A patent/CN108984359A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2043320B1 (en) * | 2007-09-28 | 2009-12-09 | Zimory GmbH | Method and system for automatic and remote server provisioning using virtual machine appliances |
CN105068920A (en) * | 2015-07-17 | 2015-11-18 | 浪潮电子信息产业股份有限公司 | Shell-based method for testing stability of rack asset information |
CN107704390A (en) * | 2017-09-28 | 2018-02-16 | 郑州云海信息技术有限公司 | A kind of method of test FRU consistency on messagings |
CN107506307A (en) * | 2017-09-29 | 2017-12-22 | 郑州云海信息技术有限公司 | DMI method for refreshing and system in a kind of storage product test |
CN107943698A (en) * | 2017-11-23 | 2018-04-20 | 郑州云海信息技术有限公司 | A kind of DMI information and FRU synchronizing informations automated testing method and system |
CN107943699A (en) * | 2017-11-24 | 2018-04-20 | 郑州云海信息技术有限公司 | A kind of method and system of test server FRU and DMI synchronizing information function |
CN108268285A (en) * | 2018-03-01 | 2018-07-10 | 郑州云海信息技术有限公司 | Method, apparatus, equipment and the readable storage medium storing program for executing of bios version upgrading |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114996687A (en) * | 2022-08-01 | 2022-09-02 | 北京网藤科技有限公司 | Method and system for generating unique ID of USB flash disk |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105095062B (en) | Applied program testing method and system | |
CN108920369A (en) | A kind of server stress test method, device, equipment and storage medium | |
CN110058998B (en) | Software testing method and device | |
CN110287696B (en) | Detection method, device and equipment for rebound shell process | |
CN104572422A (en) | Memory monitoring achievement method based on startup and shutdown of Linux system | |
CN110795332A (en) | Automatic testing method and device | |
CN108984359A (en) | A kind of system UUID synchronization detecting method, device, equipment and storage medium | |
CN107506307A (en) | DMI method for refreshing and system in a kind of storage product test | |
CN114218072A (en) | Test script generation method and device, storage medium and computer equipment | |
WO2017050037A1 (en) | Automated test method and device | |
CN105447012B (en) | A kind of write-in mutual exclusion method and device for database | |
CN113342675B (en) | Mapping method and device of tested module, and testing method and system | |
CN110795341A (en) | Automatic testing method, system and device for server | |
CN110147313A (en) | A kind of log-output method and device | |
CN101533369A (en) | Method for checking start-up procedure and device thereof | |
CN109446105A (en) | Web application test method, device, readable medium and electronic equipment | |
CN112579456B (en) | Web automatic testing method and device | |
CN107590013A (en) | A kind of high efficiency method of detection Android application Service components leakage | |
CN110990181A (en) | Method and system for automatically reproducing probabilistic setting failure of options in BIOS (basic input/output System) | |
CN108255906B (en) | Data additional recording method and device | |
CN108536599B (en) | BIOS default configuration verification method, system, device and computer readable storage medium | |
CN108762689B (en) | Method, device and equipment for automatically creating disk array and storage medium | |
CN111240703A (en) | Cluster system adaptation detection method and device for AI platform deployment | |
CN112181809B (en) | Graphic user interface automatic test method based on multiple positioning methods | |
CN117931325B (en) | Method for automatically discovering java bean resources by micro-service system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181211 |