Port resource recovery method and device, equipment, storage medium and program product

Through automated query and template management, the problem of inefficient resource recycling of traditional switch ports is solved, and the ports to be recycled are quickly identified and resource recycling efficiency is improved, reducing operation and maintenance costs and resource waste.

CN119996184AActive Publication Date: 2025-05-13INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202510202673.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-24
Publication Date
2025-05-13
Estimated Expiration
2045-02-24

AI Technical Summary

Technical Problem

Traditional switch port resource recycling methods are inefficient and irregular in management, which can easily lead to waste of network resources. Especially when the number of ports needs to be recycled increases, the possibility of manual operation errors increases significantly.

Method used

By logging in to the IP, querying the switch port to be recycled, establishing a requirement table, determining the recycling template, and uploading the target recycling instructions to the change execution system to realize automated and templated management, and reducing manual operations.

Benefits of technology

It improves the response speed of resource recycling, reduces the pressure on operation and maintenance personnel, reduces operation and maintenance costs, ensures the accuracy and efficiency of resource recycling, and avoids waste of network resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996184A_ABST
    Figure CN119996184A_ABST
Patent Text Reader

Abstract

The invention provides a port resource recovery method, which can be used in the financial science and technology field or other fields, and comprises the following steps: querying a plurality of to-be-recovered switch ports according to a login IP needing to be recovered, and obtaining a demand table of the plurality of to-be-recovered switch ports; determining recovery templates of different to-be-recovered switch ports according to each switch model and corresponding port configuration in the demand table; based on the recovery template, determining target recovery instructions of different to-be-recovered switch ports and uploading the target recovery instructions to a change execution system; and the change execution system implements target recovery instructions of different to-be-recovered switch ports so as to complete resource recovery of the plurality of to-be-recovered switch ports. The invention further provides a port resource recovery device and equipment, a storage medium and a program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of financial technology, and more specifically to a port resource recovery method, device, equipment, storage medium and program product. Background Art

[0002] At present, with the rapid development of information technology and the continuous expansion of enterprise network scale, switch resource management in data centers and enterprise networks is particularly important. Due to the age of equipment, technology updates and changes in business needs, many switch ports may face recycling.

[0003] However, traditional resource recovery methods often suffer from inefficiency, irregular management, and errors that waste network resources. For example, manually counting resources to be recovered and writing recovery commands wastes human resources through repetitive work, is inefficient, and increases operation and maintenance costs. As the number of ports to be recovered increases, the possibility of manual operation errors increases significantly. Summary of the invention

[0004] In view of the above problems, the present disclosure provides a port resource recovery method, apparatus, device, storage medium and program product.

[0005] According to a first aspect of the present disclosure, a port resource recovery method is provided, comprising: querying a plurality of switch ports to be recovered according to a login IP to be recovered, and obtaining a demand table of the plurality of switch ports to be recovered; determining recovery templates for different switch ports to be recovered according to each switch model and the corresponding port configuration in the demand table; determining target recovery instructions for different switch ports to be recovered based on the recovery template and uploading them to a change execution system; the change execution system implements the target recovery instructions for different switch ports to be recovered to complete resource recovery for the plurality of switch ports to be recovered.

[0006] According to an embodiment of the present disclosure, multiple switch ports to be recycled are queried according to the login IP to be recycled, and a demand table of multiple switch ports to be recycled is obtained, including: determining multiple resource types to be recycled and associated login IP addresses, and logging in to the switch management interface; according to each login IP address, querying the switch port corresponding to the IP address in a preset database; based on the query result, determining the switch port to be recycled among the switch ports corresponding to the IP address; collecting additional information of the multiple switch ports to be recycled, and establishing a demand table of multiple switch ports to be recycled according to a preset demand table template.

[0007] According to an embodiment of the present disclosure, based on each switch model and the corresponding port configuration in the demand table, a recycling template for different switch ports to be recycled is determined, wherein the recycling template includes the switch model, port type, recycling quantity, port status, recycling date, recycling process and standard recycling instructions.

