CN107544655A - Computer system protection method after UPS power-off - Google Patents

Computer system protection method after UPS power-off Download PDF

Info

Publication number
CN107544655A
CN107544655A CN201610865846.0A CN201610865846A CN107544655A CN 107544655 A CN107544655 A CN 107544655A CN 201610865846 A CN201610865846 A CN 201610865846A CN 107544655 A CN107544655 A CN 107544655A
Authority
CN
China
Prior art keywords
ups
service
computer system
power
loss event
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.)
Pending
Application number
CN201610865846.0A
Other languages
Chinese (zh)
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.)
Henan Zhonglian Cloud Science And Engineering Technology Co Ltd
Original Assignee
Henan Zhonglian Cloud Science And Engineering Technology 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 Henan Zhonglian Cloud Science And Engineering Technology Co Ltd filed Critical Henan Zhonglian Cloud Science And Engineering Technology Co Ltd
Priority to CN201610865846.0A priority Critical patent/CN107544655A/en
Publication of CN107544655A publication Critical patent/CN107544655A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

The present invention provides a kind of computer system protection method after UPS power-off, and methods described is as follows, and 1)The hardware configuration of computer system circuit breaking protective system, UPS data-signals are accessed by network by the network interface card of UPS configurations, give UPS runnings information transmission to UPS monitoring PC;2)Design of Monitor, in UPS monitoring PC, establishment UPS signals are intercepted, monitoring programme, carry out power loss event monitoring;3)Power loss event notice is sent to computer system, is notified to perform service protection strategy according to power loss event, restarts shutdown process, orderly close-down computer system.The technical program method is simple, only by one PC of increase and a set of customizable timing shutdown strategy, can confirm that the situation of exterior power supply plant failure;In the case where confirming externally fed failure, according to predetermined shutdown strategy, system of effectively shutting down computer, it is ensured that data and system safety, effectively protect resource for computer system and the loss to service object to reduce as far as possible.

Description

