CN117176576A - Network resource changing method, device, equipment and storage medium - Google Patents

Network resource changing method, device, equipment and storage medium Download PDF

Info

Publication number
CN117176576A
CN117176576A CN202311104628.1A CN202311104628A CN117176576A CN 117176576 A CN117176576 A CN 117176576A CN 202311104628 A CN202311104628 A CN 202311104628A CN 117176576 A CN117176576 A CN 117176576A
Authority
CN
China
Prior art keywords
target
network
server
network device
server identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311104628.1A
Other languages
Chinese (zh)
Inventor
欧阳旭
翟菁
秦英杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202311104628.1A priority Critical patent/CN117176576A/en
Publication of CN117176576A publication Critical patent/CN117176576A/en
Pending legal-status Critical Current

Links

Abstract

The disclosure provides a network resource changing method, a device, equipment and a storage medium, which can be applied to the technical field of computers and the technical field of finance. The network resource changing method comprises the following steps: in response to receiving the change request, determining a first target parameter corresponding to a target server identifier from a configuration library based on the target server identifier included in the change request; generating a change file corresponding to the target network device based on the first target parameter and the change code template, so that the target network device changes network resources corresponding to the target server identifier based on the change file, wherein the target network device is the network device corresponding to the target server identifier; wherein the configuration library is generated by: acquiring a second target parameter of the network equipment through an equipment interface of the network equipment; a configuration library is generated based on the second target parameters of the network device and the server identification.

Description

Network resource changing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technology and financial technology, and in particular, to a method, apparatus, device, medium, and program product for changing network resources.
Background
With the continuous change of service requirements, the service requirements of the server are also changed, the server usually utilizes the network equipment to perform network access service, and when the service requirements of the server are changed, network resources of the network equipment related to the server are also required to be changed to meet the operation and maintenance requirements. When the network resource of the network device is changed, since the same server may provide network access services by a plurality of different network devices, it takes a lot of time for the relevant operation staff to determine the corresponding network device for the server, and then change the network resource of the network device.
In the process of implementing the disclosed concept, the inventor finds that at least the following problems exist in the related art: because relevant operation and maintenance personnel are required to determine corresponding network equipment for the server and then change network resources of the network equipment, the problem that the network equipment corresponding to the server cannot be accurately acquired and the change efficiency is low exists.
Disclosure of Invention
In view of the foregoing, the present disclosure provides methods, apparatus, devices, media, and program products that enhance network resource changes.
According to one aspect of the present disclosure, there is provided a network resource changing method, including: in response to receiving a change request, determining a first target parameter corresponding to a target server identifier from a configuration library based on the target server identifier included in the change request; generating a change file corresponding to a target network device based on the first target parameter and the change code template, so that the target network device changes network resources corresponding to the target server identifier based on the change file, wherein the target network device is the network device corresponding to the target server identifier; wherein, the configuration library is generated by the following operations: acquiring a second target parameter of the network equipment through an equipment interface of the network equipment; and generating a configuration library based on the second target parameter of the network equipment and a server identifier, wherein the server identifier corresponds to the network equipment, and the server corresponding to the server identifier performs network access service by using the network resource of the network equipment.
According to an embodiment of the present disclosure, the generating a configuration library based on the second target parameter of the network device and the server identifier includes: determining an association relationship between a second target parameter of the network device and the server identifier based on the second target parameter of the network device and a preset configuration file, wherein the preset configuration file comprises the association relationship between the network device identifier of the network device and the server identifier, and the second target parameter comprises the network device identifier; and generating a configuration library based on the second target parameter, the server identification and the association relation.
According to an embodiment of the present disclosure, the obtaining, by the device interface of the network device, the second target parameter of the network device includes: acquiring a plurality of initial target parameters of the network equipment through an equipment interface of the network equipment; determining the second target parameter from a plurality of initial target parameters based on a regular expression, wherein the second target parameter is a target parameter related to the network resource identified by the server.
According to an embodiment of the present disclosure, the determining, based on a target server identifier included in the change request, a first target parameter corresponding to the target server identifier from a configuration library includes: matching the target server identifier with the server identifier included in the configuration library to obtain an identifier matching result; and determining the first target parameter from the second target parameter based on the association relation under the condition that the identification matching result indicates the target server identification exists.
According to an embodiment of the present disclosure, the determining, based on a target server identifier included in the change request, a first target parameter corresponding to the target server identifier from a configuration library includes: responding to a received change request, and checking the change request based on a target server identifier included in the change request to obtain a request checking result; and determining a first target parameter corresponding to the target server identifier from the configuration library based on the target server identifier under the condition that the request verification result representation verification passes.
According to an embodiment of the present disclosure, the verifying the change request based on the target server identifier included in the change request to obtain a request verification result includes: determining first state information of a target server corresponding to the target server identifier and second state information of a service application associated with the target server from a preset database based on the target server identifier included in the change request; and verifying the change request based on the first state information and the second state information to obtain a request verification result.
According to an embodiment of the present disclosure, the above method further includes: determining a plurality of third target parameters included in the target network device in response to the target network device having completed changing network resources identified by the target server; checking the network resource changing process of the target network equipment based on the plurality of third target parameters to obtain a changing check result, wherein the changing check result is used for representing whether the network resource of the target network equipment is changed successfully or not; and when the change verification result indicates that the network resource of the target network device fails to be changed, sending a rollback instruction to the target network device so that the target network device rolls back to a state before changing the network resource of the target server corresponding to the target server identifier.
Another aspect of the present disclosure provides a network resource changing apparatus, including: the first parameter determining module is used for determining a first target parameter corresponding to a target server identifier from a configuration library based on the target server identifier included in the change request in response to receiving the change request; a file generating module, configured to generate a change file corresponding to a target network device based on the first target parameter and a change code template, so that the target network device changes a network resource corresponding to the target server identifier based on the change file, where the target network device is a network device corresponding to the target server identifier; a second parameter determining module, configured to obtain, through an equipment interface of a network device, a second target parameter of the network device; and a configuration library generating module, configured to generate a configuration library based on the second target parameter of the network device and a server identifier, where the server identifier corresponds to the network device, and a server corresponding to the server identifier performs a network access service using the network resource of the network device.
Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the network resource changing method described above.
Another aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described network resource changing method.
Another aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above-described network resource changing method.
According to an embodiment of the present disclosure, by determining a first target parameter corresponding to a target server identification from a configuration library based on the target server identification included in the change request, and based on the first target parameter and the change code template, a change file corresponding to the target network device may be generated. And the configuration library can be generated by acquiring a second target parameter of the network device through a device interface of the network device and generating the configuration library based on the second target parameter and the server identifier. The second target parameter of the network equipment is acquired by utilizing the equipment interface of the network equipment, and the configuration library comprising the comprehensive corresponding relation between the network equipment and the server identifier is obtained based on the second target parameter and the server identifier, so that the technical effect of more comprehensively determining the corresponding relation between the network equipment and the server identifier is realized. And based on the target server identifier included in the change request, accurately and comprehensively determining a first target parameter of the network device corresponding to the target server identifier from a configuration library comprising comprehensive network devices and server identifier correspondence, and generating a change file corresponding to the target network device by using the first target parameter and a change code template so as to change network resources corresponding to the target server identifier.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario diagram of a network resource changing method, apparatus, device, medium and program product according to an embodiment of the present disclosure.
Fig. 2 schematically illustrates a flow chart of a network resource change method according to an embodiment of the disclosure.
Fig. 3 schematically illustrates a flowchart of determining a second target parameter according to an embodiment of the disclosure.
Fig. 4 schematically illustrates a flow chart of generating a configuration library according to an embodiment of the disclosure.
Fig. 5 schematically illustrates a schematic diagram of a server in association with a network device according to an embodiment of the present disclosure.
Fig. 6 schematically shows a block diagram of a network resource changing apparatus according to an embodiment of the present disclosure.
Fig. 7 schematically illustrates a block diagram of an electronic device adapted to implement a network resource change method according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
It should be noted that, the method and apparatus for changing network resources of the present disclosure may be used in the financial field, and may also be used in any field other than the financial field, and the application field of the method and apparatus for changing network resources of the present disclosure is not limited.
In the technical scheme of the invention, the related user information (including but not limited to user personal information, user image information, user equipment information, such as position information and the like) and data (including but not limited to data for analysis, stored data, displayed data and the like) are information and data authorized by a user or fully authorized by all parties, and the processing of the related data such as collection, storage, use, processing, transmission, provision, disclosure, application and the like are all conducted according to the related laws and regulations and standards of related countries and regions, necessary security measures are adopted, no prejudice to the public welfare is provided, and corresponding operation inlets are provided for the user to select authorization or rejection.
In the research process, it is found that, as the business of the enterprise expands, the number of servers, network devices and other devices is continuously increased, and meanwhile, the association between the servers and the devices of the network devices is also required to be continuously maintained, the servers generally use the network devices to perform network access service, and when the service requirement of the servers is changed, in order to achieve the operation and maintenance requirement, network resources of the network devices related to the servers are also required to be changed, for example: for a server that is no longer in use, it is often necessary to delete the network resource rights of the network device that provides network access services for that server, or to delete the network resource rights associated with that server.
Because the same server may be provided with network access services by a plurality of different network devices, a lot of time is required for related operation and maintenance personnel to determine the corresponding network devices for the server, then the network resources of the network devices are changed, and the service requirements of the server are continuously changed along with the rapid change of the service requirements, so that a lot of manpower and material resources are required to be consumed when the network resources are changed, and the problems of low accuracy and efficiency are caused.
The embodiment of the disclosure provides a network resource changing method, which is used for responding to a changing request, and determining a first target parameter corresponding to a target server identifier from a configuration library based on the target server identifier included in the changing request; generating a change file corresponding to the target network device based on the first target parameter and the change code template, so that the target network device changes network resources corresponding to the target server identifier based on the change file, wherein the target network device is the network device corresponding to the target server identifier; wherein the configuration library is generated by: acquiring a second target parameter of the network equipment through an equipment interface of the network equipment; and generating a configuration library based on the second target parameter of the network equipment and the server identification, wherein the server identification corresponds to the network equipment, and the server corresponding to the server identification performs network access service by utilizing the network resource of the network equipment.
Fig. 1 schematically illustrates an application scenario diagram of a network resource changing method, apparatus, device, medium and program product according to an embodiment of the present disclosure.
As shown in fig. 1, an application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that, the network resource changing method provided by the embodiments of the present disclosure may be generally performed by the server 105. Accordingly, the network resource changing device provided in the embodiments of the present disclosure may be generally disposed in the server 105. The network resource changing method provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the network resource changing apparatus provided by the embodiments of the present disclosure may also be provided in a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The network resource changing method of the disclosed embodiment will be described in detail with reference to fig. 2 to 6 based on the scenario described in fig. 1.
Fig. 2 schematically illustrates a flow chart of a network resource change method according to an embodiment of the disclosure.
As shown in fig. 2, the network resource changing method of this embodiment includes operations S210 to S240.
In response to receiving the change request, a first target parameter corresponding to the target server identification is determined from the configuration library based on the target server identification included in the change request in operation S210.
According to an embodiment of the present disclosure, in a case where a change request is received, based on a target server identifier included in the change request, a first target parameter of a network device corresponding to the target server identifier may be determined from a configuration library, where the first target parameter may be a parameter corresponding to the target server identifier in the network device, for example: the identity of the network device, the interface of the network device, the port of the network device, etc. may characterize the parameter information of the network device.
According to the embodiment of the disclosure, the first target parameter corresponding to the target server identifier is determined directly from the configuration library through the target server identifier included in the change request, so that the first target parameter is quickly acquired from the configuration library with the total first target parameter of the network equipment corresponding to the target server identifier, and the change efficiency is further improved.
In operation S220, a change file corresponding to a target network device is generated based on the first target parameter and the change code template, so that the target network device changes a network resource corresponding to a target server identifier based on the change file, wherein the target network device is a network device corresponding to the target server identifier.
According to an embodiment of the present disclosure, a change code for a first target parameter in a target network device may be included in the change code template, and the change code may include deleting the first target parameter code or adding the first target parameter code.
According to the embodiment of the disclosure, the change file corresponding to the target network device can be directly generated by filling the first target parameter into the designated position in the change code target.
According to the embodiment of the disclosure, the network resource corresponding to the target server identifier in the target network device can be directly changed through the change file, so that the target server corresponding to the target server identifier cannot perform network access service through the network resource of the target network device.
According to embodiments of the present disclosure, the network resources are not limited, for example: resources for providing network services to the target server may be provided for each network device.
According to the embodiment of the disclosure, after the change of the target network device is implemented, a change list number may be generated, where the change list number may include records related to the change, such as user information for sending a change request, a target server identifier, a change submitting time, a change completing time, a changed target network device identifier, and so on, so as to implement management of a change process. The generation method of the change list number is not limited, and the change list number may be generated by calling the change management platform interface, directly and automatically generating, or the like.
According to the embodiment of the disclosure, the change file corresponding to the target network device can be directly generated through the first target parameter and the change code template, so that the problem that the change needs to be performed manually in the related art is at least partially solved, and the change instantaneity and the change efficiency of the target network device are improved.
In operation S230, the configuration library is generated by: and acquiring a second target parameter of the network equipment through the equipment interface of the network equipment.
According to embodiments of the present disclosure, the device interface of the network device may be a vendor provided device interface.
According to embodiments of the present disclosure, a full second target parameter of a network device may be obtained through a vendor-provided device interface.
According to an embodiment of the present disclosure, the second target parameter is a parameter related to the server obtaining the network access service, and may be an access control authority parameter related to the server.
According to the embodiment of the disclosure, through the equipment interface provided by the manufacturer, the full second target parameters are obtained, so that the comprehensiveness of the second target parameters can be ensured, the probability of missing the second target parameters is reduced, namely, the probability of missing the first target parameters when the first target parameters are determined by using the target server identification is reduced.
In operation S240, a configuration library is generated based on the second target parameter of the network device and a server identifier, wherein the server identifier corresponds to the network device, and a server corresponding to the server identifier performs a network access service using the network resource of the network device.
According to the embodiment of the disclosure, through the second target parameters and the preset configuration file, the association relation between the second target parameters and the server identification can be determined, so that a configuration library which is used for storing the total second target parameters, the server identification and the association relation between the server identification and the second target parameters is generated.
According to an embodiment of the present disclosure, the server identification includes a network protocol address of the server. In certain cases, the server identification may also include a port number of the server, etc.
According to an embodiment of the present disclosure, by determining a first target parameter corresponding to a target server identification from a configuration library based on the target server identification included in the change request, and based on the first target parameter and the change code template, a change file corresponding to the target network device may be generated. And the configuration library can be generated by acquiring a second target parameter of the network device through a device interface of the network device and generating the configuration library based on the second target parameter and the server identifier. The method comprises the steps of obtaining a second target parameter of the network equipment by utilizing an equipment interface of the network equipment, obtaining a configuration library comprising comprehensive corresponding relation between the network equipment and the server identification based on the second target parameter and the server identification, determining a first target parameter of the network equipment corresponding to the target server identification from the configuration library based on the target server identification included by the change request, and generating a change file corresponding to the target network equipment by utilizing the first target parameter and a change code template so as to change network resources corresponding to the target server identification. Therefore, the technical problems that network equipment corresponding to the server cannot be comprehensively determined and the changing efficiency is low are at least partially solved, and the technical effects of more accurately and comprehensively determining the network equipment to be changed and improving the changing efficiency are achieved.
Fig. 3 schematically illustrates a flow chart of generating a configuration library according to an embodiment of the disclosure.
As shown in fig. 3, generating the configuration library includes operations S310 to S320.
In operation S310, an association relationship between a second target parameter of the network device and a server identifier is determined based on the second target parameter of the network device and a preset configuration file, where the preset configuration file includes the association relationship between the network device identifier of the network device and the server identifier, and the second target parameter includes the network device identifier.
In operation S320, a configuration library is generated based on the second target parameter, the server identification, and the association relationship.
According to the embodiment of the disclosure, the preset configuration file may determine an association relationship between a total number of server identifiers and network device identifiers in each first preset time period, and if the association relationship between a server identifier different from the previous first preset time period and the network device identifier is found to exist in the current first preset time period, update the preset configuration file is implemented.
According to an embodiment of the present disclosure, the configuration library may be generated through the second target parameters and the preset configuration file in each second preset time period, and when determining that there is an association relationship between the updated server identifier and the network device identifier in the preset configuration file, the configuration library is updated as well.
Fig. 4 schematically illustrates a schematic diagram of a server in association with a network device according to an embodiment of the present disclosure.
As shown in fig. 4, in the traffic scenario, there may be multiple servers, where each server may perform network access service through respective network resources of multiple network devices, and thus, in the configuration library, a total number of server identifiers in the traffic scenario, second target parameters, and association relationships between the server identifiers and the second target parameters will be included.
According to embodiments of the present disclosure, the number of servers and the number of network devices associated with the servers are merely illustrative, and the servers may be one within a traffic scenario, as well as the network devices associated with the servers.
According to the embodiment of the disclosure, the server identifier associated with the second target parameter is matched from the preset configuration file by using the second target parameter, and a full configuration library can be generated through the server identifier, the second target parameter and the association relation between the second target parameter and the server identifier, so that full storage of the server identifier and the second target parameter corresponding to the server identifier is realized, and the comprehensiveness of data is ensured. Meanwhile, when a plurality of servers and a plurality of network devices associated with each server exist, if the association relation between the server identification and the second target parameter is determined by a manual means, the problems that the time is too long and the association relation cannot be completely determined exist, and therefore, the technical effects of improving the association relation acquisition efficiency and reducing the data omission exist in the process of acquiring the configuration library through the operation are achieved.
Fig. 5 schematically illustrates a flowchart of determining a second target parameter according to an embodiment of the disclosure.
As shown in fig. 5, the determination of the second target parameter generation of this embodiment includes operations S510 to S520.
In operation S510, a plurality of initial target parameters of the network device are acquired through a device interface of the network device.
In operation S520, a second target parameter is determined from the plurality of initial target parameters based on the regular expression.
According to embodiments of the present disclosure, an instruction to display a full-scale configuration, such as a show run, is executed in a network device through a device interface provided by a vendor of the network device, so that a full-scale initial target parameter of the network device may be obtained.
According to the embodiment of the disclosure, based on the preset regular expression, the initial target parameters of the whole quantity are respectively matched, so that second target parameters related to the network access service obtained by the server are obtained.
According to the embodiment of the disclosure, the full-quantity initial target parameters are acquired through the equipment interface provided by the manufacturer of the network equipment, then the initial target parameters are matched one by one based on the preset regular expression, and the full-quantity second target parameters are determined, so that the comprehensiveness of the configuration library is further ensured.
According to an embodiment of the present disclosure, determining, based on a target server identifier included in a change request, a first target parameter corresponding to the target server identifier from a configuration library may include the following operations.
Matching the target server identification with the server identification included in the configuration library to obtain an identification matching result; and under the condition that the identification matching result represents that the target server identification exists, determining a first target parameter from the second target parameters based on the association relation.
According to the embodiment of the disclosure, under the condition that the change request is received, the target server identifier included in the change request can be directly utilized to match in the configuration library, and if the change request is matched with the target server identifier, the association relationship between the target server identifier and the network equipment identifier can be directly utilized to determine the first target parameter from the second target parameter, so that the quick matching of the first target parameter is realized, and the change efficiency is further improved.
According to an embodiment of the present disclosure, determining, based on the target server identifier included in the change request, a first target parameter corresponding to the target server identifier from the configuration library may further include the following operations.
Responding to the received change request, and checking the change request based on a target server identifier included in the change request to obtain a request checking result; and determining a first target parameter corresponding to the target server identifier from the configuration library based on the target server identifier under the condition that the request verification result representation verification passes.
According to the embodiment of the disclosure, when a change request is received, the change request can be checked based on the target server identifier included in the change request, so as to obtain a request check result, wherein the request check result comprises a pass check and a fail check.
According to an embodiment of the present disclosure, in a case where the verification result indicates that the verification passes, then a first target parameter corresponding to the target server identification is determined from the configuration library based on the target server identification.
According to an embodiment of the present disclosure, the change request is denied in case the check result indicates that the check is not passed.
According to the embodiment of the disclosure, under the condition that the change request is received, the change request is checked, so that on one hand, the validity of the check request can be ensured, and on the other hand, the false change of the network equipment corresponding to the target server identification can be avoided.
According to an embodiment of the present disclosure, the verification of the change request based on the target server identifier included in the change request, to obtain a request verification result, may include the following operations.
Determining first state information of a target server corresponding to the target server identifier and second state information of a service application associated with the target server from a preset database based on the target server identifier included in the change request; and checking the change request based on the first state information and the second state information to obtain a request checking result.
According to embodiments of the present disclosure, a server identification, a state corresponding to the server identification, and a state of a service application associated with the server may be included in the preset database.
According to the embodiment of the disclosure, the first state information of the target server is determined from a preset database by using the target server identification, wherein the first state information can be that the server is not used any more or the server is in use.
According to the embodiment of the disclosure, the second state information of the service application associated with the target server may be determined from the preset database by using the target server identifier, where the service application associated with the target server may be an application that performs some business processing by using the target server, and the second state information may be whether the target server is still needed to be used in the service application.
According to the embodiment of the disclosure, in the case that the first state information characterizes that the server is not used any more and the second information characterizes that the service application does not need to use the target server, the request verification result can be obtained as verification passing.
According to the embodiment of the disclosure, the first state information of the target server and the second state information of the service application associated with the target server are checked, so that the situation that the network equipment associated with the target server is changed under the condition that the target server is completely out of use, and therefore business production cannot be normally performed can be avoided.
According to an embodiment of the present disclosure, the network resource changing method may further include the following operations.
Determining a plurality of third target parameters included by the target network equipment in response to the target network equipment having completed the network resource change identified by the target server; based on a plurality of third target parameters, checking the network resource changing process of the target network equipment to obtain a changing check result, wherein the changing check result is used for representing whether the network resource of the target network equipment is changed successfully or not; and sending a rollback instruction to the target network equipment under the condition that the change check result represents that the network resource of the target network equipment fails to change, so that the target network equipment rolls back to a state before changing the network resource of the target server corresponding to the target server identification.
According to the embodiment of the disclosure, when it is detected that the target network device has completed changing the network resource of the target server identifier, whether a third target parameter corresponding to the target server identifier exists or not may be checked from third target parameters included in the target network device, so as to obtain a change check result.
According to an embodiment of the present disclosure, the determination manner of the third target parameter is not limited, and the third target parameter may be determined from the target network device by using a show/display command.
According to an embodiment of the present disclosure, a login instruction is required to log in to a target network device before a third target parameter is acquired from the target network device.
According to the embodiment of the disclosure, in the case that the third target parameter corresponding to the target server identifier exists in the third target parameters, the change verification result represents that the network resource of the target network device fails to be changed. And under the condition that the third target parameter corresponding to the target server identifier does not exist in the third target parameters, the change verification result represents that the network resource of the target network equipment is successfully changed.
According to the embodiment of the disclosure, when the change verification result indicates that the network resource of the target network device is successfully changed, a change list number is generated so as to record a change process.
According to the embodiment of the disclosure, when the change verification result indicates that the network resource of the target network device is successfully changed, a back-off instruction is determined to be sent to the target network device, so that the target network device is backed off to a state before the network resource is changed. For example: and returning the third target parameter to the fourth target parameter before the change.
According to the embodiment of the disclosure, the operation state of the target network device can be detected, and when the abnormal operation of the target network device is detected, a rollback instruction is sent to the target network device, so that the target network device is rollback to a state before the network resource is changed.
According to the embodiment of the disclosure, by checking the network resource changing process of the target network equipment, whether the change of the target network equipment is successful or not can be determined, if the change fails, the rollback can be performed, and the change is tried again after the rollback is completed, so that the situation that the change fails but cannot be known possibly due to the fact that the check of the target network equipment is not performed is avoided; and the running state of the target network equipment can be detected, and if the running abnormality of the target network equipment is detected, the rollback can be carried out, so that the normal running of the service can be ensured, and the influence of the service is minimized.
Based on the network resource changing method, the disclosure also provides a network resource changing device. The device will be described in detail below in connection with fig. 6.
Fig. 6 schematically shows a block diagram of a network resource changing apparatus according to an embodiment of the present disclosure.
As shown in fig. 6, the network resource changing apparatus 600 of this embodiment includes a first parameter determination module 610, a file generation module 620, a second parameter determination module 630, and a configuration library generation module 640.
The first parameter determining module 610 is configured to determine, in response to receiving the change request, a first target parameter corresponding to a target server identifier from the configuration library based on the target server identifier included in the change request.
The file generation module 620 is configured to generate a change file corresponding to the target network device based on the first target parameter and the change code template, so that the target network device changes the network resource corresponding to the target server identifier based on the change file, where the target network device is the network device corresponding to the target server identifier.
The second parameter determining module 630 is configured to obtain, through a device interface of the network device, a second target parameter of the network device.
The configuration library generating module 640 is configured to generate a configuration library based on the second target parameter of the network device and a server identifier, where the server identifier corresponds to the network device, and the server corresponding to the server identifier performs a network access service by using a network resource of the network device.
According to an embodiment of the present disclosure, the configuration library generation module 640 includes a relationship determination sub-module and a configuration library generation sub-module.
The relationship determination submodule is used for determining the association relationship between the second target parameter of the network equipment and the server identifier based on the second target parameter of the network equipment and a preset configuration file, wherein the preset configuration file comprises the association relationship between the network equipment identifier of the network equipment and the server identifier, and the second target parameter comprises the network equipment identifier.
The configuration library generation submodule is used for generating a configuration library based on the second target parameters, the server identification and the association relation.
According to an embodiment of the present disclosure, the second parameter determination module 630 further includes an initial parameter acquisition sub-module and a second parameter determination sub-module.
The initial parameter acquisition sub-module is used for acquiring a plurality of initial target parameters of the network equipment through the equipment interface of the network equipment.
The second parameter determination submodule is used for determining a second target parameter from a plurality of initial target parameters based on the regular expression, wherein the second target parameter is a target parameter related to network resources identified by the server.
According to an embodiment of the present disclosure, the first parameter determination module 610 further includes a match determination sub-module and a first determination sub-module.
The matching determination submodule is used for matching the target server identifier with the server identifier included in the configuration library to obtain an identifier matching result.
The first determining submodule is used for determining a first target parameter from second target parameters based on the association relation under the condition that the identification matching result represents that the target server identification exists.
According to an embodiment of the present disclosure, the first parameter determination module 610 further includes a verification determination sub-module and a second determination sub-module.
The verification determination submodule is used for responding to the received change request, and verifying the change request based on the target server identifier included in the change request to obtain a request verification result.
The second determining submodule is used for determining a first target parameter corresponding to the target server identifier from the configuration library based on the target server identifier under the condition that the request verification result representation verification passes.
According to an embodiment of the present disclosure, the verification determination submodule further includes: a state information determining unit and a verification result determining unit.
The state information determining unit is used for determining first state information of a target server corresponding to the target server identification and second state information of a service application associated with the target server from a preset database based on the target server identification included in the change request.
And the verification result determining unit is used for verifying the change request based on the first state information and the second state information to obtain a request verification result.
According to an embodiment of the present disclosure, the network resource changing apparatus 600 further includes a third parameter determining module, a verification result determining module, and an instruction transmitting module.
The third parameter determining module is used for determining a plurality of third target parameters included by the target network equipment in response to the condition that the target network equipment has completed changing the network resources identified by the target server.
The verification result determining module is used for verifying the network resource changing process of the target network equipment based on a plurality of third target parameters to obtain a change verification result, wherein the change verification result is used for representing whether the network resource of the target network equipment is changed successfully or not.
The instruction sending module is used for sending a rollback instruction to the target network equipment under the condition that the change check result represents that the network resource of the target network equipment fails to change, so that the target network equipment rolls back to a state before changing the network resource of the target server corresponding to the target server identification.
Any of the first parameter determination module 610, the file generation module 620, the second parameter determination module 630, and the configuration library generation module 640 may be combined in one module to be implemented, or any of the modules may be split into a plurality of modules, according to an embodiment of the present disclosure. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. According to embodiments of the present disclosure, at least one of the first parameter determination module 610, the file generation module 620, the second parameter determination module 630, and the configuration library generation module 640 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging the circuitry, or in any one of or a suitable combination of any of the three. Alternatively, at least one of the first parameter determination module 610, the file generation module 620, the second parameter determination module 630, and the configuration library generation module 640 may be at least partially implemented as a computer program module, which when executed, may perform the corresponding functions.
Fig. 7 schematically illustrates a block diagram of an electronic device adapted to implement a network resource change method according to an embodiment of the disclosure.
As shown in fig. 7, an electronic device 700 according to an embodiment of the present disclosure includes a processor 701 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. The processor 701 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 701 may also include on-board memory for caching purposes. The processor 701 may comprise a single processing unit or a plurality of processing units for performing different actions of the method flows according to embodiments of the disclosure.
In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. The processor 701 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 702 and/or the RAM 703. Note that the program may be stored in one or more memories other than the ROM 702 and the RAM 703. The processor 701 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in one or more memories.
According to an embodiment of the present disclosure, the electronic device 700 may further include an input/output (I/O) interface 705, the input/output (I/O) interface 705 also being connected to the bus 704. The electronic device 700 may also include one or more of the following components connected to an input/output (I/O) interface 705: an input section 706 including a keyboard, a mouse, and the like; an output portion 707 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 708 including a hard disk or the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to an input/output (I/O) interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 702 and/or RAM 703 and/or one or more memories other than ROM 702 and RAM 703 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. The program code, when executed in a computer system, causes the computer system to implement the network resource altering method provided by embodiments of the present disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 701. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed over a network medium in the form of signals, downloaded and installed via the communication section 709, and/or installed from the removable medium 711. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 701. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (11)

1. A network resource change method, comprising:
in response to receiving a change request, determining a first target parameter corresponding to a target server identifier from a configuration library based on the target server identifier included in the change request;
Generating a change file corresponding to a target network device based on the first target parameter and a change code template, so that the target network device changes network resources corresponding to the target server identifier based on the change file, wherein the target network device is the network device corresponding to the target server identifier;
wherein the configuration library is generated by:
acquiring a second target parameter of the network equipment through an equipment interface of the network equipment;
generating a configuration library based on a second target parameter of the network device and a server identifier, wherein the server identifier corresponds to the network device, and a server corresponding to the server identifier performs network access service by using the network resource of the network device.
2. The method of claim 1, wherein the generating a configuration library based on the second target parameter of the network device and the server identification comprises:
determining an association relationship between a second target parameter of the network device and the server identifier based on the second target parameter of the network device and a preset configuration file, wherein the preset configuration file comprises the association relationship between the network device identifier of the network device and the server identifier, and the second target parameter comprises the network device identifier;
And generating a configuration library based on the second target parameter, the server identification and the association relation.
3. The method of claim 1, wherein the obtaining, by the device interface of the network device, the second target parameter of the network device comprises:
acquiring a plurality of initial target parameters of the network equipment through an equipment interface of the network equipment;
the second target parameter is determined from a plurality of initial target parameters based on a regular expression, wherein the second target parameter is a target parameter related to the network resource identified by the server.
4. A method according to claim 2 or 3, wherein said determining, based on a target server identification included in said change request, a first target parameter corresponding to said target server identification from a configuration library comprises:
matching the target server identifier with the server identifier included in the configuration library to obtain an identifier matching result;
and determining the first target parameter from the second target parameter based on the association relation under the condition that the identification matching result indicates the existence of the target server identification.
5. The method of claim 1, wherein the determining, based on a target server identification included in the change request, a first target parameter corresponding to the target server identification from a configuration library comprises:
responding to a received change request, and checking the change request based on a target server identifier included in the change request to obtain a request checking result;
and determining a first target parameter corresponding to the target server identifier from the configuration library based on the target server identifier under the condition that the request verification result representation verification passes.
6. The method of claim 5, wherein the verifying the change request based on the destination server identifier included in the change request to obtain a request verification result includes:
determining first state information of a target server corresponding to the target server identifier and second state information of a service application associated with the target server from a preset database based on the target server identifier included in the change request;
and verifying the change request based on the first state information and the second state information to obtain a request verification result.
7. The method of claim 1, further comprising:
determining a plurality of third target parameters included by the target network device in response to the target network device having completed changing network resources identified by the target server;
checking a network resource changing process of the target network equipment based on the plurality of third target parameters to obtain a changing check result, wherein the changing check result is used for representing whether the network resource of the target network equipment is changed successfully or not;
and under the condition that the change verification result represents that the network resource of the target network equipment fails to change, sending a back-off instruction to the target network equipment so that the target network equipment backs off to a state before changing the network resource of the target server corresponding to the target server identification.
8. A network resource changing apparatus comprising:
the first parameter determining module is used for determining a first target parameter corresponding to a target server identifier from a configuration library based on the target server identifier included in a change request in response to receiving the change request;
the file generation module is used for generating a change file corresponding to target network equipment based on the first target parameter and the change code template so that the target network equipment changes network resources corresponding to the target server identifier based on the change file, wherein the target network equipment is the network equipment corresponding to the target server identifier;
A second parameter determining module, configured to obtain a second target parameter of a network device through a device interface of the network device;
and the configuration library generation module is used for generating a configuration library based on the second target parameter of the network equipment and a server identifier, wherein the server identifier corresponds to the network equipment, and a server corresponding to the server identifier performs network access service by utilizing the network resource of the network equipment.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-7.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any of claims 1-7.
11. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 7.
CN202311104628.1A 2023-08-30 2023-08-30 Network resource changing method, device, equipment and storage medium Pending CN117176576A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311104628.1A CN117176576A (en) 2023-08-30 2023-08-30 Network resource changing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311104628.1A CN117176576A (en) 2023-08-30 2023-08-30 Network resource changing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117176576A true CN117176576A (en) 2023-12-05