[0008] According to an embodiment of the present disclosure, based on a recycling template, target recycling instructions for different switch ports to be recycled are determined and uploaded to a change execution system, including: reviewing the port type, recycling standard and record format of the recycling template, and determining the review result; after the review result is passed, formulating target recycling instructions for different switch ports to be recycled according to the recycling template; determining change requests for different switch ports to be recycled according to the target recycling instructions for different switch ports to be recycled; based on the approval of the change request, logging into the change execution system, and uploading the target recycling instructions for different switch ports to be recycled to the change execution system.

[0009] According to an embodiment of the present disclosure, a change execution system implements target recovery instructions for different switch ports to be recovered to complete resource recovery of multiple switch ports to be recovered, including: executing the target recovery instruction for each switch port to be recovered; checking the state activity change of each switch port to be recovered, and determining that each switch port to be recovered has been recovered and is in an inactive state.

[0010] According to an embodiment of the present disclosure, after completing resource recovery of multiple switch ports to be recovered, the method further includes: updating a network topology map and a device configuration document; and regularly reviewing the network status.

[0011] According to an embodiment of the present disclosure, the method further includes: regularly monitoring the traffic usage and connection device status of each switch port; and determining the switch ports to be recycled and the normal switch ports in the switch ports based on the traffic usage and connection device status.

[0012] A second aspect of the present disclosure provides a port resource recovery device, including: a port requirement table acquisition module, used to query multiple switch ports to be recovered according to a login IP to be recovered, and obtain a requirement table of multiple switch ports to be recovered; a recovery template determination module, used to determine the recovery templates of different switch ports to be recovered according to each switch model and the corresponding port configuration in the requirement table; a target recovery instruction determination module, used to determine the target recovery instructions of different switch ports to be recovered based on the recovery template and upload them to the change execution system; a resource recovery module, used for the change execution system to implement the target recovery instructions of different switch ports to be recovered, so as to complete the resource recovery of multiple switch ports to be recovered.

[0013] According to an embodiment of the present disclosure, the device also includes: a monitoring module for regularly monitoring the traffic usage and connection device status of each switch port; a port classification module for determining the switch ports to be recycled and the normal switch ports in the switch ports based on the traffic usage and the connection device status.

[0014] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.

[0015] The fourth aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the above computer program or instructions are executed by a processor.

[0016] The fifth aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the above computer program or instructions are executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0018] Figure 1 The application scenario diagram of the port resource recovery method according to the embodiment of the present disclosure is schematically shown;

[0019] Figure 2 A flow chart of a port resource recovery method according to an embodiment of the present disclosure is schematically shown;

[0020] Figure 3 A flowchart of obtaining a port requirement table according to an embodiment of the present disclosure is schematically shown;

[0021] Figure 4 A flowchart of determining a target recycling instruction according to an embodiment of the present disclosure is schematically shown;

[0022] Figure 5 Schematically shows a flow chart of resource recycling according to an embodiment of the present disclosure;

[0023] Figure 6 A schematic diagram showing a structural block diagram of a port resource recovery device according to an embodiment of the present disclosure; and

[0024] Figure 7 A block diagram of an electronic device suitable for implementing a port resource recovery method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0025] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0026] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0027] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0028] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0029] It should be noted that the port resource recovery method and device disclosed herein can be used in the field of financial technology, and can also be used in any field other than the field of financial technology. The application field of the port resource recovery method and device disclosed herein is not limited.

[0030] In the technical solution of the present disclosure, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0031] In the scenario of using personal information for automated decision-making, the methods, devices, and systems provided by the embodiments of the present disclosure provide users with corresponding operation portals for users to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered. The expression "automated decision-making" here refers to the activity of automatically analyzing and evaluating a person's behavioral habits, interests and hobbies, or economic, health, credit status, etc. through computer programs, and making decisions. The expression "expert decision-making" here refers to the activity of making decisions by people who specialize in a certain field, have specialized experience, knowledge and skills, and have reached a certain level of professionalism.

