CN106681854B - Information verification method, device and system - Google Patents

Information verification method, device and system Download PDF

Info

Publication number
CN106681854B
CN106681854B CN201510768293.2A CN201510768293A CN106681854B CN 106681854 B CN106681854 B CN 106681854B CN 201510768293 A CN201510768293 A CN 201510768293A CN 106681854 B CN106681854 B CN 106681854B
Authority
CN
China
Prior art keywords
configuration
server
dictionary
information
verification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510768293.2A
Other languages
Chinese (zh)
Other versions
CN106681854A (en
Inventor
高阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201510768293.2A priority Critical patent/CN106681854B/en
Publication of CN106681854A publication Critical patent/CN106681854A/en
Application granted granted Critical
Publication of CN106681854B publication Critical patent/CN106681854B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes

Abstract

The invention discloses an information checking method, device and system, relates to the technical field of computers, and solves the problems that in the existing CMDB system, the configuration of a newly-entered server can only be checked manually, and the checking efficiency is low. The main technical scheme of the invention is as follows: acquiring configuration request information of an application server, wherein the server is added according to the configuration request information in a configuration management database system; coding each item of configuration in the configuration request information according to a preset coding mode to generate an expected configuration dictionary; sending the configuration verification instruction and the expected configuration dictionary to the server so that the server compares the consistency of the actual configuration information and the configuration request information to obtain a verification configuration dictionary; and judging whether the actual configuration information of the server conforms to the configuration request information according to the value of the data item in the check configuration dictionary returned by the server so as to confirm that the actual configuration information of the server meets the configuration requirement. The invention is mainly used for verifying the configuration of the server.

Description

Information verification method, device and system
Technical Field
The invention relates to the technical field of computers, in particular to an information verification method, device and system.
Background
A Configuration Management Database (CMDB) is used to identify, control, maintain and check IT resources of an enterprise, thereby efficiently controlling and managing a constantly changing IT infrastructure and IT services, and providing accurate Configuration information for other processes, such as accident Management, problem Management, change Management, release Management, and the like. With the progress and development of IT technology, IT environment of enterprises is more and more complex. IT devices of large numbers and varieties are difficult to manage effectively, not to mention the management of various IT services based on the IT devices. Meanwhile, the IT environment of an enterprise is changing continuously, and how to evaluate the influence caused by an accident or change of a certain device or service, and how to provide current accurate configuration information of IT resources for other processes are significant challenges for the enterprise.
The traditional CMDB system only stores the company server asset information in the database and provides functions of adding, deleting, modifying, and querying the acquired asset information, and the online flow for the server in the system is: the method comprises the steps that a company demand server worker provides a resource application to an IT department, a demand configuration list is attached, the IT department can conduct purchase of a physical server or opening of a virtual machine according to the list, the server is put on shelf and then enters assets into a CMDB system, wherein the mode of entering the server resources into the CMDB system can be manual entry by an administrator or automatic collection and entry by the system. After the server is recorded into the system, whether the configuration of the server meets the requirement of the configuration list is manually checked, the checking process lacks an automatic link, and the possibility of human error is checked, so that the progress of company business can be seriously influenced if the condition that the requirement configuration is not unified with the actual on-line configuration occurs.
Disclosure of Invention
In view of this, the present invention provides an information verification method, apparatus and system, and mainly aims to establish a verification mechanism for actual configuration resources and required configuration of a new online server in a CMDB system, so as to improve the verification efficiency and accuracy of server configuration resources.
In order to achieve the purpose, the invention mainly provides the following technical scheme:
in one aspect, the present invention provides an information checking method, including:
acquiring configuration request information of an application server, wherein the server is added according to the configuration request information in a configuration management database system;
coding each configuration in the configuration request information according to a preset coding mode to generate an expected configuration dictionary;
sending a configuration verification instruction and the expected configuration dictionary to the server so that the server compares the consistency of the actual configuration information of the server and the configuration request information and obtains a verification configuration dictionary;
and judging whether the actual configuration information of the server conforms to the configuration request information according to the value of the data item in the verification configuration dictionary returned by the server so as to confirm whether the actual configuration information of the server meets the configuration requirement.
On the other hand, the invention also provides an information checking method, which comprises the following steps:
receiving a configuration verification instruction and an expected configuration dictionary sent by a control terminal;
acquiring actual configuration information of a local server, and coding each configuration in the actual configuration information according to a preset coding mode to generate an actual configuration dictionary;
calculating the difference value between the expected configuration dictionary and the corresponding data item in the actual configuration dictionary according to the configuration verification instruction, and generating a verification configuration dictionary according to the difference value between the corresponding data items;
and sending the verification configuration dictionary to the control end.
In another aspect, the present invention provides an information checking apparatus, including:
the system comprises an acquisition unit, a configuration management database system and a configuration management unit, wherein the acquisition unit is used for acquiring configuration request information of an application server, and the server is added in the configuration management database system according to the configuration request information;
the generating unit is used for coding each item of configuration in the configuration request information according to a preset coding mode to generate an expected configuration dictionary;
the sending unit is used for sending a configuration verification instruction and the expected configuration dictionary generated by the generating unit to the server so that the server can compare the consistency of the actual configuration information of the server and the configuration request information and obtain a verification configuration dictionary;
and the judging unit is used for judging whether the actual configuration information of the server conforms to the configuration request information according to the value of the data item in the verification configuration dictionary returned by the server so as to confirm whether the actual configuration information of the server meets the configuration requirement.
On the other hand, the invention also provides an information checking device, which comprises:
the receiving unit is used for receiving the configuration verification instruction and the expected configuration dictionary sent by the control end;
the acquisition unit is used for acquiring actual configuration information of a local server and coding each item of configuration in the actual configuration information according to a preset coding mode to generate an actual configuration dictionary;
the generating unit is used for calculating the difference value between the expected configuration dictionary and the corresponding data item in the actual configuration dictionary acquired by the acquisition unit according to the configuration verification instruction received by the receiving unit and generating a verification configuration dictionary according to the difference value between the corresponding data items;
and the sending unit is used for sending the verification configuration dictionary generated by the generating unit to the control terminal.
On the other hand, the invention also provides an information checking system which comprises the information checking device.
According to the information verification method, the device and the system provided by the invention, the server configuration information verification mechanism is established in the CMDB system, the control end of the system acquires the server application configuration list submitted by the user, and the server configuration information of the application is stored. After providing a configured server for a user and incorporating the server into the system, the control end sends a verification configuration instruction and application configuration information in a dictionary format to the server. And receiving and executing the verification configuration instruction by the server, and sending a verification result to the control end in a dictionary format. And the control end obtains a verification conclusion according to the verification result and informs a system administrator. Compared with the existing manual verification mode, the configuration information verification method adopted by the invention can automatically carry out configuration verification on the server according to the application configuration list provided by the user, directly provide the verification result for a system administrator, avoid the possibility of errors in manual verification and greatly improve the verification speed and efficiency.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 shows a flowchart of an information checking method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another information verification method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a third information verification method according to an embodiment of the present invention;
fig. 4 is a block diagram showing components of an information checking apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram showing another information verification apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram showing a third information verifying apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram showing a fourth information verification apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The embodiment of the invention provides an information checking method, as shown in fig. 1, the method is applied to a control management terminal of a CMDB system, and the method specifically comprises the following steps:
101. and acquiring configuration request information of the application server.
In the embodiment of the invention, the CMDB system provides a server application function for the client, in the function, the client can submit a server opening application to an administrator of the control end and submit a corresponding configuration application table, the application table records the server configuration required by the client, and the implementation mode can be a fixed-format application table carried by the CMDB system or a configuration application webpage integrated in the CMDB system. The embodiment is not particularly limited to the manner in which the client submits the server configuration application.
The server refers to a server which is submitted by the client and is approved to be added into the CMDB system in the embodiment. The server may be a newly added server, or an existing server added by converting service services from servers in charge of other services in the system. The type of the server is not limited to a physical machine or a virtual machine. The control terminal extracts specific server configuration information contained in a server application submitted by a client terminal by acquiring the server application.
102. And coding each item of configuration in the configuration request information according to a preset coding mode to generate an expected configuration dictionary.
After the control terminal acquires the configuration request information of the server reported by the client terminal, the information is extracted and sorted, and is stored in an expected configuration dictionary in a dictionary format. The dictionary is used for storing server configuration request information applied by the client.
It should be noted that, in the information in the dictionary format, the basic information of the dictionary includes variables and variable values, which correspond to each other. For the embodiment of the present invention, the variable in the expected configuration dictionary is an information object in the configuration request information, and the variable value is a value of the information object, for example, the memory in the server configuration is 4G, where the memory is the information object, and 4G is the value of the information object. When the information object in the configuration request information and the value of the information object are stored as the variable and the variable value in the dictionary, different encoding modes can be adopted for converting the information format. Such as a numeric type, a character type, etc. The encoding method used in this embodiment is not particularly limited, and should be subject to easy processing of data information.
103. And sending the configuration verification instruction and the expected configuration dictionary to a server.
After obtaining the expected configuration dictionary, the control end generates configuration verification instructions corresponding to the dictionary, and as more than one client end submitting the server application in the whole system is possible, the control end also generates a plurality of dictionaries when generating the expected configuration dictionary. Therefore, to accurately verify whether the configuration of the server is consistent with the application configuration information, the expected configuration dictionary needs to be sent to the corresponding server for matching the configuration information. The configuration verification instruction is used for matching the corresponding relation between the expected configuration dictionary and the server, the server to be sent is specified in the configuration verification instruction, and the configuration information of the server can be obtained. And the control terminal sends the configuration verification instruction and the expected configuration dictionary to the server according to the server specified by the configuration verification instruction, the server executes the configuration verification instruction, compares the actual configuration information with the configuration request information, stores the result as a verification configuration dictionary in the form of a dictionary, and feeds back the result to the control terminal.
104. And judging whether the actual configuration information of the server conforms to the configuration request information or not according to the value of the data item in the verification configuration dictionary returned by the server.
And receiving a verification configuration dictionary fed back by the server, wherein the verification configuration dictionary records the result of comparing the actual configuration information with the configuration request information by the server, so that after the dictionary is analyzed, the contents of all data items in the dictionary are analyzed one by one to judge whether the actual configuration information of the server is consistent with the configuration request information, and if the actual configuration information of the server is not consistent with the configuration request information, the inconsistent data items can be obtained, so that the configuration error of which parameter is generated in the configuration process of the server can be obtained.
After the step of configuration verification performed by the control end in the CMDB system is described, the embodiment of the present invention further provides an information verification method for the corresponding server end, as shown in fig. 2, where the method is applied to a server newly configured in the CMDB system, and the specific method is as follows:
201. and receiving a configuration verification instruction and an expected configuration dictionary sent by a control terminal.
The server receives the configuration verification instruction and the expected configuration dictionary sent by the control end. The expected configuration dictionary records application configuration information configured by the server when applying, and the configuration verification instruction is used for executing comparison operation of the application configuration information and the actual configuration information in the server.
202. And acquiring local configuration information of the server to obtain an actual configuration dictionary of the local.
After receiving the configuration verification instruction and the expected configuration dictionary in 201, the server collects the actual configuration information of the local computer, and the specific collection manner is very common in the prior art, which is not specifically limited in this embodiment. It should be noted that the collected local configuration information is stored in the actual configuration dictionary in the form of a dictionary. And, the data items in the actual configuration dictionary should correspond to the data items in the expected configuration dictionary. The encoding mode of the actual configuration dictionary should be the same as that of the expected configuration dictionary to ensure the consistency of the data information format.
203. And calculating the difference value between the corresponding data items in the expected configuration dictionary and the actual configuration dictionary according to the configuration verification instruction, and generating a verification configuration dictionary according to the difference value between the corresponding data items.
After the server obtains the actual configuration dictionary, the server compares the application configuration information with the actual configuration information according to the configuration verification instruction, and determines whether the configuration of the server is consistent with the application configuration or not by comparing values of corresponding data items in the expected configuration dictionary and the actual configuration dictionary.
And the server stores the comparison result as a verification configuration dictionary in the same dictionary format.
204. And sending the verification configuration dictionary to the control end.
The server feeds back the obtained verification configuration dictionary as an execution result of the configuration verification instruction to the control end, so that the control end can inform a system administrator whether the actual configuration of the server is correct or not according to the result.
It can be seen from the foregoing implementation manner that, in the information verification method adopted in the embodiment of the present invention, a server configuration information verification mechanism is established in the CMDB system, and a control end of the system obtains a server application configuration sheet submitted by a user and stores the server configuration information of the application. After providing a configured server for a user and incorporating the server into the system, the control end sends a verification configuration instruction and application configuration information in a dictionary format to the server. And receiving and executing the verification configuration instruction by the server, and sending a verification result to the control end in a dictionary format. And the control end obtains a verification conclusion according to the verification result and informs a system administrator. Compared with the existing manual verification mode, the configuration information verification method adopted by the embodiment of the invention can automatically perform configuration verification on the server according to the configuration application list provided by the user, directly provide the verification result for a system administrator, avoid the possibility of errors in manual verification and greatly improve the verification speed and efficiency.
In order to describe an information verification method proposed by the present invention in more detail, an embodiment of the present invention integrates the two information verification methods and exemplifies a verification method for server configuration information, as shown in fig. 3, the method includes the following steps when verifying information:
301. and the control terminal acquires the configuration request information applied by the server.
In this embodiment, the control end obtains a configuration table of an application server submitted by a client through a web page, and extracts corresponding server configuration request information from the table. The server configuration request information at least includes information such as the number of cores of a Central Processing Unit (CPU) of the server, memory capacity, and hard disk capacity. The control end sends the configuration table to a server hardware configuration personnel, and the configuration personnel completes the configuration assembly of the server and provides the configuration assembly for the client.
302. And the control terminal encodes each configuration in the configuration request information according to a preset encoding mode to generate an expected configuration dictionary.
And when the configurator configures the server, the control end stores the configuration information in the configuration table in a dictionary format to generate an expected configuration dictionary. Since information such as the number of CPU cores, memory capacity, hard disk capacity, etc. can all be represented using integer data, the values of the data items in the expected configuration dictionary can be stored using data of the digital int type. For example, if the number of CPU cores is 4, the memory capacity is 10G, and the hard disk capacity is 4T in the configuration table submitted by the client, the generated expected configuration dictionary a is:
{cpu_core:4,memory_cap:10,harddisk_num:4}。
303. and the control end sends the configuration verification instruction and the expected configuration dictionary to the server.
After the control end generates the expected configuration dictionary, a corresponding configuration verification instruction is generated for the dictionary, and a newly added server is searched in the CMDB system. When the corresponding server is found, the corresponding server can be generally found according to the name of the server, and the configuration verification instruction and the expected configuration dictionary are sent to the server together.
304. And acquiring local configuration information by the server to obtain an actual configuration dictionary of the local.
After receiving the configuration verification instruction and the expected configuration dictionary, the server creates a sub-thread in the server, acquires the configuration information of the local computer by calling the bash, and the acquired content corresponds to data items in the expected configuration dictionary and is also information such as the number of CPU cores, the memory capacity, the hard disk capacity and the like. And extracting keywords from the acquired data through a regular expression, and storing the data into an actual configuration dictionary b in a digital int type. Taking the server configuration as 4-core CPU, 8G memory, and 4T hard disk as an example, the actual configuration dictionary b obtained after extracting the keywords by the regular expression is: { cpu _ core:4, memory _ cap:8, harddrop _ num:4 }.
305. And the server calculates the difference value of the values of the corresponding data items in the expected configuration dictionary and the actual configuration dictionary according to the configuration verification instruction, generates a verification configuration dictionary and sends the verification configuration dictionary to the control terminal.
After the server receives the expected configuration dictionary a and collects and generates the actual configuration dictionary b, the server can compare values of corresponding data items in the expected configuration dictionary and the actual configuration dictionary according to the configuration verification instruction, and store a comparison result as a verification configuration dictionary in a dictionary form. The specific implementation manner may be to extract values of corresponding data items in the expected configuration dictionary a and the actual configuration dictionary b, respectively, subtract the values to calculate a difference value between the corresponding data items, and use the difference value as the value of the data item in the verification configuration dictionary c. The above examples specifically illustrate: finding values 4 and 4 of the corresponding data item cpu _ core in the expected configuration dictionary a and the actual configuration dictionary b respectively, and subtracting the two values to obtain a result of 0, then obtaining a value of the cpu _ core in the verification configuration dictionary as 0, calculating other corresponding data items in the corresponding expected configuration dictionary a and the actual configuration dictionary b in the same way, and finally obtaining a verification configuration dictionary c as:
{cpu_core:0,memory_cap:2,harddisk_num:0}。
after the server obtains the verification configuration dictionary, the server sends the verification configuration dictionary to the control end as an execution result of the configuration verification instruction.
306. And the control terminal judges whether the actual configuration information of the server conforms to the configuration request information according to the value of the data item in the verification configuration dictionary returned by the server.
And after analyzing the received verification configuration dictionary, the control end extracts the value of each data item, judges whether the value is 0, if so, the data item conforms to the configuration applied by the client in the actual configuration of the server, and if not, the configuration of the server on the item does not conform to the applied configuration, so that an error exists. According to the value in the verification configuration dictionary c, configuration errors occur in the memory in the server, and the configured memory capacity is 2G less than the applied memory capacity value.
It should be noted that, according to the verification configuration dictionary obtained in the above manner, only when the values of the data items therein are all 0, it can be confirmed that the actual configuration of the server is in accordance with the application configuration, and in the case that the values are not 0, the configuration is regarded as wrong, and when the values are positive, the actual configuration is lower than the application configuration, which may seriously affect the work of the user; when the value is negative, the actual configuration is higher than the application configuration, which will not affect the user's use, but will increase the user's use cost and cause unnecessary expenses. Therefore, when the configuration mismatch is found, the processing should be performed according to the configuration error.
307. And when the configuration information does not accord with the configuration information, generating alarm information by the control end.
When the configuration information is found to be inconsistent, the control end displays the result in the alarm information of the control end in an alarm information mode so as to prompt a system administrator that the configuration information of the server is wrong. Besides generating alarm information, the control end can also be set to send the verified configuration result to a system administrator in the form of an email to inform the configuration condition of the server, and the mode can not distinguish whether the configuration information is consistent or not.
Further, as an implementation of the foregoing method, an embodiment of the apparatus provides an information checking apparatus, where the apparatus embodiment corresponds to the foregoing method embodiment, and for convenience of reading, details in the foregoing method embodiment are not repeated in this apparatus embodiment one by one, but it should be clear that the apparatus in this embodiment can correspondingly implement all the contents in the foregoing method embodiment. The apparatus is provided in a control side of a CMDB system, and as shown in fig. 4, the apparatus includes:
an obtaining unit 41, configured to obtain configuration request information of an application server, where the server is a server added in a configuration management database system according to the configuration request information;
a generating unit 42, configured to encode each configuration in the configuration request information according to a preset encoding manner to generate an expected configuration dictionary;
a sending unit 43, configured to send a configuration verification instruction and the expected configuration dictionary generated by the generating unit 42 to the server, so that the server compares consistency of actual configuration information of the server with the configuration request information, and obtains a verification configuration dictionary;
a determining unit 44, configured to determine whether the actual configuration information of the server matches the configuration request information according to the value of the data item in the verification configuration dictionary returned by the server, so as to determine whether the actual configuration information of the server meets the configuration requirement.
Further, as shown in fig. 5, the acquiring unit 41 includes:
an obtaining module 411, configured to obtain a configuration table of an application server submitted by a user;
an extracting module 412, configured to extract configuration request information of the font in the configuration table acquired by the acquiring module 411, where the configuration request information at least includes information of the number of central processor cores, memory capacity, and hard disk capacity of the server.
Further, as shown in fig. 5, the judging unit 44 includes:
an extracting module 441, configured to extract values of data items in the verification configuration dictionary;
a determining module 442, configured to determine whether the value extracted by the extracting module 441 is 0, and if not, the actual configuration information of the server does not match the configuration request information.
Further, as shown in fig. 5, the apparatus further includes:
and an alarm unit 45, configured to generate alarm information when the determining unit 44 determines that the actual configuration information of the server does not match the configuration request information, so as to prompt a user that the actual configuration of the server is incorrect.
Further, an embodiment of the present invention further provides an information verification apparatus, where the apparatus is disposed in a server configured for a user side, and as shown in fig. 6, the apparatus includes:
the receiving unit 61 is used for receiving the configuration verification instruction and the expected configuration dictionary sent by the control end;
the acquisition unit 62 is configured to acquire actual configuration information of a local server, and encode each configuration in the actual configuration information according to a preset encoding mode to generate an actual configuration dictionary;
a generating unit 63, configured to calculate, according to the configuration verification instruction received by the receiving unit 61, a difference between the expected configuration dictionary and a corresponding data item in the actual configuration dictionary collected by the collecting unit 62, and generate a verification configuration dictionary according to the difference between the corresponding data items;
a sending unit 64, configured to send the verification configuration dictionary generated by the generating unit 63 to the control end.
Further, as shown in fig. 7, the collecting unit 62 includes:
the acquisition module 621 is configured to establish a sub-thread in the server and acquire actual configuration information of the server;
an extracting module 622, configured to extract, by using a regular expression, a keyword in the actual configuration information acquired by the acquiring module 621;
a storage module 623, configured to store the keywords extracted by the extraction module 622 into an actual configuration dictionary as information of numeric type.
Further, as shown in fig. 7, the generating unit 63 includes:
the execution module 631 is configured to execute the configuration verification instruction to obtain a corresponding expected configuration dictionary and an actual configuration dictionary;
an extracting module 632, configured to extract values of corresponding data items in the expected configuration dictionary and the actual configuration dictionary obtained by the executing module 631 respectively;
a generating module 633, configured to generate the verification configuration dictionary by taking the difference between the corresponding data items extracted by the extracting module 632 as the value of the corresponding data item in the verification configuration dictionary.
Further, an embodiment of the present invention further provides an information checking system, where the system includes the above-mentioned information checking apparatus used in the CMDB system control end and an information checking apparatus arranged in a server configured for the user side, and determines whether the configuration of the server meets the configuration requirement provided by the user through data information sent between the above-mentioned apparatuses.
In summary, the information verification method, apparatus, and system adopted in the embodiments of the present invention establish a server configuration information verification mechanism in the CMDB system, and a control end of the system obtains a server application configuration list submitted by a user, and stores the server configuration information of the application. After providing a configured server for a user and incorporating the server into the system, the control end sends a verification configuration instruction and application configuration information in a dictionary format to the server. And receiving and executing the verification configuration instruction by the server, and sending a verification result to the control end in a dictionary format. And the control end obtains a verification conclusion according to the verification result and informs a system administrator. Compared with the existing manual verification mode, the configuration information verification method, the device and the system adopted by the embodiment of the invention can automatically perform configuration verification on the server according to the configuration list applied by the user, directly provide verification results for a system administrator, avoid the possibility of errors caused by manual verification, and greatly improve the verification speed and efficiency.
The acquisition unit, the generation unit, the sending unit and the judgment unit are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
In addition, the other information checking device comprises a processor and a memory, wherein the receiving unit, the acquisition unit, the generation unit and the sending unit are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory. The kernel can be set to be one or more than one, and a verification mechanism of actual configuration resources and requirement configuration of the new on-line server is established in the CMDB system by adjusting kernel parameters, so that the verification efficiency and accuracy of the configuration resources of the server are improved.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The present application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device: acquiring configuration request information applied by a server, wherein the server is added according to the configuration request information in a configuration management database system; generating an expected configuration dictionary according to the configuration request information; sending a configuration verification instruction and the expected configuration dictionary to the server so that the server can compare the consistency of actual configuration information and the configuration request information and obtain a verification configuration dictionary; and judging whether the actual configuration information of the server conforms to the configuration request information or not according to the received values of the data items in the verification configuration dictionary.
Furthermore, the present application provides another computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device: receiving a configuration verification instruction and an expected configuration dictionary sent by a control terminal; acquiring server configuration information to obtain an actual configuration dictionary of the server; calculating the difference value of the values of the corresponding data items in the expected configuration dictionary and the actual configuration dictionary according to the configuration verification instruction to generate a verification configuration dictionary; and sending the verification configuration dictionary to the control end.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (12)

1. An information verification method, comprising:
acquiring configuration request information of an application server;
coding each configuration in the configuration request information according to a preset coding mode to generate an expected configuration dictionary;
sending a configuration verification instruction and the expected configuration dictionary to the server so that the server encodes each item of configuration in actual configuration information of a local server according to a preset encoding mode to generate an actual configuration dictionary, calculating a difference value between the expected configuration dictionary and a corresponding data item in the actual configuration dictionary according to the configuration verification instruction, and generating a verification configuration dictionary according to the difference value between the corresponding data items;
and judging whether the actual configuration information of the server conforms to the configuration request information according to the value of the data item in the verification configuration dictionary returned by the server so as to confirm whether the actual configuration information of the server meets the configuration requirement.
2. The method of claim 1, wherein the obtaining configuration request information of an application server comprises:
acquiring a configuration table of an application server submitted by a user;
and extracting configuration request information of the font in the configuration table, wherein the configuration request information at least comprises information of the central processor core number, the memory capacity and the hard disk capacity of the server.
3. The method of claim 2, wherein the determining whether the actual configuration information of the server matches the configuration request information comprises:
extracting values of data items in the verification configuration dictionary;
and judging whether the value is 0 or not, if not, determining that the actual configuration information of the server does not accord with the configuration request information.
4. The method of claim 3, further comprising:
and generating alarm information after the actual configuration information of the server does not accord with the configuration request information so as to prompt a user that the actual configuration of the server is wrong.
5. An information verification method, comprising:
receiving a configuration verification instruction and an expected configuration dictionary sent by a control terminal;
acquiring actual configuration information of a local server, and coding each configuration in the actual configuration information according to a preset coding mode to generate an actual configuration dictionary;
calculating the difference value between the expected configuration dictionary and the corresponding data item in the actual configuration dictionary according to the configuration verification instruction, and generating a verification configuration dictionary according to the difference value between the corresponding data items;
and sending the verification configuration dictionary to the control end.
6. The method of claim 5, wherein the acquiring actual configuration information of the server and encoding each configuration in the actual configuration information according to a preset encoding method to generate the actual configuration dictionary comprises:
establishing a sub-thread in the server, and acquiring actual configuration information of the server;
extracting keywords in the actual configuration information by using a regular expression;
and storing the keywords into an actual configuration dictionary in numerical information.
7. The method of claim 5, wherein calculating differences between corresponding data items in the expected configuration dictionary and the actual configuration dictionary according to the configuration verification instructions and generating a verified configuration dictionary according to differences between the corresponding data items comprises:
executing the configuration verification instruction to obtain a corresponding expected configuration dictionary and a corresponding actual configuration dictionary;
extracting values of corresponding data items in the expected configuration dictionary and the actual configuration dictionary respectively;
and taking the difference value between the corresponding data items as the value of the corresponding data item in the verification configuration dictionary to generate the verification configuration dictionary.
8. An information verifying apparatus, comprising:
the acquisition unit is used for acquiring the configuration request information of the application server;
the generating unit is used for coding each item of configuration in the configuration request information according to a preset coding mode to generate an expected configuration dictionary;
the sending unit is used for sending a configuration verification instruction and the expected configuration dictionary generated by the generating unit to the server so that the server encodes each item of configuration in actual configuration information of a local server according to a preset encoding mode to generate an actual configuration dictionary, calculates a difference value between the expected configuration dictionary and a corresponding data item in the actual configuration dictionary according to the configuration verification instruction, and generates a verification configuration dictionary according to the difference value between the corresponding data items;
and the judging unit is used for judging whether the actual configuration information of the server conforms to the configuration request information according to the value of the data item in the verification configuration dictionary returned by the server so as to confirm whether the actual configuration information of the server meets the configuration requirement.
9. An information verifying apparatus, comprising:
the receiving unit is used for receiving the configuration verification instruction and the expected configuration dictionary sent by the control end;
the acquisition unit is used for acquiring actual configuration information of a local server and coding each item of configuration in the actual configuration information according to a preset coding mode to generate an actual configuration dictionary;
the generating unit is used for calculating the difference value between the expected configuration dictionary and the corresponding data item in the actual configuration dictionary acquired by the acquisition unit according to the configuration verification instruction received by the receiving unit and generating a verification configuration dictionary according to the difference value between the corresponding data items;
and the sending unit is used for sending the verification configuration dictionary generated by the generating unit to the control terminal.
10. An information verification system, characterized in that the system comprises an information verification apparatus as claimed in claim 8 and an information verification apparatus as claimed in claim 9.
11. A storage medium, characterized in that the storage medium includes a stored program, wherein, when the program runs, a device in which the storage medium is located is controlled to execute the information verification method according to any one of claims 1 to 7.
12. A processor, configured to execute a program, wherein the program executes the information verification method according to any one of claims 1 to 7.
CN201510768293.2A 2015-11-11 2015-11-11 Information verification method, device and system Active CN106681854B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510768293.2A CN106681854B (en) 2015-11-11 2015-11-11 Information verification method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510768293.2A CN106681854B (en) 2015-11-11 2015-11-11 Information verification method, device and system

Publications (2)

Publication Number Publication Date
CN106681854A CN106681854A (en) 2017-05-17
CN106681854B true CN106681854B (en) 2019-12-24

Family

ID=58865361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510768293.2A Active CN106681854B (en) 2015-11-11 2015-11-11 Information verification method, device and system

Country Status (1)

Country Link
CN (1) CN106681854B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110007958B (en) * 2018-01-05 2021-06-08 龙芯中科技术股份有限公司 Instruction verification method, instruction verification device and storage medium
CN111371818B (en) * 2018-12-25 2022-05-24 阿里巴巴集团控股有限公司 Data request verification method, device and equipment
CN109947610A (en) * 2019-03-19 2019-06-28 浪潮商用机器有限公司 Configuration method of calibration, device, system and the storage medium of server hardware system
CN111151008B (en) * 2019-12-27 2023-08-22 深圳市其乐游戏科技有限公司 Verification method and device for game operation data, configuration background and medium
CN112988269A (en) * 2021-03-19 2021-06-18 银清科技有限公司 Central server configuration parameter comparison method and device
CN113656088A (en) * 2021-07-02 2021-11-16 新浪网技术(中国)有限公司 Self-service management method and device for Internet data center server and storage medium
CN113657702A (en) * 2021-07-02 2021-11-16 新浪网技术(中国)有限公司 Automatic operation and maintenance method and device for internet data center and readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622247A (en) * 2012-02-27 2012-08-01 北京百度网讯科技有限公司 Basic input / output system (BIOS) information allocation system and method of server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101542592B1 (en) * 2012-07-13 2015-08-07 네이버 주식회사 Method of Managing Toolbar Button Specialized for Each Domain

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622247A (en) * 2012-02-27 2012-08-01 北京百度网讯科技有限公司 Basic input / output system (BIOS) information allocation system and method of server

Also Published As

Publication number Publication date
CN106681854A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
CN106681854B (en) Information verification method, device and system
CN108764808A (en) Data Analysis Services system and its on-time model dispositions method
CA3047081C (en) Production-like testing and complex business to business auditing system
CN110162516B (en) Data management method and system based on mass data processing
Breitung et al. A canonical correlation approach for selecting the number of dynamic factors
US10169810B2 (en) Product information inconsistency detection
CN110908890A (en) Automatic test method and device for interface
US9201774B1 (en) Generating test scenario templates from testing data of different organizations utilizing similar ERP modules
US9104811B1 (en) Utilizing testing data collected from different organizations to generate test scenario templates that suit a user profile
US9239777B1 (en) Generating test scenario templates from clusters of test steps utilized by different organizations
CN111563016B (en) Log collection and analysis method and device, computer system and readable storage medium
US9201773B1 (en) Generating test scenario templates based on similarity of setup files
CN114116496A (en) Automatic testing method, device, equipment and medium
CN112597062B (en) Military software structured quality data extraction method and device and software testing device
CN108460068A (en) Method, apparatus, storage medium and the terminal that report imports and exports
CN105868956A (en) Data processing method and device
CN115526605A (en) Enterprise internal control management-based approval method and system
US9740601B2 (en) Globalization testing management service configuration
US10664697B1 (en) Dynamically generating system-compatible transaction requests derived from external information
US11488232B2 (en) Document evaluation, alerting and validation system
CN107016028B (en) Data processing method and apparatus thereof
CN112395195A (en) Method, device and equipment for processing automatic test data and storage medium
US20210271654A1 (en) Contrasting Document-Embedded Structured Data and Generating Summaries Thereof
CN112668314A (en) Data standard conformance detection method, device, system and storage medium
US9170925B1 (en) Generating test scenario templates from subsets of test steps utilized by different organizations

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant