CN111211925A - Alarm information synchronization method and device, computer equipment and storage medium - Google Patents

Alarm information synchronization method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111211925A
CN111211925A CN201911387375.7A CN201911387375A CN111211925A CN 111211925 A CN111211925 A CN 111211925A CN 201911387375 A CN201911387375 A CN 201911387375A CN 111211925 A CN111211925 A CN 111211925A
Authority
CN
China
Prior art keywords
information
alarm information
current activity
alarm
storage node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911387375.7A
Other languages
Chinese (zh)
Other versions
CN111211925B (en
Inventor
王家乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Comba Network Systems Co Ltd
Original Assignee
Comba Telecom Systems China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Comba Telecom Systems China Ltd filed Critical Comba Telecom Systems China Ltd
Priority to CN201911387375.7A priority Critical patent/CN111211925B/en
Publication of CN111211925A publication Critical patent/CN111211925A/en
Application granted granted Critical
Publication of CN111211925B publication Critical patent/CN111211925B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application relates to an alarm information synchronization method, a device, a computer device and a storage medium, after an alarm synchronization switch is turned on, a proxy device uploads current alarm information to a cache server and sends storage node information of the current activity alarm information to a management device, so that the management device reads the current activity alarm information from the cache server according to the storage node information and synchronizes the current activity alarm information, in the method, the proxy device does not directly send the current activity alarm information to the management device, but caches and stores the current activity alarm information through the cache server, even if the current alarm information of the proxy device is large, the management device can read all the alarm information from the cache service and accurately synchronize the alarm information, thus reading files through multithreading processing, the data correctness of the agent equipment and the management equipment during interaction is guaranteed.

Description

Alarm information synchronization method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of data communication technologies, and in particular, to a method and an apparatus for synchronizing alarm information, a computer device, and a storage medium.
Background
The message interaction between a Simple Network Management Protocol (SNMP) Management station (hereinafter referred to as Network Management) and an agent station (hereinafter referred to as device) is performed through an SNMP message. The network management and the equipment are in a request and response relationship, and the equipment needs to actively contact the network management and can only contact the network management by sending a Trap.
The main application of Trap at present is that the device notifies the network manager of its own alarm information in time, so as to facilitate the network manager to count the number of alarm information of the device synchronously. However, in the SNMP protocol, the definition of Trap itself is very free, there is no uniform specification to indicate the start of information transfer and whether the message is finished, and each Trap message is independent, that is, one Trap message can only report one alarm and cannot know whether there is a next alarm. Under the condition, when a plurality of alarms of the equipment need to be transmitted, all the alarm information cannot be accurately transmitted to the network manager in real time due to the limitation of the size of a Trap message transmission packet and the structure of a Trap message body.
Therefore, when the device reports a plurality of alarm messages to the network manager at the same time, the network manager cannot accurately synchronize the alarm messages of the device.
Disclosure of Invention
In view of the above, it is necessary to provide an alarm information synchronization method, apparatus, computer device and storage medium for solving the above technical problems.
In a first aspect, an embodiment of the present application provides an alarm information synchronization method, where the method includes:
starting an alarm synchronous switch, and sending the current activity alarm information of the alarm synchronous switch to a cache server for storage;
acquiring storage node information of current activity alarm information; the storage node information represents summary information stored in the cache server by the current activity alarm information;
sending the storage node information to a management device; the storage node information is used for instructing the management equipment to synchronize the current activity alarm information.
In one embodiment, the storage node information at least includes a message identifier for transmitting the current activity alarm information, an interaction ID of the agent device and the management device, an identifier of the agent device, a file type, a transmission status, and additional information.
In one embodiment, the above-mentioned turn-on alarm synchronization switch includes:
detecting whether a starting command sent by the management equipment is received;
and if receiving a starting command sent by the management equipment, starting the alarm synchronous switch.
In one embodiment, the sending the current activity alarm information to the cache server for storage includes:
inquiring current activity alarm information;
and writing the current activity alarm information into the appointed text, and storing the appointed text into a cache server.
In a second aspect, an embodiment of the present application provides an alarm information synchronization method, where the method includes:
sending a starting command to the agent equipment, wherein the starting command is used for indicating the agent equipment to start an alarm synchronous switch; the alarm synchronization switch is turned on to instruct the proxy equipment to send the current activity alarm information to the cache server for storage;
receiving storage node information sent by agent equipment; the storage node information represents summary information stored in a cache server by the current activity alarm information of the agent equipment;
and synchronizing the current activity alarm information according to the storage node information.
In one embodiment, the storage node information at least includes a message identifier for transmitting the current activity alarm information, an interaction ID of the agent device and the management device, an identifier of the agent device, a file type, a transmission status, and additional information.
In one embodiment, the synchronizing the current activity alarm information according to the storage node information includes:
judging whether the message identifier in the storage node information is an appointed identifier or not;
if yes, acquiring a transmission state in the storage node information;
and if the transmission state is successful, acquiring current activity alarm information from the cache server for synchronization according to the storage node information.
In one embodiment, the method further comprises:
displaying the synchronous state of the current activity alarm information on a front-end interface; the synchronization state includes that the current activity alarm information is successfully transmitted and the synchronization is successful, or the current activity alarm information is unsuccessfully transmitted.
In a third aspect, an embodiment of the present application provides an alarm information synchronization system, where the system includes: the system comprises a management device, an agent device and a cache server;
a proxy device for performing the steps of any of the embodiments of the first aspect described above;
the cache server is used for receiving the current activity alarm information sent by the agent equipment and storing the current activity alarm information; acquiring current activity alarm information at the management equipment, and sending the current activity alarm information to the management equipment;
a management device for performing the steps of any of the embodiments of the second aspect described above.
In a fourth aspect, an embodiment of the present application provides an alarm information synchronization apparatus, where the apparatus includes:
the storage module is used for starting the alarm synchronous switch and sending the current activity alarm information to the cache server for storage;
the acquisition module is used for acquiring the storage node information of the current activity alarm information; the storage node information represents summary information stored in the cache server by the current activity alarm information;
the sending module is used for sending the storage node information to the management equipment; the storage node information is used for instructing the management equipment to synchronize the current activity alarm information.
In a fifth aspect, an embodiment of the present application provides an alarm information synchronization apparatus, where the apparatus includes:
the starting command module is used for sending a starting command to the proxy equipment, and the starting command is used for indicating the proxy equipment to start the alarm synchronous switch; the alarm synchronization switch is turned on to instruct the proxy equipment to send the current activity alarm information to the cache server for storage;
the receiving module is used for receiving the storage node information sent by the agent equipment; the storage node information represents summary information stored in a cache server by the current activity alarm information of the agent equipment;
and the synchronization module is used for synchronizing the current activity alarm information according to the storage node information.
In a sixth aspect, an embodiment of the present application provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of any one of the methods provided in the embodiments of the first aspect and the second aspect when executing the computer program.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any one of the methods provided in the embodiments of the first aspect and the second aspect.
In the method, the agent device does not directly send the current activity alarm information to the management device, but caches and stores the current activity alarm information through the cache server, and the management device can read all the alarm information from the cache service and accurately synchronize the alarm information no matter how much the current alarm information of the agent device exists, so that the file is read through multi-thread processing, the data correctness of the agent equipment and the management equipment during interaction is guaranteed.
Drawings
FIG. 1 is a block diagram of an alarm information synchronization system, according to an embodiment;
fig. 2 is a schematic flowchart of an alarm information synchronization method according to an embodiment;
fig. 3 is a flowchart illustrating an alarm information synchronization method according to an embodiment;
fig. 4 is a flowchart illustrating an alarm information synchronization method according to an embodiment;
fig. 5 is a flowchart illustrating an alarm information synchronization method according to an embodiment;
fig. 6 is a flowchart illustrating an alarm information synchronization method according to an embodiment;
FIG. 7 is an interaction diagram of a method for synchronizing alarm information according to an embodiment;
FIG. 8 is a block diagram of an apparatus for synchronizing alarm information according to an embodiment;
fig. 9 is a block diagram illustrating an exemplary embodiment of an apparatus for synchronizing alarm information;
FIG. 10 is a block diagram illustrating an exemplary embodiment of an alert information synchronization apparatus;
fig. 11 is a block diagram illustrating an exemplary embodiment of an apparatus for synchronizing alarm information;
FIG. 12 is a block diagram of an apparatus for synchronizing alarm information according to an embodiment;
FIG. 13 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The alarm information synchronization method provided by the application can be applied to an alarm information synchronization system shown in fig. 1, and the system comprises agent equipment, management equipment and a cache server, wherein the agent equipment and the management equipment can communicate through a protocol, illustratively, the agent equipment and the management equipment communicate through an SNMP protocol, the management equipment can send Get, Get-Next, Get-Bulk, Set requests and the like to the agent equipment, and the agent equipment can actively send Trap messages to the management equipment. The cache server may be an HTTP server, an FTP server, etc., and the proxy device and the management device may also interact with the cache server respectively. The embodiment of the present application does not limit the specific implementation structures of the proxy device, the management device, and the cache server.
The embodiment of the application provides an alarm information synchronization method and device, computer equipment and a storage medium, and aims to solve the technical problem that management equipment cannot accurately synchronize alarm information of agent equipment. The following describes in detail the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems by embodiments and with reference to the drawings. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. It should be noted that, in the alarm information synchronization method provided by the present application, the execution main bodies of fig. 2 to fig. 4 are agent devices, and the execution main bodies of fig. 5 and fig. 6 are management devices, where the execution main bodies of fig. 2 to fig. 6 may also be alarm information synchronization apparatuses, where the apparatuses may be implemented as part or all of the agent devices or the management devices in a software, hardware, or a combination of software and hardware.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments.
An embodiment in which the execution subject is a proxy device is explained below.
In an embodiment, fig. 2 provides an alarm information synchronization method, and this embodiment relates to a specific process in which after an agent device stores current activity alarm information of the agent device in a cache server, the agent device sends storage node information of the current activity alarm information to a management device, as shown in fig. 2, the method includes:
and S101, starting an alarm synchronous switch, and sending the current activity alarm information to a cache server for storage.
The present activity alarm information of the agent device represents all the present activity alarm information of the agent device, and the present activity alarm information is further understood as the alarm information of the present fault of the agent device, that is, the agent device obtains all the present fault alarm information of the agent device. The alarm synchronization switch represents a trigger mechanism, that is, the alarm synchronization switch is turned on, which represents that the alarm synchronization switch is triggered.
The cache server means a server for caching a file, and has a server for storing data and interacting with other devices, for example, an FTP server, an HTTP server, and the like.
Specifically, after the alarm synchronization mechanism is triggered, the proxy device stores all current fault alarm information of the proxy device into the cache server. Taking the FTP server as an example, the proxy device sends all the fault warning information to the FTP server for storage through the FTP protocol.
S102, acquiring storage node information of current activity alarm information; the storage node information represents summary information stored in the cache server by the current active alarm information.
After storing the current activity alarm information to the cache server, the proxy equipment acquires storage node information, wherein the storage node information represents summary information stored in the cache server by the current activity alarm information, and equivalently, the proxy equipment stores the current activity alarm information to some necessary summary information of the cache server to generate the storage node information.
Optionally, in one embodiment, the storage node information includes at least a message identification of transmitting the current activity alarm information, an interaction ID of the agent device with the management device, an identification of the agent device, a file type, a transmission status, and additional information.
The storage node information generated by the proxy device is to be transmitted to the management device, and taking the case that the proxy device transmits the storage node information to the management device through a Trap message as an example, a message identifier for transmitting current active alarm information represents an identifier of the Trap message, where the identifier is used to indicate that the Trap message is transmitted at this time, and is alarm information, for example, the identifier is FileTransOID; the interaction ID of the agent equipment and the management equipment represents the interaction ID appointed between the agent equipment and the management equipment; the identification of the agent equipment represents the SN identification of the agent equipment; the file type represents a file type stored when the proxy device uploads the current alarm information to the cache server, for example, AlarmSyncFile; the transmission state represents the success or failure state of uploading the current alarm information to the cache server by the proxy equipment; the additional information represents file path information stored in the cache server after the proxy device uploads the current alarm information to the cache server.
In practical application, the Trap messages sent by the management device to the agent device are all received in a uniform mode, and if the agent device sends multiple types of Trap messages to the management device at the same time, the management device is difficult to distinguish which type is the alarm information. Therefore, the node information of the agent device sending the alarm information Trap message may be predetermined in advance, as an example of the convention shown in table 1 below.
TABLE 1
Node meaning Node name Node type Remarks for note
OID FileTransOID \ Trap identification
Interaction ID interactID Integer32 Interactive identification reported by equipment
Device identification deviceID Octets Device SN
File type fileType Octets AlarmSyncFile、
Status of transmission transStatus Octets Success/Faild
Additional information AddtionalInfo Octets Storing filenames
Based on the node information agreed in table 1, it can be seen that the storage node information generated by the proxy device includes information such as interactID, deviceID, fileType, transStatus, addsionalinfo, and the like after the current alarm information is uploaded to the cache server.
S103, sending the storage node information to a management device; the storage node information is used for instructing the management equipment to synchronize the current activity alarm information.
The agent device sends the acquired storage node information to the management device, and instructs the management device to synchronize the current activity alarm information according to the storage node information, that is, the management device synchronizes the current activity alarm information according to the interctID, deviceID, fileType, TransStatus, Addtionallnfo and other information in the table 1. It can be understood that the synchronization operation is an addition, deletion or replacement operation, so that the consistency with the alarm information of the agent device is ensured, and the problem of loss or omission of the alarm information is avoided.
Specifically, still taking table 1 as an example, after receiving the storage node information, when the message identifier for transmitting the current activity alarm information in the storage node information is filetransmit, determining that the Trap message sent by the proxy device this time is a message of the alarm information, the management device continues to check the transmission state in the storage node information, and if the transmission state is successful, the management device reads the current activity alarm information from the cache server according to the file storage path information in the additional information, and performs actual alarm information synchronization operation. Optionally, after the synchronous operation of the proxy device is completed, a prompt may be performed on a foreground page.
In the method for synchronizing alarm information provided in this embodiment, after the alarm synchronization switch is turned on, the proxy device uploads the current alarm information to the cache server, and the storage node information of the current activity alarm information is sent to the management equipment, so that the management equipment can read the current activity alarm information from the cache server according to the storage node information and synchronize the current activity alarm information, in the method, the agent equipment does not directly send the current activity alarm information to the management equipment, but caches and stores the current activity alarm information through the cache server, even if the agent device has more or less current alarm information, the management device can read all the alarm information from the cache service, and the alarm information is accurately synchronized, so that files are read through multithreading processing, and the data correctness is guaranteed when the agent equipment and the management equipment interact.
On the basis of the above embodiments, an embodiment of the present application further provides an alarm information synchronization method, which relates to a specific process of an agent device opening an alarm synchronization switch, and as shown in fig. 3, before sending the current activity alarm information of the agent device to a cache server for storage, the process of opening the alarm synchronization switch includes:
s201, detecting whether a starting command sent by the management equipment is received.
The agent device detects whether a start command sent by the management device is received, wherein the start command is a command sent by the management device and used for instructing the agent device to start the alarm synchronous switch. For example, if the start command is a Set command, the mode for the management device to send the Set command may be that the management device receives a trigger operation of a user, that is, the management device generates the Set command according to the trigger operation of the user, and sends the Set command to the agent device.
And S202, if a starting command sent by the management equipment is received, starting the alarm synchronous switch.
After receiving the start command, the agent device starts the alarm synchronization switch, which is equivalent to that the agent device also takes the start command as a Set command as an example, and after receiving the Set command, the agent device starts the alarm synchronization switch and then starts to send the current activity alarm information of the agent device to the cache server for storage.
In the alarm information synchronization method provided by this embodiment, when the management device needs to synchronize the alarm information of a certain proxy device, the management device actively sends a start command to the proxy device, sets the alarm synchronization switch of the proxy device to start, and then the proxy device starts to store the activity alarm information of the proxy device into the cache server, thereby ensuring that the activity alarm information is the latest alarm information.
For the process of storing, by the proxy device, the current activity alarm information in the cache server, as shown in fig. 4, the S102 includes:
s301, inquiring current activity alarm information.
S302, writing the current activity alarm information into an appointed text, and storing the appointed text into a cache server.
The agent device queries all current active alarm information of itself, and writes the queried active alarm information into an appointment text, for example, into an xml file, or into an excel, where the embodiment does not limit the appointment text. After the appointment file is written in, the proxy equipment uploads the appointment text to a cache server for storage.
According to the alarm information synchronization method provided by the embodiment, the proxy equipment writes the inquired activity alarm information into the appointed text and stores the activity alarm information into the cache server, so that the subsequent reading operation of the management equipment can be facilitated, and the reading accuracy of the activity alarm information is ensured.
An embodiment in which the execution subject is a management apparatus is explained below. It should be noted that, the agent device and the management device are mutually interactive, and the method steps involved in the embodiment in which the execution subject is the management device are similar to those in the above embodiment in which the execution subject is the agent device, so that repeated embodiments of the following embodiment in which the execution subject is the management device will not be described again, and reference may be made to the above embodiment in which the execution subject is the agent device.
In one embodiment, an alarm information synchronization method is provided, as shown in fig. 5, the method includes:
s401, sending a starting command to the agent equipment, wherein the starting command is used for indicating the agent equipment to start an alarm synchronous switch; and the alarm synchronous switch is turned on to instruct the proxy equipment to send the current activity alarm information of the proxy equipment to the cache server for storage.
S402, receiving storage node information sent by the agent equipment; the storage node information represents summary information stored in the cache server of the current activity alarm information of the agent equipment.
S403, according to the storage node information, synchronizing the current activity alarm information.
Optionally, the storage node information at least includes a message identifier for transmitting the current activity alarm information, an interaction ID of the agent device and the management device, an identifier of the agent device, a file type, a transmission status, and additional information.
The implementation principle and technical effect of the alarm information synchronization method provided in the embodiment of fig. 5 are similar to those of the embodiment of fig. 2, and are not described herein again.
In an embodiment, a specific process that a management device synchronizes current activity alarm information according to storage node information is provided, as shown in fig. 6, where S502 includes:
s501, judging whether the message identifier in the storage node information is an appointed identifier.
The management device determines whether the message identifier in the storage node information is an agreed identifier, for example, if the message identifier in the storage node information is filetransit oid, the message identifier is determined to be the agreed identifier.
And S502, if the transmission state is the appointed identification, acquiring the transmission state in the storage node information.
When the message identifier in the storage node information is the appointed identifier, the management device acquires the transmission state in the storage node information, wherein the transmission state comprises two types, one type is transmission success, and the other type is transmission failure.
And S503, if the transmission state is successful, acquiring current activity alarm information from the cache server for synchronization according to the storage node information.
If the transmission state acquired by the management device is successful, the management device determines a storage path of the current activity alarm information of the agent device in the cache server according to other information in the storage node information, such as file types, additional information and the like, and then reads the activity alarm information according to the storage path and performs synchronization operation according to the read activity alarm information.
Of course, after the synchronization of the management device is completed, the corresponding state may be presented on the foreground interface, and in an embodiment, the method further includes: displaying the synchronous state of the current activity alarm information on a front-end interface; the synchronization state includes that the current activity alarm information is successfully transmitted and the synchronization is successful, or the current activity alarm information is unsuccessfully transmitted.
The synchronization state displayed on the front-end interface comprises two synchronization states, one is that the management equipment is successfully synchronized, wherein the premise of successful synchronization is that the state of the current activity alarm information transmitted to the cache server is successful and the synchronization operation of the management equipment is successful; the other is that the state of the current activity alarm information transmitted to the cache server is failed, which indicates that the synchronization operation of the management device at the back cannot be performed, and then the management device can display the transmission failure on the front-end interface.
In the method for synchronizing alarm information provided by this embodiment, the management device performs synchronization operation according to the storage node information sent by the agent device, and if the message identifier in the storage node information is not an agreed identifier or the transmission state is not a successful state, the management device does not need to perform subsequent synchronization operation, thereby avoiding resource waste and improving processing efficiency. In addition, the state of synchronous operation is displayed on the front-end interface, and a user can conveniently know the state of synchronous operation.
Based on all the above embodiments, referring to fig. 7, an alarm information synchronization method is provided, and taking the example that the start command is a Set command as an example for explanation, the embodiment includes:
s1, the management equipment receives an alarm synchronization process triggered by the outside;
s2, the management device sends the Set command of the SNMP message to the agent device,
s3, the agent device opens the alarm synchronous switch;
s4, the agent equipment inquires the current activity alarm information of the agent equipment and writes the current activity alarm information into an xml file;
s5, after the proxy equipment finishes editing the xml file, uploading the edited xml file to an FTP server through an FTP protocol;
s6, after completing the FTP transmission, the proxy device fills in the storage node information, for example, the storage node information includes essential information such as OID, interpictid, deviceID, fileType, transStatus, addionialinfo, etc.;
s7, the agent device adds the storage node information into a Trap message and sends the Trap message to the management device;
s8, the management equipment judges after receiving the Trap message, and when the OID is a FileTransOID, the management equipment acquires the information such as the internationID, deviceID, fileType, TransStatus, Addtionallnfo and the like;
s9, if TransStatus is successfully transmitted, the management device reads the alarm information from the cache server according to Addtionallnfo and other information;
s10, the management equipment analyzes the alarm information and carries out synchronous operation, and then returns a synchronous result to the front-end interface;
s11, if TransStatus is transmission failure, the management device directly returns synchronization failure to the front-end interface and displays failure details.
According to the alarm information synchronization method provided by the embodiment, the expense of SNMP interaction is reduced through the cache server, so that the management equipment and the agent equipment can perform multi-thread processing of file reading, and the data correctness is guaranteed when the management equipment and the agent equipment interact.
It should be understood that although the various steps in the flow charts of fig. 2-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-7 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In addition, based on the above alarm information synchronization method embodiment, the present application also provides an alarm information synchronization system, which is shown in fig. 1 and includes: the system comprises a management device, an agent device and a cache server;
the agent device is used for executing the steps of the embodiment of which the main body is the agent device in the alarm information synchronization method;
the cache server is used for receiving the current activity alarm information sent by the agent equipment and storing the current activity alarm information; acquiring current activity alarm information at the management equipment, and sending the current activity alarm information to the management equipment;
and the management device is used for executing the steps of the embodiment with the execution main body as the management device in the alarm information synchronization method.
For the embodiment of the warning information synchronization system, the implementation principle and technical effect thereof are similar to those of the embodiment of the warning information synchronization method, and are not described herein again.
Further, in one embodiment, as shown in fig. 8, there is provided an alert information synchronizing apparatus including: a storage module 10, an acquisition module 11 and a sending module 12, wherein,
the storage module 10 is used for starting the alarm synchronization switch and sending the current activity alarm information to the cache server for storage;
the acquiring module 11 is configured to acquire storage node information of current activity alarm information; the storage node information represents summary information stored in the cache server by the current activity alarm information;
a sending module 12, configured to send the storage node information to the management device; the storage node information is used for instructing the management equipment to synchronize the current activity alarm information.
In one embodiment, the storage node information at least includes a message identifier for transmitting the current activity alarm information, an interaction ID of the agent device and the management device, an identifier of the agent device, a file type, a transmission status, and additional information.
In one embodiment, as shown in fig. 9, there is provided an alarm information synchronizing apparatus, where the storage module 10 includes: a detection unit 101 and an activation unit 102, wherein,
a detection unit 101, configured to detect whether a start command sent by a management device is received;
the starting unit 102 is configured to start the alarm synchronization switch if a starting command sent by the management device is received.
In one embodiment, as shown in fig. 10, there is provided an alarm information synchronization apparatus, where the storage module 10 further includes: a query unit 103 and a storage unit 104, wherein,
the query unit 103 is configured to query current activity alarm information;
the storage unit 104 is configured to write the current activity alarm information into an appointment text, and store the appointment text in the cache server.
In one embodiment, as shown in fig. 11, there is provided an alert information synchronizing apparatus including: an open command module 13, a receiving module 14 and a synchronization module 15, wherein,
the starting command module 13 is used for sending a starting command to the proxy equipment, and the starting command is used for indicating the proxy equipment to start the alarm synchronous switch; the alarm synchronization switch is turned on to instruct the proxy equipment to send the current activity alarm information to the cache server for storage;
a receiving module 14, configured to receive storage node information sent by the proxy device; the storage node information represents summary information stored in a cache server by the current activity alarm information of the agent equipment;
and the synchronization module 15 is configured to synchronize the current activity alarm information according to the storage node information.
In one embodiment, the storage node information at least includes a message identifier for transmitting the current activity alarm information, an interaction ID of the agent device and the management device, an identifier of the agent device, a file type, a transmission status, and additional information.
In one embodiment, as shown in fig. 12, there is provided an alarm information synchronization apparatus, where the synchronization module 15 includes: a judging unit 151, an acquiring unit 152, and a synchronizing unit 153, wherein,
a judging unit 151, configured to judge whether a message identifier in the storage node information is an agreed identifier;
an obtaining unit 152, configured to obtain, if the identifier is an agreed identifier, a transmission state in the storage node information;
and the synchronizing unit 153 is configured to, if the transmission status is successful, obtain the current activity alarm information from the cache server according to the storage node information, and perform synchronization.
In one embodiment, the apparatus further comprises: the display module is used for displaying the synchronous state of the current activity alarm information on a front-end interface; the synchronization state includes that the current activity alarm information is successfully transmitted and the synchronization is successful, or the current activity alarm information is unsuccessfully transmitted.
The implementation principle and technical effect of all the embodiments of the alarm information synchronization device provided above are similar to those of the embodiments of the alarm information synchronization method, and are not described herein again.
For the specific limitation of the alarm information synchronization device, reference may be made to the above limitation of the alarm information synchronization method, which is not described herein again. All or part of the modules in the alarm information synchronization device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 13. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an alert information synchronization method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 13 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
starting an alarm synchronous switch, and sending the current activity alarm information of the alarm synchronous switch to a cache server for storage;
acquiring storage node information of current activity alarm information; the storage node information represents summary information stored in the cache server by the current activity alarm information;
sending the storage node information to a management device; the storage node information is used for instructing the management equipment to synchronize the current activity alarm information.
Alternatively, the processor implements the following steps when executing the computer program:
sending a starting command to the agent equipment, wherein the starting command is used for indicating the agent equipment to start an alarm synchronous switch; the alarm synchronization switch is turned on to instruct the proxy equipment to send the current activity alarm information to the cache server for storage;
receiving storage node information sent by agent equipment; the storage node information represents summary information stored in a cache server by the current activity alarm information of the agent equipment;
and synchronizing the current activity alarm information according to the storage node information.
The implementation principle and technical effect of the computer device provided by the above embodiment are similar to those of the above method embodiment, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
starting an alarm synchronous switch, and sending the current activity alarm information to a cache server for storage;
acquiring storage node information of current activity alarm information; the storage node information represents summary information stored in the cache server by the current activity alarm information;
sending the storage node information to a management device; the storage node information is used for instructing the management equipment to synchronize the current activity alarm information.
Alternatively, the computer program when executed by the processor implements the steps of:
sending a starting command to the agent equipment, wherein the starting command is used for indicating the agent equipment to start an alarm synchronous switch; the alarm synchronization switch is turned on to instruct the proxy equipment to send the current activity alarm information to the cache server for storage;
receiving storage node information sent by agent equipment; the storage node information represents summary information stored in a cache server by the current activity alarm information of the agent equipment;
and synchronizing the current activity alarm information according to the storage node information.
The implementation principle and technical effect of the computer-readable storage medium provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), interface dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. A method for synchronizing alarm information is characterized by comprising the following steps:
starting an alarm synchronous switch, and sending the current activity alarm information of the alarm synchronous switch to a cache server for storage;
acquiring storage node information of the current activity alarm information; the storage node information represents summary information stored in the cache server by the current activity alarm information;
sending the storage node information to a management device; the storage node information is used for indicating the management equipment to synchronize the current activity alarm information.
2. The warning information synchronizing method according to claim 1, wherein the storage node information includes at least a message identification for transmitting the currently active warning information, an interaction ID of a proxy device with the management device, an identification of the proxy device, a file type, a transmission status, and additional information.
3. The method for synchronizing alarm information according to claim 1 or 2, wherein the turning on the alarm synchronization switch comprises:
detecting whether a starting command sent by the management equipment is received;
and if receiving a starting command sent by the management equipment, starting the alarm synchronous switch.
4. The method for synchronizing alarm information according to claim 1 or 2, wherein the sending the own current activity alarm information to a cache server for storage comprises:
inquiring current activity alarm information;
writing the current activity alarm information into an appointed text, and storing the appointed text to the cache server.
5. A method for synchronizing alarm information is characterized by comprising the following steps:
sending a starting command to the agent equipment, wherein the starting command is used for indicating the agent equipment to start an alarm synchronous switch; the alarm synchronous switch is turned on to instruct the agent equipment to send the current activity alarm information to a cache server for storage;
receiving storage node information sent by the agent equipment; the storage node information represents summary information stored in the cache server by the current activity alarm information of the agent equipment;
and synchronizing the current activity alarm information according to the storage node information.
6. The warning information synchronizing method according to claim 5, wherein the storage node information includes at least a message identification for transmitting the currently active warning information, an interaction ID of the agent device with a management device, an identification of the agent device, a file type, a transmission status, and additional information.
7. The method for synchronizing alarm information according to claim 6, wherein the synchronizing the current active alarm information according to the storage node information comprises:
judging whether the message identifier in the storage node information is an appointed identifier or not;
if yes, acquiring a transmission state in the storage node information;
and if the transmission state is successful, acquiring the current activity alarm information from the cache server for synchronization according to the storage node information.
8. The method for synchronizing alarm information according to claim 7, wherein the method further comprises:
displaying the synchronous state of the current activity warning information on a front-end interface; the synchronization state includes that the current activity warning information is successfully transmitted and the synchronization is successful, or the current activity warning information is unsuccessfully transmitted.
9. An alarm information synchronization system, the system comprising: the system comprises a management device, an agent device and a cache server;
the agent device, configured to perform the steps of the alarm information synchronization method according to any one of claims 1 to 4;
the cache server is used for receiving the current activity alarm information sent by the agent equipment and storing the current activity alarm information; when the management equipment needs to acquire the current activity alarm information, the current activity alarm information is sent to the management equipment;
the management device is configured to perform the steps of the alarm information synchronization method according to any one of claims 5 to 8.
10. An alarm information synchronization apparatus, characterized in that the apparatus comprises:
the storage module is used for starting the alarm synchronous switch and sending the current activity alarm information to the cache server for storage;
the acquisition module is used for acquiring the storage node information of the current activity alarm information; the storage node information represents summary information stored in the cache server by the current activity alarm information;
the sending module is used for sending the storage node information to the management equipment; the storage node information is used for indicating the management equipment to synchronize the current activity alarm information.
11. An alarm information synchronization apparatus, characterized in that the apparatus comprises:
the starting command module is used for sending a starting command to the proxy equipment, and the starting command is used for indicating the proxy equipment to start the alarm synchronous switch; the alarm synchronous switch is turned on to instruct the agent equipment to send the current activity alarm information to a cache server for storage;
the receiving module is used for receiving the storage node information sent by the agent equipment; the storage node information represents summary information stored in the cache server by the current activity alarm information of the agent equipment;
and the synchronization module is used for synchronizing the current activity alarm information according to the storage node information.
12. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the alert information synchronization method of any of claims 1 to 8.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the alert information synchronization method according to any one of claims 1 to 8.
CN201911387375.7A 2019-12-27 2019-12-27 Alarm information synchronization method and device, computer equipment and storage medium Active CN111211925B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911387375.7A CN111211925B (en) 2019-12-27 2019-12-27 Alarm information synchronization method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911387375.7A CN111211925B (en) 2019-12-27 2019-12-27 Alarm information synchronization method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111211925A true CN111211925A (en) 2020-05-29
CN111211925B CN111211925B (en) 2022-11-29