Computer system protection method after UPS power-off
Technical field
The present invention relates to a kind of computer system protection method, specifically, relate to computer after a kind of UPS power-off System protection method.
Background technology
UPS is also known as no-break power unit, in modern industrial technology, electronic technology, has a wide range of applications.Calculating UPS will be triggered after machine power down is used with providing extra limited electricity for computer system, protects against what is powered off suddenly It is dangerous.But UPS, after input power interruption, the standby time is limited, when UPS accumulator electric-quantity exhausts, calculate Machine system will be by abnormal shutdown.Such a shutdown not only can produce large effect to the data system of computer system, also Large effect may be produced to the operating system and mainboard of computer, hard disk etc..How reasonably with UPS batteries Power-on time, the abnormal closing of computer system is avoided, protect software systems, hardware device and the meter of computer equipment system The service provided in calculation machine system, it is the main target of computer system protection mechanism after UPS power-off.
The content of the invention
The purpose of the present invention be in view of the shortcomings of the prior art, so as to provide a kind of topology layout it is simple, it is real-time and Computer system protection method after visual in image UPS power-off.
To achieve these goals, the technical solution adopted in the present invention is:Department of computer science's blanket insurance after a kind of UPS power-off Maintaining method, methods described is as follows, and 1)The hardware configuration of computer system circuit breaking protective system, by the network interface card of UPS configurations by UPS Data-signal accesses network, gives UPS runnings information transmission to UPS monitoring PC;2)Design of Monitor, in UPS monitoring PC In, establishment UPS signals are intercepted, monitoring programme, carry out power loss event monitoring;3)Power loss event notice is sent to computer system, Notified to perform service protection strategy according to power loss event, restart shutdown process, orderly close-down computer system.
Based on above-mentioned, in the step 1, computer system device access network that UPS monitoring PC, UPS and needs are powered Network, wherein UPS provide uninterrupted power source to computer system, are connected by power line with each computer, and UPS monitoring PC, which is received, to be come From UPS power supply signal data.
Based on above-mentioned, in the step 2, the monitoring programme in PC is monitored, one-time detection is carried out to power supply signal every 5 seconds Information gathering, if receiving power failure signal, add up abnormal time, wait detect power supply signal again within 5 seconds, if still It is abnormal, continue to add up, if accumulative exceed setting time, power loss event notice is sent to computer system, if the cumulative time The signal that restores electricity is received less than setting time, then adds up abnormal time zero.
Based on above-mentioned, in the step 3, the service protection strategy includes:Stop, closing or terminate and be inside service remote Journey communications portal part;The TCP/IP networks for system of shutting down computer or the communications portal of serial ports;Preserve interim caused by service Information or configuration information;Perform the service request of received but not processed or untreated completion;Flush buffers are in internal memory Data and store into persistent storage medium;One or one group of service are closed according to the dependence of service.
Based on above-mentioned, in the step 3, the shutdown order is first to close the one-of-a-kind system for not providing service externally, its Secondary closing application system, is then shut off Database Systems;On every corresponding server, establishment, which is shut down computer, runs pin This, after shutdown process starts, starts script, shuts down computer;After the completion of monitoring computer and closing, UPS monitoring PC is closed Itself.
Based on above-mentioned, " being notified to perform service protection strategy according to power loss event " is specially:There is provided service module and Service management module, service module are used to register by the service protection policy registration interface of service management module;Service management Module is used to provide service protection strategy to service module by service protection policy registration interface;Service management module is according to falling Electric event notice performs the service protection strategy provided to service module.
Based on above-mentioned, " being notified to perform service protection strategy according to power loss event " is specially:There is provided service module and Service management module;Service module registers power loss event notification interface to service management module;Service module is fallen by registration Electric event notification interface receives power loss event notice;Service module notifies to perform the service set in service module according to power loss event Preservation tactics.
The present invention has prominent substantive distinguishing features and marked improvement, specifically, the technical program compared with the prior art Method is simple, only by one PC of increase and a set of customizable timing shutdown strategy, can confirm that externally fed system The situation for failure of uniting;In the case where confirming externally fed failure, according to predetermined shutdown strategy, system of effectively shutting down computer, Ensure data and system safety, effectively protect resource for computer system and the loss to service object to reduce as far as possible.
Brief description of the drawings
Fig. 1 is device connection diagram.
Embodiment
Below by embodiment, technical scheme is described in further detail.
A kind of computer system protection method after UPS power-off, methods described is as follows, and 1)Computer system power-off protection system The hardware configuration of system, UPS data-signals are accessed by network by the network interface card of UPS configurations, UPS running information transmissions are given UPS monitoring PC;2)Design of Monitor, in UPS monitoring PC, establishment UPS signals are intercepted, monitoring programme, carry out power loss event Monitoring;3)Power loss event notice is sent to computer system, is notified to perform service protection strategy according to power loss event, restarts pass Machine flow, orderly close-down computer system.
The UPS monitors PC by network insertion, as shown in Figure 1.Monitoring programme in PC, processing come from UPS power supply signal, judges whether UPS has powered off/abnormity of power supply, if UPS is powered off, adds up UPS power-off times, works as prison Control program receives UPS input powers and recovers normal signal, by the accumulative zero of UPS power-off times.UPS power-off times add up After reaching certain time, power loss event notice is sent to process computer system, service protection strategy is performed, preserves department of computer science System data, shutoff operation system.After the interruption of UPS input powers, the battery discharging of UPS configurations, ensure that UPS output is electric Pressure.The storage battery power supply time is determined by the capacity of battery.
The ups power signal that UPS monitoring PC is received mainly has that civil power is normal, and UPS is working properly;City's electrical anomaly, UPS turn Battery works;UPS low batteries work, and battery will exhaust;UPS communications are lost or cut-out load power source;UPS equipment needs to update Battery;UPS equipment starts to go to bypass;There are seven kinds of information such as not clear failure in UPS.When detect UPS need change electricity , it is necessary to which manpower intervention is handled during the warning message such as pond or UPS communication loss, detecting system need to send warning message.And when UPS turns Battery work warning message, monitoring PC then do power failure signal processing.When power supply is higher than certain value, it is extensive that monitoring PC does power supply Complex signal processing.
Power monitoring program in PC, one-time detection information gathering is carried out to power supply signal every 5 seconds, if received Power failure signal, then add up abnormal time, wait detect power supply signal again within 5 seconds, if still abnormal, continue to add up, such as Fruit adds up more than 3 minutes (according to actual conditions, the parameter value is adjustable), and power loss event notice is sent to computer system, according to Power loss event notice performs service protection strategy, restarts shutdown process, orderly close-down computer system.If the cumulative time is not The signal that restores electricity was received by 3 minutes, then the accumulative zero of abnormal time.
Wherein, performing service protection strategy includes:The first step, the telecommunication stop, closing or terminate inside service enter Mouthpiece;Second step, the TCP/IP networks for system of shutting down computer or the communications portal of serial ports;3rd step, the service of preservation produce Temporary information or configuration information, perform received but not processed or untreated completion service request;4th step, refresh The data that are buffered in internal memory are simultaneously stored into persistent storage medium;5th step, one is closed according to the dependence of service Or one group of service.
Notify that performing service protection strategy is specially according to power loss event:Service module and service management module, clothes are provided Module of being engaged in is used to register by the service protection policy registration interface of service management module;Service management module is used to pass through service Preservation tactics registration interface provides service protection strategy to service module;Service management module according to power loss event notice perform to The service protection strategy that service module provides.
In other embodiments, notify that performing service protection strategy can be according to power loss event:There is provided service module and Service management module;Service module registers power loss event notification interface to service management module;Service module is fallen by registration Electric event notification interface receives power loss event notice;Service module notifies to perform the service set in service module according to power loss event Preservation tactics.
After starting shutdown programm, start computer system shutdown mechanism, electricity is sent to all computers for receiving UPS power supplies Source closing information, send shutdown command.
Each computer starts local computer system bolt down procedure after finger daemon receives shutdown command.Setting etc. Time X to be shut down, according to UPS power-on time length, such time X to be shut down can be adjusted.After unused time X is reached, according to Orderly close-down application function is set, finally closes system and computer in itself.
Computer system protection mechanism is to the large-scale or microcomputer system using uninterrupted power source after UPS power-off One kind protection, can be used in using UPS type of industry and computer system, by being detectd to UPS input powers Listen, monitor, after input power breaks down, protection uses the hardware of ups power system and the safety of operating system. The protection mechanism has versatility in same model, and different type of machines is easily transplanted, and has the possibility that type of industry is implemented.
Finally it should be noted that:The above embodiments are merely illustrative of the technical scheme of the present invention and are not intended to be limiting thereof;To the greatest extent The present invention is described in detail with reference to preferred embodiments for pipe, those of ordinary skills in the art should understand that:Still The embodiment of the present invention can be modified or equivalent substitution is carried out to some technical characteristics;Without departing from this hair The spirit of bright technical scheme, it all should cover among the claimed technical scheme scope of the present invention.

Claims (7)

1. a kind of computer system protection method after UPS power-off, it is characterised in that:Methods described is as follows,
1)The hardware configuration of computer system circuit breaking protective system, by the network interface card of UPS configurations by UPS data-signal access networks Network, give UPS runnings information transmission to UPS monitoring PC;
2)Design of Monitor, in UPS monitoring PC, establishment UPS signals are intercepted, monitoring programme, carry out power loss event monitoring;
3)Power loss event notice is sent to computer system, is notified to perform service protection strategy according to power loss event, restarts pass Machine flow, orderly close-down computer system.
2. computer system protection method after a kind of UPS power-off according to claim 1, it is characterised in that:The step 1 In, the computer system device that UPS monitoring PC, UPS and needs are powered accesses network, and wherein UPS is provided computer system Uninterrupted power source, it is connected by power line with each computer, UPS monitoring PC receives the power supply signal data from UPS.
3. computer system protection method after a kind of UPS power-off according to claim 1, it is characterised in that:The step 2 In, the monitoring programme in PC is monitored, one-time detection information gathering is carried out to power supply signal every 5 seconds, if receiving power interruptions Signal, then add up abnormal time, wait detect power supply signal again within 5 seconds, if still abnormal, continue to add up, if accumulative super Setting time is crossed, power loss event notice is sent to computer system, is restored electricity if the cumulative time receives less than setting time Signal, then add up abnormal time zero.
4. computer system protection method after a kind of UPS power-off according to claim 1, it is characterised in that the step 3 In, the service protection strategy includes:Stop, closing or terminate the telecommunication inlet part inside service;Shut down computer The TCP/IP networks of system or the communications portal of serial ports;Preserve temporary information or configuration information caused by service;Execution has connect Receipts but the service request of not processed or untreated completion;Data of the flush buffers in internal memory and storing to persistent storage are situated between In matter;One or one group of service are closed according to the dependence of service.
5. computer system protection method after a kind of UPS power-off according to claim 1, it is characterised in that:The step 3 In, the shutdown order is first to close the one-of-a-kind system for not providing service externally, secondly closes application system, is then shut off data Storehouse system;On every corresponding server, Run Script of shutting down computer is worked out, after shutdown process starts, starts script, closes Close computer;After the completion of monitoring computer and closing, UPS monitoring PC itself is closed.
6. service protection method after power down according to claim 1, it is characterised in that described " to be notified according to power loss event Perform service protection strategy " be specially:Service module and service management module are provided, service module is used to pass through service management The service protection policy registration interface registration of module;Service management module is used to pass through service protection policy registration interface to service Module provides service protection strategy;Service management module performs the service protection provided to service module according to power loss event notice Strategy.
7. service protection method after power down according to claim 1, it is characterised in that described " to be notified according to power loss event Perform service protection strategy " be specially:Service module and service management module are provided;Service module is registered to service management module Power loss event notification interface;Service module receives power loss event by the power loss event notification interface of registration and notified;Service module Notified to perform the service protection strategy set in service module according to power loss event.
CN201610865846.0A 2016-09-30 2016-09-30 Computer system protection method after UPS power-off Pending CN107544655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610865846.0A CN107544655A (en) 2016-09-30 2016-09-30 Computer system protection method after UPS power-off

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610865846.0A CN107544655A (en) 2016-09-30 2016-09-30 Computer system protection method after UPS power-off

