Equipment operation and maintenance method and device, computer equipment and storage medium
By establishing a two-layer mapping relationship between virtual devices and physical devices, screening out the main physical devices in the online state, solving the problem of operation and maintenance management conflicts in traditional management platforms, ensuring the accurate transmission of operation and maintenance information, and improving the operation and maintenance efficiency and reliability of the management platform.
Patent Information
- Application Number
- CN202510764396.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-09
- Publication Date
- 2025-08-08
AI Technical Summary
Traditional management platforms rely on physical device serial numbers for decentralized management, resulting in confusion in the association between logical devices and physical devices, which can easily lead to operation and maintenance management conflicts, such as sending operation and maintenance instructions to offline devices incorrectly.
By creating a two-layer mapping relationship between the virtual device serial number and the physical device, establish an association relationship between the virtual device and multiple physical devices, filter out the main physical device in the online state, and send the operation and maintenance information to the device to ensure the accuracy of the operation and maintenance instructions.
It realizes the accurate sending of operation and maintenance information, avoids mis-issuing instructions caused by changes in equipment status, and improves the accuracy and reliability of operation and maintenance management.
Smart Images

Figure CN120455303A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network management technology, and specifically to a device operation and maintenance method, apparatus, computer equipment, and storage medium. Background Art
[0002] Logical devices are virtual devices created by partitioning multiple physical devices according to their logical functions. As enterprise network architectures continue to evolve toward virtualization and elasticity, logical devices are becoming a core technology for building high-availability networks.
[0003] Traditional management platforms mostly rely on the serial numbers of physical devices to manage them in a decentralized manner. However, this management method leads to confusion in the relationship between logical devices and physical devices, which can easily cause problems such as operation and maintenance management conflicts, such as mistakenly sending operation and maintenance instructions to offline physical devices. Summary of the Invention
[0004] In view of this, the present application proposes a device operation and maintenance method, apparatus, computer equipment and storage medium to solve the problem of operation and maintenance management conflicts caused by the chaotic relationship between logical devices and their corresponding physical devices in related technologies.
[0005] The first embodiment of the present application provides a device operation and maintenance method, the method comprising:
[0006] In response to the device operation and maintenance instruction, parsing the device operation and maintenance instruction to determine a first identifier of the first virtual device and device operation and maintenance information;
[0007] Determining, based on a first association relationship, a plurality of first physical devices corresponding to a first identifier of the first virtual device; the first association relationship includes an association relationship between the first identifier of the virtual device and the second identifier of the physical device, wherein each first identifier in the first association relationship corresponds to a plurality of second identifiers;
[0008] Filtering out a second physical device in an online state from the plurality of first physical devices;
[0009] Determine, based on a second association relationship, a first primary physical device corresponding to the first identifier of the first virtual device; the second association relationship includes an association relationship between the first identifier of the virtual device and the second identifier of the primary physical device, wherein the primary physical device corresponding to each first identifier in the second association relationship refers to a physical device corresponding to the first identifier and having a device role as a primary device;
[0010] If the second identifier of the second physical device is the same as the second identifier of the first master physical device, the device operation and maintenance information is sent to the first master physical device.
[0011] In the embodiment of the present application, the second identifier of the second physical device is the same as the second identifier of the first primary physical device, indicating that the currently online physical device of the first virtual device is the primary physical device of the first virtual device. The operation and maintenance management platform can send device operation and maintenance information to this primary physical device, which will perform the relevant operation and maintenance operations. This ensures that the device operation and maintenance information is sent to the correct target device, avoiding the situation where "when the physical device corresponding to the virtual device changes dynamically (such as master-slave switching), the traditional SN binding mechanism is difficult to update the mapping relationship between the virtual device and the primary physical device in a timely manner, and it is easy to send instructions to the offline physical device by mistake."
[0012] In an embodiment of the present application, before responding to the device operation and maintenance instruction, the method further includes:
[0013] Setting a plurality of second identifiers for a plurality of third physical devices to be managed; the plurality of third physical devices and the plurality of second identifiers correspond one to one;
[0014] generating corresponding second virtual devices according to the plurality of third physical devices, and setting a corresponding first identifier for the second virtual device;
[0015] An association relationship between the first identifier of the second virtual device and the second identifiers of the plurality of third physical devices is added to the first association relationship.
[0016] In an embodiment of the present application, the method further includes:
[0017] Using a physical device in an online state among the plurality of third physical devices as a second master physical device;
[0018] An association relationship between the second identifier of the second main physical device and the first identifier of the second virtual device is added to the second association relationship.
[0019] In the embodiment of the present application, after determining the first primary physical device corresponding to the first identifier of the first virtual device according to the second association relationship, the method further includes:
[0020] If the second identifier of the second physical device is different from the second identifier of the first master physical device, the device operation and maintenance information is sent to the second physical device.
[0021] In the embodiment of the present application, the identifier of the second physical device is different from the identifier of the first main physical device, indicating that the current main physical device may be offline or faulty and cannot work normally. The operation and maintenance management platform needs to send operation and maintenance instructions to the online second physical device to effectively ensure that the operation and maintenance operations can proceed smoothly.
[0022] In the embodiment of the present application, under the condition that the second identifier of the second physical device is different from the second identifier of the first master physical device, the method further includes:
[0023] Replacing the second identifier of the first primary physical device in the second association relationship with the second identifier of the second physical device;
[0024] The device status information of the first virtual device is replaced with the device status information of the second physical device.
[0025] This application ensures that subsequent operation and maintenance instructions are sent to the physical device that is currently online and available (i.e., the second physical device) by updating the second identifier of the first primary physical device in the second association relationship to the second identifier of the second physical device under the condition that the second identifier of the second physical device is different from the second identifier of the first primary physical device. This avoids the operation and maintenance instructions being sent to the wrong device due to the failure or offlineness of the primary device, thereby improving the accuracy and reliability of the operation and maintenance instructions.
[0026] In an embodiment of the present application, the plurality of first physical devices are connected to the operation and maintenance management platform through a plurality of first long link channels; the plurality of first physical devices include one physical device in an online state and at least one physical device in an offline state;
[0027] Filtering out a second physical device in an online state from the plurality of first physical devices includes:
[0028] For any first physical device, obtaining connection status information of a first long link channel to which the first physical device is connected;
[0029] If the connection status information indicates that the first long link channel is in a connected state, the first physical device is determined to be the second physical device.
[0030] In an embodiment of the present application, the method is applied to an operation and maintenance management platform; the plurality of first physical devices are connected to the operation and maintenance management platform via a plurality of second long link channels; the plurality of first physical devices include a primary management physical device in an online state and at least one backup management physical device in an online state; each second long link channel is used to detect the primary and backup status of a corresponding first physical device;
[0031] Filtering out a second physical device in an online state from the plurality of first physical devices includes:
[0032] For any first physical device, obtaining the master / slave state information of the second long link channel connected to the first physical device;
[0033] If the master-slave state information indicates that the first physical device is in the master device state, the first physical device is determined to be the second physical device.
[0034] In the embodiment of the present application, the physical device is a firewall device.
[0035] An embodiment of the second aspect of the present application provides an equipment operation and maintenance device, including:
[0036] an instruction parsing module, configured to respond to a device operation and maintenance instruction and parse the device operation and maintenance instruction to determine a first identifier of the first virtual device and device operation and maintenance information;
[0037] A first physical device determination module is configured to determine, based on a first association relationship, a plurality of first physical devices corresponding to a first identifier of the first virtual device; the first association relationship includes an association relationship between the first identifier of the virtual device and the second identifier of the physical device, wherein each first identifier in the first association relationship corresponds to a plurality of second identifiers;
[0038] A second physical device determining module, configured to select a second physical device in an online state from the plurality of first physical devices;
[0039] A first master physical device determination module is configured to determine a first master physical device corresponding to a first identifier of the first virtual device according to a second association relationship; the second association relationship includes an association relationship between the first identifier of the virtual device and the second identifier of the master physical device, wherein the master physical device corresponding to each first identifier in the second association relationship refers to a physical device corresponding to the first identifier and having a device role as a master device;
[0040] The information sending module is configured to send the device operation and maintenance information to the first main physical device if the second identifier of the second physical device is the same as the second identifier of the first main physical device.
[0041] An embodiment of the third aspect of the present application provides a computer device, which includes a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the equipment operation and maintenance method described in the first aspect above by executing the computer instructions.
[0042] An embodiment of the fourth aspect of the present application provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable a computer to execute the equipment operation and maintenance method described in the first aspect above.
[0043] Additional aspects and advantages of the present application will be given in part in the description below and in part will become apparent from the description below or learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present application. Throughout the accompanying drawings, the same reference numerals are used to denote the same components.
[0045] In the attached figure:
[0046] Figure 1 A schematic diagram of a process flow of a device operation and maintenance method provided by an embodiment of the present application is shown;
[0047] Figure 2 A schematic structural diagram of an equipment operation and maintenance device provided in one embodiment of the present application is shown;
[0048] Figure 3 A schematic diagram of the structure of a computer device provided in one embodiment of the present application is shown;
[0049] Figure 4 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0050] The following describes exemplary embodiments of the present application in more detail with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. Instead, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0051] It should be noted that, unless otherwise specified, the technical or scientific terms used in this application should have the common meanings understood by those skilled in the art to which this application belongs.
[0052] The following describes the technical scenarios involved in the embodiments of this application.
[0053] The existing management platform relies on the decentralized management mode of physical device SN (device identification), resulting in problems such as the overall status of logical devices being invisible, inefficient maintenance of member relationships, and conflicts in operation and maintenance operations: 1) The platform cannot aggregate monitoring indicators (such as cross-device traffic and active-standby load) based on logical devices, and manual integration of data from multiple physical devices is required, resulting in low operation and maintenance efficiency; 2) When the logical device members change dynamically (such as active-standby switching, expansion and contraction), the traditional SN binding mechanism is difficult to update the mapping relationship between physical and logical devices in a timely manner, and it is easy to send instructions to offline devices by mistake; 3) Operations such as configuration delivery and upgrades lack coordinated control at the logical device level, and the chaotic execution order of active and standby devices may lead to business interruption.
[0054] In response to the above problems, this application proposes a cloud-based operation and maintenance management platform that supports the management and operation capabilities of physical devices (such as firewall gateways). The unified management of multiple physical devices is achieved by creating a management method for virtual devices SN. The management method includes: setting corresponding first SNs for multiple physical devices respectively, generating virtual devices for multiple physical devices, and setting corresponding second SNs for virtual devices, establishing a mapping relationship between virtual devices and multiple physical devices, that is: a mapping relationship between multiple second SNs and the above second SNs, to build a virtual-physical device two-layer mapping model, thereby achieving three major functions: 1) Unified management interface: shielding the protocol differences of heterogeneous devices such as IRF and RBM; 2) Dynamic state synchronization: based on an event-driven mechanism, real-time perception of member relationship changes and updating virtual SN binding information to ensure that configuration instructions are accurately issued to online master devices; 3) Atomic operation and maintenance: aggregating the global status of logical devices through virtual SNs, and issuing operation and maintenance operations based on the master device priority policy to avoid configuration conflicts. This method reconstructs the management logic from the identification layer, significantly improves the level of operation and maintenance automation and business continuity, and provides an efficient management foundation for large-scale cloud networks.
[0055] According to an embodiment of the present application, an embodiment of a device operation and maintenance method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0056] In this embodiment, a device operation and maintenance method is provided, which can be used in an operation and maintenance management platform. Figure 1 is a flow chart of a device operation and maintenance method according to an embodiment of the present application, such as Figure 1 As shown, the process includes the following steps:
[0057] Step S101 : In response to a device operation and maintenance instruction, the device operation and maintenance instruction is parsed to determine a first identifier and device operation and maintenance information of a first virtual device.
[0058] Specifically, after receiving the device operation and maintenance instructions sent by the external client, the operation and maintenance management platform will parse the device operation and maintenance instructions to determine the first identifier of the first virtual device to be operated and maintained and the operation and maintenance management information (such as firewall rule configuration information, access control list configuration).
[0059] In some specific embodiments, before step S101, the method includes steps S201 to S203:
[0060] Step S201: Set multiple second identifiers for multiple third physical devices to be managed.
[0061] Step S202: Generate a corresponding second virtual device according to the plurality of third physical devices, and set a corresponding first identifier for the second virtual device.
[0062] Step S203: Add the association relationship between the first identifier of the second virtual device and the second identifiers of the plurality of third physical devices to the first association relationship.
[0063] In the above steps S201-S203, each second physical device can be understood as a firewall gateway. When there are multiple third physical devices that need to be managed in a unified manner, a corresponding second identifier is assigned to each third physical device; a virtual device is established, a corresponding first identifier is assigned to the virtual device, an association relationship between the second identifiers of multiple third physical devices and the first identifier of the virtual device is established, and the association relationship is added to the first association relationship.
[0064] In some specific embodiments, before step S101, the method further includes:
[0065] Step S204: using an online physical device among the plurality of third physical devices as a second master physical device;
[0066] Step S205: Add the association relationship between the second identifier of the second main physical device and the first identifier of the second virtual device to the second association relationship.
[0067] In the above steps S204-S205, when multiple third physical devices are managed for the first time, it is necessary to filter out the physical devices in an online state from the multiple third physical devices as the second main physical device, and use the basic information (such as online / offline time, device type), performance information (such as CPU, memory) and monitoring information (such as traffic, authorization code) of the second main physical device as the display information of the second virtual device corresponding to the multiple third physical devices.
[0068] Step S102: Determine, according to the first association relationship, a plurality of first physical devices corresponding to the first identifier of the first virtual device.
[0069] Specifically, the first association relationship includes an association relationship between a first identifier of a virtual device and a second identifier of a physical device, and each first identifier in the first association relationship corresponds to multiple second identifiers.
[0070] Step S103: Filter out online second physical devices from the multiple first physical devices.
[0071] In some specific embodiments, the above step S103 includes steps a1 and a2:
[0072] Step a1: For any first physical device, obtain connection status information of a first long link channel to which the first physical device is connected.
[0073] Step a2: If the connection status information indicates that the first long link channel is in a connected state, the first physical device is determined to be the second physical device.
[0074] In an embodiment of the present application, multiple first physical devices are connected to the operation and maintenance management platform via multiple first long link channels, for example: operation and maintenance management platform → first long link channel 1 → first physical device 1, or another example: operation and maintenance management platform → first long link channel 2 → first physical device 2. The operation and maintenance management platform can determine whether the corresponding first long link channel is connected to the corresponding first physical device based on the connection status information of the corresponding first long link channel, that is, determine whether the corresponding first physical device is online.
[0075] The first virtual device in the embodiment of the present application refers to an IRF virtual device, which refers to virtualizing multiple physical devices into one virtual device through IRF (Intelligent Resilient Framework) technology to achieve unified management of services and configurations between devices. Among them, the multiple first physical devices corresponding to the first virtual device include one physical device in an online state and at least one physical device in an offline state. The physical device in the online state is used as the main physical device to process traffic. When the main physical device fails, any offline physical device is used as the main physical device to process traffic.
[0076] In some specific embodiments, the above step S103 includes steps b1 and b2:
[0077] Step b1: For any first physical device, obtain the master / slave status information of the second long link channel to which the first physical device is connected.
[0078] Step b2: If the master-slave status information indicates that the first physical device is in the master device state, determine the first physical device as the second physical device.
[0079] In an embodiment of the present application, multiple first physical devices are connected to the operation and maintenance management platform via multiple second long link channels, each of which is used to detect the active / standby status of a corresponding first physical device. The operation and maintenance management platform can detect whether the corresponding first physical device is in the active / standby state via each second long link channel, thereby determining the second physical device.
[0080] The first virtual device in the embodiment of the present application refers to an RBM virtual device, which means that at least two physical devices can be combined into a multi-machine hot standby group through RBM (Remote Backup Management) technology to achieve synchronous backup of services and configurations between devices. Among them, the multiple first physical devices corresponding to the first virtual device include a main management physical device in an online state and at least one backup management physical device in an online state. Any first physical device among the multiple first physical devices is set as the main management physical device by default, and the first physical devices other than the main management physical device are used as backup management physical devices. The main management physical device is responsible for processing traffic, and other backup management physical devices are responsible for synchronizing data. When the main management physical device fails, any backup management physical device takes over the business traffic.
[0081] In some specific embodiments, an internal registration protocol is established between the operation and maintenance management platform and the physical device, a websocket long link is established on the public network, and multiple different long link channels are established for different business scenarios. For example: the long link channel for connection status detection between the operation and maintenance management platform and the physical device is base, the long link channel for the operation and maintenance management platform to send XML requests (used to determine the master / slave status of the physical device) to the physical device is netconf_xml, and the long link channel for the physical device to periodically report traffic and authorization information to the operation and maintenance management platform is devmgr, etc.
[0082] In some specific embodiments, the method further comprises:
[0083] If a second physical device in an online state cannot be screened out from the plurality of first physical devices, the device state of the first virtual device is changed to an offline state.
[0084] In some specific embodiments, after determining the second physical device, the method further includes: establishing a periodic keepalive detection mechanism for real-time synchronization of the online status of the virtual device and the master-slave switching event. The specific process is as follows:
[0085] Step c1: every preset time, the operation and maintenance management platform obtains the first identification of all virtual devices;
[0086] Step c2: for any first identifier of a virtual device, determining second identifiers of multiple physical devices corresponding to the first identifier according to the first association relationship;
[0087] Step c3, selecting a second physical device in an online state from the plurality of first physical devices; if the plurality of first physical devices are all in an offline state, changing the state of the first virtual device to offline;
[0088] Step c4, determining a first primary physical device corresponding to the first identifier of the first virtual device according to the second association relationship;
[0089] Step c5, if the second identifier of the second physical device is the same as the second identifier of the first main physical device, the device operation and maintenance information is sent to the first main physical device; if the second identifier of the second physical device is not the same as the second identifier of the first main physical device, the device operation and maintenance information is sent to the second physical device, and the second identifier of the first main physical device in the second association relationship is replaced with the second identifier of the second physical device, and the device status information of the first virtual device is replaced with the device status information of the second physical device.
[0090] Step S104: Determine a first primary physical device corresponding to the first identifier of the first virtual device according to the second association relationship.
[0091] The second association relationship includes an association relationship between a first identifier of a virtual device and a second identifier of a primary physical device. The primary physical device corresponding to each first identifier in the second association relationship refers to a physical device corresponding to the first identifier and having a device role of a primary device.
[0092] Step S105: If the second identifier of the second physical device is the same as the second identifier of the first master physical device, the device operation and maintenance information is sent to the first master physical device.
[0093] In the embodiment of the present application, the second identifier of the second physical device is the same as the second identifier of the first primary physical device, indicating that the currently online physical device of the first virtual device is the primary physical device of the first virtual device. The operation and maintenance management platform can send operation and maintenance instructions to this primary physical device, which will perform the relevant operation and maintenance operations. This ensures that the operation and maintenance instructions are sent to the correct target device, avoiding the situation where "when the physical device corresponding to the virtual device changes dynamically (such as master-slave switching), the traditional SN binding mechanism is difficult to update the mapping relationship between the virtual device and the primary physical device in a timely manner, and it is easy to mistakenly send instructions to the offline physical device."
[0094] In some specific embodiments, after the above step S106, the method further includes:
[0095] Step S107: If the second identifier of the second physical device is different from the second identifier of the first primary physical device, the device operation and maintenance information is sent to the second physical device.
[0096] In an embodiment of the present application, if the identifier of the second physical device is different from the identifier of the first main physical device, it means that the current main physical device may be offline or faulty and cannot work normally. The operation and maintenance management platform needs to send operation and maintenance instructions to this online second physical device to ensure that the operation and maintenance operations can proceed smoothly.
[0097] Step S108: Replace the second identifier of the first primary physical device in the second association relationship with the second identifier of the second physical device.
[0098] In an embodiment of the present application, in order to ensure that the second association relationship is consistent with the current actual operating status, it is necessary to update the second identifier of the first master physical device in the second association relationship to the second identifier of the second physical device. In this way, the second master physical device corresponding to the first master physical device in the second association relationship will point to the physical device that is currently online and available. By updating the second association relationship, it is possible to ensure that subsequent operation and maintenance instructions are sent to the current master device (i.e., the second physical device) rather than the original master device that is no longer available / offline.
[0099] Step S109: Replace the device status information of the first virtual device with the device status information of the second physical device.
[0100] In this embodiment of the present application, when the second physical device takes over the responsibilities of the first master physical device, the state information of the first virtual device needs to be updated with the state information of the second physical device. This ensures that the state information of the virtual device can accurately reflect the state of the physical device that currently actually assumes the responsibilities of the master device.
[0101] The embodiments of the present application can solve the real-time, consistency and reliability problems in the management of virtual devices, simplify operation and maintenance operations and interfaces, and improve operation and maintenance efficiency.
[0102] Corresponding to the implementation of the above device operation and maintenance method, the embodiment of the present application also provides a device operation and maintenance device for executing the device operation and maintenance method described in any of the above embodiments. Figure 2 As shown, the equipment operation and maintenance device includes:
[0103] an instruction parsing module, configured to respond to a device operation and maintenance instruction and parse the device operation and maintenance instruction to determine a first identifier of the first virtual device and device operation and maintenance information;
[0104] A first physical device determination module is configured to determine, based on a first association relationship, a plurality of first physical devices corresponding to a first identifier of the first virtual device; the first association relationship includes an association relationship between the first identifier of the virtual device and the second identifier of the physical device, wherein each first identifier in the first association relationship corresponds to a plurality of second identifiers;
[0105] A second physical device determining module, configured to select a second physical device in an online state from the plurality of first physical devices;
[0106] A first master physical device determination module is configured to determine a first master physical device corresponding to a first identifier of the first virtual device according to a second association relationship; the second association relationship includes an association relationship between the first identifier of the virtual device and the second identifier of the master physical device, wherein the master physical device corresponding to each first identifier in the second association relationship refers to a physical device corresponding to the first identifier and having a device role as a master device;
[0107] The information sending module is configured to send the device operation and maintenance information to the first main physical device if the second identifier of the second physical device is the same as the second identifier of the first main physical device.
[0108] Optionally, the device also includes: a first association relationship generation module, used to set multiple second identifiers for multiple third physical devices to be managed; the multiple third physical devices and the multiple second identifiers correspond one-to-one; generate corresponding second virtual devices based on the multiple third physical devices, and set a corresponding first identifier for the second virtual device; add the association relationship between the first identifier of the second virtual device and the second identifiers of the multiple third physical devices to the first association relationship.
[0109] Optionally, the device also includes: a second association relationship generation module, used to use a physical device in an online state among the multiple third physical devices as a second main physical device; and add the association relationship between the second identifier of the second main physical device and the first identifier of the second virtual device to the second association relationship.
[0110] Optionally, the apparatus further includes: an information sending module, further configured to send the device operation and maintenance information to the second physical device if the second identifier of the second physical device is different from the second identifier of the first main physical device.
[0111] Optionally, the device also includes: an information replacement module, which is used to replace the second identifier of the first main physical device in the second association relationship with the second identifier of the second physical device under the condition that the second identifier of the second physical device is different from the second identifier of the first main physical device; and replace the device status information of the first virtual device with the device status information of the second physical device.
[0112] Optionally, the multiple first physical devices are connected to the operation and maintenance management platform through multiple first long link channels; the multiple first physical devices include a physical device in an online state and at least one physical device in an offline state; the second physical device determination module is also used to obtain, for any first physical device, connection status information of the first long link channel to which the first physical device is connected; if the connection status information indicates that the first long link channel is in a connected state, the first physical device is determined as the second physical device.
[0113] Optionally, the multiple first physical devices are connected to the operation and maintenance management platform through multiple second long link channels; the multiple first physical devices include a main management physical device in an online state and at least one backup management physical device in an online state; each second long link channel is used to detect the master-slave status of the corresponding first physical device; the second physical device determination module is also used to obtain the master-slave status information of the second long link channel connected to any first physical device; if the master-slave status information indicates that the first physical device is in the master device state, the first physical device is determined as the second physical device.
[0114] The equipment operation and maintenance device provided in the above-mentioned embodiment of the present application and the equipment operation and maintenance method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0115] The present application also provides a computer device to perform the above-mentioned device operation and maintenance method. Figure 3 , which shows a schematic diagram of a computer device provided by some embodiments of the present application. Figure 3 As shown, the computer device 3 includes: a processor 300, a memory 301, a bus 302 and a communication interface 303, and the processor 300, the communication interface 303 and the memory 301 are connected via the bus 302; the memory 301 stores a computer program that can be run on the processor 300, and when the processor 300 runs the computer program, it executes the equipment operation and maintenance method provided in any of the aforementioned embodiments of the present application.
[0116] The memory 301 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage. The system network element and at least one other network element are connected via at least one communication interface 303 (which may be wired or wireless), and may use the Internet, a wide area network, a local area network, a metropolitan area network, or the like.
[0117] Bus 302 may be an ISA bus, a PCI bus, or an EISA bus. The bus may be divided into an address bus, a data bus, a control bus, and the like. Memory 301 is used to store programs, and processor 300 executes the programs upon receiving execution instructions. The device operation and maintenance method disclosed in any of the aforementioned embodiments may be applied to or implemented by processor 300.
[0118] The processor 300 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the processor 300 or by software instructions. The above processor 300 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in conjunction with the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory 301 , and the processor 300 reads the information in the memory 301 and completes the steps of the above method in combination with its hardware.
[0119] The computer device provided in the embodiment of the present application and the device operation and maintenance method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented by them.
[0120] The present application also provides a computer-readable storage medium corresponding to the device operation and maintenance method provided in the above embodiment. Figure 4 The computer-readable storage medium shown is a CD 30 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, it executes the device operation and maintenance method provided by any of the aforementioned embodiments.
[0121] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0122] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the equipment operation and maintenance method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0123] It should be noted that:
[0124] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known structures and technologies are not shown in detail so as not to obscure the understanding of this description.
[0125] Similarly, it should be understood that in order to streamline the present application and aid in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following schematic diagram: the claimed application requires more features than the features expressly recited in each claim. Rather, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims following the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present application.
[0126] Furthermore, those skilled in the art will appreciate that although some embodiments described herein include certain features included in other embodiments but not other features, combinations of features from different embodiments are intended to be within the scope of this application and to form different embodiments. For example, in the claims below, any of the claimed embodiments may be used in any combination.
[0127] The above description is merely a preferred embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A device operation and maintenance method, characterized in that: The method comprises: In response to the device operation and maintenance instruction, parsing the device operation and maintenance instruction to determine a first identifier of the first virtual device and device operation and maintenance information; Determining, based on a first association relationship, a plurality of first physical devices corresponding to a first identifier of the first virtual device; the first association relationship includes an association relationship between the first identifier of the virtual device and the second identifier of the physical device, wherein each first identifier in the first association relationship corresponds to a plurality of second identifiers; Filtering out a second physical device in an online state from the plurality of first physical devices; Determine, based on a second association relationship, a first primary physical device corresponding to the first identifier of the first virtual device; the second association relationship includes an association relationship between the first identifier of the virtual device and the second identifier of the primary physical device, wherein the primary physical device corresponding to each first identifier in the second association relationship refers to a physical device corresponding to the first identifier and having a device role as a primary device; If the second identifier of the second physical device is the same as the second identifier of the first master physical device, the device operation and maintenance information is sent to the first master physical device.
2. The method according to claim 1, characterized in that Before responding to the equipment operation and maintenance instruction, the method further includes: Setting a plurality of second identifiers for a plurality of third physical devices to be managed; the plurality of third physical devices and the plurality of second identifiers correspond one to one; generating corresponding second virtual devices according to the plurality of third physical devices, and setting a corresponding first identifier for the second virtual device; An association relationship between the first identifier of the second virtual device and the second identifiers of the plurality of third physical devices is added to the first association relationship.
3. The method according to claim 2, characterized in that The method further comprises: Using a physical device in an online state among the plurality of third physical devices as a second master physical device; An association relationship between the second identifier of the second main physical device and the first identifier of the second virtual device is added to the second association relationship.
4. The method according to claim 1 or 2, characterized in that After determining the first primary physical device corresponding to the first identifier of the first virtual device according to the second association relationship, the method further includes: If the second identifier of the second physical device is different from the second identifier of the first master physical device, the device operation and maintenance information is sent to the second physical device.
5. The method according to claim 4, characterized in that Under the condition that the second identifier of the second physical device is different from the second identifier of the first master physical device, the method further includes: Replacing the second identifier of the first primary physical device in the second association relationship with the second identifier of the second physical device; The device status information of the first virtual device is replaced with the device status information of the second physical device.
6. The method according to claim 1 or 2, characterized in that The plurality of first physical devices are connected to the operation and maintenance management platform via a plurality of first long link channels; the plurality of first physical devices include one physical device in an online state and at least one physical device in an offline state; Filtering out a second physical device in an online state from the plurality of first physical devices includes: For any first physical device, obtaining connection status information of a first long link channel to which the first physical device is connected; If the connection status information indicates that the first long link channel is in a connected state, the first physical device is determined to be the second physical device.
7. The method according to claim 1 or 2, characterized in that The method is applied to an operation and maintenance management platform; the plurality of first physical devices are connected to the operation and maintenance management platform via a plurality of second long link channels; the plurality of first physical devices include a primary management physical device in an online state and at least one backup management physical device in an online state; each second long link channel is used to detect the primary and backup status of a corresponding first physical device; Filtering out a second physical device in an online state from the plurality of first physical devices includes: For any first physical device, obtaining the master / slave state information of the second long link channel connected to the first physical device; If the master-slave state information indicates that the first physical device is in the master device state, the first physical device is determined to be the second physical device.
8. An equipment operation and maintenance device, characterized in that: The device comprises: an instruction parsing module, configured to respond to a device operation and maintenance instruction and parse the device operation and maintenance instruction to determine a first identifier of the first virtual device and device operation and maintenance information; A first physical device determination module is configured to determine, based on a first association relationship, a plurality of first physical devices corresponding to a first identifier of the first virtual device; the first association relationship includes an association relationship between the first identifier of the virtual device and the second identifier of the physical device, wherein each first identifier in the first association relationship corresponds to a plurality of second identifiers; A second physical device determining module, configured to select a second physical device in an online state from the plurality of first physical devices; A first master physical device determination module is configured to determine a first master physical device corresponding to a first identifier of the first virtual device according to a second association relationship; the second association relationship includes an association relationship between the first identifier of the virtual device and the second identifier of the master physical device, wherein the master physical device corresponding to each first identifier in the second association relationship refers to a physical device corresponding to the first identifier and having a device role as a master device; The information sending module is configured to send the device operation and maintenance information to the first main physical device if the second identifier of the second physical device is the same as the second identifier of the first main physical device.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the equipment operation and maintenance method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the equipment operation and maintenance method according to any one of claims 1 to 7.