CN109756373B - Communication equipment power failure warning method and system - Google Patents

Communication equipment power failure warning method and system Download PDF

Info

Publication number
CN109756373B
CN109756373B CN201910011136.5A CN201910011136A CN109756373B CN 109756373 B CN109756373 B CN 109756373B CN 201910011136 A CN201910011136 A CN 201910011136A CN 109756373 B CN109756373 B CN 109756373B
Authority
CN
China
Prior art keywords
network management
power failure
management server
information
communication equipment
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.)
Active
Application number
CN201910011136.5A
Other languages
Chinese (zh)
Other versions
CN109756373A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201910011136.5A priority Critical patent/CN109756373B/en
Publication of CN109756373A publication Critical patent/CN109756373A/en
Application granted granted Critical
Publication of CN109756373B publication Critical patent/CN109756373B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a system for alarming power failure of communication equipment, which relate to the technical field of communication and comprise the following steps: periodically acquiring network management server information and communication routing information of communication equipment; generating a plurality of preset power failure warning messages according to the network management server information and the communication routing information; when the communication equipment is powered off, under the premise that the transient power supply unit of the communication equipment supplies power transiently, the following steps are carried out: taking a preset power failure warning message as a real-time power failure warning message, and circularly sending the real-time power failure warning message to the network management server until the electric quantity of the transient power supply unit is exhausted; the power-off monitoring unit is used for monitoring the power-off condition of the communication equipment. The invention reduces the requirement on the transient power supply unit, sends more power failure alarm messages as much as possible in the transient power supply time, and carries out power failure alarm on the staff in real time.

Description

Communication equipment power failure warning method and system
Technical Field
The invention relates to the technical field of communication, in particular to a communication equipment power failure warning method and system.
Background
In the existing communication system, when a communication device sends a power failure, the communication device can send a power failure alarm message (english name Dying gasp) at the time of power failure, so as to report the power failure condition of the communication device;
however, the existing power failure warning message has the problems of long time for sending the power failure warning message and large requirement on short-term electric energy storage capacity of communication equipment;
in order to solve the above problems, the conventional method mainly improves the short-term electric energy storage capacity of the communication equipment, but the solution increases the equipment cost;
therefore, a new power-off warning method for communication equipment is urgently needed to solve the above problems.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a communication equipment power failure warning method and system, which reduce the equipment requirement on a transient power supply unit, send more power failure warning messages as much as possible in transient power supply time and carry out power failure warning on workers in real time.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a power failure warning method for communication equipment, which includes the following steps:
periodically acquiring network management server information and communication routing information of the communication equipment;
generating a plurality of preset power failure warning messages according to the network management server information and the communication routing information;
when the communication equipment is powered off, under the premise that the transient power supply unit of the communication equipment supplies power transiently, the following steps are carried out:
taking the preset power failure warning message as a real-time power failure warning message, and circularly sending the real-time power failure warning message to a network management server until the electric quantity of the transient power supply unit is exhausted;
the network management server is used for receiving the real-time power failure warning message and monitoring the power failure condition of the communication equipment;
the method further comprises the steps of:
when the routing state of the communication equipment is updated, acquiring routing update information, and judging whether the routing update information is associated with the network management server;
if the route updating information is associated with the network management server, updating each preset power-off warning message according to the route updating information, and adding an effective mark to the preset power-off warning message obtained according to the route updating information;
the method further comprises the steps of:
and when the communication equipment is in a power-off condition, sending a real-time power-off alarm message with the effective mark through a preset alarm message sending unit.
On the basis of the technical scheme, the method further comprises the following steps:
when the network management configuration state of the communication equipment is updated, acquiring network management update information, and judging whether the network management update information is associated with the network management server;
and if the network management updating information is associated with the network management server, updating each preset power failure warning message according to the network management updating information.
On the basis of the above technical solution, the updating of the preset power-off notification alarm text specifically includes:
and modifying the source MAC address, the destination MAC address, the source IP address, the destination IP address and the IP checksum in the preset outage alarm message.
On the basis of the technical scheme, the method further comprises the following steps:
when the network management updating information is associated with the network management server, adding an effective mark to the preset power failure warning message obtained according to the network management updating information;
and when the communication equipment is in a power-off condition, sending a real-time power-off alarm message with the effective mark through a preset alarm message sending unit.
In a second aspect, the present invention further provides a power failure warning system for communication equipment, which includes: the system comprises a transient power supply unit, a power failure monitoring unit, an alarm parameter acquisition unit, an alarm message making unit, an alarm message sending unit, a network management server, a route change prompting unit and a mark adding unit;
the short-term power supply unit is used for carrying out short-term power supply operation when the communication equipment is powered off;
the power failure monitoring unit is used for monitoring the power failure condition of the communication equipment and sending a working instruction to the alarm message sending unit;
the alarm parameter acquiring unit is used for periodically acquiring network management server information and communication routing information of the communication equipment;
the warning message making unit is used for generating a preset power failure warning message according to the network management server information and the communication routing information;
the alarm message sending unit is used for taking the preset power failure alarm message as a real-time power failure message when the communication equipment is powered off, and circularly sending the real-time power failure alarm message to a network management server until the electric quantity of the transient power supply unit is exhausted;
the network management server is used for receiving each real-time power failure warning message;
the route change prompting unit is used for acquiring route update information when the route state of the communication equipment is updated, judging whether the route update information is associated with the network management server, and if the route update information is associated with the network management server, sending a first working instruction to the warning message making unit by the route change prompting unit;
the mark adding unit is used for adding an effective mark to a preset power failure warning message obtained according to the routing update information when the routing update information is associated with the network management server;
the alarm message making unit is also used for receiving the first working instruction and updating the preset power-off alarm message according to the routing update information;
the alarm message sending unit is also used for generating power failure alarm information when the communication equipment is in a power failure condition, and generating a real-time power failure alarm message by combining a preset power failure alarm message added with an effective mark.
On the basis of the above technical solution, the system further includes:
a network management change prompting unit, configured to, when a network management configuration state of the communication device is updated, obtain network management update information, and determine whether the network management update information is associated with the network management server, and if the network management update information is associated with the network management server, send a second working instruction to the warning message making unit;
the warning message making unit is further configured to receive the second working instruction, and update each preset power-off warning message according to the network management update information.
On the basis of the above technical solution, the updating each preset power-off notification alarm message specifically includes:
and modifying the source MAC address, the destination MAC address, the source IP address, the destination IP address and the IP checksum in the preset outage alarm message.
Compared with the prior art, the invention has the advantages that:
the invention can quickly send out the power failure alarm message, reduces the equipment requirement on the transient power supply unit, sends out more power failure alarm messages as much as possible within the transient power supply time, and gives power failure alarm to the staff in real time to inform the staff of the power failure condition.
Drawings
Fig. 1 is a flowchart illustrating steps of a power-off warning method for a communication device according to an embodiment of the present invention;
fig. 2 is a block diagram of a power-off warning system of a communication device according to an embodiment of the present invention;
in the figure: 1. a transient power supply unit; 2. a power failure monitoring unit; 3. an alarm parameter acquisition unit; 4. an alarm message making unit; 5. an alarm message sending unit; 6. a network management server; 7. a route change prompting unit; 8. a network management change prompting unit; 9. a mark adding unit.
Detailed Description
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
The embodiment of the invention provides a method and a system for alarming power failure of communication equipment, which can quickly send out power failure alarm messages, reduce the equipment requirement on a transient power supply unit, send out more power failure alarm messages as much as possible in transient power supply time, and alarm power failure to workers in real time to inform the workers of the power failure condition.
In order to achieve the technical effects, the general idea of the application is as follows:
a power-off warning method for communication equipment comprises the following steps:
s1, periodically acquiring network management server information and communication routing information of the communication equipment;
s2, generating a plurality of preset power failure warning messages according to the network management server information and the communication routing information;
when the communication equipment is powered off, under the premise that the transient power supply unit of the communication equipment supplies power transiently, the following steps are carried out:
s3, taking the preset power failure warning message as a real-time power failure warning message, and circularly sending the real-time power failure warning message to the network management server until the electric quantity of the transient power supply unit is exhausted;
the network management server is used for receiving the real-time power failure alarm message and monitoring the power failure condition of the communication equipment.
Referring to fig. 1, an embodiment of the present invention provides a power failure warning method for a communication device, including the following steps:
s1, periodically acquiring network management server information and communication routing information of the communication equipment;
s2, generating a plurality of preset power failure warning messages according to the network management server information and the communication routing information;
when the communication equipment is powered off, under the premise that the transient power supply unit of the communication equipment supplies power transiently, the following steps are carried out:
s3, taking the preset power failure warning message as a real-time power failure warning message, and circularly sending the real-time power failure warning message to the network management server until the electric quantity of the transient power supply unit is exhausted;
the network management server is used for receiving the real-time power failure alarm message and monitoring the power failure condition of the communication equipment.
The embodiment of the invention aims to solve the problems of poor network reliability and low efficiency caused by nonstandard power failure alarm message format, long message sending time and high requirement on short-term stored electric energy of the conventional equipment in the prior art by using a mode of quickly sending the power failure alarm message in the standard format.
It should be noted that, in the embodiment of the present invention, a real-time power outage warning message may be sent, so that the device output port information should be obtained in advance and used for sending a message in the following.
In the embodiment of the invention, the implementation is based on the premise that the transient power supply unit of the communication equipment performs transient power supply, and the transient power supply unit has a transient power storage function and can perform transient power supply work when the communication equipment is suddenly powered off;
the short-term power supply unit may be a capacitor and its associated basic circuit, and is used for supplying power for a short time in less than one second, even in milliseconds, and in this short power supply time, it can provide enough time for the message to be sent.
In step S1, the network management server information and the communication routing information of the communication device are periodically obtained, and the network management server information and the communication routing information can be ensured to be the current latest data information to a certain extent, so as to accurately provide guarantee for the real-time power failure warning message in the later period;
in step S2, a plurality of preset power failure warning messages are generated according to the network management server information and the communication routing information, where the preset power failure warning messages specifically include the network management server information and the communication routing information, and are used to form a real-time power failure warning message together with the power failure warning information generated according to the power failure situation when the power failure situation occurs, where the power failure warning information is used to describe the power failure situation, and the network management server information and the communication routing information in the preset power failure warning message are used to describe the specific situation of the communication device when the power failure situation occurs.
In addition, the preset power failure warning message is generated in advance, so that the generation time of generating the real-time power failure warning message in the later period can be saved, the workload in the later period is reduced, the time for sending the real-time power failure warning message is shortened, and the real-time power failure warning message is sent as much as possible before the electric quantity of the transient power supply unit is exhausted;
at this time, a plurality of preset power failure warning messages are generated according to the information of the network management server and the communication routing information, and then after a plurality of real-time power failure warning messages are finally formed by the plurality of preset power failure warning messages, two sending mechanisms can be adopted, one is to send the plurality of real-time power failure warning messages to the same network management server, the other is to respectively send the plurality of real-time power failure warning messages to different network management servers, namely, one real-time power failure warning message corresponds to one network management server, and the two modes can ensure that the real-time power failure warning messages can be received and play a warning role to a certain extent.
Then, in S3, the preset power outage warning message is used as a real-time power outage warning message, and the real-time power outage warning message is sent to the network management server in a circulating manner until the electric quantity of the transient power supply unit is exhausted.
Before this step, that is, when the preset power outage warning message is made in step S2, the device identity information of the power outage device may be written into the preset power outage warning message in advance.
And circularly sending the real-time power failure alarm message to the network management server, so that the network management server can receive the power failure alarm, the negative influence caused by the possible packet loss of the internet is avoided, the monitoring omission of the condition by the staff is also avoided, and the guarantee is provided for the power failure alarm work.
The network management server is used for monitoring the power failure condition of the communication equipment, specifically receiving and displaying a real-time power failure alarm message, so that a worker can conveniently and visually know the power failure condition;
in addition, a power failure monitoring unit is also preset and used for monitoring the power failure condition of the communication equipment, and the occurrence of the power failure condition is found at the first time, so that the action of subsequently generating a real-time power failure alarm message is started;
in addition, the real-time power failure warning message can be sent to one network management server or a plurality of network management servers.
In the embodiment of the invention, the power failure warning message can be sent out quickly, the requirement on short power supply time is reduced, more power failure warning messages are sent out as much as possible, and the power failure warning is carried out on the staff in real time to inform the staff of the power failure condition.
As an optional implementation, the method of the embodiment of the present invention further includes:
when the routing state of the communication equipment is updated, acquiring routing update information, and judging whether the routing update information is associated with a network management server;
if the route updating information is associated with the network management server, updating each preset power failure warning message according to the route updating information;
the above steps are the steps of updating the information in the preset power failure warning message when the route updating information of the communication equipment is updated, so as to provide guarantee for the information accuracy of the subsequent real-time power failure warning message.
As an optional implementation, the method of the embodiment of the present invention further includes:
when the network management configuration state of the communication equipment is updated, acquiring network management update information, and judging whether the network management update information is associated with a network management server;
if the network management updating information is associated with the network management server, updating each preset power failure warning message according to the network management updating information;
the above steps are the steps of updating the information in the preset power failure warning message when the network management configuration state of the communication equipment is updated, thereby providing guarantee for the information accuracy of the subsequent real-time power failure warning message.
In the embodiment of the present invention, updating each preset power-off notification alert message according to the route update information specifically includes:
and modifying the source MAC address, the destination MAC address, the source IP address, the destination IP address and the IP checksum in the preset outage alarm message.
As an optional implementation, the method of the embodiment of the present invention further includes:
when the route updating information is associated with the network management server, adding an effective mark to a preset power failure warning message obtained according to the route updating information;
when the communication equipment is in a power-off condition, a preset alarm message sending unit sends a real-time power-off alarm message with an effective mark;
the route update information is associated with the network management server, specifically, the route update information includes a communication route between the communication device and the network management server, or a communication channel exists between the communication device and the network management server.
As an optional implementation, the method of the embodiment of the present invention further includes:
when the network management updating information is associated with the network management server, adding an effective mark to a preset power failure warning message obtained according to the network management updating information;
when the communication equipment is in a power-off condition, a preset alarm message sending unit sends a real-time power-off alarm message with an effective mark;
the network management update information here is associated with the network management server, and specifically means that the network management server and the network management information of the communication device exist in the network management update information.
It should be noted that the method may be specifically implemented between a protocol stack kernel of the communication device and the driver software, and receives the power-off interrupt message from the driver software, and sends a power-off warning message to the driver software;
and the network management server information and the routing information are obtained through the protocol stack kernel and network management and routing updating interaction, and the outage alarm message is perfected.
If necessary, a message notification mechanism can be registered in a network manager and a protocol stack kernel, an interrupt callback function is registered, and when a power-off message needs to be generated, the interrupt callback function is called to send a power-off message and start power-off alarm work;
the number of the preset power-off alarm messages is not more than the maximum number of the alarm servers supported by the communication equipment, and the standard snmp or syslog messages are selected by default in the message format, and the two formats of the messages can enhance the universality and the applicability of the embodiment of the invention.
Based on the same inventive concept, the application provides an embodiment of a communication equipment power-off warning system corresponding to the method embodiment, which specifically comprises the following steps:
as shown in fig. 2, an embodiment of the present invention provides a power failure warning system for a communication device, which includes a transient power supply unit 1, a power failure monitoring unit 2, a warning parameter obtaining unit 3, a warning message making unit 4, a warning message sending unit 5, and a network management server 6:
a short-term power supply unit 1 for performing a short-term power supply operation when the communication apparatus is powered off;
the power failure monitoring unit 2 is used for monitoring the power failure condition of the communication equipment and sending a working instruction to the warning message sending unit 5 when the communication equipment has the power failure condition;
an alarm parameter acquiring unit 3, configured to periodically acquire network management server information and communication routing information of the communication device;
the warning message making unit 4 is used for generating a preset power failure warning message according to the network management server information and the communication routing information;
the warning message sending unit 5 is used for taking a preset power failure warning message as a real-time power failure warning message when the communication equipment is powered off, and circularly sending the real-time power failure warning message to the network management server 6 until the electric quantity of the transient power supply unit 1 is exhausted;
and the network management server 6 is used for receiving each real-time power failure alarm message.
The embodiment of the invention aims to solve the problems of poor network reliability and low efficiency caused by nonstandard power failure alarm message format, long message sending time and high requirement on short-term stored electric energy of the conventional equipment in the prior art by using a mode of quickly sending the power failure alarm message in the standard format.
In the embodiment of the invention, the implementation is based on the premise that the transient power supply unit 1 of the communication equipment performs transient power supply, and the transient power supply unit 1 has a transient power storage function and can perform transient power supply work when the communication equipment is suddenly powered off;
the short-term power supply unit 1 may be a capacitor and its associated basic circuit, and is configured to supply power for a short time in less than one second, even in milliseconds, where the short time can provide enough time for sending a message.
The alarm parameter acquiring unit 3 periodically acquires the network management server information and the communication routing information of the communication equipment, and can ensure that the network management server information and the communication routing information are the current latest data information to a certain extent, so that real-time and accurate guarantee is provided for the real-time power failure alarm message in the later period;
the warning message making unit 4 is used for generating a plurality of preset power failure warning messages according to the network management server information and the communication routing information, wherein the preset power failure warning messages specifically contain the network management server information and the communication routing information and are used for combining the power failure warning information generated according to the power failure condition to jointly form a real-time power failure warning message when the power failure condition occurs;
when the power failure occurs, the power failure monitoring unit 2 sends a working instruction to the alarm message sending unit 5, the alarm message sending unit 5 generates a real-time power failure alarm message, the power failure alarm information in the real-time power failure alarm message is used for describing the power failure, and the network management server information and the communication routing information in the preset power failure alarm message are used for describing the specific condition of the communication equipment when the power failure occurs.
In addition, the preset power failure warning message is generated in advance, so that the generation time of generating the real-time power failure warning message in the later period can be saved, the workload in the later period is reduced, the time for sending the real-time power failure warning message is shortened, and the real-time power failure warning message is sent as much as possible before the electric quantity of the transient power supply unit 1 is exhausted;
at this time, a plurality of preset power failure warning messages are generated according to the network management server information and the communication routing information, and then after the plurality of preset power failure warning messages finally form a plurality of real-time power failure warning messages, two sending mechanisms can be adopted, one is that the plurality of real-time power failure warning messages are sent to the same network management server 6, the other is that the plurality of real-time power failure warning messages are respectively sent to different network management servers 6, namely, one real-time power failure warning message corresponds to one network management server 6, and the two modes can ensure that the real-time power failure warning messages can be received and play a warning role to a certain extent.
Then, the alarm message sending unit 5 takes the preset power-off alarm message as a real-time power-off alarm message, and circularly sends the real-time power-off alarm message to the network management server 6 until the electric quantity of the transient power supply unit 1 is exhausted,
before the operation, namely when the preset power-off warning message is made, the equipment identity information of the power-off equipment can be written into the preset power-off warning message in advance,
and circularly sending the real-time power failure alarm message to the network management server 6 ensures that the network management server 6 can receive the power failure alarm, thereby not only avoiding the negative influence caused by the possible packet loss of the internet, but also avoiding the omission of monitoring the situation by the staff and providing guarantee for the power failure alarm work.
The network management server 6 may be a working platform or a working computer of a worker, or may be a network management server, and is configured to receive each real-time power failure warning message;
in addition, the real-time power failure warning message may be sent to one network management server 6, or may be sent to a plurality of network management servers 6.
In the embodiment of the invention, the power failure warning message can be sent out quickly, the requirement on short power supply time is reduced, more power failure warning messages are sent out as much as possible, and the power failure warning is carried out on the staff in real time to inform the staff of the power failure condition.
It should be noted that, the power failure monitoring unit 2 is configured to monitor a power failure condition of the communication device and send a working instruction to the warning message sending unit 5, where the power failure monitoring unit 2 mainly monitors the power failure condition of the communication device, that is, finds a power failure state at the first time;
the supervision work of the network management server 6 is mainly displayed to the staff according to the received real-time power failure warning message.
As an optional implementation manner, the system of the embodiment of the present invention further includes:
the route change prompting unit 7 is used for acquiring route update information when the route state of the communication equipment is updated, judging whether the route update information is associated with the network management server 6, and if the route update information is associated with the network management server 6, the route change prompting unit 7 sends a first working instruction to the warning message making unit 4;
the alarm message making unit 4 is further configured to receive the first work instruction, and update each preset power-off alarm message according to the route update information;
the above operation procedure is a step of updating the information in the preset power failure warning message when the route updating information of the communication device is updated, thereby providing guarantee for the information accuracy of the subsequent real-time power failure warning message.
As an optional implementation manner, the system of the embodiment of the present invention further includes:
the network management change prompting unit 8 is used for acquiring network management update information when the network management configuration state of the communication equipment is updated, judging whether the network management update information is associated with the network management server 6, and if the network management update information is associated with the network management server 6, the network management change prompting unit 8 sends a second working instruction to the warning message making unit 4;
the warning message making unit 4 is further configured to receive a second working instruction, and update each preset power-off warning message according to the network management update information;
the above operation procedure is a step of updating the information in the preset power failure warning message when the network management configuration state of the communication equipment is updated, thereby providing guarantee for the information accuracy of the subsequent real-time power failure warning message
In the embodiment of the present invention, updating each preset power-off notification alert message according to the route update information specifically includes:
and modifying the source MAC address, the destination MAC address, the source IP address, the destination IP address and the IP checksum in the preset outage alarm message.
As an optional implementation manner, the system of the embodiment of the present invention further includes a mark adding unit 9, configured to:
when the route updating information is associated with the network management server 6, adding an effective mark to a preset power failure warning message obtained according to the route updating information;
when the communication equipment is in a power failure condition, generating power failure alarm information by using a preset alarm message sending unit 5, and generating a real-time power failure alarm message by combining the preset power failure alarm message added with the effective mark;
the route update information is associated with the network management server 6, specifically, the route update information includes a communication route between the communication device and the network management server 6, or a communication channel exists between the two.
As an optional implementation manner, the mark adding unit 9 of the embodiment of the present invention is further configured to:
when the network management updating information is associated with the network management server 6, adding an effective mark to a preset power failure warning message obtained according to the network management updating information;
when the communication equipment is in a power failure condition, generating power failure alarm information by using a preset alarm message sending unit 5, and generating a real-time power failure alarm message by combining the preset power failure alarm message added with the effective mark;
the network management update information here is associated with the network management server 6, and specifically means that the network management server 6 and the network management information of the communication device exist in the network management update information.
It should be noted that the method may be specifically implemented between a protocol stack kernel of the communication device and the driver software, and receives the power-off interrupt message from the driver software, and sends a power-off warning message to the driver software;
and the network management server information and the routing information are obtained through the protocol stack kernel and network management and routing updating interaction, and the outage alarm message is perfected.
If necessary, a message notification mechanism can be registered in a network manager and a protocol stack kernel, an interrupt callback function is registered, and when a power-off message needs to be generated, the interrupt callback function is called to send a power-off message and start power-off alarm work;
and the number of the preset power-off alarm messages is not more than the maximum alarm server number supported by the communication equipment, and the message format selects standard snmp or syslog messages by default.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, server, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), servers and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (7)

