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

By using automated querying and templated management, target reclamation instructions for switch ports are generated, solving the problem of low efficiency in traditional methods and achieving efficient resource reclamation and network management.

CN119996184BActive Publication Date: 2026-06-02INDUSTRIAL AND COMMERCIAL BANK OF CHINA

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
Filing Date
2025-02-24
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

Traditional methods for reclaiming switch port resources are inefficient and poorly managed, leading to wasted network resources, frequent human error, and increased maintenance costs.

Method used

Through automated querying and template-based management, ports to be reclaimed are identified, target reclamation instructions are generated and uploaded to the change execution system, thereby realizing the resource reclamation of switch ports.

Benefits of technology

It improves the response speed of resource recycling, reduces the pressure on operation and maintenance personnel, ensures the timely implementation and tracking of instructions, improves network management efficiency, and reduces resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996184B_ABST
    Figure CN119996184B_ABST
Patent Text Reader

Abstract

The disclosure provides a port resource recycling method, which can be applied to the field of financial technology or other fields, and includes the following steps: querying a plurality of to-be-recycled switch ports according to a login IP to be recycled, and obtaining a demand table of the plurality of to-be-recycled switch ports; determining a recycling template of different to-be-recycled switch ports according to each switch model and the corresponding port configuration in the demand table; determining a target recycling instruction of the different to-be-recycled switch ports based on the recycling template and uploading the target recycling instruction to a change execution system; and implementing the target recycling instruction of the different to-be-recycled switch ports by the change execution system, so as to complete resource recycling of the plurality of to-be-recycled switch ports. The disclosure also provides a port resource recycling device, equipment, a storage medium and a program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of financial technology, and more specifically to a method, apparatus, device, storage medium, and program product for port resource recycling. Background Technology

[0002] Currently, with the rapid development of information technology and the continuous expansion of enterprise network scale, the management of switch resources in data centers and enterprise networks has become particularly important. Due to the service life of equipment, technology updates, and changes in business needs, many switch ports may face recycling.

[0003] However, traditional resource reclamation methods often suffer from inefficiency, poor management, and errors that lead to wasted network resources. For example, manually counting the resources to be reclaimed and writing reclamation commands is a repetitive task that wastes human resources, is inefficient, increases maintenance costs, and significantly increases the possibility of human error as the number of ports to be reclaimed increases. Summary of the Invention

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

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

[0006] According to embodiments of this disclosure, multiple switch ports to be reclaimed are queried based on the login IP address to be reclaimed, and a demand table for multiple switch ports to be reclaimed is obtained. This includes: determining multiple resource types to be reclaimed and their associated login IP addresses, and logging into the switch management interface; querying the switch port corresponding to each login IP address in a preset database; determining the switch ports to be reclaimed among the switch ports corresponding to the IP address based on the query results; collecting additional information on multiple switch ports to be reclaimed, and establishing a demand table for multiple switch ports to be reclaimed based on a preset demand table template.

[0007] According to embodiments of this disclosure, based on 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 switch model, port type, recycling quantity, port status, recycling date, recycling process, and standard recycling instructions.

[0008] According to embodiments of this 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 standards, and record format of the recycling template, and determining the review result; after the review result is approved, target recycling instructions for different switch ports to be recycled are formulated according to the recycling template; based on the target recycling instructions for different switch ports to be recycled, change requests for different switch ports to be recycled are determined; based on the approval of the change requests, the system is logged into the change execution system, and the target recycling instructions for different switch ports to be recycled are uploaded to the change execution system.

[0009] According to embodiments of this disclosure, the change execution system implements target recycling instructions for different switch ports to be recycled in order to complete the resource recycling of multiple switch ports to be recycled, including: executing the target recycling instruction for each switch port to be recycled; checking the status activity changes of each switch port to be recycled, and determining that each switch port to be recycled has been recycled and is in an inactive state.

[0010] According to embodiments of this disclosure, after completing the resource reclamation of multiple switch ports to be reclaimed, the method further includes: updating the network topology diagram and device configuration documents; and periodically reviewing the network status.

[0011] According to embodiments of this disclosure, the method further includes: periodically monitoring the traffic usage and connected device status of each switch port; and determining the switch ports to be reclaimed and the normal switch ports based on the traffic usage and connected device status.

[0012] The second aspect of this disclosure provides a port resource reclamation device, comprising: a port demand table acquisition module, used to query multiple switch ports to be reclaimed based on the login IP to be reclaimed, and obtain a demand table for multiple switch ports to be reclaimed; a reclamation template determination module, used to determine a reclamation template for different switch ports to be reclaimed based on each switch model and corresponding port configuration in the demand table; a target reclamation instruction determination module, used to determine a target reclamation instruction for different switch ports to be reclaimed based on the reclamation template and upload it to a change execution system; and a resource reclamation module, used by the change execution system to implement the target reclamation instructions for different switch ports to be reclaimed, so as to complete the resource reclamation of multiple switch ports to be reclaimed.

[0013] According to embodiments of this disclosure, the apparatus further includes: a monitoring module for periodically monitoring the traffic usage and connected device status of each switch port; and a port classification module for determining, based on the traffic usage and connected device status, switch ports to be reclaimed and normal switch ports.

[0014] A third aspect of this 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 method described above.

[0015] A fourth aspect of this disclosure also provides a computer-readable storage medium having a computer program or instructions stored thereon, which, when executed by a processor, implement the steps of the above-described method.

[0016] The fifth aspect of this disclosure also provides a computer program product, including a computer program or instructions that, when executed by a processor, implement the steps of the above-described method. Attached Figure Description

[0017] The foregoing contents, as well as other objects, features, and advantages of this disclosure, will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:

[0018] Figure 1 This diagram illustrates an application scenario of the port resource reclamation method according to an embodiment of the present disclosure.

[0019] Figure 2 A flowchart illustrating a port resource reclamation method according to an embodiment of the present disclosure is shown schematically.

[0020] Figure 3 A flowchart illustrating the process of obtaining a port requirement table according to an embodiment of this disclosure is shown schematically.

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

[0022] Figure 5 A flowchart illustrating resource recycling according to an embodiment of the present disclosure is shown schematically;

[0023] Figure 6 A schematic diagram illustrating the structure of a port resource recycling apparatus according to an embodiment of the present disclosure is shown; and

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

[0025] The embodiments of the present disclosure will now 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 disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.

[0026] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

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

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

[0029] It should be noted that the port resource recycling method and apparatus disclosed herein can be used in the fintech field, or in any field other than fintech. The application field of the port resource recycling method and apparatus disclosed herein is not limited.

[0030] In the technical solution disclosed herein, the user information (including but not limited to user personal information, user image information, user device information, such as location information) and data (including but not limited to data used for analysis, stored data, and displayed data) involved are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of related data all comply with relevant laws, regulations, and standards, necessary confidentiality measures have been taken, and they do not violate public order and good morals. Corresponding operation entry points are provided for users to choose to authorize or refuse.

[0031] In scenarios involving automated decision-making using personal information, the methods, devices, and systems provided in this disclosure all offer users corresponding entry points for choosing to agree to or reject the automated decision-making results. If the user chooses to reject, the process proceeds to the expert decision-making stage. Here, "automated decision-making" refers to the activity of automatically analyzing and evaluating an individual's behavioral habits, interests, or economic, health, and credit status through computer programs, and then making a decision. Here, "expert decision-making" refers to the activity of making decisions by personnel who specialize in a particular field, possess specialized experience, knowledge, and skills, and have reached a certain level of professional expertise.

[0032] The embodiments of this disclosure provide a port resource reclamation method, which includes: querying multiple switch ports to be reclaimed based on the login IP to be reclaimed, and obtaining a demand table for multiple switch ports to be reclaimed; determining a reclamation template for different switch ports to be reclaimed based on the switch model and corresponding port configuration in the demand table; determining target reclamation instructions for different switch ports to be reclaimed based on the reclamation templates and uploading them to a change execution system; and implementing the target reclamation instructions for different switch ports to be reclaimed to complete the resource reclamation of multiple switch ports to be reclaimed.

[0033] Through the embodiments of this disclosure, the method can quickly identify ports to be recycled through automated querying and template-based management, improve the response speed of resource recycling, reduce the pressure on operation and maintenance personnel, eliminate the need for manual operation, and improve enterprise production efficiency; the recycling instructions are uploaded to the change execution system to ensure the immediate implementation and tracking of the instructions, thereby integrating network management and resource recycling and improving the efficiency of network management.

[0034] Figure 1 The diagram illustrates an application scenario of the port resource reclamation method according to an embodiment of the present disclosure.

[0035] like Figure 1 As shown, application scenario 100 according to this embodiment may include terminal devices 101, 102, and 103, a network 104, and a server 105. Network 104 serves as a medium for providing communication links between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. Network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0036] Users can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 via 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 media platform software, etc. (for example only).

[0037] The first terminal device 101, the second terminal device 102, and the third terminal device 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, laptops, and desktop computers.

[0038] Server 105 can be a server that provides various services, such as a backend management server that supports websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103 (this is just an example). The backend management server can analyze and process data such as received 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 devices.

[0039] It should be noted that the port resource reclamation method provided in this embodiment can generally be executed by server 105. Correspondingly, the port resource reclamation device provided in this embodiment can generally be located in server 105. The port resource reclamation method provided in this embodiment can also be executed by a server or server cluster that is different from server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or server 105. Correspondingly, the port resource reclamation device provided in this embodiment can also be located in a server or server cluster that is different from server 105 and capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and / or server 105.

[0040] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0041] The following will be based on Figure 1 The described scene, through Figures 2-5 The port resource reclamation method of the disclosed embodiments is described in detail.

[0042] Figure 2 A flowchart illustrating a port resource reclamation method according to an embodiment of the present disclosure is shown schematically.

[0043] According to embodiments of this disclosure, enterprises need to periodically reclaim idle or unused switch ports in network resource management to optimize network resource utilization. This disclosure proposes a method for port resource reclamation, and the following describes how to perform resource reclamation in network management.

[0044] like Figure 2 As shown, in the embodiments of this disclosure, the port resource reclamation method specifically includes operations S210 to S240.

[0045] When operating S210, query multiple switch ports to be recycled based on the login IP that needs to be recycled, and obtain a demand table for multiple switch ports to be recycled.

[0046] Figure 3 A flowchart illustrating the process of obtaining a port requirement table according to an embodiment of this disclosure is shown.

[0047] like Figure 3 As shown, in the embodiments of this disclosure, multiple switch ports to be reclaimed are queried based on the login IP to be reclaimed, and a demand table for multiple switch ports to be reclaimed is obtained, specifically including operations S310 to S340.

[0048] When operating S310, identify multiple resource types that need to be reclaimed and their associated login IP addresses, and log in to the switch management interface.

[0049] According to the embodiments of this disclosure, in network resource management, the traffic usage and connected device status of each switch port are monitored periodically; based on the traffic usage and connected device status, switch ports to be reclaimed and normal switch ports are determined respectively.

[0050] For example, network administrators can use monitoring to identify resource types that need to be reclaimed, such as unused switch ports. They can then use log files or traffic analysis tools to collect all login IP addresses associated with these resource types. For instance, they might identify 10 IP addresses whose corresponding devices have not had any traffic in the past 30 days.

[0051] When operating the S320, the system queries the preset database for the switch port corresponding to each login IP address.

[0052] For example, the administrator executes an SQL query in a pre-defined database to find the switch port corresponding to each login IP address. For instance, the query result for the first IP address (192.168.1.10) is the 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] When operating S330, based on the query results, determine the switch ports to be reclaimed among the switch ports corresponding to the IP addresses.

[0054] When operating the S340, additional information on multiple switch ports to be recycled is collected, and a demand table for multiple switch ports to be recycled is created based on a preset demand table template.

[0055] For example, based on the query results, the switch ports to be reclaimed among the switch ports corresponding to the IP addresses are identified. Additional information for each switch port to be reclaimed is collected, including, for example, switch model, port status (e.g., up / down), physical location, and the time of the last activity. Then, the collected information is organized into a requirements table according to a pre-defined template format.

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

[0057] When operating S220, based on each switch model and corresponding port configuration in the requirements table, determine the recycling template for different ports of the switch to be recycled.

[0058] According to the embodiments of this disclosure, based on 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 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, the target recycling instructions for different switch ports to be recycled are determined and uploaded to the change execution system.

[0060] Figure 4 A flowchart illustrating the determination of a target recovery instruction according to an embodiment of the present disclosure is shown schematically.

[0061] like Figure 4As shown, in the embodiments of this disclosure, based on the recycling template, the 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] When operating S410, review the port type, recycling criteria, and record format of the recycling template, and determine the review results.

[0063] According to embodiments of this disclosure, the aforementioned recycling template is reviewed, including port type (e.g., Ethernet port, fiber optic port), recycling criteria (e.g., equipment lifespan, failure rate), and record format. The main checks include whether the port type conforms to the enterprise network architecture, whether the recycling criteria are reasonable, and whether the record format facilitates subsequent data processing.

[0064] After the S420 is operated and the review results are approved, target recycling instructions for different switch ports to be recycled are formulated according to the recycling template.

[0065] For example, once the audit is approved, the switch ports to be recycled are determined according to the recycling template. For example, there are 100 Ethernet ports of the model "Cisco 2960" to be recycled.

[0066] Furthermore, write a target recycling instruction for each port to be recycled, including the device number, port number, and recycling reason (e.g., device upgrade).

[0067] When operating S430, the change requests for different switch ports to be recycled are determined based on the target recycling instructions for different switch ports to be recycled.

[0068] For example, for each switch port to be recycled, a change request is generated based on the target recycling instruction. This change request might include, for instance, the change type: port recycling; affected devices: switch model and serial number; and change time: suggested operation time.

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

[0070] When operating S440, based on the approval of the change request, log in to the change execution system and upload the target recycling instructions for different switch ports to be recycled to the change execution system.

[0071] Specifically, the generated target recycling commands for different switch ports to be recycled are uploaded one by one to the change execution system. This ensures that the change execution system can recognize and process these commands, and the system feedback is checked to confirm that all commands have been successfully uploaded. If any failures occur, they are investigated and corrected promptly. In other words, logging into the change execution system and uploading the target recycling commands enables real-time monitoring of the recycling process.

[0072] Through the embodiments of this disclosure, by reviewing the port type, recycling standards, and record format of the recycling template, the consistency and standardization of the recycling process can be ensured, thereby reducing human error and improving work efficiency. Furthermore, generating change requests based on target recycling instructions ensures the rational use and effective recycling of resources in equipment lifecycle management, reducing unnecessary resource waste.

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

[0074] Figure 5 A flowchart illustrating resource recycling according to an embodiment of this disclosure is shown schematically.

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

[0076] When operating the S510, execute the target recycling command for each switch port to be recycled.

[0077] In operation S520, check the status activity changes 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.

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

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

[0080] According to embodiments of this disclosure, after completing the resource reclamation of multiple switch ports to be reclaimed, the process also includes updating the network topology diagram and device configuration documents, as well as periodically reviewing the network status. For example, through status checks and traffic monitoring, the usage status of the devices and the effectiveness of the reclamation can be understood in a timely manner.

[0081] The embodiments disclosed herein ensure that the port to be recycled as a switch can be successfully recycled in accordance with the predetermined requirements, and ensure effective status monitoring and recording throughout the process, thereby improving network management efficiency.

[0082] Through the embodiments of this disclosure, the method logs in to the IP address to query the ports of the switch to be recycled, establishes a demand table, determines the recycling template, and uploads the target recycling instructions for different ports of the switch to be recycled to the change execution system. This not only improves the accuracy of resource recycling but also ensures the high efficiency of the recycling process. In addition, after recycling is implemented, status checks and traffic monitoring can promptly understand the usage of the equipment and the recycling effect, thereby continuously optimizing network resources, avoiding the waste of idle port resources, improving resource utilization, and thus improving the efficiency of enterprise network management.

[0083] Based on the above-described port resource reclamation method, this disclosure also provides a port resource reclamation device. The following will be combined with... Figure 6 The device is described in detail.

[0084] Figure 6 A schematic block diagram of a port resource recycling apparatus according to an embodiment of the present disclosure is shown.

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

[0086] The port demand table acquisition module 610 is used to query multiple switch ports to be reclaimed based on the login IP address to be reclaimed, and to obtain a demand table for the multiple switch ports to be reclaimed. In one embodiment, the port demand 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 template for different ports of the switch to be recycled based on each switch model and 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 recycling instruction determination module 630 is used to determine the target recycling instructions for different switch ports to be recycled based on the recycling template and upload them to the change execution system. In one embodiment, the target recycling instruction determination module 630 can be used to perform the operation S230 described above, which will not be repeated here.

[0089] The resource reclamation module 640 is used to modify the target reclamation instructions implemented by the execution system for different switch ports to be reclaimed, so as to complete the resource reclamation of multiple switch ports to be reclaimed. In one embodiment, the resource reclamation module 640 can be used to execute the operation S240 described above, which will not be repeated here.

[0090] In embodiments of this disclosure, the port resource recycling device 600 further includes a monitoring module and a port classification module.

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

[0092] The port classification module is used to identify switch ports to be reclaimed and normal switch ports based on traffic usage and connected device status.

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

[0094] The management interface login unit is used to determine multiple resource types to be reclaimed and their associated login IP addresses, and then 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 logged-in 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 reclaimed switch port confirmation unit is used to determine the reclaimed switch port among the switch ports corresponding to the IP address based on the query results. In one embodiment, the reclaimed switch port 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 on multiple switch ports to be recycled, and to create a requirement table for 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 the embodiments of this 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 template review unit is used to review the port type, review criteria, and record format of the templates to determine the review result. In one embodiment, the template review unit can be used to perform the operation S410 described above, which will not be repeated here.

[0100] The target recycling instruction determination unit is used to formulate target recycling instructions for different switch ports to be recycled based on the recycling template after the review result is approved. In one embodiment, the target recycling instruction determination unit can be used to execute the operation S420 described above, which will not be repeated here.

[0101] The change request generation unit is used to determine change requests for different switch ports to be recycled based on the target recycling instructions for different switch ports to be recycled. In one embodiment, the change request generation unit can be used to perform the operation S430 described above, which will not be repeated here.

[0102] The target recycling 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 recycling instructions for different switch ports to be recycled to the change execution system. In one embodiment, the target recycling instruction uploading unit can be used to perform the operation S440 described above, which will not be repeated here.

[0103] In embodiments of this disclosure, the resource recycling module 640 includes a target recycling instruction execution unit and a port activity status checking unit.

[0104] The target recycling instruction execution unit is used to execute the target recycling instruction for each switch port to be recycled. In one embodiment, the target recycling 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 changes of each switch port to be reclaimed, and to determine that each switch port to be reclaimed has been reclaimed 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 embodiments of this disclosure, any multiple modules among the port requirement table acquisition module 610, recycling template determination module 620, target recycling instruction determination module 630, and resource recycling module 640 can be combined into one module, or any one of these modules can be split into multiple modules. Alternatively, at least some of the functions of one or more of these modules can be combined with at least some of the functions of other modules and implemented in one module. According to embodiments of this disclosure, at least one of the port requirement table acquisition module 610, recycling template determination module 620, target recycling instruction determination module 630, and resource recycling module 640 can be at least partially implemented as hardware circuitry, 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-package, an application-specific integrated circuit (ASIC), or implemented in hardware or firmware by any other reasonable means of integrating or packaging the circuitry, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in a suitable combination of any of these. 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, which can perform corresponding functions when the computer program module is run.

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

[0108] like Figure 7 As shown, an 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 portion 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)), etc. The processor 701 may also include 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] RAM 703 stores various programs and data required for the operation of electronic device 700. Processor 701, ROM 702, and RAM 703 are interconnected via bus 704. Processor 701 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 702 and / or RAM 703. It should be noted that programs may also be stored in one or more memories other than ROM 702 and RAM 703. 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.

[0110] According to embodiments of this disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to a bus 704. The electronic device 700 may also include one or more of the following components connected to the input / output (I / O) interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, modem, etc. The communication section 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 disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 710 as needed so that computer programs read from it can be installed into the storage section 708 as needed.

[0111] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.

[0112] According to embodiments of this disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as including, but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used or combined with an instruction-modified execution system, apparatus, or device. For example, according to embodiments of this 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.

[0113] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowchart. When the computer program product is run on a computer system, the program code is used to enable the computer system to implement the port resource reclamation method provided in the embodiments of this disclosure.

[0114] When the computer program is executed by the processor 701, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

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

[0116] In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, it performs the functions defined in the system of this disclosure embodiment. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0117] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on a user's computing device, partially on a user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0118] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0119] Those skilled in the art will understand that the features described in the various embodiments of this disclosure can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in this disclosure. In particular, the features described in the various embodiments of this disclosure can be combined and / or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.

[0120] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.

Claims

1. A method for port resource reclamation, characterized in that, The method includes: Based on the login IP address to be recycled, query multiple switch ports to be recycled, and obtain a demand table for the multiple switch ports to be recycled; Based on each switch model and corresponding port configuration in the requirements table, determine the recycling template for different switch ports to be recycled; Based on the recycling template, the target recycling instructions for different switch ports to be recycled are determined and uploaded to the change execution system; The change execution system implements the target reclamation instructions for the different switch ports to be reclaimed, so as to complete the resource reclamation of multiple switch ports to be reclaimed; The recycling template includes the switch model, port type, recycling quantity, port status, recycling date, recycling process, and standard recycling instructions; The step of determining the target recycling instructions for different switch ports to be recycled based on the recycling template and uploading them to the change execution system includes: Review the port type, recycling criteria, and record format of the recycling template to determine the review results; Once the review results are approved, target recycling instructions for different switch ports to be recycled will be formulated based on the recycling template. Based on the target recycling instructions for the different switch ports to be recycled, determine the change requests for the different switch ports to be recycled; Based on the approval of the change request, log in to the change execution system and upload the target recycling instructions for the different switch ports to be recycled to the change execution system.

2. The port resource reclamation method according to claim 1, characterized in that, The step of querying multiple switch ports to be reclaimed based on the login IPs to be reclaimed, and obtaining a demand table for the multiple switch ports to be reclaimed, includes: Identify the multiple resource types that need to be reclaimed and their associated login IP addresses, and log in to the switch management interface; Based on each login IP address, query the switch port corresponding to that IP address in the preset database; Based on the query results, determine the switch ports to be reclaimed among the switch ports corresponding to the IP address; Collect additional information on the multiple switch ports to be recycled, and create a demand table for the multiple switch ports to be recycled based on a preset demand table template.

3. The port resource reclamation method according to claim 1, characterized in that, The change execution system implements the target reclamation instructions for the different switch ports to be reclaimed, in order to complete the resource reclamation of multiple switch ports to be reclaimed, including: Execute the target recycling command for each switch port to be recycled; Check the status activity changes of each switch port to be reclaimed to determine that each switch port has been reclaimed and is inactive.

4. The port resource reclamation method according to claim 3, characterized in that, After completing the resource reclamation of the multiple switch ports to be reclaimed, the following steps are also included: Update network topology diagrams and device configuration documents; Regularly review network status.

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

6. A port resource recycling device, characterized in that, The device includes: The port requirement table acquisition module is used to query multiple switch ports to be reclaimed based on the login IP to be reclaimed, and obtain the requirement table of the multiple switch ports to be reclaimed. The recycling template determination module is used to determine the recycling template for different ports of the switch to be recycled based on each switch model and corresponding port configuration in the requirement table. The target recycling instruction determination module is used to determine the target recycling instructions for different switch ports to be recycled based on the recycling template and upload them to the change execution system; The resource reclamation module is used by the change execution system to implement the target reclamation instructions for the different switch ports to be reclaimed, so as to complete the resource reclamation of multiple switch ports to be reclaimed; The recycling template includes the switch model, port type, recycling quantity, port status, recycling date, recycling process, and standard recycling instructions; The step of determining the target recycling instructions for different switch ports to be recycled based on the recycling template and uploading them to the change execution system includes: Review the port type, recycling criteria, and record format of the recycling template to determine the review results; Once the review results are approved, target recycling instructions for different switch ports to be recycled will be formulated based on the recycling template. Based on the target recycling instructions for the different switch ports to be recycled, determine the change requests for the different switch ports to be recycled; Based on the approval of the change request, log in to the change execution system and upload the target recycling instructions for the different switch ports to be recycled to the change execution system.

7. The port resource recycling device according to claim 6, characterized in that, The device further includes: The monitoring module is used to periodically 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 reclaimed and the normal switch ports based on the traffic usage and the status of the connected devices.

8. An electronic device, comprising: One or more processors; Memory, used to store one or more computer programs. The characteristic feature is 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 5.

9. A computer-readable storage medium having a computer program or instructions stored thereon, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1 to 5.

10. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by a processor, they implement the steps of the method according to any one of claims 1 to 5.