Publications (1)

Publication Number Publication Date
CN107544655A true CN107544655A (en) 2018-01-05

Family

ID=60965782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610865846.0A Pending CN107544655A (en) 2016-09-30 2016-09-30 Computer system protection method after UPS power-off

Country Status (1)

Country Link
CN (1) CN107544655A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108470271A (en) * 2018-03-08 2018-08-31 北京华通天畅工程监理咨询有限公司 A kind of engineering project total management system
CN109656213A (en) * 2018-12-26 2019-04-19 西门子电站自动化有限公司 Man-machine interface system and dcs with loss protecting mechanism
CN110456897A (en) * 2018-05-08 2019-11-15 杭州海康威视数字技术股份有限公司 Power-off protection method, protective device and the server cluster of electronic equipment
CN112621719A (en) * 2020-12-11 2021-04-09 珠海格力电器股份有限公司 Demonstrator system file protection method and device, storage medium and demonstrator
CN112865287A (en) * 2020-12-28 2021-05-28 智昌科技集团股份有限公司 UPS-based power-on and power-off protection system and protection method for industrial personal computer
CN113687867A (en) * 2021-08-24 2021-11-23 济南浪潮数据技术有限公司 Shutdown method, system, equipment and storage medium of cloud platform cluster

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5958054A (en) * 1997-01-17 1999-09-28 Dell U.S.A., L.P. System and method for emulating an uninterruptable power supply (UPS) using a portable computer
CN104021093A (en) * 2014-06-24 2014-09-03 浪潮集团有限公司 Power-down protection method for memory device based on NVDIMM (non-volatile dual in-line memory module)
CN104238714A (en) * 2013-06-09 2014-12-24 上海梅山钢铁股份有限公司 Method for protecting computer systems after outage of uninterrupted power supply (UPS)
CN104914974A (en) * 2015-05-22 2015-09-16 福建天晴数码有限公司 Service protecting method and protecting system after powering down

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5958054A (en) * 1997-01-17 1999-09-28 Dell U.S.A., L.P. System and method for emulating an uninterruptable power supply (UPS) using a portable computer
CN104238714A (en) * 2013-06-09 2014-12-24 上海梅山钢铁股份有限公司 Method for protecting computer systems after outage of uninterrupted power supply (UPS)
CN104021093A (en) * 2014-06-24 2014-09-03 浪潮集团有限公司 Power-down protection method for memory device based on NVDIMM (non-volatile dual in-line memory module)
CN104914974A (en) * 2015-05-22 2015-09-16 福建天晴数码有限公司 Service protecting method and protecting system after powering down

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108470271A (en) * 2018-03-08 2018-08-31 北京华通天畅工程监理咨询有限公司 A kind of engineering project total management system
CN108470271B (en) * 2018-03-08 2022-06-10 北京华通天畅工程监理咨询有限公司 Engineering project integrated management system
CN110456897A (en) * 2018-05-08 2019-11-15 杭州海康威视数字技术股份有限公司 Power-off protection method, protective device and the server cluster of electronic equipment
CN109656213A (en) * 2018-12-26 2019-04-19 西门子电站自动化有限公司 Man-machine interface system and dcs with loss protecting mechanism
WO2020135530A1 (en) * 2018-12-26 2020-07-02 西门子电站自动化有限公司 Man-machine interface system having power loss protection mechanism, and distributed control system
CN109656213B (en) * 2018-12-26 2020-09-29 西门子电站自动化有限公司 Man-machine interface system with power-loss protection mechanism and distributed control system
CN112621719A (en) * 2020-12-11 2021-04-09 珠海格力电器股份有限公司 Demonstrator system file protection method and device, storage medium and demonstrator
CN112865287A (en) * 2020-12-28 2021-05-28 智昌科技集团股份有限公司 UPS-based power-on and power-off protection system and protection method for industrial personal computer
CN113687867A (en) * 2021-08-24 2021-11-23 济南浪潮数据技术有限公司 Shutdown method, system, equipment and storage medium of cloud platform cluster
CN113687867B (en) * 2021-08-24 2023-12-29 济南浪潮数据技术有限公司 Shutdown method, system, equipment and storage medium of cloud platform cluster

