Server data acquisition method, device, computer equipment and storage medium

By generating the target IP address string, and obtaining the server's performance data and/or configuration information from the database based on the correspondence between the independent IP address and the IP address string, the problem of incomplete server data acquisition is solved and data acquisition integrity is achieved under any IP address.

CN116069991BActive Publication Date: 2025-08-15INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310032941.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-10
Publication Date
2025-08-15
Estimated Expiration
2043-01-10

AI Technical Summary

Technical Problem

In the prior art, when the database enters server data, there may be incomplete entry of the independent IP address of the server, which makes it impossible to obtain the server data from the database based on any independent IP address.

Method used

By identifying that the target IP address belongs to an independent IP address, the target IP address string is generated based on the correspondence between the independent IP address and the IP address string, and the server's performance data and/or configuration information are obtained from the database.

Benefits of technology

It is realized that any independent IP address based on the server can obtain corresponding server data from the database, improving the integrity and accuracy of data acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116069991B_ABST
    Figure CN116069991B_ABST
Patent Text Reader

Abstract

The present application discloses a server data acquisition method, apparatus, computer equipment, and storage medium, which relate to the field of computer technology and can be used in the field of financial technology or other related fields. The method comprises: responding to a server data acquisition request carrying a target Internet Protocol (IP) address, and when it is identified that the target IP address belongs to an independent IP address, determining the target IP address string based on the correspondence between the independent IP address and the IP address string according to the target IP address; obtaining the server data of the target server from the database based on the target IP address string; and outputting the server data. The above scheme achieves the effect that the server data of the server can be obtained from the database based on any independent IP address of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a server data acquisition method, apparatus, computer equipment, and storage medium. Background Art

[0002] In the process of obtaining server data, it is usually retrieved from the database according to the independent IP address of the server to obtain the server data.

[0003] Currently, when entering server data into a database, the server's independent IP address is typically entered along with the server data. However, for servers with multiple independent IP addresses, it's possible that only one or a few of the server's independent IP addresses are entered incompletely.

[0004] Therefore, it is not possible to achieve the effect of being able to obtain the server data of a server from the database based on any independent IP address of the server, and improvement is urgently needed. Summary of the Invention

[0005] Based on this, it is necessary to provide a server data acquisition method, device, computer equipment and storage medium to address the above technical problems, which can achieve the effect of obtaining the server data of the server from the database based on any independent IP address of the server.

[0006] In a first aspect, the present application provides a method for acquiring server data. The method comprises:

[0007] In response to a server data acquisition request carrying a target Internet Protocol (IP) address, if the target IP address is identified as an independent IP address, determining a target IP address string based on the target IP address based on a correspondence between the independent IP address and the IP address string; wherein the target IP address string is generated based on at least two independent IP addresses of a target server corresponding to the target IP address;

[0008] Obtaining server data of the target server from a database according to the target IP address character string; wherein the server data includes performance data and / or configuration information;

[0009] Output server data.

[0010] In one embodiment, obtaining server data of a target server from a database according to a target IP address string includes:

[0011] Based on the correspondence between the IP address string and the performance data, the performance data of the target server is obtained from the performance database according to the target IP address string.

[0012] In one embodiment, obtaining server data of a target server from a database according to a target IP address string includes:

[0013] Based on the correspondence between the IP address string and the resource IP address, the target resource IP address is determined according to the target IP address string; wherein the target resource IP address includes any independent IP address of at least two independent IP addresses of the target server;

[0014] According to the target resource IP address, the configuration information of the target server is obtained from the resource configuration database.

[0015] In one embodiment, the method further comprises:

[0016] Extract each independent IP address of the candidate server from the valid IP addresses of the candidate server;

[0017] Construct an IP address string of the candidate server based on each independent IP address of the candidate server;

[0018] Based on the independent IP addresses and IP address strings of the candidate servers, a corresponding relationship between the independent IP addresses and the IP address strings is established.

[0019] In one embodiment, constructing an IP address string of a candidate server based on each independent IP address of the candidate server includes:

[0020] Sort the independent IP addresses of the candidate servers according to their numbers;

[0021] Based on the sorting results, fixed characters are used to concatenate the independent IP addresses of the candidate servers to obtain the IP address string of the candidate server.

[0022] In one embodiment, extracting each independent IP address of the candidate server from the valid IP addresses of the candidate server includes:

[0023] Compare the valid IP addresses of different candidate servers;

[0024] According to the comparison results, the independent IP addresses of the candidate servers are extracted from the valid IP addresses of the candidate servers.

[0025] In one embodiment, outputting server data includes:

[0026] Determine the data output method based on the type of application node to which the target server belongs;

[0027] Use data output mode to output server data.

[0028] In a second aspect, the present application also provides a server data acquisition device. The device includes:

[0029] a string determination module, configured to, in response to a server data acquisition request carrying a target Internet Protocol (IP) address, determine a target IP address string based on the target IP address, based on a correspondence between the independent IP address and the IP address string, if the target IP address is identified as an independent IP address; wherein the target IP address string is generated based on at least two independent IP addresses of a target server corresponding to the target IP address;

[0030] A data acquisition module, configured to acquire server data of a target server from a database according to a target IP address character string; wherein the server data includes performance data and / or configuration information;

[0031] Data output module, used to output server data.

[0032] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are performed:

[0033] In response to a server data acquisition request carrying a target Internet Protocol (IP) address, if the target IP address is identified as an independent IP address, determining a target IP address string based on the target IP address based on a correspondence between the independent IP address and the IP address string; wherein the target IP address string is generated based on at least two independent IP addresses of a target server corresponding to the target IP address;

[0034] Obtaining server data of the target server from a database according to the target IP address character string; wherein the server data includes performance data and / or configuration information;

[0035] Output server data.

[0036] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following steps:

[0037] In response to a server data acquisition request carrying a target Internet Protocol (IP) address, if the target IP address is identified as an independent IP address, determining a target IP address string based on the target IP address based on a correspondence between the independent IP address and the IP address string; wherein the target IP address string is generated based on at least two independent IP addresses of a target server corresponding to the target IP address;

[0038] Obtaining server data of the target server from a database according to the target IP address character string; wherein the server data includes performance data and / or configuration information;

[0039] Output server data.

[0040] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the following steps:

[0041] In response to a server data acquisition request carrying a target Internet Protocol (IP) address, if the target IP address is identified as an independent IP address, determining a target IP address string based on the target IP address based on a correspondence between the independent IP address and the IP address string; wherein the target IP address string is generated based on at least two independent IP addresses of a target server corresponding to the target IP address;

[0042] Obtaining server data of the target server from a database according to the target IP address character string; wherein the server data includes performance data and / or configuration information;

[0043] Output server data.

[0044] The above-mentioned server data acquisition method, apparatus, computer device, and storage medium identify the target IP address as an independent IP address and, based on the correspondence between the independent IP address and the IP address string, determine the target IP address string from the target IP address. Based on the target IP address string, the server data of the target server can be obtained from the database. This solution achieves the effect of obtaining the server data of any server from the database based on its independent IP address. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 This is an application environment diagram of a method for acquiring server data in one embodiment;

[0046] Figure 2 1 is a flow chart of a method for acquiring server data in one embodiment;

[0047] Figure 3A schematic diagram of a process for obtaining server data of a target server from a database in one embodiment;

[0048] Figure 4 A schematic diagram of a process for establishing a correspondence between an independent IP address and an IP address string in one embodiment;

[0049] Figure 5 A system architecture diagram for obtaining server data of a target server in one embodiment;

[0050] Figure 6 Schematic diagram of a flow chart of a method for acquiring server data in another embodiment;

[0051] Figure 7 This is a structural block diagram of a server data acquisition device in one embodiment;

[0052] Figure 8 It is a structural block diagram of a server data acquisition device in another embodiment;

[0053] Figure 9 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0055] The server data acquisition method provided in the embodiment of the present application can be applied to the situation of how to obtain server data of a server, and is particularly suitable for obtaining server data of a server in a scenario where the server has multiple independent IP addresses.

[0056] In one embodiment, the server data acquisition method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown, terminal 102 communicates with central server 104 via a network. A data storage system can store data that central server 104 needs to process. The data storage system can be integrated with central server 104, or it can be located in the cloud or on another network server. Optionally, in response to a server data acquisition request containing a target Internet Protocol (IP) address, central server 104, upon identifying the target IP address as an independent IP address, determines the target IP address string based on the correspondence between the independent IP address and the IP address string. Based on the target IP address string, central server 104 can then retrieve the server data of the target server from a database. Furthermore, central server 104 can send the server data of the target server to terminal 102, which then displays the server data to the user. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart car devices, and the like. Portable wearable devices can include smart watches, smart bracelets, head-mounted devices, and the like. The central server 104 can be implemented as an independent server or a server cluster consisting of multiple servers.

[0057] In one embodiment, Figure 2 As shown, a server data acquisition method is provided, which is described by taking the application of the method to the central server 104 as an example, and includes the following steps:

[0058] S201, in response to a server data acquisition request carrying a target Internet Protocol IP address, when it is identified that the target IP address is an independent IP address, based on the correspondence between the independent IP address and the IP address string, determine the target IP address string according to the target IP address.

[0059] The target Internet Protocol (IP) address is the IP address of the target server from which the server data is to be retrieved. A dedicated IP address is an IP address that is exclusive to the server and not publicly available. Optionally, a server may have one or more dedicated IP addresses. Furthermore, all dedicated IP addresses may be stored in a dedicated IP address table.

[0060] Optionally, the IP address string for each candidate server can be generated by concatenating the independent IP addresses of the candidate servers. Furthermore, a one-to-one correspondence can be established between each independent IP address of a candidate server and the IP address string of that candidate server. A one-to-one correspondence can be established between each independent IP address of all candidate servers and the IP address string of their respective candidate servers, thereby obtaining a correspondence between all independent IP addresses and IP address strings. The target IP address string is generated by concatenating at least two independent IP addresses of the target server corresponding to the target IP address.

[0061] A server data retrieval request is a request sent by a user to a central server to retrieve server data from a particular server. In one implementation, a server data query tool provided by the central server can be integrated into the user's terminal. The user can then use this tool to send a server data retrieval request to the central server, including the target IP address. Alternatively, the server data query tool can be presented as a webpage, mini-program, or application.

[0062] Furthermore, in response to a server data acquisition request carrying a target IP address, the central server can input the target IP address into an independent IP address table and index the target IP address in the independent IP address table. If the target IP address can be indexed, it means that the target IP address is an independent IP address; if the target IP address cannot be indexed, it means that the target IP address is not an independent IP address (i.e., a non-independent IP address). Alternatively, the target IP address can be input into a pre-trained model, and the model will output whether the target IP address is an independent IP address. A non-independent IP address is an IP address that can be used by different servers.

[0063] When it is identified that the target IP address is not an independent IP address, several servers can be recommended to the user based on the target IP address, so that the user can select the target server from the recommended servers; further, the central server can display all independent IP addresses of the target server to the user based on the target server selected by the user, and then obtain the server data of the target server from the database based on any independent IP address selected by the user.

[0064] Furthermore, when it is identified that the target IP address is an independent IP address, based on the correspondence between the independent IP address and the IP address string, the IP address string corresponding to the target IP address, ie, the target IP address string, is determined according to the target IP address.

[0065] S102: Obtain server data of the target server from a database according to the target IP address character string.

[0066] In this embodiment, the server data may include performance data and / or configuration information, wherein the performance data includes system indicator performance data such as CPU and memory, and the configuration information includes information such as the type and version of the operating system.

[0067] Specifically, when entering the server data of each candidate server into the database, the IP address string and corresponding server data of each candidate server can be entered at the same time, and then the target IP address string can be entered into the database for indexing to index the server data of the target server corresponding to the target IP address string.

[0068] S103, output server data.

[0069] One possible implementation is that, when the server data includes performance data and configuration information, the performance data and configuration information in the server data can be output in two lines, for example, the first line is performance data and the second line is configuration information.

[0070] Another possible implementation method is to determine the data output method according to the type of the application node to which the target server belongs; and output the server data using the data output method.

[0071] Among them, application node types include middleware nodes and database nodes.

[0072] Specifically, if the type of application node to which the target server belongs is a middleware node, the data output mode can be a direct output mode; further, the direct output mode can be used to directly output the server data of the target server. If the type of application node to which the target server belongs is a database node, in order to more intuitively observe the changes in the server data, the data output mode can be a comparative output mode; further, the comparative output mode can be used to compare and output the server data outputted last time by the target server with the server data outputted this time. It can be understood that this embodiment outputs server data by taking into account the type of application node to which the target server belongs, which can make the output of server data more convenient for users to understand the server.

[0073] In the above-mentioned server data acquisition method, upon identifying that the target IP address is an independent IP address, the target IP address string is determined based on the correspondence between the independent IP address and the IP address string. Based on the target IP address string, the server data of the target server can be acquired from the database. By introducing the IP address string composed of independent IP addresses, the above-mentioned solution achieves the effect of acquiring the server data of any server from the database based on any independent IP address of the server.

[0074] Optionally, the acquisition method may vary depending on the data included in the server data. In one embodiment, when the server data includes performance data, an optional method for acquiring the server data of the target server from a database is provided. The specific process is to acquire the performance data of the target server from the performance database based on the target IP address string, based on the corresponding relationship between the IP address string and the performance data.

