Server management method, apparatus, device, storage medium, and program product
Patent Information
- Application Number
- CN202310456760.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-25
- Publication Date
- 2026-09-08
- Estimated Expiration
- 2043-04-25
AI Technical Summary
[0003]然而在上述技术方案中,上述服务器的数量众多,种类不同,版本不一,缺乏对上述服务器的配置信息和用户信息的统一管理
[0042]The aforementioned server management method, apparatus, computer equipment, storage medium, and computer program product determine the management type of the server to be managed by comparing server configuration information of the server operation and maintenance platform based on a scheduled task. The server operation and maintenance platform is a platform used in the financial data system to run and maintain the server to be managed. If the management type indicates that the server to be managed is to be included in the management system, the first configuration information corresponding to the server to be managed is obtained from the server operation and maintenance platform, and the second configuration information corresponding to the server to be managed is obtained from the server database. The first configuration information and the second configuration information are then merged to obtain the configuration information corresponding to the server to be managed. The server database is used to manage the data of all servers in the financial data system. Based on the configuration information, servers that meet the preset management conditions are selected from the servers to be managed. Based on the configuration information, the user information of the servers to be managed is obtained, and the configuration information and user information of the servers to be managed are stored. This application determines the management type of the server to be managed in the server operation and maintenance platform by periodically comparing the server configuration information of the server operation and maintenance platform. If the management type is to be included in the management, the configuration information of the server to be managed is obtained based on the server operation and maintenance platform and server database of the financial data system. Then, based on the configuration information, the manageable servers are selected from the servers to be managed, and the user information of the manageable servers is obtained based on the configuration information. Finally, the user information and configuration information of the manageable servers are stored in the aforementioned server management platform, which enables unified management of the configuration information and user information of the servers to be managed in the financial data system.
Smart Images

Figure CN116489016B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of financial technology, and in particular to a server management method, apparatus, computer equipment, storage medium, and computer program product. Background Technology
[0002] With the development of the fintech field, financial data systems have emerged to manage financial business data. This technology manages financial business data by running a large number of servers.
[0003] However, in the above technical solutions, there are numerous servers of different types and versions, and there is a lack of unified management of the configuration information and user information of these servers. Summary of the Invention
[0004] Therefore, it is necessary to provide a server management method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can uniformly manage the configuration information and user information of servers to be managed in a financial data system, in order to address the above-mentioned technical problems.
[0005] Firstly, this application provides a server management method. The method includes:
[0006] Based on scheduled tasks, the server configuration information of the server operation and maintenance platform is compared to determine the management type of the server to be managed; the server operation and maintenance platform is the platform used in the financial data system to run and maintain the server to be managed.
[0007] If the management type indicates that the server to be managed is to be included in the management system, then the first configuration information corresponding to the server to be managed is obtained from the server operation and maintenance platform, and the second configuration information corresponding to the server to be managed is obtained from the server database. The first configuration information and the second configuration information are then merged to obtain the configuration information corresponding to the server to be managed. The server database is used to manage the data of all servers in the financial data system.
[0008] Based on the configuration information, select manageable servers that meet the preset management conditions from the servers to be managed.
[0009] Based on the configuration information, the user information of the manageable server is obtained, and the configuration information and user information of the manageable server are stored.
[0010] In one embodiment, obtaining user information of the manageable server based on the configuration information includes: obtaining the server type corresponding to the manageable server from the configuration information; if the server type is a first preset server type, sending a user information acquisition command to the server operation and maintenance platform; the server operation and maintenance platform is used to respond to the user information acquisition command, obtain the corresponding user information from the manageable server, and return the user information to the server management platform.
[0011] In one embodiment, obtaining the user information of the manageable server based on the configuration information further includes: if the server type is a second preset server type, obtaining a pre-set target user information acquisition password associated with the manageable server, and a password change command for changing the original user information acquisition password of the manageable server to the target user information acquisition password; sending the target user information acquisition password and the password change command to the server operation and maintenance platform; the server operation and maintenance platform is used to respond to the password change command to change the user information acquisition password of the manageable server from the original user information acquisition password to the target user information acquisition password; and obtaining the user information from the manageable server based on the target user information acquisition password.
[0012] In one embodiment, merging the first configuration information and the second configuration information to obtain the configuration information corresponding to the server to be managed includes: obtaining the server type of the server to be managed based on the first configuration information and / or the second configuration information; merging the first configuration information and the second configuration information to obtain the initial configuration information corresponding to the server to be managed; and obtaining the configuration information corresponding to the server to be managed based on the server type and the initial configuration information.
[0013] In one embodiment, obtaining the server type of the server to be managed based on the first configuration information and / or the second configuration information includes: if the server to be managed has a server type recorded in the first configuration information, then setting the server type of the server to be managed to the server type in the first configuration information; if the server to be managed does not have a server type recorded in the first configuration information, then setting the server type of the server to be managed to the server type in the second configuration information.
[0014] In one embodiment, the step of selecting manageable servers that meet preset management conditions from the servers to be managed according to the configuration information includes: obtaining the server type and server operating status of the current server to be managed from the configuration information, and obtaining the operating status of the server operation and maintenance platform; if the server type of the current server to be managed is a preset manageable server type, and the server operating status is normal operation, and the operating status of the server operation and maintenance platform is normal operation, then the current server to be managed is the manageable server.
[0015] In one embodiment, after obtaining the server type and server operating status of the currently managed server, and the operating status of the server operation and maintenance platform, the method further includes: if the currently managed server meets any one of the unmanageable conditions for the managed server, then the currently managed server is determined to be an unmanageable server, and the steps of obtaining the user information of the currently managed server based on the configuration information and storing the configuration information and user information of the currently managed server are stopped; wherein, the unmanageable conditions include: the server type of the currently managed server is not a preset manageable server type; the server operating status is abnormal; the operating status of the server operation and maintenance platform is abnormal.
[0016] In one embodiment, after the server operation and maintenance platform is in an abnormal operating state, the method further includes: when the server operation and maintenance platform recovers from an abnormal operating state to a normal operating state, if the server type of the currently managed server is a preset manageable server type and the server is in a normal operating state, the unmanageable server is converted into the manageable server.
[0017] In one embodiment, comparing the server configuration information of the server operation and maintenance platform includes: if the server operation and maintenance platform has a number for the currently managed server, then obtaining the number from the server operation and maintenance platform; if the number already exists in the server management platform, then obtaining the historical configuration information of the currently managed server that already exists in the server management platform, and obtaining the current configuration information corresponding to the currently managed server from the server operation and maintenance platform and the server database; obtaining the historical identity identifier of the currently managed server from the historical configuration information, and obtaining the current identity identifier of the currently managed server from the current configuration information.
[0018] In one embodiment, determining the management type of the server to be managed includes: if the server operation and maintenance platform has a number for the server to be managed, and the server management platform does not have the number, then the management type indicates that the server to be managed is to be included in the management system; if the historical identity identifier is different from the current identity identifier, then the management type indicates that the server to be managed is to be re-managed; if the historical identity identifier of the server to be managed is the same as the current identity identifier, and there is abnormal data in the historical configuration information that is different from the current configuration information, then the management type indicates that the server to be managed is to be modified; if the server operation and maintenance platform does not have a number for the server to be managed, and the server management platform has the number, then the management type indicates that the server to be managed is to be deleted.
[0019] In one embodiment, after determining that the management type indicates that the currently managed server needs to be re-managed, the method further includes: obtaining the user information of the currently managed server and storing the current configuration information and user information of the currently managed server; if the current configuration information and user information of the currently managed server are successfully stored, then the historical configuration information and historical user information of the currently managed server on the server management platform are deleted.
[0020] In one embodiment, after determining that the management type indicates that the current server to be managed needs to be modified, the method further includes: modifying the abnormal data in the historical configuration information according to the current configuration information of the current server to be managed.
[0021] In one embodiment, after determining that the management type indicates that the currently managed server is to be deleted, the method further includes: deleting the historical configuration information and historical user information of the currently managed server in the server management platform.
[0022] Secondly, this application also provides a server management device. The device includes:
[0023] The management type determination module is used to determine the management type of the server to be managed by comparing the server configuration information of the server operation and maintenance platform based on a scheduled task; the server operation and maintenance platform is the platform used in the financial data system to run and maintain the server to be managed.
[0024] The configuration information determination module is used to, if the management type indicates that the server to be managed is to be included in the management, obtain first configuration information corresponding to the server to be managed from the server operation and maintenance platform, and obtain second configuration information corresponding to the server to be managed from the server database, and merge the first configuration information and the second configuration information to obtain the configuration information corresponding to the server to be managed; the server database is used to manage the data of all servers in the financial data system;
[0025] The server filtering module is used to filter out manageable servers that meet the preset management conditions from the servers to be managed based on the configuration information.
[0026] The storage module is used to obtain the user information of the manageable server based on the configuration information, and to store the configuration information and user information of the manageable server.
[0027] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0028] Based on scheduled tasks, the server configuration information of the server operation and maintenance platform is compared to determine the management type of the server to be managed; the server operation and maintenance platform is the platform used in the financial data system to run and maintain the server to be managed.
[0029] If the management type indicates that the server to be managed is to be included in the management system, then the first configuration information corresponding to the server to be managed is obtained from the server operation and maintenance platform, and the second configuration information corresponding to the server to be managed is obtained from the server database. The first configuration information and the second configuration information are then merged to obtain the configuration information corresponding to the server to be managed. The server database is used to manage the data of all servers in the financial data system.
[0030] Based on the configuration information, select manageable servers that meet the preset management conditions from the servers to be managed.
[0031] Based on the configuration information, the user information of the manageable server is obtained, and the configuration information and user information of the manageable server are stored.
[0032] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0033] Based on scheduled tasks, the server configuration information of the server operation and maintenance platform is compared to determine the management type of the server to be managed; the server operation and maintenance platform is the platform used in the financial data system to run and maintain the server to be managed.
[0034] If the management type indicates that the server to be managed is to be included in the management system, then the first configuration information corresponding to the server to be managed is obtained from the server operation and maintenance platform, and the second configuration information corresponding to the server to be managed is obtained from the server database. The first configuration information and the second configuration information are then merged to obtain the configuration information corresponding to the server to be managed. The server database is used to manage the data of all servers in the financial data system.
[0035] Based on the configuration information, select manageable servers that meet the preset management conditions from the servers to be managed.
[0036] Based on the configuration information, the user information of the manageable server is obtained, and the configuration information and user information of the manageable server are stored.
[0037] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0038] Based on scheduled tasks, the server configuration information of the server operation and maintenance platform is compared to determine the management type of the server to be managed; the server operation and maintenance platform is the platform used in the financial data system to run and maintain the server to be managed.
[0039] If the management type indicates that the server to be managed is to be included in the management system, then the first configuration information corresponding to the server to be managed is obtained from the server operation and maintenance platform, and the second configuration information corresponding to the server to be managed is obtained from the server database. The first configuration information and the second configuration information are then merged to obtain the configuration information corresponding to the server to be managed. The server database is used to manage the data of all servers in the financial data system.
[0040] Based on the configuration information, select manageable servers that meet the preset management conditions from the servers to be managed.
[0041] Based on the configuration information, the user information of the manageable server is obtained, and the configuration information and user information of the manageable server are stored.
[0042] The aforementioned server management method, apparatus, computer equipment, storage medium, and computer program product determine the management type of the server to be managed by comparing server configuration information of the server operation and maintenance platform based on a scheduled task. The server operation and maintenance platform is a platform used in the financial data system to run and maintain the server to be managed. If the management type indicates that the server to be managed is to be included in the management system, the first configuration information corresponding to the server to be managed is obtained from the server operation and maintenance platform, and the second configuration information corresponding to the server to be managed is obtained from the server database. The first configuration information and the second configuration information are then merged to obtain the configuration information corresponding to the server to be managed. The server database is used to manage the data of all servers in the financial data system. Based on the configuration information, servers that meet the preset management conditions are selected from the servers to be managed. Based on the configuration information, the user information of the servers to be managed is obtained, and the configuration information and user information of the servers to be managed are stored. This application determines the management type of the server to be managed in the server operation and maintenance platform by periodically comparing the server configuration information of the server operation and maintenance platform. If the management type is to be included in the management, the configuration information of the server to be managed is obtained based on the server operation and maintenance platform and server database of the financial data system. Then, based on the configuration information, the manageable servers are selected from the servers to be managed, and the user information of the manageable servers is obtained based on the configuration information. Finally, the user information and configuration information of the manageable servers are stored in the aforementioned server management platform, which enables unified management of the configuration information and user information of the servers to be managed in the financial data system. Attached Figure Description
[0043] Figure 1 This is an application environment diagram of a server management method in one embodiment;
[0044] Figure 2 This is a flowchart illustrating a server management method in one embodiment;
[0045] Figure 3 This is a schematic diagram of the process for obtaining server user information in one embodiment;
[0046] Figure 4 This is an application environment diagram for obtaining server user information in one embodiment;
[0047] Figure 5 This is a schematic diagram of the process for obtaining server configuration information in one embodiment;
[0048] Figure 6 This is a structural block diagram of a server management device in one embodiment;
[0049] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0050] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0051] It should be noted that the terms "first" and "second" used in the embodiments of the present invention are merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first" and "second" can be interchanged in a specific order or sequence where permissible. It should be understood that the objects distinguished by "first" and "second" can be interchanged where appropriate so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.
[0052] The server management method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, server management platform 101 communicates with server operation and maintenance platform 102 via the network, and server management platform 101 also communicates with server database 103 via the network. Based on scheduled tasks, the server configuration information of server operation and maintenance platform 102 is compared to determine the management type of the server to be managed. Server operation and maintenance platform 102 is a platform used in the financial data system to run and maintain the server to be managed. If the management type indicates that the server to be managed is to be included in the management system, the first configuration information corresponding to the server to be managed is obtained from server operation and maintenance platform 102, and the second configuration information corresponding to the server to be managed is obtained from server database 103. The first configuration information and the second configuration information are then merged to obtain the configuration information corresponding to the server to be managed. Server database 103 is used to manage the data of all servers in the financial data system. According to the configuration information, server management platform 101 selects servers that meet the preset management conditions from the servers to be managed. Based on the configuration information, server management platform 101 obtains the user information of the servers to be managed and stores the configuration information and user information of the servers to be managed. The server management platform 101 can be, but is not limited to, various personal computers, laptops, smartphones, and tablets. The server management platform 101 can also be a server or a system that includes terminals and servers. The server operation and maintenance platform 102 and the server database 103 can be implemented using independent servers or server clusters composed of multiple servers.
[0053] In one embodiment, such as Figure 2 As shown, a server management method is provided, which is applied to... Figure 1 Taking the server management platform 101 as an example, the method includes the following steps:
[0054] Step S201: Based on the scheduled task, compare the server configuration information of the server operation and maintenance platform 102 to determine the management type of the server to be managed; the server operation and maintenance platform 102 is a platform used in the financial data system to run and maintain the server to be managed.
[0055] The scheduled task involves the server management platform 101 performing a data comparison task at fixed intervals. The server maintenance platform 102 is an integrated server management technology platform for the financial data system. Calling its interface allows for command-line operations on server-level resources. The servers in server maintenance platform 102 are those currently running in the financial data system. There are also many servers not currently running. Server configuration information refers to the attribute data of the servers in server maintenance platform 102, such as server IP, hostname, server type, server specifications, maintenance responsibilities, and running status. The servers to be managed include those in server maintenance platform 102 and those in server management platform 101. Generally, the servers in server maintenance platform 102 include all servers in server management platform 101. However, sometimes some servers in server maintenance platform 102 may have been removed from server maintenance platform 102, but are still managed by server management platform 101. In this case, the server in server management platform 101 is not in server maintenance platform 102. Finally, the management type is the management type of server management platform 101. According to the comparison results, the management type can be pending management, pending modification, pending re-management, or pending deletion. The financial data system is a system used to manage financial business data.
[0056] Specifically, based on a scheduled task, the server configuration information in the server management platform 101 is compared with the server configuration information in the server operation and maintenance platform 102 to obtain the comparison result. Based on the comparison result, the management type of the server to be managed is determined.
[0057] In step S202, if the management type indicates that the server to be managed is to be included in the management system, the first configuration information corresponding to the server to be managed is obtained from the server operation and maintenance platform 102, and the second configuration information corresponding to the server to be managed is obtained from the server database 103. The first configuration information and the second configuration information are merged to obtain the configuration information corresponding to the server to be managed. The server database 103 is used to manage the data of all servers in the financial data system.
[0058] The term "to be managed" indicates that the server to be managed is not yet managed by the server management platform 101 and needs to be managed. The server database 103 manages data from all servers in the financial data system, recording configuration information for all servers, such as IP address, hostname, server type, server specifications, maintenance responsibilities, and operating status. The first configuration information is the configuration information of the server to be managed on the server maintenance platform 102, while the second configuration information is the configuration information of the server to be managed in the server database 103. The first configuration information contains the latest configuration information generated by the server maintenance platform 102 that has not yet been entered into the server database 103, and the second configuration information also contains configuration information not included in the first configuration information. The configuration information corresponding to the server to be managed is the result of merging the first and second configuration information.
[0059] Specifically, if the server to be managed is not managed by the server management platform 101, the management type indicates that the server to be managed is to be managed. Then, the first configuration information corresponding to the server to be managed is obtained from the server operation and maintenance platform 102, and the second configuration information corresponding to the server to be managed is obtained from the server database 103. The first configuration information and the second configuration information are merged to obtain the configuration information corresponding to the server to be managed. The first configuration information is completely retained, and the second configuration information is responsible for supplementing it. If the same item exists in the configuration information, the first configuration information shall prevail; if it does not exist in the first configuration information, the second configuration information shall prevail.
[0060] Step S203: Based on the configuration information, select manageable servers that meet the preset management conditions from the servers to be managed.
[0061] Among them, the preset management conditions are the types of servers that meet the preset management conditions, while the manageable servers are the servers that meet the preset management conditions and can be managed by the server management platform 101.
[0062] Specifically, obtain the server type of the currently managed server from the configuration information. If the server type matches the preset server type, then the currently managed server is a manageable server.
[0063] Step S204: Based on the configuration information, obtain the user information of the manageable server, and store the configuration information and user information of the manageable server.
[0064] The user information refers to the information about the user's operations on the server. For example, the user information can be the username, password, user login time, etc., and it is stored on the corresponding server to be managed.
[0065] Specifically, based on the configuration information, instructions are given to the server operation and maintenance platform 102 to obtain the user information of the manageable server through the server operation and maintenance platform 102 or directly from the manageable server, and the configuration information and user information of the manageable server are stored.
[0066] In the above server management method, the management type of the server to be managed is determined by comparing the server configuration information of the server operation and maintenance platform 102 based on a scheduled task. The server operation and maintenance platform 102 is a platform used in the financial data system to run and maintain the server to be managed. If the management type indicates that the server to be managed is to be included in the management system, the first configuration information corresponding to the server to be managed is obtained from the server operation and maintenance platform 102, and the second configuration information corresponding to the server to be managed is obtained from the server database 103. The first configuration information and the second configuration information are then merged to obtain the configuration information corresponding to the server to be managed. The server database 103 is used to manage the data of all servers in the financial data system. Based on the configuration information, servers that meet the preset management conditions are selected from the servers to be managed. Based on the configuration information, the user information of the servers that can be managed is obtained, and the configuration information and user information of the servers that can be managed are stored. This application determines the management type of the server to be managed in the server operation and maintenance platform 102 by periodically comparing the server configuration information of the server operation and maintenance platform 102. If the management type is to be included in the management, the configuration information of the server to be managed is obtained based on the server operation and maintenance platform 102 and the server database 103 of the financial data system. Then, the manageable server is selected from the servers to be managed according to the configuration information, and the user information of the manageable server is obtained according to the configuration information. Finally, the user information and configuration information of the manageable server are stored in the aforementioned server management platform 101, which enables unified management of the configuration information and user information of the server to be managed in the financial data system.
[0067] In one embodiment, such as Figure 3 As shown, obtaining user information for manageable servers based on configuration information includes the following steps:
[0068] Step S301: Obtain the server type corresponding to the manageable server from the configuration information.
[0069] Among them, the server type of the manageable server is the server type information of the managed server. This server type can be multiple server types, such as web server, Windows server, Unix server, etc.
[0070] Specifically, the server type information corresponding to the manageable server is obtained from the configuration information.
[0071] Step S302: If the server type is the first preset server type, a user information retrieval command is sent to the server operation and maintenance platform; the server operation and maintenance platform responds to the user information retrieval command, retrieves the corresponding user information from the manageable server, and returns the user information to the server management platform.
[0072] The first preset server type is a Windows server, and the user information acquisition command is a command generated by the server management platform 101 to acquire user information. The user information of the Windows server has a low level of confidentiality requirements and can be acquired directly without a password.
[0073] Specifically, such as Figure 4 As shown, if the manageable server is a Windows server 401, the server management platform 101 sends a user information retrieval command to the server operation and maintenance platform 102. After receiving the command, the server operation and maintenance platform 102 retrieves the user information from the Windows server 401 and then sends the user information back to the server management platform 101.
[0074] In this embodiment, the server management platform 101 sends a user information retrieval command to the server operation and maintenance platform 102. After receiving the command, the server operation and maintenance platform 102 retrieves the user information from the Windows server 401 and then sends the user information back to the server management platform 101. This method can accurately and efficiently retrieve the user information of the Windows server 401.
[0075] In one embodiment, obtaining user information for a manageable server based on configuration information further includes the following steps:
[0076] If the server type is the second preset server type, then obtain the pre-set target user information retrieval password associated with the manageable server, and a password change command for changing the original user information retrieval password of the manageable server to the target user information retrieval password; send the target user information retrieval password and the password change command to the server operation and maintenance platform; the server operation and maintenance platform responds to the password change command by changing the user information retrieval password of the manageable server from the original user information retrieval password to the target user information retrieval password; and retrieves user information from the manageable server based on the target user information retrieval password.
[0077] The second preset server type is a Unix server. The user information of this Unix server has a high degree of confidentiality and requires a password to be obtained. The user information acquisition password is the user information acquisition password preset by the server management platform 101. As for the change command, it is the command sent by the server management platform 101 to the server operation and maintenance platform 102 to change the Unix server user information acquisition password. Finally, the original user information acquisition password is the user information acquisition password of the Unix server before the change.
[0078] Specifically, such as Figure 4 As shown, if the manageable server is a Unix server 402, the server management platform 101 sends a change command and a pre-set user information retrieval password to the server operation and maintenance platform 102. The server operation and maintenance platform 102 changes the original user information retrieval password of the Unix server 402 to the preset user information retrieval password based on the change command. Then, the server management platform 101 retrieves the user information from the Unix server 402 using the preset user information retrieval password.
[0079] In this embodiment, the server operation and maintenance platform 102 changes the original user information retrieval password of the Unix server 402 to a preset user information retrieval password based on the change command. Then, the server management platform 101 retrieves user information from the Unix server 402 using the preset user information retrieval password, which can accurately and efficiently retrieve user information from the Unix server 402.
[0080] In one embodiment, such as Figure 5 As shown, the first configuration information and the second configuration information are merged to obtain the configuration information corresponding to the server to be managed, including the following steps:
[0081] Step S501: Obtain the server type of the server to be managed based on the first configuration information and / or the second configuration information.
[0082] Specifically, the server type of the server to be managed is obtained from the first configuration information or the second configuration information.
[0083] Step S502: Merge the first configuration information and the second configuration information to obtain the initial configuration information corresponding to the server to be managed.
[0084] The initial configuration information is the configuration information obtained by merging the first configuration information and the second configuration information.
[0085] Specifically, the first configuration information and the second configuration information are superimposed to obtain the initial configuration information, which can be a list.
[0086] Step S503: Based on the server type and initial configuration information, obtain the configuration information corresponding to the server to be managed.
[0087] Specifically, the server type and initial configuration information are combined to obtain the configuration information corresponding to the server to be managed, which can be a list.
[0088] In this embodiment, when the first configuration information and the second configuration information are merged, the server type of the server to be managed is added. The configuration information corresponding to the server to be managed obtained in this way can accurately filter out the manageable servers in subsequent operations.
[0089] In one embodiment, obtaining the server type of the server to be managed based on the first configuration information and / or the second configuration information includes the following steps:
[0090] If the server to be managed has a server type recorded in the first configuration information, then the server type of the server to be managed will be set to the server type recorded in the first configuration information; if the server to be managed does not have a server type recorded in the first configuration information, then the server type of the server to be managed will be set to the server type recorded in the second configuration information.
[0091] Specifically, if the type of server to be managed exists in the first configuration information, then the type of server to be managed shall be based on the server type in the first configuration information; if the type of server to be managed does not exist in the first configuration information, then the type of server to be managed shall be based on the server type in the second configuration information.
[0092] In this embodiment, the server type of the server to be managed is accurately determined by checking whether the server type exists in the first configuration information. If it exists, the server type in the first configuration information is used; if it does not exist, the server type in the second configuration information is used.
[0093] In one embodiment, selecting manageable servers that meet preset management criteria from the list of servers to be managed based on configuration information includes the following steps:
[0094] From the configuration information, obtain the server type and server running status of the server to be managed, and obtain the running status of the server operation and maintenance platform 102; if the server type of the server to be managed is a preset manageable server type, and the server running status is normal operation, and the running status of the server operation and maintenance platform 102 is normal operation, then the server to be managed is a manageable server.
[0095] The server running status refers to whether the server is running normally, and this server running status can be normal or abnormal. The manageable server types are the preset types of servers that can be managed. It should be noted that some types of servers do not support management.
[0096] Specifically, the server type, server running status, and server operation and maintenance platform 102 of the server to be managed are obtained. If the server type of the server to be managed is a preset manageable server type, and the server running status is normal operation, and the server operation and maintenance platform 102 is also normal operation, then the server to be managed is determined to be a manageable server.
[0097] In this embodiment, by determining the server type, server operating status, and server operation and maintenance platform 102 of the server to be managed, it is possible to accurately confirm whether the server to be managed is a manageable server.
[0098] In one embodiment, after obtaining the server type and server running status of the server currently under management, and the running status of the server operation and maintenance platform 102, the following steps are also included:
[0099] If the current server to be managed meets any of the conditions for being unmanageable, then the current server to be managed is determined to be an unmanageable server, and the steps of obtaining the user information of the current managed server based on the configuration information and storing the configuration information and user information of the current managed server are stopped. The unmanageable conditions include: the server type of the current server to be managed is not a preset manageable server type; the server is in an abnormal operating state; and the server operation and maintenance platform 102 is in an abnormal operating state.
[0100] Among them, the conditions under which a server cannot be managed are those conditions under which the server to be managed cannot be managed.
[0101] Specifically, if the server to be managed meets any of the conditions for not being managed, then the server to be managed is determined to be an unmanageable server.
[0102] In this embodiment, by setting the conditions for non-management, it is possible to accurately identify the servers that cannot be managed.
[0103] In one embodiment, after the server operation and maintenance platform 102 is found to be operating abnormally, the following steps are also included:
[0104] When the server operation and maintenance platform 102 recovers from abnormal operation to normal operation, if the server type of the server to be managed is a preset manageable server type and the server operation status is normal operation, the unmanageable server will be converted into a manageable server.
[0105] Specifically, if the server type of the server to be managed is a preset manageable server type and the server is running normally, but the server operation and maintenance platform 102 is not running normally, then the server to be managed is an unmanageable server. When the server operation and maintenance platform 102 returns to normal operation, the unmanageable server can be converted into a manageable server.
[0106] In this embodiment, by determining the server type, server operating status, and server operation and maintenance platform 102 of the server currently to be managed, it is possible to accurately determine whether an unmanageable server can be further made manageable.
[0107] In one embodiment, comparing the server configuration information of the server operation and maintenance platform 102 includes the following steps:
[0108] If the server operation and maintenance platform 102 has a number for the server to be managed, then the number is obtained from the server operation and maintenance platform 102; if the number already exists in the server management platform 101, then the historical configuration information of the server to be managed that already exists in the server management platform 101 is obtained, and the current configuration information corresponding to the server to be managed is obtained from the server operation and maintenance platform 102 and the server database 103; the historical identity identifier of the server to be managed is obtained from the historical configuration information, and the current identity identifier of the server to be managed is obtained from the current configuration information.
[0109] Specifically, the ID of the currently managed server is its unified identity ID within the financial data system, used to confirm its server identity. The historical configuration information refers to the configuration information already stored on the server management platform 101, while the current configuration information is the latest configuration information of the currently managed server in the server maintenance platform 102 and the server database 103. Finally, the identity identifier is the unique identifier of the currently managed server on the server maintenance platform 102, while the historical identity identifier is the identity identifier already stored on the server management platform 101, and the current configuration information is the identity identifier of the currently managed server on the server maintenance platform 102.
[0110] Specifically, if the server operation and maintenance platform 102 has the number of the server to be managed, the number of the server to be managed is obtained from the server operation and maintenance platform 102. If the number already exists in the server management platform 101, it means that the server to be managed has been managed. Then, the historical configuration information of the server to be managed that already exists in the server management platform 101 is obtained. The latest current configuration information corresponding to the server to be managed is obtained from the server operation and maintenance platform 102 and the server database 103. Then, the historical identity of the server to be managed is obtained from the historical configuration information, and the current identity of the server to be managed is obtained from the current configuration information.
[0111] In this embodiment, by comparing the server numbers of server management platform 101 and server operation and maintenance platform 102, the server management type can be further determined.
[0112] In one embodiment, determining the management type of the server to be managed includes the following steps:
[0113] If the server maintenance platform 102 has a number for the server to be managed, but the server management platform 101 does not, then the management type indicates that the server to be managed is to be added to the management system. If the historical identity identifier is different from the current identity identifier, then the management type indicates that the server to be managed is to be re-added to the management system. If the historical identity identifier of the server to be managed is the same as the current identity identifier, and there is abnormal data in the historical configuration information that is different from the current configuration information, then the management type indicates that the server to be managed is to be modified. If the server maintenance platform 102 does not have a number for the server to be managed, but the server management platform 101 has a number, then the management type indicates that the server to be managed is to be deleted.
[0114] Abnormal data refers to data in historical configuration information that differs from the current configuration information.
[0115] Specifically, if the server operation and maintenance platform 102 has a number for the server to be managed, but the server management platform 101 does not have a number, then the management type is determined to be pending management; if the historical identity identifier is different from the current identity identifier, then the management type is determined to be pending re-management; if the identity identifier of the server to be managed has not changed, but there is abnormal data in the historical configuration information that is different from the current configuration information, then the management type is pending modification; if the server operation and maintenance platform 102 does not have a number for the server to be managed, but the server management platform 101 has a number, then the management type is determined to be pending deletion.
[0116] In this embodiment, by determining whether the server operation and maintenance platform 102 has the above-mentioned number, determining whether the server management platform 101 has the above-mentioned number, and determining whether the historical identity identifier is the same as the current identity identifier, the server management type can be accurately determined.
[0117] In one embodiment, after determining the management type to indicate that the currently managed server needs to be re-managed, the following steps are also included:
[0118] Obtain the user information of the currently managed server and store the current configuration information and user information of the currently managed server; if the current configuration information and user information of the currently managed server are successfully stored, delete the historical configuration information and historical user information of the currently managed server on the server management platform 101.
[0119] Specifically, the current configuration information and user information of the server to be managed are stored. If the storage is successful, the historical configuration information and historical user information of the server to be managed on the server management platform 101 are deleted.
[0120] In this embodiment, by first managing the currently managed server and then deleting its historical data, the situation of deleting the historical data of the currently managed server but then being unable to re-manage it can be prevented. This allows for accurate and secure re-management of the currently managed server.
[0121] In one embodiment, after determining that the management type indicates that the current server to be managed needs to be modified, the following steps are also included: modifying the abnormal data in the historical configuration information according to the current configuration information of the current server to be managed.
[0122] Specifically, if the server management type is pending modification, a modification instruction is generated, which modifies the abnormal data in the historical configuration information to the corresponding part in the current configuration information based on the latest current configuration information.
[0123] In this embodiment, based on the current configuration information of the server to be managed, abnormal data in the historical configuration information can be accurately modified.
[0124] In one embodiment, after determining that the management type indicates that the currently managed server is to be deleted, the following steps are also included: deleting the historical configuration information and historical user information of the currently managed server in the server management platform 101.
[0125] Specifically, if the server management type is pending deletion, a deletion command is generated to delete the historical configuration information and historical user information of the currently managed server in the server management platform 101.
[0126] In this embodiment, by deleting the historical configuration information and historical user information of the currently managed server in the server management platform 101, the historical configuration information and historical user information of the removed server in the server operation and maintenance platform 102 can be deleted, and the removed server will no longer be managed.
[0127] In one application embodiment, a server management method is provided. By comparing the server configuration information of the server operation and maintenance platform in real time, four management types of the server are obtained: pending management, pending modification, pending re-management, and pending deletion. The corresponding server management is then performed, specifically including the following steps:
[0128] I. Pending Management
[0129] Data comparison logic: The server management platform and the server operation and maintenance platform (which provides an integrated management technology platform for the financial data system; calling its interface enables command operations on server-level servers) compare server information not found in the server management platform, resulting in result 1. The server management platform and the server database (which records configuration information for all servers in the bank, such as IP, hostname, server type, server specifications, operation and maintenance responsibilities, and running status) compare server information not found in the server management platform, resulting in result 2. Result 1 and result 2 are merged, associated according to the server's IP address, and the data information is enriched (i.e., deduplicated IP addresses are removed). From the merged result, servers to be managed in the "production" environment are selected as the configuration information table, and the following two columns are added to the configuration information table:
[0130] 1. Are the server information consistent? Compare the server types collected by the server operation and maintenance platform in the configuration information table with the server types collected by the server database to see if they are consistent.
[0131] 2. Server type support: If the server type collected by the server operation and maintenance platform in the configuration information table supports management, it is considered supported. If the server type information of the server operation and maintenance platform is empty, then check whether the server type information in the server database supports it (in principle, the server type information collected by the server operation and maintenance platform shall prevail first. If there is no server operation and maintenance platform, the server type information entered in the server database shall prevail).
[0132] After the above information is completed, a basic complete report will be generated and available for download. This basic complete report will also be split into the following three reports, which are also available for download:
[0133] Report 1: If the server type is supported, and the server operation and maintenance platform is running normally (i.e., the server has a unit program that can be managed and operated by the server operation and maintenance platform, and the server can be operated, managed and monitored through the server operation and maintenance platform), then it is considered to be manageable (i.e., the server information that should actually be automatically managed).
[0134] Report 2: Filter by "Server type support" column. If not supported, the server PING result will be provided (technically, management is not supported).
[0135] Report 3: Filter by "Server type support" column. If supported, but the server operation and maintenance platform is not running normally, or the server operation and maintenance platform is not installed, the server PING result is attached (technically manageable, but temporarily due to abnormal server operation and maintenance platform status or not installed, the management process will be promoted later).
[0136] If the "to be included in management" switch in the system parameters is turned on, all information in Report 1 will be directly included in management, and the inclusion time and inclusion result will be supplemented.
[0137] Server user information retrieval and server management methods are broadly categorized into two types based on the operating system version: Windows servers and Unix servers. If the server to be managed is a Windows server, the user list information (such as usernames and passwords) is directly read by calling the server operation and maintenance platform's interface, and Windows users are then added to the management list. If the server to be managed is a Unix server, the Unix administrator password is first reset through the server operation and maintenance platform's interface, and then the administrator user connects to the target server (the server to be managed) to extract and add Unix users.
[0138] After the above automatic server management operation, the server configuration information and user list information are saved to the server management platform application database, thus completing one automatic server management task.
[0139] 2. To be revised
[0140] Data comparison logic: Data from the server management platform and the server operations and maintenance platform are compared. If the agent ID (the unique identifier of the server operations and maintenance platform program running on that server) is the same, but the IP address or server type has changed, it is considered to need modification. All information from the comparison results is displayed, and reports can be downloaded. An automatic modification switch has been added to the system parameter configuration of automated tasks: If the automatic modification switch is enabled, the latest server information will be directly updated after the above data comparison is completed.
[0141] 3. Pending re-management
[0142] Data comparison logic: If the server IP addresses are the same, but the agentID (unique identifier of the server operation and maintenance platform) has changed, then re-management is required. Reports are generated based on whether the server operation and maintenance platform is functioning normally. An automatic modification switch has been added to the system parameter configuration of automated tasks: if enabled, servers with normal operation and maintenance platform status will be directly re-managed.
[0143] The business logic for re-managing servers is as follows: prioritize managing new servers. If the management is successful (both server addition and account extraction are successful, then automatic management is considered successful), the servers saved in the server management platform are placed in the recycle bin. If the management fails, no operations are performed on the existing servers in the server management platform.
[0144] 4. To be deleted (use in conjunction with the server recycle bin to prevent accidental deletion)
[0145] The comparison logic is as follows: The server management platform and the server operations and maintenance platform are compared. Servers that exist in the server management platform but not in the server operations and maintenance platform are considered to be deleted. Simultaneously, relevant information (such as whether the server database has been entered, whether the server database is in production / online status, and whether the PING result is successful, to determine if the server is still in use) is added to the deletion list. According to the deletion rules in the system parameters, servers that meet the criteria are considered "pending deletion," while information on servers that do not meet the criteria is used to generate a report.
[0146] All the above information is updated daily, and the results of the previous day will be displayed in the historical reports. Any actions to trigger switches to open / close or modify related parameters require two-person verification (entering the unified authentication number and password of another user administrator) before the operation takes effect.
[0147] In addition, a task list is set up on the front end to view the execution status of all automated tasks and to support termination. Tasks need the following configuration items: Operation type: pending management / pending modification / pending re-management / pending deletion; Execution type: single execution / periodic execution, and execution time; Execution content: Can be scheduled to execute based on data that meets the conditions of the operation type, or can be customized based on data manually imported from an Excel spreadsheet, with customizable execution content and time; The scheduled task list needs to display: scheduled task operation type, single or periodic execution, execution time, and execution content type (data that meets the conditions after manual import or system comparison), as well as a task cancellation button.
[0148] In the aforementioned server management method, the management type of the server managed in the server operation and maintenance platform is determined by periodically comparing the server configuration information. If the management type is "to be managed," the server's user information and configuration information are stored in the aforementioned server management platform. If the management type is "to be re-managed," the server is re-managed, and the server's original historical configuration information and historical user information are deleted. If the management type is "to be modified," the corresponding server configuration information is modified. If the management type is "to be deleted," the server's historical configuration information and historical user information are deleted. The above method can uniformly manage the configuration information and user information of servers to be managed in the financial data system.
[0149] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0150] Based on the same inventive concept, this application also provides a server management device for implementing the server management method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more server management device embodiments provided below can be found in the limitations of the server management method described above, and will not be repeated here.
[0151] In one embodiment, such as Figure 6 As shown, a server management device is provided, including: a management type determination module 601, a configuration information determination module 602, a server filtering module 603, and a storage module 604, wherein:
[0152] The management type determination module 601 is used to determine the management type of the server to be managed by comparing the server configuration information of the server operation and maintenance platform 102 based on a scheduled task; the server operation and maintenance platform 102 is a platform used in the financial data system to run and maintain the server to be managed.
[0153] The configuration information determination module 602 is used to obtain the first configuration information corresponding to the server to be managed from the server operation and maintenance platform 102 and the second configuration information corresponding to the server to be managed from the server database 103 if the management type indicates that the server to be managed is to be included in the management, and to merge the first configuration information and the second configuration information to obtain the configuration information corresponding to the server to be managed; the server database 103 is used to manage the data of all servers in the financial data system;
[0154] The server filtering module 603 is used to filter out manageable servers that meet the preset management conditions from the servers to be managed based on the configuration information.
[0155] Storage module 604 is used to obtain user information of the manageable server based on configuration information, and store the configuration information and user information of the manageable server.
[0156] In one embodiment, the storage module 604 is further configured to obtain the server type corresponding to the manageable server from the configuration information; if the server type is a first preset server type, a user information acquisition command is sent to the server operation and maintenance platform 102; the server operation and maintenance platform 102 is configured to respond to the user information acquisition command, acquire the corresponding user information from the manageable server, and return the user information to the server management platform 101.
[0157] In one embodiment, the storage module 604 is further configured to, if the server type is a second preset server type, obtain a pre-set target user information acquisition password associated with the manageable server, and a password change command to change the original user information acquisition password of the manageable server to the target user information acquisition password; send the target user information acquisition password and the password change command to the server operation and maintenance platform 102; the server operation and maintenance platform 102 is configured to, in response to the password change command, change the user information acquisition password of the manageable server from the original user information acquisition password to the target user information acquisition password; and obtain user information from the manageable server based on the target user information acquisition password.
[0158] In one embodiment, the configuration information determination module 602 is further configured to obtain the server type of the server to be managed based on the first configuration information and / or the second configuration information; merge the first configuration information and the second configuration information to obtain the initial configuration information corresponding to the server to be managed; and obtain the configuration information corresponding to the server to be managed based on the server type and the initial configuration information.
[0159] In one embodiment, the configuration information determination module 602 is further configured to, if the server to be managed has a server type recorded in the first configuration information, set the server type of the server to be managed to the server type in the first configuration information; if the server to be managed has no server type recorded in the first configuration information, set the server type of the server to be managed to the server type in the second configuration information.
[0160] In one embodiment, the server filtering module 603 is further configured to obtain the server type and server running status of the current server to be managed from the configuration information, and obtain the running status of the server operation and maintenance platform 102; if the server type of the current server to be managed is a preset manageable server type, and the server running status is normal operation, and the running status of the server operation and maintenance platform 102 is normal operation, then the current server to be managed is a manageable server.
[0161] In one embodiment, the server filtering module 603 is further configured to determine that the current server to be managed is an unmanageable server if the current server to be managed meets any of the unmanageable conditions for the current server to be managed, and to stop executing the steps of obtaining the user information of the current managed server based on the configuration information and storing the configuration information and user information of the current managed server; wherein, the unmanageable conditions include: the server type of the current server to be managed is not a preset manageable server type; the server is in an abnormal operating state; the server operation and maintenance platform 102 is in an abnormal operating state.
[0162] In one embodiment, the server screening module 603 is further configured to convert an unmanageable server into a manageable server when the server operation and maintenance platform 102 recovers from an abnormal operation to a normal operation. If the server type of the currently managed server is a preset manageable server type and the server operation status is normal operation, the unmanageable server is converted into a manageable server.
[0163] In one embodiment, the management type determination module 601 is further configured to: if the server operation and maintenance platform 102 has a number for the server to be managed, then obtain the number from the server operation and maintenance platform 102; if the number already exists in the server management platform 101, then obtain the historical configuration information of the server to be managed that already exists in the server management platform 101, and obtain the current configuration information corresponding to the server to be managed from the server operation and maintenance platform 102 and the server database 103; obtain the historical identity identifier of the server to be managed from the historical configuration information, and obtain the current identity identifier of the server to be managed from the current configuration information.
[0164] In one embodiment, the management type determination module 601 is further configured to: if the server operation and maintenance platform 102 has a number for the currently managed server, and the server management platform 101 does not have a number, then determine that the management type indicates the currently managed server is to be included in the management; if the historical identity identifier is different from the current identity identifier, then determine that the management type indicates the currently managed server is to be re-managed; if the historical identity identifier of the currently managed server is the same as the current identity identifier, and there is abnormal data in the historical configuration information that is different from the current configuration information, then determine that the management type indicates the currently managed server is to be modified; if the server operation and maintenance platform 102 does not have a number for the currently managed server, and the server management platform 101 has a number, then determine that the management type indicates the currently managed server is to be deleted.
[0165] In one embodiment, the server management device further includes a re-management module, which is used to obtain the user information of the currently managed server and store the current configuration information and user information of the currently managed server; if the current configuration information and user information of the currently managed server are successfully stored, the historical configuration information and historical user information of the currently managed server on the server management platform 101 are deleted.
[0166] In one embodiment, the server management device further includes a modification module, which is further used to modify abnormal data in historical configuration information according to the current configuration information of the server to be managed.
[0167] In one embodiment, the server management device further includes a deletion module, which is used to delete the historical configuration information and historical user information of the currently managed server in the server management platform 101.
[0168] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a server management method. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0169] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0170] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0171] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0172] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0173] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0174] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can 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 can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0175] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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.
[0176] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A server management method, characterized in that, A server management platform applied to a financial data system, the method comprising: Based on scheduled tasks, the server configuration information of the server operation and maintenance platform is compared to determine the management type of the server to be managed; the server operation and maintenance platform is the platform used in the financial data system to run and maintain the server to be managed. If the management type indicates that the server to be managed is to be included in the management system, then the first configuration information corresponding to the server to be managed is obtained from the server operation and maintenance platform, and the second configuration information corresponding to the server to be managed is obtained from the server database. The first configuration information and the second configuration information are then merged to obtain the configuration information corresponding to the server to be managed. The server database is used to manage the data of all servers in the financial data system. Based on the configuration information corresponding to the server to be managed, select the server that meets the preset management conditions from the server to be managed. Based on the configuration information corresponding to the server to be managed, the user information of the manageable server is obtained, and the configuration information and user information of the manageable server are stored.
2. The method according to claim 1, characterized in that, The step of obtaining the user information of the manageable server based on the configuration information corresponding to the server to be managed includes: Obtain the server type corresponding to the manageable server from the configuration information corresponding to the server to be managed; If the server type is a first preset server type, a user information retrieval command is sent to the server operation and maintenance platform; the server operation and maintenance platform is used to respond to the user information retrieval command, retrieve the corresponding user information from the manageable server, and return the user information to the server management platform.
3. The method according to claim 2, characterized in that, The step of obtaining the user information of the manageable server based on the configuration information corresponding to the server to be managed also includes: If the server type is the second preset server type, then obtain the pre-set target user information acquisition password associated with the manageable server, and a password change command for changing the original user information acquisition password of the manageable server to the target user information acquisition password. The target user information retrieval password and the password change command are sent to the server operation and maintenance platform; the server operation and maintenance platform is used to respond to the password change command by changing the user information retrieval password of the manageable server from the original user information retrieval password to the target user information retrieval password. The password is obtained based on the target user information, and the user information is obtained from the managed server.
4. The method according to claim 1, characterized in that, The step of merging the first configuration information and the second configuration information to obtain the configuration information corresponding to the server to be managed includes: Based on the first configuration information and / or the second configuration information, obtain the server type of the server to be managed; The first configuration information and the second configuration information are combined to obtain the initial configuration information corresponding to the server to be managed. Based on the server type and the initial configuration information, the configuration information corresponding to the server to be managed is obtained.
5. The method according to claim 4, characterized in that, The step of obtaining the server type of the server to be managed based on the first configuration information and / or the second configuration information includes: If the server to be managed has a server type recorded in the first configuration information, then the server type of the server to be managed is set to the server type in the first configuration information; If the server to be managed does not have a server type recorded in the first configuration information, then the server type of the server to be managed is set to the server type in the second configuration information.
6. The method according to claim 1, characterized in that, The step of selecting manageable servers that meet preset management conditions from the servers to be managed based on the configuration information corresponding to the servers to be managed includes: From the configuration information corresponding to the server to be managed, obtain the server type and server running status of the current server to be managed, and obtain the running status of the server operation and maintenance platform; If the server type of the currently managed server is a preset manageable server type, and the server is running normally, and the server operation and maintenance platform is running normally, then the currently managed server is the manageable server.
7. The method according to claim 6, characterized in that, After obtaining the server type and server operating status of the currently managed server, and the operating status of the server operation and maintenance platform, the method further includes: If the current server to be managed meets any one of the conditions for the server to be managed to be unmanaged, then the current server to be managed is determined to be an unmanaged server, and the steps of obtaining the user information of the current server to be managed based on the configuration information corresponding to the server to be managed and storing the configuration information and user information of the current server to be managed are stopped. The conditions under which a system cannot be piped include: The server type of the currently managed server is not a preset manageable server type; The server is not operating normally. The server operation and maintenance platform is not operating normally.
8. The method according to claim 7, characterized in that, After the server operation and maintenance platform is declared to be in an abnormal operating state, the following steps are also included: When the server operation and maintenance platform recovers from abnormal operation to normal operation, if the server type of the currently managed server is a preset manageable server type and the server operation status is normal operation, the unmanageable server is converted into the manageable server.
9. The method according to claim 1, characterized in that, The server configuration information of the comparison server operation and maintenance platform includes: If the server operation and maintenance platform has the number of the server to be managed, then obtain the number from the server operation and maintenance platform; If the number already exists on the server management platform, then obtain the historical configuration information of the currently managed server that already exists on the server management platform, and obtain the current configuration information corresponding to the currently managed server from the server operation and maintenance platform and the server database; The historical identity identifier of the currently managed server is obtained from the historical configuration information, and the current identity identifier of the currently managed server is obtained from the current configuration information.
10. The method according to claim 9, characterized in that, Determining the management type of the server to be managed includes: If the server operation and maintenance platform has a number for the server to be managed, and the server management platform does not have the number, then the management type indicates that the server to be managed is to be included in the management. If the historical identity identifier is different from the current identity identifier, then the management type indicates that the currently managed server needs to be re-managed; If the historical identity of the currently managed server is the same as the current identity, and there is abnormal data in the historical configuration information that is different from the current configuration information, then the management type indicates that the currently managed server needs to be modified. If the server operation and maintenance platform does not have the ID of the currently managed server, but the server management platform has the ID, then the management type indicates that the currently managed server is to be deleted.
11. The method according to claim 10, characterized in that, After determining that the management type indicates that the currently managed server needs to be re-managed, the process further includes: Obtain the user information of the currently managed server, and store the current configuration information and user information of the currently managed server; If the current configuration information and user information of the server to be managed are successfully stored, then the historical configuration information and historical user information of the server to be managed on the server management platform will be deleted.
12. The method according to claim 10, characterized in that, After determining that the management type indicates that the currently managed server needs to be modified, the process further includes: Based on the current configuration information of the server to be managed, modify the abnormal data in the historical configuration information.
13. The method according to claim 10, characterized in that, After determining that the management type indicates that the currently managed server is to be deleted, the process further includes: Delete the historical configuration information and historical user information of the currently managed server in the server management platform.
14. A server management device, characterized in that, The device includes: The management type determination module is used to determine the management type of the server to be managed by comparing the server configuration information of the server operation and maintenance platform based on a scheduled task; the server operation and maintenance platform is the platform used in the financial data system to run and maintain the server to be managed. The configuration information determination module is used to, if the management type indicates that the server to be managed is to be included in the management system, obtain first configuration information corresponding to the server to be managed from the server operation and maintenance platform, and obtain second configuration information corresponding to the server to be managed from the server database, and merge the first configuration information and the second configuration information to obtain the configuration information corresponding to the server to be managed; the server database is used to manage the data of all servers in the financial data system; The server filtering module is used to filter out manageable servers that meet the preset management conditions from the servers to be managed based on the configuration information corresponding to the servers to be managed. The storage module is used to obtain the user information of the manageable server based on the configuration information corresponding to the server to be managed, and to store the configuration information and user information of the manageable server.
15. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 13.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 13.
17. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Server monitoring list updating method and apparatus
CN106549781A
Server batch operation and maintenance method and device
CN115373848A