Online operation and maintenance method and device for data center level network environment, equipment and medium

By using pre-developed inspection commands and multi-threaded parallel login in a data center-level network environment, the problem of low compatibility of existing operation and maintenance tools is solved, realizing efficient online equipment inspection and operation and maintenance, applicable to various equipment types, and improving operation and maintenance efficiency and accuracy.

CN121664699APending Publication Date: 2026-03-13BEIJING CHIBO INFORMATION ENG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-09
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Existing automated operation and maintenance tools have low adaptability in data center-level network environments and cannot meet the daily operation and maintenance needs of a large number and variety of devices, resulting in low operation and maintenance efficiency.

Method used

By acquiring device login information and inspection command codes through pre-developed inspection instructions, online login and inspection of multiple network devices can be realized. Multi-threaded parallel login and inspection are used to control the login channel and judge the device status, ensuring that all device inspections are completed.

Benefits of technology

It improves equipment operation and maintenance efficiency, simplifies operation and maintenance processes, has a wide range of applications, reduces the coding ability requirements for operation and maintenance personnel, and improves the accuracy and efficiency of inspections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121664699A_ABST
    Figure CN121664699A_ABST
Patent Text Reader

Abstract

The invention discloses an online operation and maintenance method and device for a data center level network environment, equipment and a medium. The method comprises the following steps: acquiring equipment login information corresponding to a plurality of routing inspection network equipment and a routing inspection instruction of this time, and acquiring a routing inspection instruction code of each routing inspection network equipment corresponding to a routing inspection operation of this time on the basis of the routing inspection instruction of this time; executing a login operation of the corresponding inspection network equipment based on the equipment login information corresponding to each inspection network equipment, and obtaining a current inspection result of each inspection network equipment by executing the corresponding inspection instruction code after all the inspection network equipment successfully logs in; a login channel corresponding to the inspection network equipment is controlled to be closed, and the current login state of each inspection network equipment is judged; and if the current login states of all the inspection network devices are all non-login states, determining that online operation and maintenance of all the inspection network devices are completed. The embodiment of the invention can improve the equipment operation and maintenance efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of online equipment inspection technology, and in particular to an online operation and maintenance method, apparatus, equipment and medium for a data center-level network environment. Background Technology

[0002] Data center-level network environments are characterized by a wide geographical distribution, a large number of devices, and diverse types of devices. Daily operations and maintenance require regular fixed-frequency checks on the operational status of devices, such as routine inspections and maintenance tasks like extracting and saving configuration files. In addition, the syntax of inspection and maintenance commands from different vendors is inconsistent, so it is necessary to establish a unified library for operation / arrangement of inspection commands.

[0003] In the process of developing this application, the applicant discovered at least the following problems in the prior art:

[0004] In existing technologies, automated operation and maintenance tools are typically used to control equipment operation and maintenance. However, the automated operation and maintenance tools on the market have low adaptability to data center-level operation and maintenance scenarios. They are only suitable for scenarios with a small number of devices and a single type of device, and cannot meet the daily needs of data center-level network scenarios. Customized development is required, which affects operation and maintenance efficiency. Summary of the Invention

[0005] This application provides an online operation and maintenance method, device, equipment, and medium for a data center-level network environment. It can realize online equipment inspection through pre-developed inspection instructions, thereby improving equipment operation and maintenance efficiency.

[0006] In a first aspect, embodiments of this application provide an online operation and maintenance method for a data center-level network environment, the method comprising:

[0007] After identifying multiple network devices to be inspected in a data center-level network environment, the device login information and current inspection instructions corresponding to the multiple network devices are obtained, and the inspection instruction code corresponding to the current inspection operation for each network device is obtained based on the current inspection instruction corresponding to each network device.

[0008] Based on the device login information corresponding to each of the inspection network devices, the login operation of the corresponding inspection network device is executed, and after all the inspection network devices are successfully logged in, the inspection result of each inspection network device is obtained by executing the corresponding inspection instruction code.

[0009] After the inspection of the network devices is completed, the login channel of the corresponding network device is closed, and the current login status of each network device is determined.