[0032] An embodiment of the present disclosure provides a port resource recovery method, which includes: querying multiple switch ports to be recovered according to a login IP to be recovered, and obtaining a demand table of multiple switch ports to be recovered; determining recovery templates for different switch ports to be recovered according to each switch model and the corresponding port configuration in the demand table; based on the recovery template, determining target recovery instructions for different switch ports to be recovered and uploading them to a change execution system; the change execution system implements the target recovery instructions for different switch ports to be recovered to complete resource recovery of multiple switch ports to be recovered.

[0033] Through the embodiments of the present disclosure, the method can quickly identify ports to be recycled through automated query and template management, improve the response speed of resource recovery, reduce the pressure on operation and maintenance personnel, and improve enterprise production efficiency without manual operation; upload the recycling instructions to the change execution system to ensure the immediate implementation and tracking of the instructions, so that network management and resource recovery are integrated, and the efficiency of network management is improved.

[0034] Figure 1 The application scenario diagram of the port resource recovery method according to the embodiment of the present disclosure is schematically shown.

[0035] like Figure 1 As shown, the 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 to provide a medium for communication links between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0036] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).

[0037] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0038] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0039] It should be noted that the port resource recovery method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the port resource recovery device provided in the embodiment of the present disclosure can generally be set in the server 105. The port resource recovery method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the port resource recovery device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.

[0040] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0041] The following will be based on Figure 1 The scene described by Figure 2~Figure 5 The port resource recovery method of the disclosed embodiment is described in detail.

[0042] Figure 2 The flowchart of the port resource recovery method according to the embodiment of the present disclosure is schematically shown.

[0043] According to the embodiments of the present disclosure, enterprises need to regularly recycle idle or unused switch ports in network resource management to optimize the utilization of network resources. The implementation of the present disclosure proposes a method for port resource recycling. The following describes how to perform resource recycling in network management.

[0044] like Figure 2 As shown, in an embodiment of the present disclosure, the port resource recovery method specifically includes operations S210 to S240.

[0045] In operation S210, a plurality of switch ports to be reclaimed are queried according to the login IP to be reclaimed, and a demand table of the plurality of switch ports to be reclaimed is obtained.

[0046] Figure 3 The flowchart of obtaining the port requirement table according to the embodiment of the present disclosure is schematically shown.

[0047] like Figure 3 As shown, in an embodiment of the present disclosure, multiple switch ports to be recycled are queried according to the login IP to be recycled, and a demand table of multiple switch ports to be recycled is obtained, which specifically includes operations S310 to S340.

[0048] In operation S310, a plurality of resource types to be reclaimed and associated login IP addresses are determined, and a switch management interface is logged in.

[0049] According to an embodiment of the present disclosure, in network resource management, the traffic usage and connection device status of each switch port are regularly monitored; based on the traffic usage and connection device status, the switch ports to be recycled and the normal switch ports in the switch ports are respectively determined.

[0050] For example, the network administrator determines the resource types that need to be reclaimed through monitoring, such as unused switch ports. All login IP addresses associated with these resource types are collected using log files or traffic analysis tools. For example, 10 IP addresses are identified, and the devices corresponding to these addresses have not had any traffic in the past 30 days.

[0051] In operation S320, according to each login IP address, a switch port corresponding to the IP address is searched in a preset database.

[0052] For example, the administrator executes an SQL query in a preset database to find the switch port corresponding to each login IP address. For example, the query result for the first IP address (192.168.1.10) is port "GigabitEthernet1 / 0 / 5", the query result for the second IP address (192.168.1.20) is "GigabitEthernet1 / 0 / 6", and so on, querying all 10 IP addresses.

[0053] In operation S330 , based on the query result, a switch port to be reclaimed among the switch ports corresponding to the IP address is determined.

[0054] In operation S340, additional information of the plurality of switch ports to be reclaimed is collected, and a demand table of the plurality of switch ports to be reclaimed is established according to a preset demand table template.

[0055] Exemplarily, according to the query result, the switch ports to be recycled among the switch ports corresponding to the IP address are determined. Additional information of each switch port to be recycled is collected, such as: switch model, port status (e.g., up / down), physical location and last activity time, etc. Then, the collected information is organized into a demand form according to a preset demand form template format.