Family

ID=70788384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911387375.7A Active CN111211925B (en) 2019-12-27 2019-12-27 Alarm information synchronization method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111211925B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671587A (en) * 2020-12-28 2021-04-16 紫光云技术有限公司 Alarm method for failure of equipment issuing configuration
CN114285723A (en) * 2021-12-22 2022-04-05 卡斯柯信号有限公司 Method for maintaining information transmission between terminals

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094103A (en) * 2007-07-26 2007-12-26 中兴通讯股份有限公司 Alarming synchronization method and device of network management system in SNMP protocol
US20140006618A1 (en) * 2012-06-29 2014-01-02 William M. Pitts Method of creating path signatures to facilitate the recovery from network link failures

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094103A (en) * 2007-07-26 2007-12-26 中兴通讯股份有限公司 Alarming synchronization method and device of network management system in SNMP protocol
US20140006618A1 (en) * 2012-06-29 2014-01-02 William M. Pitts Method of creating path signatures to facilitate the recovery from network link failures

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671587A (en) * 2020-12-28 2021-04-16 紫光云技术有限公司 Alarm method for failure of equipment issuing configuration
CN114285723A (en) * 2021-12-22 2022-04-05 卡斯柯信号有限公司 Method for maintaining information transmission between terminals

Also Published As