[0010] If at least one of the inspected network devices is currently logged in, the inspection operation continues on at least one of the inspected network devices until at least one of the inspected network devices is currently logged out; if all the inspected network devices are currently logged out, the online operation and maintenance of all the inspected network devices is completed.

[0011] Secondly, embodiments of this application also provide an online operation and maintenance device for a data center-level network environment, the device comprising:

[0012] The acquisition module is used to acquire the device login information and current inspection instruction corresponding to the multiple network devices to be inspected in the data center-level network environment after determining the multiple network devices to be inspected. Based on the current inspection instruction corresponding to each network device, the module acquires the inspection instruction code corresponding to the current inspection operation for each network device.

[0013] The execution module is used to perform the login operation of the corresponding inspection network device based on the device login information of each inspection network device, and after all the inspection network devices have successfully logged in, the current inspection result of each inspection network device is obtained by executing the corresponding inspection instruction code.

[0014] The judgment module is used to control the login channel of the corresponding network device to be closed after the inspection of the network device is completed, and to judge the current login status of each network device.

[0015] The determination module is used to continue performing inspection operations on at least one of the inspected network devices if the current login status of at least one of the inspected network devices is "logged in" until the current login status of at least one of the inspected network devices is "not logged in"; if the current login status of all the inspected network devices is "not logged in", then it is determined that the online operation and maintenance of all the inspected network devices has been completed.

[0016] Thirdly, embodiments of this application provide an electronic device, including:

[0017] One or more processors;

[0018] Memory, used to store one or more programs.

[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the online operation and maintenance method for the data center-level network environment described in any embodiment of this application.

[0020] Fourthly, embodiments of this application provide a storage medium storing a computer program thereon, which, when executed by a processor, implements the online operation and maintenance method for a data center-level network environment as described in any embodiment of this application.

[0021] This application proposes an online operation and maintenance method, apparatus, device, and medium for a data center-level network environment. After identifying multiple network devices to be inspected in the data center-level network environment, the method obtains the device login information and current inspection instructions for each network device. Based on the current inspection instructions for each network device, it obtains the inspection instruction code corresponding to the current inspection operation for each network device. Based on the device login information for each network device, it executes the login operation for that network device. After all network devices have successfully logged in, it obtains the inspection result for each network device by executing the corresponding inspection instruction code. After the network device inspection is completed, it controls the login channel of the corresponding network device to close and determines the current login status of each network device. If at least one network device is currently logged in, the inspection operation continues for at least one network device until at least one network device is currently logged out. If all network devices are currently logged out, the online operation and maintenance of all network devices is considered complete. In other words, the technical solution of this application allows for online inspection of multiple network devices by logging in online and executing the corresponding inspection commands for each device. In contrast, existing technologies rely on automated maintenance tools for device inspection, which may not meet the daily needs of data center-level network scenarios when dealing with a large number of devices, necessitating custom development. Therefore, compared to existing technologies, the online maintenance method, apparatus, equipment, and media for data center-level network environments proposed in this application can achieve online device inspection through pre-developed inspection commands, thereby improving equipment maintenance efficiency. Furthermore, the technical solution of this application is simple and convenient to implement, easy to popularize, and has a wider range of applications. Attached Figure Description

[0022] Figure 1 A flowchart illustrating an online operation and maintenance method for a data center-level network environment provided in an embodiment of this application;

[0023] Figure 2 A flowchart illustrating an online operation and maintenance method for a data center-level network environment provided in another embodiment of this application;

[0024] Figure 3 A flowchart illustrating an online operation and maintenance method for a data center-level network environment provided in another embodiment of this application;

[0025] Figure 4A schematic diagram of the structure of an online operation and maintenance device for a data center-level network environment provided in an embodiment of this application;

[0026] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0027] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the application and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present application, not the entire structure.

[0028] Figure 1 This is a flowchart illustrating an online operation and maintenance method for a data center-level network environment according to an embodiment of this application. This method can be executed by an online operation and maintenance device or electronic device for the data center-level network environment. This device or electronic device can be implemented in software and / or hardware, and can be integrated into any intelligent device with network communication capabilities. For example... Figure 1 As shown, the online operation and maintenance method for a data center-level network environment may include the following steps:

[0029] S101. After identifying multiple network devices to be inspected in the data center-level network environment, obtain the device login information and current inspection instructions corresponding to the multiple network devices, and obtain the inspection instruction code corresponding to the current inspection operation for each network device based on the current inspection instruction corresponding to each network device.

[0030] In this step, device login information may include: device brand, login IP (Internet Protocol) address, login username, and login password. The inspection commands used here describe the inspection operation identifiers for the network devices. For example, inspection command "1" indicates CPU memory utilization, inspection command "2" indicates interface status, inspection command "3" indicates power supply and fan status, inspection command "4" indicates routing table entries, inspection command "5" indicates system version, inspection command "6" indicates uplink and downlink bandwidth, and inspection command "7" indicates network latency.

[0031] Inspection command codes are used to identify different inspection scripts. By using inspection command codes, it is possible to effectively distinguish the online development scripts corresponding to multiple inspection commands.

[0032] Preferably, obtain the device login information and the current inspection command for multiple network devices being inspected, including:

[0033] The inspection parameter document is retrieved by a preset operation and maintenance script. The inspection parameter document stores the device login information and inspection instructions for multiple network devices. The text search of the inspection parameter document is performed based on the device identifiers of the multiple network devices to obtain the device login information and the current inspection instructions for the multiple network devices.

[0034] In this step, the pre-developed maintenance script can be a pre-written script using Python. It can be used in conjunction with inspection parameter documents such as Excel spreadsheets to differentiate between device systems and collect information needed for daily inspections, such as CPU and memory utilization, interface status, power supply and fan status, routing table entries, system version, uplink and downlink bandwidth, and network latency, generating reports. The inspection parameter document, as shown in Table 1, records the device name, brand, login IP, username, password, and inspection command for the network devices to be inspected.

[0035]

[0036] Preferably, based on the current inspection instruction corresponding to each inspection network device, the inspection instruction code corresponding to this inspection operation for each inspection network device is obtained, including:

[0037] Retrieve the inspection instruction set associated with the inspection parameter document, and perform a text search on the inspection instruction set based on the current inspection instruction corresponding to each inspection network device to obtain the inspection instruction code corresponding to the current inspection operation for each inspection network device.

[0038] In this step, the inspection command set stores the mapping relationship between inspection commands and inspection command codes for different network devices. The inspection command set is shown in Table 2, which registers the command sets of mainstream manufacturers and is used to match the inspection commands in Table 1.

[0039]

[0040] When checking the CPU utilization of network devices, fill in the device name, brand, login IP, username, and password in Table 1 as required. Using the command set, the "Check CPU Utilization" command is set to 1. After completing the Excel document, execute the script to obtain the output results. This allows for the retrieval of network device login information via an Excel file and the collection of commonly used inspection commands through a text command set, enabling cross-vendor inspections for convenient subsequent use.

[0041] In this embodiment, the script is used in conjunction with an Excel document. The inspection script loosely couples the code and the inspection operation, so maintenance personnel do not need to perform secondary development for specific scenarios. They only need to maintain the Excel file, which reduces the coding ability requirements of maintenance personnel. The script code supports all devices using the SSH protocol. Maintenance personnel only need to modify the Excel document to complete different inspection projects, and the command set can be expanded at will to meet the increasing inspection requirements.

[0042] Furthermore, data center networks involve a wide variety of equipment from diverse brands. For the same inspection target, the instructions can vary significantly. Using scripts for judgment leads to complex script content, and adding new types of equipment later requires secondary development of the scripts. This embodiment effectively solves the problem of needing to further develop scripts when adding new types of equipment by loosely coupling the code and commands. The code directly calls the appropriate command after matching it through text retrieval.

[0043] S102. Based on the device login information corresponding to each inspection network device, perform the login operation of the corresponding inspection network device, and after all inspection network devices have successfully logged in, obtain the inspection result of each inspection network device by executing the corresponding inspection command code.

[0044] In this step, you can access the login page by entering the login IP (Internet Protocol) address corresponding to the brand of the network device being inspected, and then enter the login username and password to log in to the account for inspecting the network device.

[0045] Preferably, the login operation for each inspection network device is performed based on its corresponding device login information, including:

[0046] By pre-setting a login component, a login thread corresponding to each inspected network device is constructed, and the loop interval between each login thread is increased; based on the device login information corresponding to each inspected network device, multiple inspected network devices can be logged in through the corresponding login thread.

[0047] Since single-threaded script execution consumes a significant amount of time in data center-level device inspections, this step utilizes the `threading` module when the script retrieves device login information from an Excel file. This allows for multi-threaded device logins and execution of inspection commands to generate results. However, when using the `threading` module, with a large number of devices logging in simultaneously, the default loop interval is too short, causing the login session to automatically close before starting the next batch of inspection tasks, resulting in incomplete output. This issue can be resolved by using the `time` module to increase the thread loop interval.

[0048] Therefore, by constructing a multi-threaded system to log in to different inspection network devices, multi-threaded parallel device login is achieved, improving device login efficiency. Furthermore, by increasing the loop interval between each login thread, the problem of missing output content caused by excessively short loop intervals is effectively avoided.

[0049] S103. After the inspection of the network devices is completed, control the login channel of the corresponding inspected network devices to close, and determine the current login status of each inspected network device.

[0050] In this step, once an inspection of a network device is completed, the current login status of the network device is effectively represented by closing its login channel, which facilitates the subsequent differentiation between online and offline devices.

[0051] S104. If at least one inspected network device is currently logged in, continue to perform inspection operations on at least one inspected network device until at least one inspected network device is currently logged out; if all inspected network devices are currently logged out, then the online operation and maintenance of all inspected network devices is completed.

[0052] In this step, if at least one inspected network device is currently logged in, it indicates that the corresponding inspected network device is currently online, meaning the online inspection has not yet been completed. In this case, the inspection operation continues on at least one inspected network device, i.e., the corresponding inspection command code is executed to complete the inspection. If all inspected network devices are currently logged out, it indicates that the corresponding inspected network devices are currently offline, meaning the online inspection has been completed. At this point, it can be determined that the online maintenance of all inspected network devices is complete.

[0053] The online operation and maintenance method for a data center-level network environment proposed in this application involves, after identifying multiple network devices to be inspected in the data center-level network environment, obtaining the device login information and current inspection instructions corresponding to the multiple network devices, and obtaining the inspection instruction code corresponding to the current inspection operation for each network device based on the current inspection instruction for each network device; executing the login operation of the corresponding network device based on the device login information of each network device, and obtaining the current inspection result of each network device by executing the corresponding inspection instruction code after all network devices have successfully logged in; after the inspection of the network devices is completed, controlling the login channel of the corresponding network devices to close, and determining the current login status of each network device; if at least one network device is currently logged in, then the inspection operation continues to be performed on at least one network device until at least one network device is currently logged out; if the current login status of all network devices is logged out, then the online operation and maintenance of all network devices is determined to be completed. In other words, the technical solution of this application allows for online inspection of multiple network devices by logging in online and executing the corresponding inspection commands for each device. In contrast, existing technologies rely on automated maintenance tools for device inspection, which may not meet the daily needs of data center-level network scenarios when dealing with a large number of devices, necessitating custom development. Therefore, compared to existing technologies, the online maintenance method, apparatus, equipment, and media for data center-level network environments proposed in this application can achieve online device inspection through pre-developed inspection commands, thereby improving equipment maintenance efficiency. Furthermore, the technical solution of this application is simple and convenient to implement, easy to popularize, and has a wider range of applications.

[0054] Figure 2 This is a flowchart illustrating an online operation and maintenance method for a data center-level network environment, provided as another embodiment of this application. The above technical solution can be further optimized and expanded, and can be combined with the various optional implementation methods described above. For example... Figure 2 As shown, the online operation and maintenance method for a data center-level network environment may include the following steps:

[0055] S201. Execute the inspection command code corresponding to the inspection network device and read the output echo information of the inspection network device corresponding to this inspection operation.

[0056] S202. Determine whether the maximum number of rows in the output echo information is greater than the preset row number threshold; if not, execute S203; if yes, execute S204.

[0057] S203. Determine line by line whether the output echo information contains the preset echo text; if yes, execute S204; if no, execute S205.

[0058] S204. Determine that the current inspection of the network equipment has ended, and confirm that the output feedback information is the inspection result of the current inspection of the network equipment.

[0059] S205, Write the echo text.

[0060] In this step, the script uses the paramiko module to log in to devices and collect inspection results. However, the paramiko module cannot distinguish whether the device output is complete. Some devices require pressing the Enter key to continue outputting; otherwise, the login channel will automatically close after the paramiko module's default waiting time, resulting in incomplete output. However, it was found that after reaching the default maximum number of echo lines, the devices output various texts with "more" format (i.e., preset echo text). When collecting inspection output, the script uses text retrieval. When it finds "more='--More--'", "more2='--More--'", "more3='<---More--->'", or "more4='----More----'", it automatically inputs the Enter key. Simultaneously, it checks if the maximum number of echo lines (recv value) reaches 65535 (i.e., the preset line threshold). If it does, it also inputs the Enter key. This method effectively solves the problem of incomplete inspection output.

[0061] The online operation and maintenance method for a data center-level network environment proposed in this application reads the output echo information of the inspected network device corresponding to the current inspection operation, and determines whether the maximum number of rows in the output echo information is greater than a preset row number threshold. This is used to make a first judgment on the inspection output. If the maximum number of rows in the echo information is greater than the preset row number threshold, it means that the inspection output is complete. If the maximum number of rows in the echo information is not greater than the preset row number threshold, it means that the inspection output is not complete. At this time, a second judgment on the inspection output can be made by checking whether the output echo information contains preset echo text line by line. If the output echo information contains preset echo text, it means that the inspection output is complete. If the output echo information does not contain preset echo text, it means that the inspection output is not complete, and the echo text continues to be written, thereby effectively ensuring the integrity of the inspection output.

[0062] Figure 3 This is a flowchart illustrating an online operation and maintenance method for a data center-level network environment, provided as another embodiment of this application. The method can be further optimized and expanded based on the above technical solution, and can be combined with the various optional implementation methods described above. For example... Figure 3 As shown, the online operation and maintenance method for a data center-level network environment may include the following steps:

[0063] S301. In this inspection operation of the network equipment, determine the pre-built folder corresponding to the network equipment to be inspected.

[0064] In this step, the pre-built folder corresponding to the inspected network device is a folder that has not yet been actually created. It can be regarded as a virtual folder without file storage capability. It can be used to identify duplicates with other created actual folders, thereby avoiding the problem of duplicate folders among the inspected network devices, which would lead to file storage chaos.

[0065] S302. Determine whether the pre-created folder corresponding to the inspected network device is duplicated with the existing folder of other inspected network devices; if not, proceed to S303; if yes, proceed to S304.

[0066] S303. Create the target folder corresponding to the inspected network device based on the pre-built folder corresponding to the inspected network device, and execute S304.

[0067] In this step, if it is determined that the pre-built folder corresponding to the inspected network device is not duplicated with the existing folder of other inspected network devices, the pre-built folder can be created as the target folder corresponding to the inspected network device.

[0068] S304. Open the folder.

[0069] S305. Determine if the file name of the target folder is the same as the file name of another folder; if not, proceed to S306; if yes, proceed to S307.

[0070] S306. Create an inspection file in the target folder and execute S307.

[0071] S307. Open the file.

[0072] S308. Write the process data of the inspected network equipment corresponding to this inspection operation into the inspection file.

[0073] Preferably, the method in this embodiment further includes:

[0074] If at least one inspection network device fails to log in, a login event information for at least one inspection network device is generated; the login event information for at least one inspection network device is stored in the inspection file corresponding to at least one inspection network device.

[0075] In this step, the maintenance script automatically records the process during use, automatically creates a folder for each operation, checks for duplicates, and ensures no duplicate filenames. Folders and TXT files can be stamped using `time` and command sets. Duplicate checks are performed during creation. In addition to recording the output TXT file, files for successful login, authentication failure, and network unreachability are also created to audit the login process, facilitating retrospective analysis of the inspection process. Furthermore, operation logs for each network device can be saved, with separate records for devices that completed execution, experienced connection interruptions, or failed username / password attempts, facilitating subsequent maintenance work.

[0076] In this embodiment, after preparing the Excel document to be used with the script, the Excel document and the script execution EXE file are placed in the same directory. When the operation and maintenance script is executed, the script automatically retrieves the information in the Excel document to automatically retrieve device information, log in to the device, retrieve the command set, execute commands, record results, and audit the operation process.

[0077] The online operation and maintenance method for data center-level network environments proposed in this application implements inspection and audit functions through operation and maintenance scripts. It can check whether created folders and files are duplicated during the inspection process, and can record operation data and abnormal data during the inspection process, which is convenient for later traceability.

[0078] This embodiment is applicable to scenarios where IT infrastructure operations and maintenance are transitioning to automation. It boasts strong scalability, employs open interfaces, and fully demonstrates the agility of network operations and maintenance. It optimizes the IT environment, enabling flexible, secure, and reliable network management applications. Through script development, it addresses issues in data center network operations and maintenance, such as long inspection times, low accuracy of inspection outputs, diverse equipment, and lack of auditing functions, thereby improving operational efficiency and accuracy. In data center network operations and maintenance scenarios, it allows for batch execution of operations and maintenance, and can be scaled up as needed based on network operations and maintenance requirements, maximizing savings in manpower costs and reducing repetitive tasks. Experimental results show that manual operation of 10 devices takes approximately 10 minutes (600 seconds). Conventional automation tools are complex to use, require pre-customization, and have generally low accuracy. However, using the operations and maintenance script method in this embodiment, the time is approximately 30 seconds, improving efficiency by about 95%, with high accuracy consistent with manual results. Furthermore, it is applicable to all devices supporting SSH (Secure Shell, network protocol) login without requiring secondary script development.

[0079] Figure 4 This is a schematic diagram of the structure of an online operation and maintenance device for a data center-level network environment provided in one embodiment of this application. Figure 4 As shown, the online operation and maintenance equipment for a data center-level network environment includes:

[0080] The acquisition module 401 is used to acquire the device login information and the current inspection instruction corresponding to the multiple network devices to be inspected in the data center-level network environment after determining the multiple network devices to be inspected. Based on the current inspection instruction corresponding to each network device, the module acquires the inspection instruction code corresponding to the current inspection operation for each network device.

[0081] The execution module 402 is used to perform the login operation of the corresponding inspection network device based on the device login information of each inspection network device, and after all inspection network devices have successfully logged in, the inspection result of each inspection network device is obtained by executing the corresponding inspection instruction code.

[0082] The judgment module 403 is used to control the login channel of the corresponding inspected network device to close after the inspection of the inspected network device is completed, and to judge the current login status of each inspected network device.

[0083] The determination module 404 is used to continue performing inspection operations on at least one inspected network device if the current login status of at least one inspected network device is "logged in" until the current login status of at least one inspected network device is "not logged in"; if the current login status of all inspected network devices is "not logged in", then the online operation and maintenance of all inspected network devices is determined to be completed.

[0084] Preferably, module 401 is used specifically for:

[0085] The inspection parameter document is retrieved by a preset operation and maintenance script. The inspection parameter document stores the device login information and inspection instructions for multiple network devices. The text search of the inspection parameter document is performed based on the device identifiers of the multiple network devices to obtain the device login information and the current inspection instructions for the multiple network devices.

[0086] Preferably, module 401 is used specifically for:

[0087] The inspection instruction set associated with the inspection parameter document is retrieved. The inspection instruction set stores the mapping relationship between inspection instructions and inspection instruction codes of different network devices. Based on the current inspection instruction corresponding to each network device, the text search of the inspection instruction set is performed to obtain the inspection instruction code corresponding to the current inspection operation for each network device.

[0088] Preferably, execution module 402 is specifically used for:

[0089] By pre-setting a login component, a login thread corresponding to each inspected network device is constructed, and the loop interval between each login thread is increased; based on the device login information corresponding to each inspected network device, multiple inspected network devices can be logged in through the corresponding login thread.

[0090] Preferably, execution module 402 is specifically used for:

[0091] Execute the inspection command code corresponding to the network device being inspected, and read the output echo information of the network device corresponding to this inspection operation. Determine whether the maximum number of lines in the output echo information is greater than a preset line count threshold. If the maximum number of lines in the output echo information is less than or equal to the preset line count threshold, then check line by line whether the output echo information contains a preset echo text. If the output echo information contains the preset echo text, then determine that the current inspection of the network device is over, and determine that the output echo information is the inspection result of the current inspection of the network device. If the maximum number of lines in the output echo information is greater than the preset line count threshold, then determine that the current inspection of the network device is over, and determine that the output echo information is the inspection result of the current inspection of the network device.

[0092] Preferably, it also includes: a first processing module.

[0093] The first processing module is used to determine the pre-built folder corresponding to the inspected network device during the current inspection operation, and to determine whether the pre-built folder corresponding to the inspected network device is duplicated with the existing folders of other inspected network devices. If the pre-built folder corresponding to the inspected network device is not duplicated with the existing folders of other inspected network devices, a target folder corresponding to the inspected network device is created based on the pre-built folder, and it is determined whether the file name of the target folder is duplicated with the file name of other folders. If the file name of the target folder is not duplicated with the file name of other folders, an inspection file is created in the target folder, and the process data of the inspected network device corresponding to this inspection operation is written into the inspection file.

[0094] Preferably, it also includes a second processing module.

[0095] The second processing module is used to generate login event information for at least one inspection network device if at least one inspection network device fails to log in; and to store the login event information for at least one inspection network device in the inspection file corresponding to at least one inspection network device.

[0096] The online operation and maintenance device for the data center-level network environment described above can execute the methods provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects for executing the methods. Technical details not described in detail in this embodiment can be found in the online operation and maintenance methods for the data center-level network environment provided in any embodiment of this application.

[0097] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 5 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present application is shown. Figure 5The electronic device 12 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0098] like Figure 5 As shown, the electronic device 12 is represented in the form of a general-purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processing unit 16).

[0099] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0100] Electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0101] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (… Figure 5 Not shown; usually referred to as a "hard drive"). Although Figure 5 As not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of this application.

[0102] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of this application.

[0103] Electronic device 12 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with electronic device 12, and / or with any device that enables electronic device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 22. Furthermore, electronic device 12 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with other modules of electronic device 12 via bus 18. It should be understood that, although... Figure 5 As not shown, other hardware and / or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0104] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the online operation and maintenance method for the data center-level network environment provided in the embodiments of this application.

[0105] This application also provides a computer storage medium.

[0106] The computer-readable storage medium of this application embodiment can be any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. For example, a computer-readable storage medium can be—but is not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0107] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0108] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0109] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages—such as Java, Smalltalk, and C++—as well as conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0110] This application also provides a computer program product.

[0111] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer program products, which may include one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be an application-specific or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0112] Note that the above description is merely a preferred embodiment and the technical principles employed in this application. Those skilled in the art will understand that this application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments. Many other equivalent embodiments may be included without departing from the concept of this application, and the scope of this application is determined by the scope of the appended claims.

Claims

1. An online operation and maintenance method for a data center-level network environment, characterized in that, The method includes: After identifying multiple network devices to be inspected in a data center-level network environment, the device login information and current inspection instructions corresponding to the multiple network devices are obtained, and the inspection instruction code corresponding to the current inspection operation for each network device is obtained based on the current inspection instruction corresponding to each network device. Based on the device login information corresponding to each of the inspection network devices, the login operation of the corresponding inspection network device is executed, and after all the inspection network devices are successfully logged in, the inspection result of each inspection network device is obtained by executing the corresponding inspection instruction code. After the inspection of the network devices is completed, the login channel of the corresponding network device is closed, and the current login status of each network device is determined. If at least one of the inspected network devices is currently logged in, the inspection operation continues on at least one of the inspected network devices until at least one of the inspected network devices is currently logged out; if all the inspected network devices are currently logged out, the online operation and maintenance of all the inspected network devices is completed.

2. The method according to claim 1, characterized in that, The step of obtaining the device login information and the current inspection command corresponding to the multiple inspection network devices includes: The inspection parameter document is retrieved by a preset operation and maintenance script. The inspection parameter document stores device login information and inspection instructions for multiple network devices. Based on the device identifiers corresponding to the multiple inspection network devices, a text search is performed on the inspection parameter document to obtain the device login information and the current inspection instruction corresponding to the multiple inspection network devices.

3. The method according to claim 2, characterized in that, The step of obtaining the inspection instruction code corresponding to the current inspection operation for each of the inspection network devices based on the current inspection instruction for each of the inspection network devices includes: Retrieve the inspection instruction set associated with the inspection parameter document. The inspection instruction set stores the mapping relationship between inspection instructions and inspection instruction codes of different network devices. Based on the current inspection instruction corresponding to each of the inspection network devices, a text search is performed on the inspection instruction set to obtain the inspection instruction code for each of the inspection network devices corresponding to the current inspection operation.

4. The method according to claim 1, characterized in that, The step of performing a login operation for each inspection network device based on the device login information of each inspection network device includes: By using a preset login component, a login thread corresponding to each of the inspection network devices is constructed, and the loop interval between each login thread is increased. Based on the device login information corresponding to each of the inspection network devices, multiple inspection network devices can be logged into through the corresponding login thread.

5. The method according to claim 1, characterized in that, The step of obtaining the inspection result for each of the network devices by executing the corresponding inspection command code includes: Execute the inspection instruction code corresponding to the inspection network device, and read the output echo information of the inspection network device corresponding to this inspection operation, and determine whether the maximum number of rows of the output echo information is greater than the preset number of rows threshold. If the maximum number of rows in the output echo information is less than or equal to the preset number of rows threshold, then it is determined line by line whether the output echo information contains the preset echo text; if the output echo information contains the preset echo text, then it is determined that the current inspection of the network device is over, and the output echo information is determined to be the inspection result of the network device. If the maximum number of rows in the output echo information is greater than the preset row number threshold, then the current inspection of the inspection network device is determined to be over, and the output echo information is determined to be the inspection result of the current inspection network device.

6. The method according to claim 5, characterized in that, The method further includes: In the current inspection operation of the network device, the pre-built folder corresponding to the network device is determined, and it is determined whether the pre-built folder corresponding to the network device is duplicated with the existing folder of other network devices. If the pre-built folder corresponding to the inspection network device is not duplicated with the existing folder of other inspection network devices, then the target folder corresponding to the inspection network device is created based on the pre-built folder corresponding to the inspection network device, and it is determined whether the file name of the target folder is duplicated with the file name of other folders. If the file name of the target folder is not the same as the file name of other folders, an inspection file is created in the target folder, and the process data of the inspected network device corresponding to this inspection operation is written into the inspection file.

7. The method according to claim 6, characterized in that, The method further includes: If at least one of the inspection network devices fails to log in, then at least one login event information for the inspection network device is generated. Login event information of at least one of the inspection network devices is stored in the inspection file corresponding to at least one of the inspection network devices.

8. An online operation and maintenance device for a data center-level network environment, characterized in that, The device includes: The acquisition module is used to acquire the device login information and current inspection instruction corresponding to the multiple network devices to be inspected in the data center-level network environment after determining the multiple network devices to be inspected. Based on the current inspection instruction corresponding to each network device, the module acquires the inspection instruction code corresponding to the current inspection operation for each network device. The execution module is used to perform the login operation of the corresponding inspection network device based on the device login information of each inspection network device, and after all the inspection network devices have successfully logged in, the current inspection result of each inspection network device is obtained by executing the corresponding inspection instruction code. The judgment module is used to control the login channel of the corresponding inspection network device to be closed after the inspection of the inspection network device is completed, and to judge the current login status of each inspection network device. The determination module is used to continue performing inspection operations on at least one of the inspected network devices if the current login status of at least one of the inspected network devices is "logged in" until the current login status of at least one of the inspected network devices is "not logged in"; if the current login status of all the inspected network devices is "not logged in", then it is determined that the online operation and maintenance of all the inspected network devices has been completed.

9. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the online operation and maintenance method for a data center-level network environment as described in any one of claims 1 to 7.

10. A storage medium having a computer program stored thereon, characterized in that, When executed by the processor, the program implements the online operation and maintenance method for a data center-level network environment as described in any one of claims 1 to 7.