[0075] Specifically, when the performance data of each candidate server is entered into the performance database, the IP address string of each subsequent server can be entered together with the corresponding performance data; then the target IP address string is entered into the performance database for indexing, and based on the correspondence between the IP address string and the performance data, the performance data of the server corresponding to the target IP address string can be indexed.

[0076] It can be understood that this embodiment provides an optional method for quickly obtaining the performance data of the target server by introducing the corresponding relationship between the IP address character string and the performance data.

[0077] In one embodiment, based on the above embodiment, when the server data includes configuration information, S202 is further explained in detail for obtaining the server data of the target server from the database according to the target IP address string. Figure 3 As shown, the specific steps include:

[0078] S301 : Based on the correspondence between the IP address character string and the resource IP address, determine the target resource IP address according to the target IP address character string.

[0079] Optionally, a resource configuration database may be introduced in this embodiment; the resource configuration database may store the correspondence between the resource IP address and configuration information of each candidate server. The resource IP address of each candidate server may be determined based on any independent IP address of the candidate server. For example, any independent IP address of the candidate server may be used as the resource IP address of the candidate server.

[0080] In this embodiment, the target resource IP address includes any one of at least two independent IP addresses of the target server.

[0081] In an optional manner, a correspondence between the resource IP address of each candidate server and the IP address character string of the candidate server may also be established.

[0082] Furthermore, after determining the target IP address string based on the target IP address, the target IP address string can be used as an index to search from the correspondence between the IP address string and the resource IP address to determine the resource IP address corresponding to the target IP address string, that is, the target resource IP address.

[0083] S302: Acquire the configuration information of the target server from the resource configuration database according to the target resource IP address.

[0084] Specifically, when the configuration information of each candidate server is entered into the resource configuration database, the resource IP address of each candidate server (that is, an independent IP address of the candidate server entered in the resource configuration database) and the corresponding configuration information are entered at the same time; then the target resource IP address is entered into the resource configuration database for indexing, and based on the correspondence between the resource IP address and the configuration information, the configuration information of the target server corresponding to the target resource IP address can be indexed.

[0085] It can be understood that this embodiment can quickly and accurately obtain the configuration information of the target server by introducing the correspondence between the IP address, the IP address string and the resource IP address.

[0086] In one embodiment, based on the above embodiment, an optional method for constructing a correspondence between an independent IP address and an IP address string is also provided. Figure 4 As shown, the specific process includes:

[0087] S401: Extracting independent IP addresses of candidate servers from valid IP addresses of candidate servers.

[0088] In this embodiment, all servers communicating with the central server can be used as candidate servers. Optionally, the valid IP address of each candidate server is the available IP address of the candidate server, including independent IP addresses and non-independent IP addresses.

[0089] One possible implementation method is to input the valid IP address of each candidate server into a pre-trained model, and the model removes the non-independent IP addresses from the valid IP addresses of each candidate server and outputs the independent IP addresses of each candidate server.

[0090] Another possible implementation method is to compare the valid IP addresses of different candidate servers; based on the comparison results, extract the independent IP addresses of each candidate server from the valid IP addresses of each candidate server. Specifically, for each candidate server, the valid IP address of the candidate server can be compared with the valid IP addresses of other candidate servers. If there are any identical IP addresses, the identical IP address is removed, and the remaining IP address of the candidate server is the independent IP address of the candidate server.

[0091] S402: Construct an IP address character string of the candidate server according to each independent IP address of the candidate server.

[0092] One possible implementation is to directly connect the independent IP addresses of each candidate server with the character “&” without considering the order of the independent IP addresses of the candidate server to obtain the IP address string of the candidate server.

[0093] Another possible implementation method is to sort the independent IP addresses of the candidate servers according to their serial numbers; based on the sorting results, concatenate the independent IP addresses of the candidate servers using fixed characters to obtain the IP address string of the candidate server. The fixed characters are pre-defined characters used to connect different independent IP addresses, such as "|".

[0094] Specifically, for each candidate server, when transmitting each independent IP address to the central server to construct the IP address string of the candidate server, the candidate server will number each independent IP address in a certain order before transmitting it; further, the central server can sort the independent IP addresses of the candidate server from small to large according to the number of each independent IP address of the candidate server. For example, when the candidate server transmits, it transmits in the order of IP1, IP2, IP3..., then the independent IP addresses of the candidate server are sorted from small to large according to the number, that is, IP1, IP2, IP3...; further, using the fixed character "|", in the order of IP1, IP2, IP3..., the independent IP addresses of the candidate server are spliced together to obtain the IP address string of the candidate server, that is, IP1|IP2|IP3...

[0095] S403: Constructing a correspondence between the independent IP addresses and the IP address character strings according to the independent IP addresses and the IP address character strings of the candidate servers.

[0096] Specifically, for each IP address string, each independent IP address in the IP address string can establish a corresponding relationship with the IP address string. For example, for the IP address string IP1|IP2|IP3, each independent IP address in the string can establish a corresponding relationship with the IP address string, that is, IP1 corresponds to IP1|IP2|IP3, IP2 corresponds to IP1|IP2|IP3, and IP3 corresponds to IP1|IP2|IP3. Further, according to the above steps, each IP address string establishes a corresponding relationship with each of its independent IP addresses, that is, the corresponding relationship between all independent IP addresses and IP address strings is obtained.

[0097] For example, the correspondence between the obtained independent IP address and the IP address string can be stored in the server association data table, and the correspondence between the resource IP address and the IP address string can also be stored in the server association data table, that is, the relationship between the independent IP address, the IP address string and the resource IP address is obtained.

[0098] Furthermore, the IP address character string of the candidate server may be dynamically updated based on the IP address of each candidate server at regular intervals, thereby updating the corresponding relationship in the server association data table.

[0099] In this embodiment, the independent IP addresses of the candidate servers are extracted from the valid IP addresses of the candidate servers; and then the IP address string of the candidate server is constructed based on the independent IP addresses of the candidate servers, and the correspondence between the independent IP addresses and the IP address strings is constructed, so that the correspondence between the constructed independent IP addresses and the IP address strings can be made more accurate.

[0100] In one embodiment, Figure 5 As shown, this is a system architecture diagram for obtaining server data from a server.

[0101] Specifically, each candidate server transmits all of its own IP addresses, performance data, and configuration information to the central server; the central server pre-processes the information transmitted by each candidate server respectively; wherein, the pre-processing may include screening the IP addresses of each candidate server to obtain the independent IP addresses of each candidate server, sorting and splicing the independent IP addresses of each candidate server to obtain the IP address strings of each candidate server; and unifying the formats of the performance data and configuration information of each candidate server. The processed independent IP address and the corresponding performance data of each candidate server are then stored in the performance database, and the pre-processed independent IP address and the corresponding configuration information of each candidate server are stored in the resource configuration database. Furthermore, the correspondence between the independent IP addresses obtained after pre-processing and the IP address strings, as well as the correspondence between the resource IP addresses and the IP address strings are stored in the server association data table.

[0102] Obtain an independent IP address of the target server input by the user, retrieve the IP address string corresponding to the independent IP address in the server association data table, and then retrieve the performance data and configuration information of the target server in the performance database and resource configuration database based on the IP address string.

[0103] In addition, in one embodiment, the present application also provides an optional example of a server data acquisition method. Figure 6 As shown, the specific process includes:

[0104] S601: Compare the valid IP addresses of different candidate servers.

[0105] S602: Extracting the independent IP addresses of the candidate servers from the valid IP addresses of the candidate servers according to the comparison result.

[0106] S603: Sort the independent IP addresses of the candidate servers according to their numbers.

[0107] S604 , based on the sorting result, the independent IP addresses of the candidate servers are concatenated using fixed characters to obtain an IP address string of the candidate server.

[0108] S605: Construct a correspondence between the independent IP addresses and the IP address character strings according to the independent IP addresses and the IP address character strings of the candidate servers.

[0109] S606, in response to a server data acquisition request carrying a target Internet Protocol IP address, when it is identified that the target IP address is an independent IP address, based on the correspondence between the independent IP address and the IP address string, determine the target IP address string according to the target IP address.

[0110] S607: Obtain server data of the target server from the database according to the target IP address character string.

[0111] The server data includes performance data and / or configuration information.

[0112] Optionally, based on the correspondence between the IP address character string and the performance data, the performance data of the target server may be obtained from the performance database according to the target IP address character string.

[0113] And / or, based on the correspondence between the IP address string and the resource IP address, the target resource IP address can be determined according to the target IP address string; wherein the target resource IP address includes any independent IP address of at least two independent IP addresses of the target server; and according to the target resource IP address, the configuration information of the target server is obtained from the resource configuration database.

[0114] S608: Determine a data output method according to the type of the application node to which the target server belongs.

[0115] S609: Output the server data using a data output method.

[0116] The specific process of the above S601-S609 can be found in the description of the above method embodiment. The implementation principle and technical effects are similar and will not be repeated here.

[0117] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0118] Based on the same inventive concept, embodiments of the present application also provide a server data acquisition device for implementing the aforementioned server data acquisition method. The implementation solution provided by this device is similar to the implementation solution described in the aforementioned method. Therefore, the specific limitations of one or more server data acquisition device embodiments provided below can be found in the above-mentioned limitations of the server data acquisition method and will not be repeated here.

[0119] In one embodiment, Figure 7 As shown, a server data acquisition device 1 is provided, comprising: a character string determination module 10, a data acquisition module 20 and a data output module 30, wherein:

[0120] a character string determination module 10 for responding to a server data acquisition request carrying a target Internet Protocol (IP) address and, if the target IP address is identified as an independent IP address, determining a target IP address character string based on the target IP address based on a correspondence between the independent IP address and the IP address character string; wherein the target IP address character string is generated based on at least two independent IP addresses of a target server corresponding to the target IP address;

[0121] The data acquisition module 20 is used to obtain the server data of the target server from the database according to the target IP address character string; wherein the server data includes performance data and / or configuration information;

[0122] The data output module 30 is used to output server data.

[0123] In one embodiment, the data acquisition module 20 is specifically configured to:

[0124] Based on the correspondence between the IP address string and the performance data, the performance data of the target server is obtained from the performance database according to the target IP address string.

[0125] In one embodiment, the data acquisition module 20 is further configured to:

[0126] Based on the correspondence between the IP address string and the resource IP address, the target resource IP address is determined according to the target IP address string; wherein the target resource IP address includes any independent IP address of at least two independent IP addresses of the target server; according to the target resource IP address, the configuration information of the target server is obtained from the resource configuration database.

[0127] In one embodiment, Figure 8 As shown, the server data acquisition device 1 further includes:

[0128] An address extraction module 40 is used to extract the independent IP addresses of the candidate servers from the valid IP addresses of the candidate servers;

[0129] A first constructing module 50 is configured to construct an IP address string of a candidate server based on each independent IP address of the candidate server;

[0130] The second constructing module 60 is configured to construct a correspondence between independent IP addresses and IP address strings according to the independent IP addresses and IP address strings of the candidate servers.

[0131] In one embodiment, the first building block 50 is specifically configured to:

[0132] The independent IP addresses of the candidate servers are sorted according to their numbers; based on the sorting results, the independent IP addresses of the candidate servers are concatenated using fixed characters to obtain an IP address string of the candidate servers.

[0133] In one embodiment, the address extraction module 40 is specifically configured to:

[0134] Compare the valid IP addresses of different candidate servers; based on the comparison results, extract the independent IP addresses of each candidate server from the valid IP addresses of each candidate server.

[0135] In one embodiment, the data output module 30 is specifically configured to:

[0136] Determine the data output method according to the type of application node to which the target server belongs; use the data output method to output server data.

[0137] Each module in the server data acquisition device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0138] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 9As shown. The computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store server data acquisition data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a server data acquisition method is implemented.

[0139] Those skilled in the art will understand that Figure 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0140] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0141] In response to a server data acquisition request carrying a target Internet Protocol (IP) address, if the target IP address is identified as an independent IP address, determining a target IP address string based on the target IP address based on a correspondence between the independent IP address and the IP address string; wherein the target IP address string is generated based on at least two independent IP addresses of a target server corresponding to the target IP address;

[0142] Obtaining server data of the target server from a database according to the target IP address character string; wherein the server data includes performance data and / or configuration information;

[0143] The server data is output.

[0144] In one embodiment, when the processor executes logic in the computer program to obtain server data of the target server from the database based on the target IP address string, the following steps are specifically implemented:

[0145] Based on the correspondence between the IP address string and the performance data, the performance data of the target server is obtained from the performance database according to the target IP address string.

[0146] In one embodiment, when the processor executes logic in the computer program to obtain server data of the target server from the database based on the target IP address string, the following steps are specifically implemented:

[0147] Based on the correspondence between the IP address string and the resource IP address, the target resource IP address is determined according to the target IP address string; wherein the target resource IP address includes any independent IP address of at least two independent IP addresses of the target server; according to the target resource IP address, the configuration information of the target server is obtained from the resource configuration database.

[0148] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0149] Extract each independent IP address of the candidate server from the valid IP addresses of the candidate server; construct the IP address string of the candidate server based on each independent IP address of the candidate server; and construct a correspondence between the independent IP address and the IP address string based on each independent IP address of the candidate server and the IP address string.

[0150] In one embodiment, when the processor executes logic in the computer program to obtain server data of the target server from the database based on the target IP address string, the following steps are specifically implemented:

[0151] The independent IP addresses of the candidate servers are sorted according to their numbers; based on the sorting results, the independent IP addresses of the candidate servers are concatenated using fixed characters to obtain an IP address string of the candidate servers.

[0152] In one embodiment, when the processor executes the logic in the computer program for extracting the independent IP addresses of the candidate servers from the valid IP addresses of the candidate servers, the processor specifically implements the following steps:

[0153] Compare the valid IP addresses of different candidate servers; based on the comparison results, extract the independent IP addresses of each candidate server from the valid IP addresses of each candidate server.

[0154] In one embodiment, when the processor executes the logic of outputting server data in the computer program, the following steps are specifically implemented:

[0155] Determine the data output method according to the type of application node to which the target server belongs; use the data output method to output server data.

[0156] The principles and specific processes of the computer device provided above in implementing each embodiment can be found in the description of the server data acquisition method embodiment in the aforementioned embodiment, and will not be repeated here.

[0157] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0158] In response to a server data acquisition request carrying a target Internet Protocol (IP) address, if the target IP address is identified as an independent IP address, determining a target IP address string based on the target IP address based on a correspondence between the independent IP address and the IP address string; wherein the target IP address string is generated based on at least two independent IP addresses of a target server corresponding to the target IP address;

[0159] Obtaining server data of the target server from a database according to the target IP address character string; wherein the server data includes performance data and / or configuration information;

[0160] Output server data.

[0161] In one embodiment, when the logic of the computer program for obtaining server data of a target server from a database based on a target IP address string is executed by a processor, the following steps are specifically implemented:

[0162] Based on the correspondence between the IP address string and the performance data, the performance data of the target server is obtained from the performance database according to the target IP address string.

[0163] In one embodiment, when the logic of the computer program for obtaining server data of a target server from a database based on a target IP address string is executed by a processor, the following steps are specifically implemented:

[0164] Based on the correspondence between the IP address string and the resource IP address, the target resource IP address is determined according to the target IP address string; wherein the target resource IP address includes any independent IP address of at least two independent IP addresses of the target server; according to the target resource IP address, the configuration information of the target server is obtained from the resource configuration database.

[0165] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0166] Extract each independent IP address of the candidate server from the valid IP addresses of the candidate server; construct the IP address string of the candidate server based on each independent IP address of the candidate server; and construct a correspondence between the independent IP address and the IP address string based on each independent IP address of the candidate server and the IP address string.

[0167] In one embodiment, when the logic in the computer program for constructing an IP address string of a candidate server based on each independent IP address of the candidate server is executed by a processor, the following steps are specifically implemented:

[0168] The independent IP addresses of the candidate servers are sorted according to their numbers; based on the sorting results, the independent IP addresses of the candidate servers are concatenated using fixed characters to obtain an IP address string of the candidate servers.

[0169] In one embodiment, when the logic of extracting the independent IP addresses of the candidate servers from the valid IP addresses of the candidate servers in the computer program is executed by the processor, the following steps are specifically implemented:

[0170] Compare the valid IP addresses of different candidate servers; based on the comparison results, extract the independent IP addresses of each candidate server from the valid IP addresses of each candidate server.

[0171] In one embodiment, when the logic of outputting server data in the computer program is executed by a processor, the following steps are specifically implemented:

[0172] Determine the data output method according to the type of application node to which the target server belongs; use the data output method to output server data.

[0173] The principles and specific processes of the computer-readable storage medium provided above in implementing each embodiment can be found in the description of the server data acquisition method embodiment in the aforementioned embodiment, and will not be repeated here.

[0174] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0175] In response to a server data acquisition request carrying a target Internet Protocol (IP) address, if the target IP address is identified as an independent IP address, determining a target IP address string based on the target IP address based on a correspondence between the independent IP address and the IP address string; wherein the target IP address string is generated based on at least two independent IP addresses of a target server corresponding to the target IP address;

[0176] Obtaining server data of the target server from a database according to the target IP address character string; wherein the server data includes performance data and / or configuration information;

[0177] Output server data.

[0178] In one embodiment, when the logic of the computer program for obtaining server data of a target server from a database based on a target IP address string is executed by a processor, the following steps are specifically implemented:

[0179] Based on the correspondence between the IP address string and the performance data, the performance data of the target server is obtained from the performance database according to the target IP address string.

[0180] In one embodiment, when the logic of the computer program for obtaining server data of a target server from a database based on a target IP address string is executed by a processor, the following steps are specifically implemented:

[0181] Based on the correspondence between the IP address string and the resource IP address, the target resource IP address is determined according to the target IP address string; wherein the target resource IP address includes any independent IP address of at least two independent IP addresses of the target server; according to the target resource IP address, the configuration information of the target server is obtained from the resource configuration database.

[0182] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0183] Extract each independent IP address of the candidate server from the valid IP addresses of the candidate server; construct the IP address string of the candidate server based on each independent IP address of the candidate server; and construct a correspondence between the independent IP address and the IP address string based on each independent IP address of the candidate server and the IP address string.

[0184] In one embodiment, when the logic in the computer program for constructing an IP address string of a candidate server based on each independent IP address of the candidate server is executed by a processor, the following steps are specifically implemented:

[0185] The independent IP addresses of the candidate servers are sorted according to their numbers; based on the sorting results, the independent IP addresses of the candidate servers are concatenated using fixed characters to obtain an IP address string of the candidate servers.

[0186] In one embodiment, when the logic of extracting the independent IP addresses of the candidate servers from the valid IP addresses of the candidate servers in the computer program is executed by the processor, the following steps are specifically implemented:

[0187] Compare the valid IP addresses of different candidate servers; based on the comparison results, extract the independent IP addresses of each candidate server from the valid IP addresses of each candidate server.

[0188] In one embodiment, when the logic of outputting server data in the computer program is executed by a processor, the following steps are specifically implemented:

[0189] Determine the data output method according to the type of application node to which the target server belongs; use the data output method to output server data.

[0190] The principles and specific processes of implementing the computer program products provided above in each embodiment can be found in the description of the server data acquisition method embodiment in the aforementioned embodiment, and will not be repeated here.

[0191] It should be noted that the information (including but not limited to server configuration information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all authorized or fully authorized by all parties.

[0192] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.

[0193] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0194] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A server data acquisition method, characterized in that: The method comprises: In response to a server data acquisition request carrying a target Internet Protocol (IP) address, if the target IP address is identified as an independent IP address, determining a target IP address string based on the target IP address based on a correspondence between independent IP addresses and IP address strings; wherein the target IP address string is generated based on at least two independent IP addresses of a target server corresponding to the target IP address; Obtaining server data of the target server from a database according to the target IP address character string; wherein the server data includes performance data and / or configuration information; The server data is output.

2. The method according to claim 1, characterized in that The acquiring the server data of the target server from the database according to the target IP address character string includes: Based on the correspondence between the IP address character string and the performance data, the performance data of the target server is obtained from a performance database according to the target IP address character string.

3. The method according to claim 1, characterized in that The acquiring the server data of the target server from the database according to the target IP address character string includes: Based on the correspondence between the IP address string and the resource IP address, the target resource IP address is determined according to the target IP address string; wherein the target resource IP address includes any independent IP address of at least two independent IP addresses of the target server; According to the target resource IP address, the configuration information of the target server is obtained from a resource configuration database.

4. The method according to claim 1, characterized in that The method further comprises: Extracting each independent IP address of the candidate server from the valid IP addresses of the candidate server; Constructing an IP address string of the candidate server according to each independent IP address of the candidate server; According to each independent IP address and IP address character string of the candidate server, a corresponding relationship between the independent IP address and the IP address character string is established.

5. The method according to claim 4, characterized in that The step of constructing the IP address character string of the candidate server according to each independent IP address of the candidate server includes: Sort the independent IP addresses of the candidate servers according to their numbers; Based on the sorting result, fixed characters are used to concatenate the independent IP addresses of the candidate servers to obtain the IP address character string of the candidate server.

6. The method according to claim 4, characterized in that Extracting each independent IP address of the candidate server from the valid IP addresses of the candidate server includes: Compare the valid IP addresses of different candidate servers; According to the comparison results, the independent IP addresses of the candidate servers are extracted from the valid IP addresses of the candidate servers.

7. The method according to claim 1, characterized in that The outputting the server data includes: Determine the data output mode according to the type of application node to which the target server belongs; The server data is outputted using the data output method.

8. A server data acquisition device, characterized in that: The device comprises: a string determination module, configured to, in response to a server data acquisition request carrying a target Internet Protocol (IP) address, determine a target IP address string based on the target IP address, if the target IP address is identified as an independent IP address, based on a correspondence between independent IP addresses and IP address strings; wherein the target IP address string is generated based on at least two independent IP addresses of a target server corresponding to the target IP address; A data acquisition module, configured to acquire server data of the target server from a database according to the target IP address character string; wherein the server data includes performance data and / or configuration information; A data output module is used to output the server data.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Scheduling method based on session migration and server

    CN108494720A

  • Method and system protecting against identity theft or replication abuse

    US20160134634A1