1. A power-off warning method for communication equipment is characterized by comprising the following steps:
periodically acquiring network management server information and communication routing information of the communication equipment;
generating a plurality of preset power failure warning messages according to the network management server information and the communication routing information;
when the communication equipment is powered off, under the premise that the transient power supply unit of the communication equipment supplies power transiently, the following steps are carried out:
taking the preset power failure warning message as a real-time power failure warning message, and circularly sending the real-time power failure warning message to a network management server until the electric quantity of the transient power supply unit is exhausted;
the network management server is used for receiving the real-time power failure warning message and monitoring the power failure condition of the communication equipment;
the method further comprises the steps of:
when the routing state of the communication equipment is updated, acquiring routing update information, and judging whether the routing update information is associated with the network management server;
if the route updating information is associated with the network management server, updating each preset power-off warning message according to the route updating information, and adding an effective mark to the preset power-off warning message obtained according to the route updating information;
the method further comprises the steps of:
and when the communication equipment is in a power-off condition, sending a real-time power-off alarm message with the effective mark through a preset alarm message sending unit.
2. The method of claim 1, wherein the method further comprises:
when the network management configuration state of the communication equipment is updated, acquiring network management update information, and judging whether the network management update information is associated with the network management server;
and if the network management updating information is associated with the network management server, updating each preset power failure warning message according to the network management updating information.
3. The method according to claim 1, wherein the updating of the preset power-off warning message specifically includes:
and modifying the source MAC address, the destination MAC address, the source IP address, the destination IP address and the IP checksum in the preset outage alarm message.
4. The method of claim 2, wherein the method further comprises:
when the network management updating information is associated with the network management server, adding an effective mark to the preset power failure warning message obtained according to the network management updating information;
and when the communication equipment is in a power-off condition, sending a real-time power-off alarm message with the effective mark through a preset alarm message sending unit.
5. A communication device power-off warning system, comprising: the system comprises a transient power supply unit, a power failure monitoring unit, an alarm parameter acquisition unit, an alarm message making unit, an alarm message sending unit, a network management server, a route change prompting unit and a mark adding unit;
the short-term power supply unit is used for carrying out short-term power supply operation when the communication equipment is powered off;
the power failure monitoring unit is used for monitoring the power failure condition of the communication equipment and sending a working instruction to the alarm message sending unit;
the alarm parameter acquiring unit is used for periodically acquiring network management server information and communication routing information of the communication equipment;
the warning message making unit is used for generating a preset power failure warning message according to the network management server information and the communication routing information;
the alarm message sending unit is used for taking the preset power failure alarm message as a real-time power failure alarm message when the communication equipment is powered off, and circularly sending the real-time power failure alarm message to a network management server until the electric quantity of the transient power supply unit is exhausted;
the network management server is used for receiving each real-time power failure warning message;
the route change prompting unit is used for acquiring route update information when the route state of the communication equipment is updated, judging whether the route update information is associated with the network management server, and if the route update information is associated with the network management server, sending a first working instruction to the warning message making unit by the route change prompting unit;
the mark adding unit is used for adding an effective mark to a preset power failure warning message obtained according to the routing update information when the routing update information is associated with the network management server;
the alarm message making unit is also used for receiving the first working instruction and updating the preset power-off alarm message according to the routing update information;
the alarm message sending unit is also used for generating power failure alarm information when the communication equipment is in a power failure condition, and generating a real-time power failure alarm message by combining a preset power failure alarm message added with an effective mark.
6. The system of claim 5, wherein the system further comprises:
a network management change prompting unit, configured to, when a network management configuration state of the communication device is updated, obtain network management update information, and determine whether the network management update information is associated with the network management server, and if the network management update information is associated with the network management server, send a second working instruction to the warning message making unit;
the warning message making unit is further configured to receive the second working instruction, and update each preset power-off warning message according to the network management update information.
7. The system according to claim 5, wherein said updating each of said preset power-off alert messages specifically comprises:
and modifying the source MAC address, the destination MAC address, the source IP address, the destination IP address and the IP checksum in the preset outage alarm message.
CN201910011136.5A 2019-01-07 2019-01-07 Communication equipment power failure warning method and system Active CN109756373B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910011136.5A CN109756373B (en) 2019-01-07 2019-01-07 Communication equipment power failure warning method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910011136.5A CN109756373B (en) 2019-01-07 2019-01-07 Communication equipment power failure warning method and system