[0056] Through the embodiments of the present disclosure, relevant information of the switch ports to be recycled is identified and sorted out, providing data support for resource recycling and network optimization, effectively improving resource management efficiency, and reducing unnecessary waste of network resources.

[0057] In operation S220, a recycling template for different switch ports to be recycled is determined according to each switch model and corresponding port configuration in the demand table.

[0058] According to an embodiment of the present disclosure, based on each switch model and the corresponding port configuration in the demand table, a recycling template for different switch ports to be recycled is determined, wherein the recycling template includes the switch model, port type, recycling quantity, port status, recycling date, recycling process and standard recycling instructions.

[0059] In operation S230 , based on the recycling template, target recycling instructions for different switch ports to be recycled are determined and uploaded to the change execution system.

[0060] Figure 4 The flowchart of determining a target recycling instruction according to an embodiment of the present disclosure is schematically shown.

[0061] like Figure 4As shown, in an embodiment of the present disclosure, based on the recycling template, target recycling instructions for different switch ports to be recycled are determined and uploaded to the change execution system, specifically including operations S410 to S440.

[0062] In operation S410, the port type, recycling standard and record format of the recycling template are reviewed to determine the review result.

[0063] According to the embodiments of the present disclosure, the above recycling template is reviewed, including the port type (such as Ethernet port, fiber port), recycling standard (such as equipment service life, failure rate) and recording format. It is mainly checked whether the port type conforms to the enterprise network architecture, whether the recycling standard is reasonable, and whether the recording format is convenient for subsequent data processing.

[0064] In operation S420, after the audit result is passed, target recycling instructions for different switch ports to be recycled are formulated according to the recycling template.

[0065] Exemplarily, when the audit result is passed, the switch ports to be recycled are determined according to the recycling template, for example, Ethernet ports of model "Cisco 2960", with a total of 100 ports to be recycled.

[0066] Furthermore, a target recycling instruction is written for each port to be recycled, and the instruction includes a device number, a port number, and a recycling reason (eg, device upgrade).

[0067] In operation S430, change requests of different switch ports to be reclaimed are determined according to target reclaiming instructions of different switch ports to be reclaimed.

[0068] Exemplarily, for each switch port to be recycled, a change request is generated according to the target recycling instruction. For example, the change request includes the change type: port recycling; affected devices: switch model and serial number; change time: recommended operation time.

[0069] Furthermore, all change requests are categorized and organized to ensure the accuracy and completeness of the information.

[0070] In operation S440 , based on the approval of the change request, the change execution system is logged in, and target recovery instructions for different switch ports to be recovered are uploaded to the change execution system.

[0071] Specifically, the generated target recovery instructions for different switch ports to be recovered are uploaded to the change execution system one by one to ensure that the change execution system can identify and process these instructions, and check the system feedback to confirm that all instructions have been successfully uploaded. If there are any failures, they are promptly checked and corrected. In other words, logging into the change execution system and uploading the target recovery instructions can achieve real-time monitoring of the recovery process.

[0072] Through the embodiments of the present disclosure, by reviewing the port type, recycling standard and record format of the recycling template, the consistency and standardization of the recycling process can be ensured, thereby reducing human errors and improving work efficiency. In addition, a change request is generated according to the target recycling instruction to ensure the rational use and effective recycling of resources in the equipment life cycle management, reducing unnecessary waste of resources.

[0073] In operation S240 , the change execution system implements target reclamation instructions for different switch ports to be reclaimed to complete resource reclamation of multiple switch ports to be reclaimed.

[0074] Figure 5 The flowchart of resource recycling according to an embodiment of the present disclosure is schematically shown.

[0075] like Figure 5 As shown, in an embodiment of the present disclosure, the change execution system implements target recycling instructions of different switch ports to be recycled to complete resource recycling of multiple switch ports to be recycled, specifically including operations S510 to S520.

[0076] In operation S510 , a target reclaim instruction of each switch port to be reclaimed is executed.

[0077] In operation S520 , the state activity change of each to-be-reclaimed switch port is checked to determine that each to-be-reclaimed switch port has been reclaimed and is in an inactive state.

[0078] Specifically, select the switch ports to be recycled, such as port 1 to port 8. Execute the target recycling command for each port in turn. For example: for port 1, enter the recycling command: shutdown command to shut down the port. Repeat the above operation until all ports to be recycled (port 2 to port 8) have executed the corresponding recycling command, ensuring that after each command is executed, the system returns a confirmation message to ensure that no error occurs.

[0079] Furthermore, after executing all the recycling instructions, enter the status monitoring interface to check the status of each port to be recycled one by one.

[0080] According to the embodiment of the present disclosure, after completing resource recovery of multiple switch ports to be recovered, it also includes updating the network topology map and device configuration documents, and regularly reviewing the network status. For example, through status inspection and traffic monitoring, the use of the device and the recovery effect can be timely understood.

[0081] Through the embodiments of the present disclosure, it is ensured that the switch port to be recycled can be successfully recycled according to the established requirements, and it is ensured that effective status monitoring and recording are achieved in the whole process, thereby improving the network management efficiency.

[0082] Through the embodiments of the present disclosure, the method queries the switch ports to be recycled by logging in to the IP, establishes a demand table, determines the recycling template, and uploads the target recycling instructions of different switch ports to be recycled to the change execution system, which not only improves the accuracy of resource recycling, but also ensures the high efficiency of the recycling process; in addition, after the recycling is implemented, through status inspection and traffic monitoring, the use of the equipment and the recycling effect can be understood in time, so that network resources can be continuously optimized, the waste of idle port resources can be avoided, and the utilization rate of resources can be improved, thereby improving the efficiency of enterprise network management.

[0083] Based on the above port resource recovery method, the present disclosure also provides a port resource recovery device. Figure 6 The device is described in detail.

[0084] Figure 6 The structure block diagram of the port resource recovery device according to the embodiment of the present disclosure is schematically shown.

[0085] like Figure 6 As shown, the port resource recovery device 600 of this embodiment includes a port requirement table acquisition module 610 , a recovery template determination module 620 , a target recovery instruction determination module 630 and a resource recovery module 640 .

[0086] The port requirement table acquisition module 610 is used to query multiple switch ports to be recycled according to the login IP to be recycled, and obtain the requirement table of multiple switch ports to be recycled. In one embodiment, the port requirement table acquisition module 610 can be used to perform the operation S210 described above, which will not be repeated here.

[0087] The recycling template determination module 620 is used to determine the recycling templates of different switch ports to be recycled according to each switch model and the corresponding port configuration in the demand table. In one embodiment, the recycling template determination module 620 can be used to perform the operation S220 described above, which will not be repeated here.

[0088] The target recovery instruction determination module 630 is used to determine the target recovery instructions of different switch ports to be recovered based on the recovery template and upload them to the change execution system. In one embodiment, the target recovery instruction determination module 630 can be used to perform the operation S230 described above, which will not be repeated here.

[0089] The resource recovery module 640 is used to change the execution system to implement the target recovery instructions of different switch ports to be recovered, so as to complete the resource recovery of multiple switch ports to be recovered. In one embodiment, the resource recovery module 640 can be used to perform the operation S240 described above, which will not be repeated here.

[0090] In the embodiment of the present disclosure, the port resource recovery device 600 further includes a monitoring module and a port classification module.

[0091] The monitoring module is used to regularly monitor the traffic usage and connected device status of each switch port.

[0092] The port classification module is used to determine the switch ports to be recycled and the normal switch ports in the switch ports respectively based on the traffic usage and the connection device status.

[0093] In the embodiment of the present disclosure, the port requirement table acquisition module 610 includes a management interface login unit, a switch port query unit, a switch port to be reclaimed confirmation unit and a port requirement table acquisition unit.

[0094] The management interface login unit is used to determine multiple resource types to be reclaimed and associated login IP addresses, and log in to the switch management interface. In one embodiment, the management interface login unit can be used to perform the operation S310 described above, which will not be repeated here.

[0095] The switch port query unit is used to query the switch port corresponding to each login IP address in a preset database. In one embodiment, the switch port query unit can be used to perform the operation S320 described above, which will not be repeated here.

[0096] The switch port to be recycled confirmation unit is used to determine the switch port to be recycled among the switch ports corresponding to the IP address based on the query result. In one embodiment, the switch port to be recycled confirmation unit can be used to perform the operation S330 described above, which will not be repeated here.

[0097] The port requirement table acquisition unit is used to collect additional information of multiple switch ports to be recycled and establish a requirement table of multiple switch ports to be recycled according to a preset requirement table template. In one embodiment, the port requirement table acquisition unit can be used to perform the operation S340 described above, which will not be repeated here.

[0098] In an embodiment of the present disclosure, the target recycling instruction determination module 630 includes a recycling template review unit, a target recycling instruction determination unit, a change request generation unit, and a target recycling instruction upload unit.

[0099] The recycling template review unit is used to review the port type, recycling standard and record format of the recycling template and determine the review result. In one embodiment, the recycling template review unit can be used to perform the operation S410 described above, which will not be described in detail here.

[0100] The target recovery instruction determination unit is used to formulate target recovery instructions for different switch ports to be recovered according to the recovery template after the audit result is passed. In one embodiment, the target recovery instruction determination unit can be used to perform the operation S420 described above, which will not be repeated here.

[0101] The change request generating unit is used to determine the change request of different switch ports to be reclaimed according to the target reclaiming instructions of different switch ports to be reclaimed. In one embodiment, the change request generating unit can be used to perform the operation S430 described above, which will not be described in detail here.

[0102] The target recovery instruction uploading unit is used to log in to the change execution system based on the approval of the change request, and upload the target recovery instructions of different switch ports to be recovered to the change execution system. In one embodiment, the target recovery instruction uploading unit can be used to perform the operation S440 described above, which will not be repeated here.

[0103] In the embodiment of the present disclosure, the resource recovery module 640 includes a target recovery instruction execution unit and a port activity status checking unit.

[0104] The target recovery instruction execution unit is used to execute the target recovery instruction of each switch port to be recovered. In one embodiment, the target recovery instruction execution unit can be used to execute the operation S510 described above, which will not be repeated here.

[0105] The port activity status checking unit is used to check the status activity change of each switch port to be recycled, and determine that each switch port to be recycled has been recycled and is in an inactive state. In one embodiment, the port activity status checking unit can be used to perform the operation S520 described above, which will not be repeated here.

[0106] According to an embodiment of the present disclosure, any multiple modules among the port demand table acquisition module 610, the recycling template determination module 620, the target recycling instruction determination module 630 and the resource recycling module 640 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the port demand table acquisition module 610, the recycling template determination module 620, the target recycling instruction determination module 630 and the resource recycling module 640 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in a proper combination of any of them. Alternatively, at least one of the port requirement table acquisition module 610, the recycling template determination module 620, the target recycling instruction determination module 630 and the resource recycling module 640 can be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function can be executed.

[0107] Figure 7 A block diagram of an electronic device suitable for implementing a port resource recovery method according to an embodiment of the present disclosure is schematically shown.

[0108] like Figure 7 As shown, the electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which 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 part 708 to a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include an onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0109] In RAM 703, various programs and data required for the operation of electronic device 700 are stored. Processor 701, ROM 702 and RAM 703 are connected to each other via bus 704. Processor 701 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 702 and / or RAM 703. It should be noted that the program can also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in one or more memories.

[0110] According to an embodiment of the present disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to the bus 704. The electronic device 700 may further include one or more of the following components connected to the input / output (I / O) interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 708 including a hard disk, etc.; and a communication portion 709 including a network interface card such as a LAN card, a modem, etc. The communication portion 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the 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, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage portion 708 as needed.

[0111] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0112] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction change execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 702 and / or RAM 703 described above and / or one or more memories other than ROM 702 and RAM 703.

[0113] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the port resource recovery method provided by the embodiment of the present disclosure.