Family

ID=88946257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311104628.1A Pending CN117176576A (en) 2023-08-30 2023-08-30 Network resource changing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117176576A (en)

Similar Documents

Publication Publication Date Title
CN113362173A (en) Anti-duplication mechanism verification method, anti-duplication mechanism verification system, electronic equipment and storage medium
CN113918525A (en) Data exchange scheduling method, system, electronic device, medium, and program product
CN114780807A (en) Service detection method, device, computer system and readable storage medium
CN115203178A (en) Data quality inspection method and device, electronic equipment and storage medium
CN117176576A (en) Network resource changing method, device, equipment and storage medium
CN115190008B (en) Fault processing method, fault processing device, electronic equipment and storage medium
CN116401319B (en) Data synchronization method and device, electronic equipment and computer readable storage medium
CN114640585B (en) Resource updating method and device, electronic equipment and storage medium
CN114285743B (en) Method, device, electronic equipment and storage medium for updating configuration information
CN117592105A (en) Method for creating object set mapping, method and device for verifying object authority
CN116975200A (en) Method, device, equipment and medium for controlling working state of server
CN116302561A (en) State control method, device, equipment and storage medium for application instance
CN115658186A (en) Interface calling method and device, electronic equipment and computer readable storage medium
CN117193839A (en) Information processing method, device, equipment and storage medium
CN113568838A (en) Test data generation method, device, equipment, storage medium and program product
CN116028907A (en) Application management method, system, equipment and storage medium
CN116226236A (en) Information verification method and device, electronic equipment and computer readable storage medium
CN117787963A (en) Payment method, device, electronic equipment, medium and computer program product
CN116896525A (en) Configuration detection method, device, equipment and medium of computer equipment
CN115952485A (en) Information processing method, device, equipment and storage medium
CN114218254A (en) Report generation method, device, equipment and storage medium
CN114266547A (en) Method, device, equipment, medium and program product for identifying business processing strategy
CN115760013A (en) Operation and maintenance model construction method and device, electronic equipment and storage medium
CN113947385A (en) Authority auditing method, device, equipment and storage medium
CN114943100A (en) Data verification method, apparatus, device, medium, and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination