Method and apparatus for performing change operation on server, medium and device
By deploying front-end services and SD-WAN networks on the operations and maintenance terminal, automatic authorization and simplified processes for server change operations are achieved, solving the inefficiency problem caused by operations and maintenance personnel switching between multiple systems and improving operations and maintenance efficiency.
Patent Information
- Application Number
- CN202410599320.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2026-01-13
- Estimated Expiration
- 2044-05-15
AI Technical Summary
Maintenance personnel need to switch between multiple systems to make changes during server maintenance, resulting in low maintenance efficiency.
By deploying a front-end service on the operation and maintenance terminal, and utilizing the SD-WAN network, permission query, application, and modification operations are realized, simplifying the operation process for operation and maintenance personnel on the operation and maintenance terminal page, allowing them to directly perform permission query, application, and modification operations on the page.
It improves operational efficiency, simplifies the authorization process for operations and maintenance personnel, reduces the direct application steps for authorized services, and enhances the ease and efficiency of operations and maintenance.
Smart Images

Figure CN118474201B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of server change operation technology, and in particular to a method, apparatus, medium, and device for performing change operations on a server. Background Technology
[0002] Currently, when maintenance personnel need to make changes to servers during server maintenance, they need to switch between multiple systems to make these changes. The whole process is cumbersome and the maintenance efficiency is low. Summary of the Invention
[0003] To address at least one of the above-mentioned technical problems, embodiments of the present invention provide a method, apparatus, medium, and device for performing modification operations on a server.
[0004] According to a first aspect, the method for performing changes to a server provided in the embodiments of the present invention is executed by a front-end service deployed on an operation and maintenance terminal, the method comprising:
[0005] In response to the permission query operation performed by the operation and maintenance personnel on the operation and maintenance terminal page, a permission query request is sent to the backend service, so that the backend service forwards the received permission query request to the permission service; wherein, when the permission query request is received, the permission service is used to query the server information for which the operation and maintenance personnel have the permission to change operations, obtain the query result, and feed back the query result to the backend service, so that the backend service feeds back the query result to the frontend service;
[0006] Receive the query results returned by the backend service;
[0007] The query results will be displayed on the maintenance terminal page;
[0008] In response to the operation and maintenance personnel triggering a change operation on one of the servers with change operation permissions, the server is designated as the first target server, and the user logs into the first target server via the SD-WAN network.
[0009] After logging into the first target server, the first change operation control information is generated based on the change operation information of the first target server by the operation and maintenance personnel on the operation and maintenance terminal page;
[0010] The first change operation control information is sent to the first target server so that the first target server performs the corresponding change operation and sends a message to the front-end service after the change operation is completed.
[0011] In one embodiment, the method provided by this invention may further include:
[0012] after receiving the change operation execution completed message fed back by the first target server, an execution information filling page is provided to enable the operation and maintenance personnel to fill in corresponding first execution information on the execution information filling page; wherein the first execution information comprises a change operation time and a change operation result of the first target server;
[0013] in response to a triggering operation of an execution change button on the execution information filling page by the operation and maintenance personnel, a first execution change request is generated according to the first execution information, and the first execution change request is sent to the backend service, so that the backend service checks the first execution information in the first execution change request when receiving the first execution change request, records after the check is passed, obtains a first record result, and returns the first record result to the front-end service;
[0014] the first record result fed back by the backend service is received;
[0015] the first record result is displayed on the operation and maintenance terminal page.
[0016] In one embodiment, the method provided by the embodiment of the application can further include:
[0017] after receiving the change operation execution completed message fed back by the first target server, the connection between the operation and maintenance terminal and the first target server is disconnected.
[0018] In one embodiment, the method provided by the embodiment of the application can further include:
[0019] in response to a triggering operation of a permission application button of a second target server by the operation and maintenance personnel, a permission application request is generated, and the permission application request is sent to the backend service, so that the backend service sends the permission application request to the permission service when receiving the permission application request; wherein the second target server is one server other than the servers having change operation permissions of the operation and maintenance personnel, the permission service connects the SD-WAN network between the operation and maintenance terminal and the second target server when receiving the permission application request, and returns a successful application message to the backend service, so that the backend service returns the successful application message to the front-end service;
[0020] the successful application message returned by the backend service is received;
[0021] in response to a triggering operation of a change operation on the second target server by the operation and maintenance personnel, the second target server is logged in through the SD-WAN network.
[0022] After logging into the second target server, based on the change operation information of the second target server by the operation and maintenance personnel on the operation and maintenance terminal page, second change operation control information is generated and sent to the second target server so that the second target server performs the corresponding change operation. After the change operation is completed, a change operation completion message is sent back to the front-end service.
[0023] In one embodiment, the method provided by this invention may further include:
[0024] After receiving the message from the second target server that the change operation has been completed, an execution information entry page is provided so that the operation and maintenance personnel can enter the corresponding second execution information on the execution information entry page; wherein, the second execution information includes the time and result of the change operation on the second target server;
[0025] In response to the operation and maintenance personnel triggering the execution change button on the execution information filling page, a second execution change request is generated based on the second execution information, and the second execution change request is sent to the backend service. When the backend service receives the second execution change request, it verifies the second execution information in the second execution change request, records it after the verification is successful, obtains a second recording result, and returns the second recording result to the frontend service.
[0026] Receive the second record result fed back by the backend service;
[0027] The second recorded result is displayed on the operation and maintenance terminal page.
[0028] In one embodiment, the method provided by this invention may further include:
[0029] After receiving a message from the second target server indicating that the change operation has been completed, the connection between the maintenance terminal and the second target server is disconnected.
[0030] In one embodiment, the method provided by this invention may further include:
[0031] The change operation includes at least one of upgrading the program, switching the network, and backing up the database.
[0032] According to a second aspect, the apparatus for performing modification operations on a server provided in the embodiments of the present invention is deployed on a front-end service located on an operation and maintenance terminal, the apparatus comprising:
[0033] The first query module is used to respond to the permission query operation of the operation and maintenance personnel on the operation and maintenance terminal page, and send a permission query request to the backend service, so that the backend service forwards the received permission query request to the permission service; wherein, when the permission query request is received, the permission service is used to query the server information that the operation and maintenance personnel have the permission to change operations, obtain the query result, and feed the query result back to the backend service, so that the backend service feeds the query result back to the frontend service;
[0034] The first receiving module is used to receive the query results fed back by the backend service;
[0035] The first display module is used to display the query results on the operation and maintenance terminal page;
[0036] The first login module is used to respond to the operation triggered by the maintenance personnel to perform a change operation on one of the servers with change operation permissions, to take that server as the first target server, and to log in to the first target server through the SD-WAN network.
[0037] The first generation module is used to generate first change operation control information based on the change operation information of the first target server by the operation and maintenance personnel on the operation and maintenance terminal page after logging into the first target server.
[0038] The first control module is used to send the first change operation control information to the first target server so that the first target server performs the corresponding change operation, and after the change operation is completed, to send a message to the front-end service that the change operation has been completed.
[0039] According to a third aspect, embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to perform the method provided in the first aspect.
[0040] According to a fourth aspect, the computing device provided in the embodiments of the present invention includes a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, it implements the method provided in the first aspect.
[0041] The method, apparatus, medium, and device for performing changes to a server provided in this invention have the following beneficial effects:
[0042] (1) Operations personnel perform permission query operations on the operations and maintenance terminal page. The front-end service then sends a permission query request to the permission service through the back-end service. The permission service performs the permission query and then feeds back the query results to the front-end service through the back-end service. This allows operations personnel to know their permissions. If they need to make changes to the first target server within their permissions, they can do so directly on the operations and maintenance terminal page. The front-end service will generate first change operation control information based on the user's operation and send it to the first target server. The first target server can then execute the corresponding change operation and, after the change operation is completed, send a message to the front-end service indicating that the change operation has been completed. This completes the change operation to the first target server within their permissions. Throughout the process, operations personnel only need to click the permission query button on the operations and maintenance terminal to make changes to the first target server. This demonstrates the simplicity of the operation and improves operational efficiency.
[0043] (2) In one embodiment, if an operations and maintenance (O&M) personnel want to make changes to a second target server beyond their authorized permissions, the front-end service will send a permission request to the permission service through the back-end service. Upon receiving the permission request, the permission service will establish an SD-WAN connection between the O&M terminal and the second target server. This allows the O&M personnel to make changes to the second target server directly on the O&M terminal page. The front-end service will then send second change operation control information to the second target server, which will then perform the corresponding change operation. The entire process requires only the O&M personnel to trigger the "Request Permission" button on the O&M terminal page and then make the change to the second target server. The operation is very simple, and the O&M personnel do not need to separately request permissions from the permission service; they can directly request permissions on the O&M terminal page, simplifying the authorization process and improving O&M efficiency. Attached Figure Description
[0044] Figure 1 This is a flowchart illustrating a method for performing changes on a server according to an embodiment of the present invention.
[0045] Figure 2 This is a structural block diagram of a device for performing modification operations on a server according to an embodiment of the present invention. Detailed Implementation
[0046] In a first aspect, embodiments of the present invention provide a method for performing modification operations on a server, the method being executed by a front-end service deployed on an operation and maintenance terminal.
[0047] See Figure 1 The method includes the following steps S110 to S160:
[0048] S110. In response to the permission query operation performed by the operation and maintenance personnel on the operation and maintenance terminal page, a permission query request is sent to the backend service, so that the backend service forwards the received permission query request to the permission service; wherein, when the permission query request is received, the permission service is used to query the server information for which the operation and maintenance personnel have change operation permissions, obtain the query result, and feed back the query result to the backend service, so that the backend service feeds back the query result to the frontend service;
[0049] The embodiments of the present invention involve front-end services, back-end services, permission services, servers, etc.
[0050] In a real-world scenario, when an operations and maintenance (O&M) user clicks "Permission Query" on the O&M terminal page, the front-end service sends a permission query request to the back-end service. Upon receiving the request, the back-end service forwards it to the permission service. The permission service then queries the O&M user's permissions to determine which servers the user has the authority to modify—in other words, which servers the user is currently authorized to modify. The permission service then returns the query results to the back-end service, which in turn sends the results back to the front-end service.
[0051] S120. Receive the query result fed back by the backend service;
[0052] S130. Display the query results on the maintenance terminal page;
[0053] As can be seen, the front-end service receives the query results from the back-end service and then displays the results on the operations and maintenance terminal page, at which point operations and maintenance personnel can understand their permissions.
[0054] S140. In response to the operation triggered by the maintenance personnel to perform a change operation on one of the servers with change operation permissions, the server is designated as the first target server, and the user logs into the first target server through the SD-WAN network.
[0055] In other words, if an operations and maintenance (O&M) personnel need to make changes to a server within their authorized scope, they can trigger the change operation button for that server on the O&M terminal page, designate that server as the primary target server, and then log in to the primary target server via the SD-WAN network.
[0056] S150. After logging into the first target server, generate first change operation control information based on the change operation information of the first target server by the operation and maintenance personnel on the operation and maintenance terminal page.
[0057] S160. The first change operation control information is sent to the first target server so that the first target server performs the corresponding change operation, and after the change operation is completed, the change operation is sent back to the front-end service with a message indicating that the change operation has been completed.
[0058] In other words, after the operations and maintenance personnel log in to the first target server, they can perform modification operations on the first target server through the operations and maintenance terminal page. At this time, the front-end service will generate first modification operation control information based on the modification operation information of the operations and maintenance personnel, and then send the first modification operation control information to the first target server. When the first target server receives the first modification operation control information, it performs the corresponding modification operation according to the first modification operation control information. After the modification operation is completed, the first target server will send a message to the front-end service to indicate that the modification operation on the first target server has been completed, thus informing the operations and maintenance personnel that the modification operation on the first target server has been completed.
[0059] In one embodiment, the method provided by the present invention may further include S170 to S200:
[0060] S170. After receiving the message from the first target server that the change operation has been completed, an execution information filling page is provided so that the operation and maintenance personnel can fill in the corresponding first execution information on the execution information filling page; wherein, the first execution information includes the time and result of the change operation on the first target server;
[0061] In other words, after the first target server completes the change operation and sends the corresponding message feedback to the front-end service, the operations and maintenance personnel can fill in the first execution information corresponding to the first target server on the execution information filling page provided by the operations and maintenance terminal. This information includes, for example, the change operation time and change operation result of the first target server.
[0062] S180. In response to the operation and maintenance personnel triggering the execution change button on the execution information filling page, a first execution change request is generated according to the first execution information, and the first execution change request is sent to the backend service, so that when the backend service receives the first execution change request, it verifies the first execution information in the first execution change request, records it after the verification is passed, obtains a first recording result, and returns the first recording result to the frontend service.
[0063] In other words, after the operations and maintenance personnel fill in the initial execution information on the execution information entry page, they can trigger the execution change button on the page. The front-end service then generates a first execution change request based on the initial execution information and sends it to the back-end service. Upon receiving the first execution change request, the back-end service verifies the initial execution information within the request, such as verifying the validity of the information. If the verification passes, the back-end service records the initial execution information, obtaining the first record result, which indicates whether the recording operation was successful. The back-end service then returns the first record result to the front-end service.
[0064] S190, Receive the first record result fed back by the backend service;
[0065] S200. Display the first recorded result on the operation and maintenance terminal page.
[0066] That is, after the front-end service receives the first record result, it will display the first record result on the operation and maintenance terminal page, so that the operation and maintenance personnel can know whether the first execution information has been successfully recorded by the back-end service.
[0067] As can be seen, the backend service's logging function can reveal which servers the operations and maintenance personnel have modified and what changes they have made to the servers, as well as the current status of each server, facilitating future information retrieval.
[0068] In one embodiment, the method provided by this invention may further include:
[0069] After receiving a message from the first target server indicating that the change operation has been completed, the connection between the maintenance terminal and the first target server is disconnected.
[0070] As can be seen, once the operations and maintenance personnel have performed changes on the first target server and the first target server has responded with a message indicating that the changes have been completed, the operations and maintenance work on the first target server is finished. At this point, disconnecting the connection between the operations and maintenance terminal and the first target server can save network overhead.
[0071] In one embodiment, the method provided by the present invention may further include S210 to S240:
[0072] S210. In response to the operation and maintenance personnel triggering the permission request button on the second target server, a permission request request is generated and sent to the backend service, so that when the backend service receives the permission request request, it sends the permission request request to the permission service; wherein, the second target server is a server other than the servers for which the operation and maintenance personnel have change operation permissions, and when the permission service receives the permission request request, it establishes the SD-WAN network between the operation and maintenance terminal and the second target server, and returns a successful request message to the backend service, so that the backend service returns the successful request message to the frontend service;
[0073] In a real-world scenario, if an operations and maintenance (O&M) personnel want to make changes to a server outside their authorized permissions—that is, a server other than those servers for which the user has permission to make changes—then they need to grant the O&M personnel the necessary permissions. Therefore, the O&M personnel trigger a permission request button on the O&M terminal page, and the front-end service generates a permission request, which is then sent to the back-end service. This server is the second target server. When the back-end service receives the permission request, it forwards it to the permission service. Upon receiving the permission request, the permission service establishes an SD-WAN connection between the O&M terminal and the second target server, thus granting the O&M personnel the permission to make changes to the second target server. The permission service then returns a success message to the back-end service, which in turn returns a success message to the front-end service.
[0074] S220. Receive the message from the backend service indicating that the application was successful;
[0075] S230. In response to the triggering operation of the maintenance personnel to perform a change operation on the second target server, log in to the second target server through the SD-WAN network;
[0076] In other words, after receiving a successful application message from the backend service, the frontend service can display this message on the operations and maintenance terminal page, informing operations and maintenance personnel that they now have the authority to modify the second target server. At this point, the operations and maintenance personnel can trigger the modification operation button for the second target server on the operations and maintenance terminal page, which will redirect them to the login page of the second target server, allowing them to log in.
[0077] S240. After logging into the second target server, based on the change operation information of the second target server by the operation and maintenance personnel on the operation and maintenance terminal page, generate second change operation control information, send the second change operation control information to the second target server so that the second target server performs the corresponding change operation, and after the change operation is completed, send a message to the front-end service that the change operation has been completed.
[0078] In other words, after the operations and maintenance personnel log in to the second target server through the operations and maintenance terminal page, they will perform modification operations on the second target server through the terminal. The front-end service will then generate corresponding second modification operation control information based on the modification operation information and send it to the second target server. The second target server will then perform the modification operation according to the second modification operation control information. After the modification operation is completed, the second target server will return a message indicating that the modification operation has been completed to the front-end service, thus achieving control over the modification operation on the second target server.
[0079] Furthermore, the method provided in this embodiment of the invention may further include S250 to S280:
[0080] S250. After receiving the message from the second target server that the change operation has been completed, an execution information filling page is provided so that the operation and maintenance personnel can fill in the corresponding second execution information on the execution information filling page; wherein, the second execution information includes the time and result of the change operation on the second target server;
[0081] In other words, after the front-end service receives the message from the second target server that the change operation has been completed, the front-end service will provide an execution information entry page on the operation and maintenance terminal. This allows operation and maintenance personnel to enter the second execution information on the execution information entry page, such as the change operation time and change operation result of the second target server.
[0082] S260. In response to the operation and maintenance personnel triggering the execution change button on the execution information filling page, a second execution change request is generated based on the second execution information, and the second execution change request is sent to the backend service, so that when the backend service receives the second execution change request, it verifies the second execution information in the second execution change request, records it after the verification is passed, obtains a second recording result, and returns the second recording result to the frontend service;
[0083] That is, after the operations and maintenance personnel fill in the second execution information, the execution change button will be triggered. Then, the front-end service will generate a second execution change request based on the second execution information and send the second execution change request to the back-end service. When the back-end service receives the second execution change request, it will verify the second execution information in the second execution change request. If the verification is successful, it will record the second execution information and obtain the second record result. The second record result indicates whether the recording was successful. Then, the back-end service will feed back the second record result to the front-end service.
[0084] S270, Receive the second record result fed back by the backend service;
[0085] S280. Display the second record result on the operation and maintenance terminal page.
[0086] That is, after the front-end service receives the second record result from the back-end service, it will display the second record result on the operation and maintenance terminal page, so that the operation and maintenance personnel can know whether the record was successful.
[0087] Furthermore, the method provided in this embodiment of the invention may also include: disconnecting the connection between the operation and maintenance terminal and the second target server after receiving a message from the second target server indicating that the change operation has been completed.
[0088] As can be seen, once the maintenance personnel have performed changes on the second target server and the second target server has reported that the changes have been completed, the maintenance work on the second target server is finished. At this point, disconnecting the connection between the maintenance terminal and the second target server can save network overhead.
[0089] In one embodiment, the change operation may include at least one of upgrading the program, switching the network, and backing up the database.
[0090] For example, embodiments of the present invention include the following steps:
[0091] 1. First, the operations and maintenance personnel log in to the operations and maintenance system and click on the permission query on the operations and maintenance terminal page.
[0092] 2. The front-end service sends a query permission request to the back-end service.
[0093] 3. After receiving the query permission request, the backend service forwards it to the permission service.
[0094] 4. After receiving a permission query request, the permission service queries the permissions of the maintenance personnel based on the existing SD-WAN network conditions and returns the query results to the backend service.
[0095] 5. The backend service returns the query results to the frontend service.
[0096] 6. The front-end service displays the query results to the operations and maintenance personnel.
[0097] 7. The operations and maintenance personnel determine whether it is necessary to apply for new permissions based on the existing permissions.
[0098] 8. If the result of step 7 is that the operations and maintenance personnel already have server privileges, then log in to the first target server through the SD-WAN network.
[0099] 9. The operations and maintenance personnel shall perform the prescribed modification operations on the primary target server, such as upgrading the program, switching the network, backing up the database, etc.
[0100] 10. After the operation and maintenance personnel have completed the operation on the first target server, they should disconnect from the first target server.
[0101] 11. Fill in the first execution information on the operation and maintenance terminal page and click the "Execute Change" button.
[0102] 12. The front-end service sends the first execution change request to the back-end service, requesting the execution of the change.
[0103] 13. The backend service will verify and record any changes to the specific data.
[0104] 14. The backend service returns the first record result to the frontend service.
[0105] 15. The front-end page displays the first record result to the operations and maintenance personnel.
[0106] 16. If the result of step 7 is that you do not have permission to the second target server, the operations and maintenance personnel should click "Request Permission" on the operations and maintenance terminal page.
[0107] 17. The front-end service sends a permission request to the back-end service.
[0108] 18. The backend service forwards the permission request to the permission service for processing.
[0109] 19. After receiving the permission request, the permission service will, based on the SD-WAN network, prepare to establish network connectivity between the maintenance terminal used by the maintenance personnel and the second target server.
[0110] 20. The SD-WAN network is now operational.
[0111] 21. The permission service will return a message indicating that the application was successful to the backend service.
[0112] 22. Backend service permission request successful.
[0113] 23. The backend service returns a message indicating that the application was successful to the frontend service.
[0114] 24. The front-end service displays a message indicating successful application to the operations and maintenance personnel.
[0115] 25. The maintenance personnel log in to the second target server through the SD-WAN network.
[0116] 26-32: Steps 26 to 32 are the same as steps 9 to 15 above, then the automatic authorization and change are completed.
[0117] The system comprises several components: a permissions service for managing server permissions that maintenance terminals can request; a front-end service, which is the user-facing page after logging into the maintenance system; and a back-end service for handling requests from the front-end service and relaying them to the permissions service. An SD-WAN network connects all servers and maintenance terminals. The process begins with deploying and starting the front-end and back-end services, connecting the back-end service to the permissions service, and planning the SD-WAN network to ensure connectivity between maintenance personnel and the service areas they need to log into.
[0118] SD-WAN stands for Software-Defined Wide Area Network.
[0119] As can be seen, this embodiment of the invention, based on an SD-WAN network, achieves automatic authorization for operations and maintenance personnel to perform modification operations on servers in a specific area by initiating permission requests and establishing network connectivity. This embodiment solves the problem of operations and maintenance personnel automatically requesting access and modification permissions for required servers; that is, the process from user requesting permissions, logging into the service to perform modification operations, and finally executing the changes. In this process, users do not need to separately request permissions from the permission service; they can directly request permissions from the page of the already logged-in system, simplifying the authorization process and improving operational efficiency.
[0120] Secondly, embodiments of the present invention provide an apparatus for performing modification operations on a server. This apparatus is deployed on a front-end service located on an operation and maintenance terminal. (See also...) Figure 2 The device 100 includes:
[0121] The first query module 110 is used to respond to the permission query operation of the operation and maintenance personnel on the operation and maintenance terminal page, and send a permission query request to the backend service, so that the backend service forwards the received permission query request to the permission service; wherein, when the permission query request is received, the permission service is used to query the server information that the operation and maintenance personnel have the permission to change operations, obtain the query result, and feed the query result back to the backend service, so that the backend service feeds the query result back to the frontend service;
[0122] The first receiving module 120 is used to receive the query results fed back by the backend service;
[0123] The first display module 130 is used to display the query results on the operation and maintenance terminal page;
[0124] The first login module 140 is used to respond to the triggering operation of the operation and maintenance personnel to perform a change operation on one of the servers with change operation permissions, to take that server as the first target server, and to log in to the first target server through the SD-WAN network.
[0125] The first generation module 150 is used to generate first change operation control information based on the change operation information of the first target server by the operation and maintenance personnel on the operation and maintenance terminal page after logging into the first target server.
[0126] The first control module 160 is used to send the first change operation control information to the first target server so that the first target server performs the corresponding change operation, and after the change operation is completed, to send a message to the front-end service that the change operation has been completed.
[0127] In one embodiment, the apparatus provided by the present invention may further include:
[0128] The first filling module is used to provide an execution information filling page after receiving a message from the first target server indicating that the change operation has been completed, so that the operation and maintenance personnel can fill in the corresponding first execution information on the execution information filling page; wherein, the first execution information includes the time and result of the change operation on the first target server;
[0129] The first recording module is used to respond to the operation and maintenance personnel's triggering operation of the execution change button on the execution information filling page, generate a first execution change request based on the first execution information, and send the first execution change request to the backend service, so that when the backend service receives the first execution change request, it verifies the first execution information in the first execution change request, records it after the verification is successful, obtains the first recording result, and returns the first recording result to the frontend service;
[0130] The second receiving module is used to receive the first record result fed back by the backend service;
[0131] The second display module is used to display the first recording result on the operation and maintenance terminal page.
[0132] In one embodiment, the apparatus provided by the present invention may further include:
[0133] The first disconnection module is used to disconnect the connection between the operation and maintenance terminal and the first target server after receiving a message from the first target server indicating that the change operation has been completed.
[0134] In one embodiment, the apparatus provided by the present invention may further include:
[0135] The permission request module is used to generate a permission request request in response to the operation and maintenance personnel triggering the permission request button on the second target server, and send the permission request request to the backend service, so that the backend service, upon receiving the permission request request, sends the permission request request to the permission service; wherein, the second target server is a server other than the servers on which the operation and maintenance personnel have change operation permissions, and when the permission service receives the permission request request, it establishes an SD-WAN network connection between the operation and maintenance terminal and the second target server, and returns a successful request message to the backend service, so that the backend service returns the successful request message to the frontend service;
[0136] The third receiving module is used to receive the application success message returned by the backend service;
[0137] The second login module is used to log in to the second target server via the SD-WAN network in response to the triggering operation of the maintenance personnel to perform a change operation on the second target server.
[0138] The second generation module is used to generate second change operation control information based on the change operation information of the second target server by the operation and maintenance personnel on the operation and maintenance terminal page after logging into the second target server, send the second change operation control information to the second target server so that the second target server performs the corresponding change operation, and after the change operation is completed, send a message to the front-end service that the change operation has been completed.
[0139] In one embodiment, the apparatus provided by the present invention may further include:
[0140] The second filling module is used to provide an execution information filling page after receiving the message from the second target server that the change operation has been completed, so that the operation and maintenance personnel can fill in the corresponding second execution information on the execution information filling page; wherein, the second execution information includes the time and result of the change operation on the second target server;
[0141] The second recording module is used to respond to the operation and maintenance personnel's triggering operation of the execution change button on the execution information filling page, generate a second execution change request based on the second execution information, and send the second execution change request to the backend service, so that when the backend service receives the second execution change request, it verifies the second execution information in the second execution change request, records it after the verification is successful, obtains the second recording result, and returns the second recording result to the frontend service;
[0142] The fourth receiving module is used to receive the second recording result fed back by the backend service;
[0143] The third display module is used to display the second record result on the operation and maintenance terminal page.
[0144] In one embodiment, the apparatus provided by the present invention may further include:
[0145] The second disconnection module is used to disconnect the connection between the operation and maintenance terminal and the second target server after receiving a message from the second target server indicating that the change operation has been completed.
[0146] In one embodiment, the change operation includes at least one of upgrading the program, switching the network, and backing up the database.
[0147] It is understood that explanations, specific implementation methods, beneficial effects, examples, etc. of the contents of the device provided in the embodiments of the present invention can be found in the corresponding parts of the method provided in the first aspect, and will not be repeated here.
[0148] Thirdly, embodiments of the present invention provide a computer-readable medium storing computer instructions, which, when executed by a processor, cause the processor to perform the method provided in the first aspect.
[0149] Specifically, a system or apparatus equipped with a storage medium may be provided, on which software program code implementing the functions of any of the embodiments described above is stored, and the computer (or CPU or MPU) of the system or apparatus may read and execute the program code stored in the storage medium.
[0150] In this case, the program code read from the storage medium can itself implement the function of any of the above embodiments, and therefore the program code and the storage medium storing the program code constitute part of the present invention.
[0151] Examples of storage media used to provide program code include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, program code can be downloaded from a server computer via a communication network.
[0152] Furthermore, it should be clear that not only can the program code read by the computer be executed, but also the operating system or other components operating on the computer can be instructed based on the program code to perform some or all of the actual operations, thereby realizing the function of any of the embodiments described above.
[0153] Furthermore, it is understood that the program code read from the storage medium is written to the memory set in the expansion board inserted into the computer or to the memory set in the expansion module connected to the computer. Then, based on the instructions of the program code, the CPU or other components installed on the expansion board or expansion module execute some and all of the actual operations, thereby realizing the function of any of the above embodiments.
[0154] It is understood that explanations, specific implementation methods, beneficial effects, examples, etc. of the contents in the computer-readable medium provided in the embodiments of the present invention can be found in the corresponding parts of the method provided in the first aspect, and will not be repeated here.
[0155] Fourthly, one embodiment of this specification provides a computing device including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, it implements the method of any embodiment of the specification.
[0156] It is understood that explanations, specific implementation methods, beneficial effects, examples, etc. of the computing device provided in the embodiments of the present invention can be found in the corresponding parts of the method provided in the first aspect, and will not be repeated here.
[0157] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the apparatus embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0158] Those skilled in the art will recognize that, in one or more of the examples above, the functions described in this invention can be implemented using hardware, software, widgets, or any combination thereof. When implemented in software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium.
[0159] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method of performing a change operation on a server, the method comprising: The method is executed by a front-end service deployed on an operation and maintenance terminal, and the method comprises: In response to an authority query operation of an operation and maintenance personnel on an operation and maintenance terminal page, an authority query request is sent to a back-end service, so that the back-end service forwards the received authority query request to an authority service; wherein the authority service is configured to query server information having a change operation authority of the operation and maintenance personnel when the authority query request is received, obtain a query result, and feed back the query result to the back-end service, so that the back-end service feeds back the query result to the front-end service; Receiving the query result fed back by the back-end service; Displaying the query result on the operation and maintenance terminal page; In response to a trigger operation of the operation and maintenance personnel on a change operation on one of the servers having a change operation authority, the server is taken as a first target server, and the first target server is logged in through an SD-WAN network; After logging in the first target server, first change operation control information is generated according to change operation information of the operation and maintenance personnel on the operation and maintenance terminal page on the first target server; The first change operation control information is sent to the first target server, so that the first target server performs a corresponding change operation, and feeds back a change operation completion message to the front-end service after the change operation is completed.
2. The method of claim 1, wherein, Further comprising: After receiving the change operation completion message fed back by the first target server, an execution information filling page is provided, so that the operation and maintenance personnel fills in corresponding first execution information on the execution information filling page; wherein the first execution information comprises a change operation time and a change operation result of the first target server; In response to a trigger operation of the operation and maintenance personnel on an execution change button on the execution information filling page, first execution change request is generated according to the first execution information, and the first execution change request is sent to the back-end service, so that the back-end service checks the first execution information in the first execution change request when the first execution change request is received, records after the check is passed, obtains a first record result, and returns the first record result to the front-end service; Receiving the first record result fed back by the back-end service; Displaying the first record result on the operation and maintenance terminal page.
3. The method of claim 1, wherein, Further comprising: After receiving the change operation completion message fed back by the first target server, the connection between the operation and maintenance terminal and the first target server is disconnected.
4. The method of claim 1, wherein, Further comprising: In response to the trigger operation of the operation and maintenance personnel on the permission application button of the second target server, a permission application request is generated, and the permission application request is sent to the backend service, so that the backend service sends the permission application request to the permission service when the permission application request is received; wherein the second target server is one server other than each server having change operation permission of the operation and maintenance personnel, the permission service connects the SD-WAN network between the operation and maintenance terminal and the second target server when the permission application request is received, and returns an application success message to the backend service, so that the backend service returns the application success message to the front-end service; The application success message returned by the backend service is received; In response to the trigger operation of the operation and maintenance personnel on the second target server, the second target server is logged in through the SD-WAN network; After logging in the second target server, the second change operation control information is generated according to the change operation information of the operation and maintenance personnel on the operation and maintenance terminal page of the second target server, and the second change operation control information is sent to the second target server, so that the second target server executes the corresponding change operation, and feeds back a change operation execution completion message to the front-end service after the change operation is executed.
5. The method of claim 4, wherein, Further comprising: After receiving the change operation execution completion message fed back by the second target server, an execution information filling page is provided to enable the operation and maintenance personnel to fill in corresponding second execution information on the execution information filling page; wherein the second execution information includes change operation time and change operation result of the second target server; In response to the trigger operation of the operation and maintenance personnel on the execution change button on the execution information filling page, the second execution change request is generated according to the second execution information, and the second execution change request is sent to the backend service, so that the backend service verifies the second execution information in the second execution change request when the second execution change request is received, and records the second execution information after the verification is passed, obtains a second record result, and returns the second record result to the front-end service; The second record result fed back by the backend service is received; The second record result is displayed on the operation and maintenance terminal page.
6. The method of claim 1, wherein, Further comprising: After receiving the change operation execution completion message fed back by the second target server, the connection between the operation and maintenance terminal and the second target server is disconnected.
7. The method of claim 1, wherein, The change operation includes at least one of upgrading program, switching network and backing up database.
8. An apparatus for performing a change operation on a server, the apparatus comprising: The device is deployed on the front-end service located on the operation and maintenance terminal, and the device comprises: The first query module is configured to, in response to a permission query operation of the operation and maintenance personnel on the operation and maintenance terminal page, send a permission query request to a backend service, so that the backend service forwards the received permission query request to a permission service; wherein the permission service is configured to, when receiving the permission query request, query server information having a change operation permission of the operation and maintenance personnel, obtain a query result, and feed back the query result to the backend service, so that the backend service feeds back the query result to the front-end service; The first receiving module is configured to receive the query result fed back by the backend service; The first display module is configured to display the query result on the operation and maintenance terminal page; The first login module is configured to, in response to a trigger operation of the operation and maintenance personnel performing a change operation on one of the servers having a change operation permission, take the server as a first target server, and log in the first target server through an SD-WAN network; The first generation module is configured to, after logging in the first target server, generate first change operation control information according to change operation information of the operation and maintenance personnel on the operation and maintenance terminal page on the first target server; The first control module is configured to send the first change operation control information to the first target server, so that the first target server performs a corresponding change operation, and feeds back a change operation completion message to the front-end service after the change operation is completed.
9. A computer-readable storage medium, characterized in that, The computer program is stored on the computer, and when the computer program is executed in the computer, the computer executes the method of any one of claims 1-7.
10. A computing device, comprising: The computer program is stored on the computer, and when the computer program is executed in the computer, the computer executes the method of any one of claims 1-7.
Citation Information
Patent Citations
Service processing method, device, equipment and business system
CN111541717A
Permission management method, processing equipment and storage medium
CN111556052A