[0114] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 701. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0115] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 709, and / or installed from the removable medium 711. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0116] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0117] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0118] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0119] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0120] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A port resource recovery method, characterized in that: The method comprises: Query multiple switch ports to be recycled according to the login IP to be recycled, and obtain a demand table of the multiple switch ports to be recycled; Determine the recycling templates of different switch ports to be recycled according to each switch model and corresponding port configuration in the demand table; Based on the recycling template, determining target recycling instructions for different switch ports to be recycled and uploading them to the change execution system; The change execution system implements the target recycling instructions of the different switch ports to be recycled to complete resource recycling of multiple switch ports to be recycled.

2. The port resource recovery method according to claim 1, characterized in that: The querying of multiple switch ports to be recycled according to the login IP to be recycled and obtaining a demand table of the multiple switch ports to be recycled includes: Determine multiple resource types to be recycled and their associated login IP addresses, and log in to the switch management interface; According to each of the login IP addresses, query the switch port corresponding to the IP address in a preset database; Based on the query result, determine the switch port to be recycled among the switch ports corresponding to the IP address; Additional information of the plurality of switch ports to be recycled is collected, and a demand table of the plurality of switch ports to be recycled is established according to a preset demand table template.

3. The port resource recovery method according to claim 1 or 2, characterized in that: According to each switch model and corresponding port configuration in the demand table, a recycling template for different switch ports to be recycled is determined, wherein the recycling template includes the switch model, port type, recycling quantity, port status, recycling date, recycling process and standard recycling instructions.

4. The port resource recovery method according to claim 3, characterized in that: The step of determining target recycling instructions for different switch ports to be recycled based on the recycling template and uploading the instructions to the change execution system includes: Review the port type, recycling standard and record format of the recycling template and determine the review results; After the audit result is passed, target recycling instructions for different switch ports to be recycled are formulated according to the recycling template; Determining change requests for different switch ports to be recycled according to the target recycling instructions of the different switch ports to be recycled; Based on the approval of the change request, the change execution system is logged in, and the target recovery instructions of the different switch ports to be recovered are uploaded to the change execution system.

5. The port resource recovery method according to claim 1 or 4, characterized in that: The change execution system implements the target recovery instructions of the different switch ports to be recovered to complete resource recovery of multiple switch ports to be recovered, including: Execute the target recovery instruction of each switch port to be recovered; Check the status activity change of each switch port to be reclaimed to determine that each switch port to be reclaimed has been reclaimed and is in an inactive state.

6. The port resource recovery method according to claim 5, characterized in that: After completing resource recovery of the plurality of switch ports to be recovered, the method further includes: Update network topology diagrams and device configuration documents; Review the status of your network regularly.

7. The port resource recovery method according to claim 1, characterized in that: The method further comprises: Regularly monitor the traffic usage and connected device status of each switch port; Based on the traffic usage and the connection device status, the switch ports to be recycled and the normal switch ports in the switch ports are respectively determined.

8. A port resource recovery device, characterized in that: The device comprises: A port demand table acquisition module is used to query multiple switch ports to be recycled according to the login IP to be recycled, and obtain the demand table of the multiple switch ports to be recycled; A recycling template determination module, used to determine the recycling templates of different switch ports to be recycled according to each switch model and corresponding port configuration in the demand table; A target recycling instruction determination module, used to determine target recycling instructions for different switch ports to be recycled based on the recycling template and upload them to a change execution system; The resource recovery module is used for the change execution system to implement the target recovery instructions of the different switch ports to be recovered, so as to complete the resource recovery of multiple switch ports to be recovered.

9. The port resource recovery device according to claim 8, characterized in that: The device also includes: Monitoring module, used to regularly monitor the traffic usage and connected device status of each switch port; The port classification module is used to determine the switch ports to be recycled and the normal switch ports in the switch ports respectively based on the traffic usage and the connection device status.

10. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.

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

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

Citation Information

Patent Citations

  • Resource scheduling method and system

    CN105933136A

  • Resource recovery processing method and device

    CN114579315A

  • Resource recovery method, system and equipment and storage medium

    CN117389736A

  • Method, device, equipment and medium for automatically forbidding abnormal traffic IP

    CN117879954A

  • Terminal network access management method, device, equipment, medium and program product

    CN118250249A