Publications (2)

Publication Number Publication Date
CN109756373A CN109756373A (en) 2019-05-14
CN109756373B true CN109756373B (en) 2022-02-01

Family

ID=66404445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910011136.5A Active CN109756373B (en) 2019-01-07 2019-01-07 Communication equipment power failure warning method and system

Country Status (1)

Country Link
CN (1) CN109756373B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124644B (en) * 2021-11-17 2023-10-03 烽火通信科技股份有限公司 Ethernet OAM alarm method and device based on Linux kernel mode

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100473199C (en) * 2005-08-10 2009-03-25 中兴通讯股份有限公司 Method of implementing alarm for power-off of base station
KR100822314B1 (en) * 2006-07-14 2008-04-15 서울통신기술 주식회사 Apparatus and method for a stoppage of power supply management in Home Automation System
CN101183901A (en) * 2007-10-11 2008-05-21 中兴通讯股份有限公司 Method of implementing transmission equipment power-off alarm and alarm recovery
CN102307367A (en) * 2011-08-18 2012-01-04 大唐移动通信设备有限公司 Communication equipment and power failure alarming method
CN104144124B (en) * 2014-07-21 2015-11-18 腾讯科技(深圳)有限公司 Data forwarding method, Apparatus and system
CN105515148B (en) * 2015-12-03 2017-12-22 中国联合网络通信集团有限公司 A kind of Remote Radio Unit, alarm for power-off method and base station

Also Published As

Publication number Publication date
CN109756373A (en) 2019-05-14

Similar Documents

Publication Publication Date Title
EP3386150B1 (en) Terminal failure processing method, device and system
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN110166562B (en) Data synchronization method and device, storage medium and electronic equipment
CN108540341B (en) Resource monitoring method and device
CN111478965A (en) Method, device and system for processing device shadow
CN110933142A (en) ICFS cluster network card monitoring method, device and equipment and medium
CN110618864A (en) Interrupt task recovery method and device
US20170280410A1 (en) Method, device and system for implementing information self-registration, and computer storage medium
CN109756373B (en) Communication equipment power failure warning method and system
CN111090562A (en) Business process monitoring method, equipment and storage medium of edge intelligent gateway
CN110809262B (en) COAP protocol-based operation and maintenance management method for Internet of things equipment
CN104468201A (en) Automatic deleting method and device for offline network equipment
CN111865688A (en) Gateway monitoring method and device, electronic equipment and storage medium
CN104202204A (en) Clock synchronous control method, device and system based on SNTP
CN109347685B (en) Network equipment, logic device and notification information transmission method
CN106411574B (en) Management control method and device
EP3171565B1 (en) Methods, devices and system for netconf hello packets interaction
CN109831339B (en) System log management method and log server
CN112260902A (en) Network equipment monitoring method, device, equipment and storage medium
CN112181731A (en) Keep-alive method and device for application program and computer equipment
CN109257185B (en) Network equipment, service card, logic device and notification information transmission method
CN111176893A (en) Computer remote control method, device, system and storage medium
CN106027297A (en) Method and sever for implementing alarming
CN112463427A (en) Fault information processing method and device, computer equipment and storage medium
CN114979037B (en) Multicast method, device, switch and storage medium

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
GR01 Patent grant
GR01 Patent grant