Similar Documents

Publication Publication Date Title
CN107544655A (en) Computer system protection method after UPS power-off
US10097034B2 (en) UPS system with network monitoring and attached battery pack information sensing functions
US9075410B2 (en) Abnormality detection for isolating a control system
CN101212367B (en) Alarm message processing method and device
CN101542444B (en) Security features in interconnect centric architectures
CN104238714A (en) Method for protecting computer systems after outage of uninterrupted power supply (UPS)
US8527788B2 (en) Network wake up system with protection function
CN113468162B (en) Method, apparatus, and medium for processing for exception data
CN101782746A (en) Monitoring device and monitoring method
US7045914B2 (en) System and method for automatically providing continuous power supply via standby uninterrupted power supplies
CN108958811A (en) A kind of closedown method, device, equipment and computer readable storage medium
CN107943670A (en) A kind of ups power equipment monitoring system
CN116126772A (en) UART serial port management system and method applied to ARM server
US20200012579A1 (en) Monitoring and management system of operational and performance parameters of a cryptocurrency mining farm
US20040073817A1 (en) Method for automatically saving in-process programs before shutdown
CN206460446U (en) A kind of supervising device for ruggedized computer mainboard
CN117743012A (en) Processing system and method for chip failure, electronic equipment and storage medium
CN104914974B (en) Service protection method and protection system after power down
CN116186744A (en) Computer data transmission system and method
CN217388303U (en) Embedded system power-down protection device based on super capacitor
CN116339479A (en) Control method and device of server power supply, storage medium and electronic device
CN107179911A (en) A kind of method and apparatus for restarting management engine
CN202583765U (en) Equipment room power failure automatic response system
CN201750221U (en) Power relay protection text message monitoring device
Tseng et al. Characterization of the error resiliency of power grid substation devices

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180105

RJ01 Rejection of invention patent application after publication