CN-121984894-A - Terminal equipment information acquisition and duplication removal method, client and server
Abstract
The invention discloses a terminal equipment information acquisition and duplication elimination method, a client and a server, wherein the method is applied to the client, the client is installed on the terminal equipment, the method comprises the steps of calling a terminal equipment information acquisition script, identifying the system type of the terminal equipment, calling script commands corresponding to the system type according to the identified system type to acquire the terminal equipment information, generating standardized terminal equipment information, judging the network state of the terminal equipment, storing the standardized terminal equipment information into a local cache when the network state is offline, carrying out periodic cycle detection on the network state of the terminal equipment, packaging the standardized terminal equipment information into a data transmission request when the network state is online, sending the data transmission request to the server, receiving response information of the server, and carrying out continuous, timely, accurate and comprehensive information acquisition and duplication elimination management on the terminal equipment, thereby improving the suitability of an operation system of the terminal equipment.
Inventors
- SHEN JIE
- CHEN HONGCAI
Assignees
- 中国建设银行股份有限公司苏州分行
Dates
- Publication Date
- 20260505
- Application Date
- 20251215
Claims (14)
- 1. The method for collecting and de-duplicating information of terminal equipment is characterized by being applied to a client, wherein the client is installed on the terminal equipment, and the method comprises the following steps: calling a terminal equipment information acquisition script, identifying the system type of the terminal equipment, and calling a script command corresponding to the system type to acquire terminal equipment information according to the identified system type; classifying and naming the terminal equipment information according to the acquisition time of the terminal equipment information to generate standardized terminal equipment information; the method comprises the steps of judging the network state of the terminal equipment according to a preset network state detection strategy, wherein the preset network state detection strategy comprises the steps of adopting a weighted fusion algorithm based on machine learning, and judging the network state of the terminal equipment according to a detection result obtained by detecting the terminal equipment according to one or any combination of an Internet control message protocol, a transmission control protocol, a user data protocol, a hypertext transmission protocol and a distributed network measurement probe; when the network state is offline, storing the standardized terminal equipment information into a local cache, and carrying out periodic and cyclic detection on the network state of the terminal equipment according to a preset network state detection strategy until the network state is online; And when the network state is online, packaging the standardized terminal equipment information into a data transmission request, sending the data transmission request to a server, and receiving response information of the server, wherein the server is used for sequentially analyzing, de-duplicating and storing the standardized terminal equipment information.
- 2. The method of claim 1, wherein invoking the terminal device information collection script, identifying a system type of the terminal device, invoking the script command corresponding to the system type to collect the terminal device information based on the identified system type, comprises: Calling a terminal equipment information acquisition script to identify the system type of the terminal equipment to obtain the system type of the terminal equipment, wherein the system type comprises a first system type and/or a second system type; Executing Shell script commands corresponding to a first system type when the system type is the first system type, and collecting terminal equipment information; and when the system type is a second system type, executing a PowerShell script command corresponding to the second system type to acquire terminal equipment information, wherein the PowerShell script command acquires the terminal equipment information through a preset second system type management standard interface.
- 3. The method of claim 1, wherein the preset network state detection policy specifically comprises: According to the first preset period or the second preset period, the network state of the terminal equipment is judged circularly according to the following judging flow: acquiring network layer delay and packet loss information of the terminal equipment by adopting an Internet control message protocol, and generating a first detection result according to the network layer delay and packet loss information; Acquiring the success rate of handshake of a transmission layer and service availability information of the terminal equipment by adopting a transmission control protocol, and generating a second detection result according to the success rate of handshake of the transmission layer and the service availability information; acquiring application layer bandwidth and transaction completion quality information of the terminal equipment by adopting a user data protocol and a hypertext transfer protocol, and generating a third detection result according to the application layer bandwidth and the transaction completion quality information; The method comprises the steps of adopting a distributed network measurement probe to observe the terminal equipment from a geographic position angle, collecting difference information of the terminal equipment under different network paths, and generating a fourth detection result according to the difference information, wherein the fourth detection result represents the topological stability of the terminal equipment; a weighted fusion algorithm based on machine learning is adopted, and a network health degree detection result of the terminal equipment is generated according to one or any combination of the first detection result, the second detection result, the third detection result and the fourth detection result and by combining historical baseline data; and judging the network state of the terminal equipment according to the network health degree detection result.
- 4. The method of claim 3, wherein determining the network state of the terminal device according to a preset network state detection policy comprises: According to a preset network state detection strategy, according to a first preset period, circularly judging the network state of the terminal equipment according to the judging flow; When the network state is offline, storing the standardized terminal equipment information into a local cache, and performing periodic cycle detection on the network state of the terminal equipment according to a preset network state detection strategy until the network state is online, wherein the method comprises the following steps: And when the network state is offline, storing the standardized terminal equipment information into a local cache, and circularly judging the network state of the terminal equipment according to the judging flow according to a second preset period and a preset network state detection strategy until the network state is online.
- 5. The method of claim 4, wherein when the network status is online, encapsulating the standardized terminal device information into a data transmission request, sending the data transmission request to a server, and after receiving the response information of the server, further comprising: When the response information is normal in response, executing a reset task, and judging the network state of the terminal equipment according to the judging flow in a circulating way according to the first preset period by taking the moment of receiving the response information as the starting moment of the first preset period and according to a preset network state detection strategy; And when the response information is abnormal, repeatedly executing the steps of judging the network state of the terminal equipment according to a preset network state detection strategy and receiving the response information of the server until the response information is normal in response, and recording an abnormal log, wherein the abnormal log comprises one or any combination of a response code, an abnormal time stamp and a request content abstract.
- 6. The method for collecting and de-duplicating information of terminal equipment is applied to a server and is characterized by comprising the following steps: The method comprises the steps of monitoring a port which communicates with a client in real time, receiving a data transmission request sent by the client through the port, installing the client on terminal equipment, wherein the data transmission request comprises standardized terminal equipment information, wherein the standardized terminal equipment information is generated after the client classifies and names the terminal equipment information according to the acquisition time of the terminal equipment information; checking the data transmission request by adopting a preset double checking algorithm based on the request parameters and the request paths to generate a checking result; analyzing the data transmission request, and extracting a terminal equipment serial number and standardized terminal equipment information; An index algorithm is adopted, and whether the terminal equipment serial number exists in the memory of the server side or not is judged according to the terminal equipment serial number and the history storage record; If the terminal equipment serial number exists in the memory of the server, updating a file corresponding to the terminal equipment serial number in the memory by using the standardized terminal equipment information; If the terminal equipment serial number and the current day data file do not exist in the memory of the server, creating a current day data file filled with a standardized header; if the terminal equipment serial number does not exist in the memory of the server, storing the terminal equipment serial number and standardized terminal equipment information into a data file of the same day; And returning response information to the client according to the verification result, the storage result and the network state of the terminal equipment, wherein the network state of the terminal equipment is obtained and transmitted by the client according to a preset network state detection strategy, and the preset network state detection strategy comprises the step of judging the network state of the terminal equipment by adopting a weighted fusion algorithm based on machine learning according to one or any combination of an Internet control message protocol, a transmission control protocol, a user data protocol, a hypertext transmission protocol and a distributed network measurement probe.
- 7. The method of claim 6, wherein verifying the data transmission request using a preset double verification algorithm based on request parameters and request paths, generating a verification result, comprises: analyzing the data transmission request, and extracting request parameters and request paths; And matching the request parameter with a preset request parameter by adopting a preset double-check algorithm based on the request parameter and the request path, matching the request path with a preset request path, and checking the data transmission request according to a matching result to generate a checking result.
- 8. The method of claim 6, wherein determining whether the terminal equipment serial number exists in the memory of the server according to the terminal equipment serial number and the history storage record by using an indexing algorithm comprises: caching the serial number of the terminal equipment into a memory; Searching in a history storage record by adopting an index algorithm and taking the serial number of the terminal equipment as an index; and judging whether the terminal equipment serial number exists in the memory of the server according to the search result.
- 9. The method of claim 6, wherein the preset network state detection policy specifically comprises: According to the first preset period or the second preset period, the network state of the terminal equipment is judged circularly according to the following judging flow: acquiring network layer delay and packet loss information of the terminal equipment by adopting an Internet control message protocol, and generating a first detection result according to the network layer delay and packet loss information; Acquiring the success rate of handshake of a transmission layer and service availability information of the terminal equipment by adopting a transmission control protocol, and generating a second detection result according to the success rate of handshake of the transmission layer and the service availability information; acquiring application layer bandwidth and transaction completion quality information of the terminal equipment by adopting a user data protocol and a hypertext transfer protocol, and generating a third detection result according to the application layer bandwidth and the transaction completion quality information; The method comprises the steps of adopting a distributed network measurement probe to observe the terminal equipment from a geographic position angle, collecting difference information of the terminal equipment under different network paths, and generating a fourth detection result according to the difference information, wherein the fourth detection result represents the topological stability of the terminal equipment; a weighted fusion algorithm based on machine learning is adopted, and a network health degree detection result of the terminal equipment is generated according to one or any combination of the first detection result, the second detection result, the third detection result and the fourth detection result and by combining historical baseline data; and judging the network state of the terminal equipment according to the network health degree detection result.
- 10. A client, adopting the method for collecting and deduplicating information of terminal equipment according to any one of claims 1 to 5, wherein the client is installed on the terminal equipment, and the client comprises: the terminal equipment information acquisition module is used for calling a terminal equipment information acquisition script, identifying the system type of the terminal equipment and calling a script command corresponding to the system type to acquire the terminal equipment information according to the identified system type; The standardized terminal equipment information generation module is used for classifying and naming the terminal equipment information according to the acquisition time of the terminal equipment information to generate standardized terminal equipment information; The network state judging module is used for judging the network state of the terminal equipment according to a preset network state detection strategy, wherein the preset network state detection strategy comprises the steps of adopting a weighted fusion algorithm based on machine learning, and judging the network state of the terminal equipment according to a detection result obtained by detecting the terminal equipment according to one or any combination of an internet control message protocol, a transmission control protocol, a user data protocol, a hypertext transmission protocol and a distributed network measurement probe; The storage module is used for storing the standardized terminal equipment information into a local cache when the network state is offline, and carrying out periodic and cyclic detection on the network state of the terminal equipment according to a preset network state detection strategy until the network state is online; and the response information receiving module is used for packaging the standardized terminal equipment information into a data transmission request when the network state is online, sending the data transmission request to a server and receiving the response information of the server, wherein the server is used for sequentially analyzing, de-duplicating and storing the standardized terminal equipment information.
- 11. A server, employing the method for collecting and deduplicating information of a terminal device according to any one of claims 6 to 9, comprising: The data transmission request receiving module is used for monitoring a port which communicates with the client in real time and receiving a data transmission request sent by the client through the port; the client is arranged on the terminal equipment; the data transmission request comprises standardized terminal equipment information; the standardized terminal equipment information is generated by classifying and naming the terminal equipment information according to the acquisition time of the terminal equipment information by the client, wherein the terminal equipment information is generated by calling a terminal equipment information acquisition script for the client, identifying the system type of the terminal equipment, and calling a script command corresponding to the system type to acquire according to the identified system type; the verification module is used for verifying the data transmission request by adopting a preset double verification algorithm based on the request parameters and the request paths to generate a verification result; The analysis module is used for analyzing the data transmission request and extracting the serial number of the terminal equipment and standardized terminal equipment information; The index module is used for judging whether the terminal equipment serial number exists in the memory of the server side or not according to the terminal equipment serial number and the history storage record by adopting an index algorithm; The updating module is used for updating a file corresponding to the terminal equipment serial number in the memory by utilizing the standardized terminal equipment information if the terminal equipment serial number exists in the memory of the server; The creation module is used for creating the current day data file filled with the standardized header if the terminal equipment serial number and the current day data file do not exist in the memory of the server; the standardized terminal equipment information storage module is used for storing the terminal equipment serial number and standardized terminal equipment information into a data file of the same day if the terminal equipment serial number does not exist in the memory of the server; The response information return module is used for returning response information to the client according to the verification result, the storage result and the network state of the terminal equipment, wherein the network state of the terminal equipment is obtained and sent by the client according to a preset network state detection strategy, and the preset network state detection strategy comprises the step of judging the network state of the terminal equipment by adopting a weighted fusion algorithm based on machine learning according to one or any combination of an internet control message protocol, a transmission control protocol, a user data protocol, a hypertext transmission protocol and a distributed network measurement probe.
- 12. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 9 when executing the computer program.
- 13. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method of any of claims 1 to 9.
- 14. A computer program product, characterized in that the computer program product comprises a computer program which, when executed by a processor, implements the method of any of claims 1 to 9.
Description
Terminal equipment information acquisition and duplication removal method, client and server Technical Field The embodiment of the invention relates to the technical field of data acquisition, in particular to a terminal equipment information acquisition and deduplication method, a client and a server. Background In the present informatization age, the number of terminal devices owned by various enterprises, institutions and organizations is dramatically increased, and stable operation and effective management of the terminal devices are important for ensuring the smooth development of the enterprises. The information of the terminal equipment such as hardware configuration, running state, network information and the like is an important basis for equipment maintenance, fault investigation, resource allocation and safety management. Therefore, timely, accurate and comprehensive information collection and deduplication management of the terminal equipment becomes an important requirement in the field of informationized management. With the development of network technology, terminal devices are more and more widely distributed, and operating systems are diversified. Meanwhile, the use scene of the terminal equipment is complex, part of the equipment can not be powered off for a long time, and part of the equipment can be frequently powered on and powered off, so that challenges are brought to continuous and accurate collection and management of terminal information. The prior art generally employs a number of conventional terminal information gathering tools that are generally provided with basic information gathering and transmission functions. However, in terms of information storage, the conventional tools generally store the collected information into a database or a table, and lack a canonical storage structure, which is inconvenient for subsequent deduplication management. In the aspect of information deduplication, a special deduplication mechanism is not available in most cases, and data redundancy caused by multiple times of information transmission by the terminal equipment is easy to cause. On the transmission mechanism, part of tools need to manually trigger transmission operation or trigger transmission only once in specific events (such as when the equipment is started), and it is difficult to ensure timeliness and continuity of information. In the aspect of suitability, the processing is mostly carried out according to the system type, and unified management is not realized. Disclosure of Invention The embodiment of the invention provides a terminal equipment information acquisition and deduplication method, which is applied to a client and used for continuously, timely, accurately and comprehensively carrying out information acquisition and deduplication management on terminal equipment, improving the suitability of an operating system of the terminal equipment, wherein the client is installed on the terminal equipment, and the method comprises the following steps: Calling a terminal equipment information acquisition script, identifying the system type of the terminal equipment, and calling a script command corresponding to the system type to acquire the terminal equipment information according to the identified system type; classifying and naming the terminal equipment information according to the acquisition time of the terminal equipment information to generate standardized terminal equipment information; The method comprises the steps of judging the network state of the terminal equipment according to a preset network state detection strategy, wherein the preset network state detection strategy comprises the steps of adopting a weighted fusion algorithm based on machine learning, and judging the network state of the terminal equipment according to a detection result obtained by detecting the terminal equipment according to one or any combination of an internet control message protocol, a transmission control protocol, a user data protocol, a hypertext transmission protocol and a distributed network measurement probe; When the network state is offline, storing standardized terminal equipment information into a local cache, and carrying out periodic and cyclic detection on the network state of the terminal equipment according to a preset network state detection strategy until the network state is online; When the network state is online, the standardized terminal equipment information is packaged into a data transmission request, the data transmission request is sent to the server, response information of the server is received, and the server is used for sequentially analyzing, de-duplicating and storing the standardized terminal equipment information. The invention also provides a terminal equipment information acquisition and deduplication method, which is applied to a server and used for continuously, timely, accurately and comprehensively collecting and deduplicating information of ter