CN100416511C - Method and device of restart information recording - Google Patents
Method and device of restart information recording Download PDFInfo
- Publication number
- CN100416511C CN100416511C CNB2006101120307A CN200610112030A CN100416511C CN 100416511 C CN100416511 C CN 100416511C CN B2006101120307 A CNB2006101120307 A CN B2006101120307A CN 200610112030 A CN200610112030 A CN 200610112030A CN 100416511 C CN100416511 C CN 100416511C
- Authority
- CN
- China
- Prior art keywords
- information
- restarts
- record
- restarting
- restart
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Retry When Errors Occur (AREA)
Abstract
A method for restarting up information-recording includes judging whether information of this start-up is recording or not after unit is restarted up, recording information of this start-up if information of this start-up is not recorded in order to let maintenance personnel know more about operation state of unit and discover as well as solve problem timely.
Description
Technical field
The present invention relates to the device management techniques field, be specifically related to a kind of method and apparatus that restarts the information record.
Background technology
Along with popularizing of IP technology, the Internet (Internet) entered huge numbers of families.Generally can be divided into several sections such as user's access, Internet Protocol (IP:InternetProtocol) carrying according to the geographic area for the equipment that supports Internet.The user inserts part and is made of user side equipment usually, comprise user personal computer (PC:Personal Computer), network address translation (NAT:Network AddressTranslation) equipment etc., these equipment are managed, are safeguarded by the user usually.The equipment that carries with first-class ingredient for IP is managed and is safeguarded that these network equipments comprise usually by operator: router, fire wall, Ethernet switch, broadband access equipment or the like.
The network equipment has carried user's a large number of services, and restarting of network single-point network element device brings negative effect all can for user's business each time.Therefore the network equipment must have the perfect information that restarts writing function, so that the maintainer understands and grasp the operation conditions to equipment.The general network equipment restart as: the equipment that issues by order restart, by restarting of triggering of equipment scheduling strategy or the like, the operating software of the network equipment can both active perception equipment restart, so when restarting generation, the operating software of the network equipment initiatively recording unit restarts information in the storage resources of system, and the information of restarting generally comprises: restart the time, restart reason, also may comprise other information such as system resource condition when equipment restarts.
But the equipment that is caused by improper reason restarts: restarting, reset as device looses power, (RESET) key restarts, the CPU passive reset restarts, the device hardware house dog causes restarts etc., the operating software of the network equipment all can't restart the generation of incident by active perception equipment, so also can't restart recording of information according to traditional recording mode.The maintenance of equipment and the control of equipment operation condition are brought difficulty for the plant maintenance personnel, owing to can not in time pinpoint the problems and deal with problems, cause the instability of Network Transmission, service quality descends, and brings negative effect for the service image of network service operator.
Summary of the invention
The object of the present invention is to provide a kind of method and device that restarts the information record, be applied to the device management techniques field, this method and device can improve equipment and restart recording of information, make the maintainer can better understand the operation conditions of equipment, in time safeguard.
To achieve the object of the present invention, the technical scheme of being taked is: a kind of method that restarts the information record, comprise: after equipment restarts, judge that whether this restart information record, if this restarts not record of information, then write down this and restart information, if this restarts information record, then process ends.
Alternatively, describedly judge this information that restarts further comprises before whether writing down: judge that current whether the existence restart the information record, if then turn to and judge that this restarts the step whether information writes down; If not, then write down this and restart information, and process ends.
Alternatively, this of described record information of restarting comprises: this restarts type is that abnormal restarting is moving.
Alternatively, describedly judge that current whether the existence further comprise before restarting information record: judge whether this restarts is that power-down rebooting is moving, if then write down this and restart information; The described information of restarting comprises that this restarts type is that power-down rebooting is moving, and process ends; If not, then turn to and judge that this restarts the step whether information writes down.
Alternatively, the described step of judging whether this information that restarts has write down comprises: whether the mistiming that restarts the time that restarted last time in the information of judging current time and record is above presetting duration, if the described mistiming does not exceed and presets duration, judge that then this restarts information record; If the described mistiming exceeds and presets duration, judge that then this restarts not record of information.
Alternatively, the described step of judging whether this information that restarts has write down comprises: restarting of will the writing down time that restarted last time in the information with preset duration and time as a comparison; Whether judge the described reduced time less than the current time, if not, judge that then this restarts information record; If judge that then this restarts not record of information.
Alternatively, the described step of judging whether this information that restarts has write down comprises: with current time and the difference that presets duration time as a comparison; Judge that the described reduced time whether greater than the restarting the time that restarted last time in the information of record, if not, judges that then this restarts information record; If judge that then this restarts not record of information.
A kind of device that restarts the information record provided by the invention, comprising: abnormal restarting is moved judging unit, is used to judge that whether this restart information record, does not send record request if this information of restarting writes down then to restarting information recording unit; Restart information recording unit, be used to receive record request, and write down this and restart information to restarting information memory cell from the moving judging unit of abnormal restarting; Restart information memory cell, be used for storage and restart information.
Alternatively, the moving judging unit of described abnormal restarting is used to also judge that current whether the existence restarts the information record, if not, then send record this restart the request of information to restarting information recording unit, described this information of restarting comprise this restart into abnormal restarting moving.
Alternatively, also comprise: power-down rebooting moves judging unit, is used to judge whether this restarts is that power-down rebooting is moving, if then this restarts the request of information to restarting information recording unit transmission record; The described information of restarting comprise this restart into power-down rebooting moving; The described information recording unit that restarts also is used to receive the record request of power-down rebooting moving cell, and writes down this and restart information to restarting information memory cell.
Adopt technique scheme, beneficial technical effects of the present invention is:
The present invention judges that whether this restart information record after equipment restarts, if this restarts not record of information, then write down this and restart information.Avoided in the prior art, when operating software can't perception equipment when restarting, make the situation that restarts the information error of omission, perfect equipment is restarted recording of information, make the maintainer can better understand the operation conditions of equipment, and then in time pinpoint the problems and deal with problems, thereby the quality and the service image of the service of network service operation have been promoted.
Further, the present invention above-mentioned judge whether this information that restarts has write down before, increased and judged whether this restarts is that power-down rebooting is moving, with judge the current step that whether has the information that restarts of record, entire method is more optimized, simplified the determination flow moving to abnormal restarting, and at the moving situation of power-down rebooting, when record, then the record information of restarting is that power-down rebooting is moving, the classification of counterweight log-on message is more careful, helps the maintainer and holds equipment running status more accurately.
Description of drawings
Also the present invention is described in further detail in conjunction with the accompanying drawings below by embodiment.
Fig. 1 is the process flow diagram that the embodiment of the invention one restarts the method for information record;
Fig. 2 is the process flow diagram of the method for embodiment of the invention two-fold log-on message record;
Fig. 3 is the process flow diagram of the method for the triple log-on message records of the embodiment of the invention;
Fig. 4 is the structural representation of the device of embodiment of the invention quadruple log-on message record;
Fig. 5 is the structural representation that the embodiment of the invention five restarts the device of information record.
Embodiment
The object of the present invention is to provide a kind of method and device that restarts the information record, its core concept is after restarting by equipment, judges that whether this restart information record, if this restarts not record of information, then writes down this and restarts information.Avoided in the prior art, when operating software can't perception equipment when restarting, the situation of information error of omission appears restarting, perfect equipment is restarted the recording of information function, make the maintainer can better understand the operation conditions of equipment, in time pinpoint the problems and deal with problems, thereby promoted the quality and the service image of the service of network service operation.Method and the device that a kind of equipment provided by the invention information that restarts is write down is described in detail below.
Embodiment one, a kind of method that restarts the information record, process flow diagram comprises step as shown in Figure 1:
101, after equipment restarts, judge that whether this restart information record, if then process ends if not, then turns to step 102.
Judge whether this information that restarts has write down and to adopt judgment mode one that whether the mistiming that restarts the time that restarted last time in the information of judging current time and record surpasses is preset duration, if judge that then this restarts not record of information; If not, judge that then this restarts information record.
Described preset duration be traditionally arranged to be restart than equipment after, slave unit powers on and carries out the spent time of this determining step and get final product slightly greatly.Because after equipment restarts, be generally fixed value to the duration of carrying out this determining step at same equipment from power on, the current time of carrying out this determining step so deducts described duration, promptly can calculate the time that this restarts.Compare by the time that the last time in the record restarts that restarts, promptly can draw this and whether restart record this time that restarts of basis that calculates and system.
Judge whether this information that restarts has write down and can also take following dual mode:
Mode two, restarting of at first will the writing down time that restarted last time in the information with preset duration and time as a comparison.
Whether judge the described reduced time less than the current time, if judge that then this restarts not record of information; If not, judge that this restarts information record.
Mode three, at first, with current time and the difference that presets duration time as a comparison.
Judge that whether the described reduced time is greater than restarting the time that restarted last time in the information of writing down, if judge that then this restarts not record of information; If not, judge that then this restarts information record.
The above-mentioned judgment mode one of the present invention is to mode three, and the described duration that presets need be a bit larger tham slave unit and powers on to and carry out the duration of determining step, can realize certain fault-tolerantly like this, and makes judgement more accurate.
102, write down this and restart information, and process ends.
The information of restarting of record comprises the time that this restarts, and the time of restarting is that current time and slave unit power on and carry out the poor of the spent duration of this step.
Because the information of restarting can go on record normally, thus this restart into abnormal restarting moving, the information of restarting of described record can also comprise this restart into abnormal restarting moving.
After present embodiment restarts by equipment, judge that whether this restart information record,, then write down this and restart information if this restarts not record of information.Avoided in the prior art, when operating software can't perception equipment when restarting, make the situation that restarts the information error of omission, perfect equipment is restarted recording of information, make the maintainer can better understand the operation conditions of equipment, and then in time pinpoint the problems and deal with problems, thereby the quality and the service image of the service of network service operation have been promoted.
The present invention is to judging whether this information that restarts has write down by the way one to mode three realizations, be understandable that, the present invention emphasizes is time by heavier startup to judge whether that this restarts record, and concrete judgment mode is not construed as limiting the invention.
Embodiment two, a kind of method that restarts the information record, process flow diagram comprises step as shown in Figure 5:
201, after equipment restarts, judge that current whether the existence restart the information record, if then turn to step 202; If not, then turn to step 203.
Among the present invention, after equipment restarts, when writing down, can confirm that then this restarts not record of information as if the information that do not restart in the system.
202, judge that whether this restart information record, if then process ends if not, then turns to step 203.
In the present embodiment, describedly judge whether this information that restarts has write down mode one to mode three any one modes that can take in the foregoing description one and judged.
203, write down this and restart information, and process ends.
The information of restarting of record comprises the time that this restarts, and the time of restarting is that current time and slave unit power on and carry out the poor of the spent duration of this step.
Because the information of restarting can go on record normally, thus this restart into abnormal restarting moving, the information of restarting of described record can also comprise this restart into abnormal restarting moving.
Embodiment two with the difference of embodiment one is, for restarting of taking place under the situation that does not restart the information record in the equipment, can judge directly that then this restarts not record and moves for abnormal restarting, with embodiment one simplified in comparison flow process.
Embodiment three, a kind of method that restarts the information record, process flow diagram comprises step as shown in Figure 6:
301, after equipment restarts, judge whether this restarts is that power-down rebooting is moving, if then turn to step 302; If not, then turn to step 303.
In the present embodiment, judge this restart whether be power-down rebooting moving can the judgement to the record of device looses power realizes to hardware by equipment, as: when the device looses power, device hardware can the awareness apparatus power down and by the record of the battery on the equipment power loss event is taken place, and the power down zone bit is set is 1, when equipment restart after, judge then whether this power down zone bit is put 1, restart to power-down rebooting moves if then be judged to be this, then be judged to be non-power-failure if not and restart.After system start-up was finished, this zone bit was by clear 0.Be understandable that,, decide that as the tabulation acquisition power down information of the hardware logging modle record power down of slave unit etc., the acquisition mode of concrete power down information is not construed as limiting the invention according to concrete condition for whether being the moving judgement of power-down rebooting.
302, write down this and restart information; The described information of restarting comprises that it is that power-down rebooting is moving that this time that restarts and this restart type.The described time of restarting is that current time and slave unit power on and carry out the poor of the spent duration of this step.
303, judge that current whether the existence restart the information record, if then turn to step 304; If not, then turn to step 305.
Among the present invention, after equipment restarts, when writing down, can confirm that then this restarts not record of information as if the information that do not restart in the system.
304, judge that whether this restart information record, if then process ends if not, then turns to step 305.
In the present embodiment, describedly judge whether this information that restarts has write down mode one to mode three any one modes that can take in the foregoing description one and judged.
305, write down this and restart information, and process ends.
The information of restarting of record comprises the time that this restarts because the information of restarting can go on record normally, arbitrarily this restart into abnormal restarting moving, the information that restarts of described record also comprise this restart into abnormal restarting moving.
Embodiment three with the difference of embodiment two is, earlier the record of device looses power is judged, if the power down sign of equipment is set up, judge that then this startup is moving for power-down rebooting, simplified the determination flow moving to abnormal restarting, and the classification of counterweight log-on message is more careful, helps the maintainer and holds equipment running status more accurately.
Embodiment four, a kind of information record carrier that restarts, and structural representation comprises as shown in Figure 4: abnormal restarting is moved judging unit 100, restarts information recording unit 200, restarts information memory cell 300.
Abnormal restarting is moved judging unit 100, is used to judge that whether this restart information record, and then this restarts the request of information to restarting information recording unit 200 transmission records if this information of restarting does not write down;
Restart information recording unit 200, be used to receive record request, and write down this and restart information to restarting information memory cell 300 from the moving judging unit 100 of abnormal restarting;
Restart information memory cell 300, be used for record and restart information.
The information of restarting of record comprises the time that this restarts, and the time of restarting is that current time and slave unit power on and carry out the poor of the spent duration of this step.
Because the information of restarting can go on record normally, thus this restart into abnormal restarting moving, the information of restarting of described record can also comprise this restart into abnormal restarting moving.
Embodiment five, a kind of information record carrier that restarts, and structural representation comprises as shown in Figure 5: abnormal restarting is moved judging unit 100, restarts information recording unit 200, restarts the moving judging unit 400 of information memory cell 300 and power-down rebooting.
Power-down rebooting moves judging unit 400, is used for after equipment restarts, and judges whether this restarts is that power-down rebooting is moving, if then this restarts the request of information to restarting information recording unit 200 transmission records; The described information of restarting comprise this restart into power-down rebooting moving; If not, then send the judgement request to abnormal restarting moving cell 100.
Abnormal restarting is moved judging unit 100, be used to judge that current whether the existence restarts the information record, if not, then this restarts the request of information to restarting information recording unit 200 transmission records, described this information of restarting comprise this restart into abnormal restarting moving, if continue then to judge that whether this restart information record that then this restarts the request of information to restarting information recording unit 200 transmission records if this information of restarting does not write down.
The moving judging unit 100 of abnormal restarting judges that the mode whether this information that restarts has write down can adopt described mode one to get final product to mode three any one modes, and concrete judgment mode is not construed as limiting the invention.
Restart information recording unit 200, be used to receive record request, and write down this and restart information to restarting information memory cell 300 from the moving judging unit 100 of abnormal restarting; Also be used to receive the record request of power-down rebooting moving cell 400, and write down this and restart information to restarting information memory cell 300.
Restart information memory cell 300, be used for storage and restart information.
The information of restarting of record comprises the time that this restarts, and the time of restarting is that current time and slave unit power on and carry out the poor of the spent duration of this step.
Because the information of restarting can go on record normally, thus this restart into abnormal restarting moving, the information of restarting of described record can also comprise this restart into abnormal restarting moving.
More than a kind of method and device that restarts information record provided by the present invention is described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (10)
1. a method that restarts the information record is characterized in that, comprising:
After equipment restarts, judge that whether this restart information record,, then write down this and restart information, if this restarts information record, then process ends if this restarts not record of information.
2. the method that restarts information record as claimed in claim 1 is characterized in that, describedly judges this information that restarts further comprises before whether writing down:
Judge that current whether the existence restart the information record, if then turn to and judge that this restarts the step whether information writes down; If not, then write down this and restart information, and process ends.
3. the method that restarts the information record as claimed in claim 2 is characterized in that this of described record information of restarting comprises: this restarts type is that abnormal restarting is moving.
4. the method that restarts information record as claimed in claim 2 is characterized in that, describedly judges that current whether the existence further comprise before restarting the information record:
Judge whether this restarts is that power-down rebooting is moving, if then write down this and restart information; The described information of restarting comprises that this restarts type is that power-down rebooting is moving, and process ends; If not, then turn to and judge that this restarts the step whether information writes down.
5. as any described method that restarts the information record of claim 1 to 4, it is characterized in that the described step of judging whether this information that restarts has write down comprises:
Whether the mistiming that restarts the time that restarted last time in the information of judging current time and record if described mistiming do not exceed preset duration, then judges this restart information record above presetting duration; If the described mistiming exceeds and presets duration, judge that then this restarts not record of information.
6. as any described method that restarts the information record of claim 1 to 4, it is characterized in that the described step of judging whether this information that restarts has write down comprises:
With record restart the time that restarted last time in the information with preset duration and time as a comparison;
Whether judge the described reduced time less than the current time, if not, judge that then this restarts information record; If judge that then this restarts not record of information.
7. as any described method that restarts the information record of claim 1 to 4, it is characterized in that the described step of judging whether this information that restarts has write down comprises:
With current time and the difference that presets duration time as a comparison;
Judge that the described reduced time whether greater than the restarting the time that restarted last time in the information of record, if not, judges that then this restarts information record; If judge that then this restarts not record of information.
8. a device that restarts the information record is characterized in that, comprising:
Abnormal restarting is moved judging unit, is used to judge that whether this restart information record, does not send record request if this information of restarting writes down then to restarting information recording unit;
Restart information recording unit, be used to receive record request, and write down this and restart information to restarting information memory cell from the moving judging unit of abnormal restarting;
Restart information memory cell, be used for storage and restart information.
9. the device that restarts the information record as claimed in claim 8, it is characterized in that, the moving judging unit of described abnormal restarting is used to also judge that current whether the existence restarts the information record, if not, then send record this restart the request of information to restarting information recording unit, described this information of restarting comprise this restart into abnormal restarting moving.
10. the device that restarts the information record as claimed in claim 9 is characterized in that, also comprises:
Power-down rebooting moves judging unit, is used to judge whether this restarts is that power-down rebooting is moving, if then this restarts the request of information to restarting information recording unit transmission record; The described information of restarting comprise this restart into power-down rebooting moving;
The described information recording unit that restarts also is used to receive the record request of power-down rebooting moving cell, and writes down this and restart information to restarting information memory cell.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101120307A CN100416511C (en) | 2006-08-25 | 2006-08-25 | Method and device of restart information recording |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101120307A CN100416511C (en) | 2006-08-25 | 2006-08-25 | Method and device of restart information recording |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1912846A CN1912846A (en) | 2007-02-14 |
CN100416511C true CN100416511C (en) | 2008-09-03 |
Family
ID=37721787
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006101120307A Expired - Fee Related CN100416511C (en) | 2006-08-25 | 2006-08-25 | Method and device of restart information recording |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100416511C (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101957789B (en) * | 2009-07-17 | 2013-12-04 | 精品科技股份有限公司 | Method for counting operation time of computer |
JP2016110642A (en) * | 2014-11-28 | 2016-06-20 | 株式会社リコー | Information processing device, restart execution method and restart execution program |
CN105656695A (en) * | 2016-03-15 | 2016-06-08 | 汉柏科技有限公司 | Problem positioning method and system used during network device start exception |
CN105912453A (en) * | 2016-04-06 | 2016-08-31 | 汉柏科技有限公司 | Method and device for recording starting time and restarting time of network device |
CN107590016B (en) * | 2017-09-14 | 2023-08-15 | 成都西加云杉科技有限公司 | Power-down restarting identification method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1282910A (en) * | 1999-08-02 | 2001-02-07 | 神达电脑股份有限公司 | Multi-selection method for starting system |
US20030226059A1 (en) * | 2002-05-30 | 2003-12-04 | Braun Richard A. | Systems and methods for remote tracking of reboot status |
CN1627269A (en) * | 2003-12-12 | 2005-06-15 | 华为技术有限公司 | Method for recognizing cold booting or warm booting system |
-
2006
- 2006-08-25 CN CNB2006101120307A patent/CN100416511C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1282910A (en) * | 1999-08-02 | 2001-02-07 | 神达电脑股份有限公司 | Multi-selection method for starting system |
US20030226059A1 (en) * | 2002-05-30 | 2003-12-04 | Braun Richard A. | Systems and methods for remote tracking of reboot status |
CN1627269A (en) * | 2003-12-12 | 2005-06-15 | 华为技术有限公司 | Method for recognizing cold booting or warm booting system |
Also Published As
Publication number | Publication date |
---|---|
CN1912846A (en) | 2007-02-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2563062B1 (en) | Long connection management apparatus and link resource management method for long connection communication | |
CN100416511C (en) | Method and device of restart information recording | |
US20100332212A1 (en) | Method and apparatus for sleep and wake of computer devices | |
US7539150B2 (en) | Node discovery and communications in a network | |
CN102148838B (en) | Web authentication method, network equipment and Web authentication system | |
CN101217402A (en) | A method to enhance the reliability of the cluster and a high reliability communication node | |
CN102571507B (en) | Equipment wake-up method, dormant agent equipment and equipment wake-up system | |
CN104092746B (en) | A kind of O&M auditing system and the network load balancing method in its system | |
CN103024326A (en) | Video backup method and system based on security and protection home gateway | |
US20150169352A1 (en) | Method, Apparatus and System for Migrating Virtual Machines | |
CN109542583B (en) | Virtual equipment management method based on double buses | |
US9531597B2 (en) | Methods and systems to maintain data coherency | |
WO2011157003A1 (en) | Method, management network element and network node for managing wireless sensor network terminal | |
CN103973466B (en) | A kind of method and device waking up suspend mode link | |
CN102158341A (en) | Method for waking up electronic device and network server capable of waking up electronic device | |
US8966063B2 (en) | Operating a sleep management service | |
CN101621526B (en) | iSCSI method and apparatus for preventing useless connection from occupying system resources | |
CN106230944A (en) | The running gear that a kind of peak based on cloud computer system accesses | |
CN102131072A (en) | System and method for realizing network video monitoring under internet platform | |
CN201657204U (en) | System for realizing network video monitoring off internet platform | |
US8452848B1 (en) | Facilitating secure 24x7 on-demand service availability while minimizing power consumption and power load spikes | |
CN100421381C (en) | Method and device for obtaining information of operation and failure state for network equipment | |
CN116781717A (en) | Method and system for synchronizing hybrid cloud data | |
CN112333758B (en) | Stability monitoring management method, system and application of television gateway system | |
CN112260398B (en) | Power grid monitoring system supporting dynamic expansion |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080903 Termination date: 20190825 |
|
CF01 | Termination of patent right due to non-payment of annual fee |