Publication number Publication date
CN111211925B (en) 2022-11-29

Similar Documents

Publication Publication Date Title
CN110719318B (en) Message processing method and system
CN108834086B (en) Method and device for sending short message, computer equipment and storage medium
CN110768873B (en) Distributed heartbeat detection method, system and device and computer equipment
CN108897658B (en) Method and device for monitoring master database, computer equipment and storage medium
CN110830283B (en) Fault detection method, device, equipment and system
CN111211925B (en) Alarm information synchronization method and device, computer equipment and storage medium
CN112671613B (en) Federal learning cluster monitoring method, device, equipment and medium
CN111159233B (en) Distributed caching method, system, computer equipment and storage medium
CN113407383B (en) Main and standby system switching method and device, server and main and standby system
CN105592139A (en) HA implementation method and device of distributed file system management platform
CN113612814B (en) Session information screening method, device, terminal and storage medium
WO2020118633A1 (en) Subscription message processing method and apparatus, and computer device and storage medium
CN113799135A (en) Robot control method, system, server, storage medium and mechanical arm
CN112153146B (en) Operation notification method and apparatus, storage medium, and electronic apparatus
CN111901395B (en) Multi-cluster switching method and device
CN112132652A (en) Order information acquisition method and device, computer equipment and storage medium
KR20210044281A (en) Method and apparatus for ensuring continuous device operation stability in cloud degraded mode
CN113098706B (en) VPN server switching method and device based on cloud and storage medium
CN107800754B (en) Data transmission task processing method and device, and data transmission task monitoring method and device
CN108848147B (en) SNMP proxy equipment registration method, device, computer equipment and storage medium
CN114116906A (en) Data synchronization method, device, electronic device and storage medium
CN114157582A (en) Switch port state monitoring method and device and network communication system
CN109254997B (en) Data synchronization method, system, computer device and readable storage medium
CN112559445A (en) Data writing method and device
CN113391759A (en) Communication method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: COMBA TELECOM SYSTEMS (CHINA) Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant