CN102420756A - Method for storing system logs, and router - Google Patents

Method for storing system logs, and router Download PDF

Info

Publication number
CN102420756A
CN102420756A CN2011103892632A CN201110389263A CN102420756A CN 102420756 A CN102420756 A CN 102420756A CN 2011103892632 A CN2011103892632 A CN 2011103892632A CN 201110389263 A CN201110389263 A CN 201110389263A CN 102420756 A CN102420756 A CN 102420756A
Authority
CN
China
Prior art keywords
router
external memory
system journal
equipment
memory 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.)
Pending
Application number
CN2011103892632A
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.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics 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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN2011103892632A priority Critical patent/CN102420756A/en
Publication of CN102420756A publication Critical patent/CN102420756A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention discloses a method for storing system logs, and a router, and is used for recording a mass of system logs and storing the system logs for a long time. The method provided by the embodiment of the invention comprises the following steps of: if a current storage mode is an external storage mode, judging whether external storage equipment is successfully mounted; if the external storage equipment is not successfully mounted, storing the system logs of the router into an internal memory of the router; and if the external storage equipment is successfully mounted, storing the system logs of the router into the external storage equipment according to a rule which is set by the external storage mode. By adoption of the scheme of the invention, the system logs can be efficiently recorded on the premise of independence of network connection, invalidation in recording of the system logs is avoided, and reliability in recording of the system logs is improved.

Description

A kind of system journal storage means and router
Technical field
The present invention relates to the network engineering technical field, relate in particular to a kind of system journal storage means and router.
Background technology
The system journal of router is the information of system events such as hardware, software and system problem in the record route system, and the user can keep watch on the system event that takes place in this route system through checking said system journal.
At present, in the network engineering technical field, (System Log, SysLog) router of management function occurs the system log (SYSLOG) that promptly has of record support system journal.The SysLog router can the road be stored in the system journal of router in the internal storage that is built in the SysLog router preserves promptly local memory module; Some SysLog router supports that also (User Datagram Protocol, UDP) packet is sent in the remote syslog server and preserves, i.e. the remote storage pattern through User Datagram Protocol with system journal.In addition, the SysLog router can select logging mode be local storage, remote storage or both.The capacity that is used for the register system daily record in the internal storage in the SysLog router is approximately several KB; When the volume of system journal during greater than said capacity; The SysLog router can be removed by the system journal that preset rule will partly or entirely have been stored, to discharge the capacity that is used for the register system daily record in the said internal storage.When the remote syslog server receives the system journal of SysLog router transmission, need to specify specific I P address and udp port, the receiving system daily record is stored again then.
But when the SysLog router used local memory module register system daily record, the capacity that is used for the register system daily record in the internal storage was approximately several KB; Lack of memory capacity in order to write down up-to-date system journal, need be removed the old system journal of part; The system event content that system journal is write down is limited to; And said internal storage is generally random access memory ram, and in a single day the SysLog router restarts, and the system journal of before being write down is also lost thereupon.When the SysLog router used the system journal of remote storage mode record, in case be connected disconnection between SysLog router and the remote syslog server, the SysLog function is inefficacy thereupon also.
Summary of the invention
In order to address the above problem; The invention provides a kind of system journal storage means and router; Be used to write down the magnanimity system journal and it is carried out longer-term storage; The present invention program can also register system daily record efficiently under the prerequisite that does not rely on network to connect, and the possibility of avoiding the system journal record to lose efficacy has improved the reliability of register system daily record.
A kind of system journal storage means comprises:
If current memory module is the peripheral hardware memory module, then judge whether successfully the carry External memory equipment;
If not successful carry External memory equipment; Then the system journal with router is stored in the internal storage of said router; If successful carry External memory equipment, the rule that then sets according to said peripheral hardware memory module is stored in the system journal of said router in the said External memory equipment.
A kind of router comprises:
Judge module is used for then judging whether successfully the carry External memory equipment if current memory module is the peripheral hardware memory module;
Storage control module; Be used for if not successful carry External memory equipment; Then the system journal with router is stored in the internal storage of router; If successful carry External memory equipment, the rule that then sets according to said peripheral hardware memory module is stored in the system journal of said router in the said External memory equipment.
Can find out that from above technical scheme the embodiment of the invention has the following advantages:
When the memory module of router is set at the peripheral hardware memory module; If successful carry External memory equipment on the router; The rule that then sets according to said peripheral hardware memory module is stored in the system journal of said router in the said External memory equipment, because the infinitely dilatation of memory capacity of External memory equipment, so pass through the inventive method; Can write down the magnanimity system journal and it is carried out longer-term storage; Use the present invention program can also register system daily record efficiently under the prerequisite that does not rely on network to connect, the possibility of avoiding the system journal record to lose efficacy have improved the reliability of register system daily record.
Description of drawings
Fig. 1 is the system journal storage means flow chart of first embodiment of the invention;
Fig. 2 is the system journal storage means flow chart of second embodiment of the invention;
Fig. 3 is the system journal storage means flow chart of third embodiment of the invention;
Fig. 4 is the router topology figure of fourth embodiment of the invention;
Fig. 5 is the router topology figure of fifth embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of system journal storage means; Be used to write down the magnanimity system journal and it is carried out longer-term storage; Use the present invention program; Can register system daily record efficiently under the prerequisite that does not rely on network to connect, the possibility of avoiding the system journal record to lose efficacy has improved the reliability of register system daily record.The embodiment of the invention also provides the router of realizing said method, below with being elaborated respectively.
First embodiment of the invention will be elaborated to a kind of system journal storage means, and said method idiographic flow sees also Fig. 1, comprises step:
101, judge whether successfully the carry External memory equipment.
Mention in this specification background technology part; The memory module of SysLog router comprises local memory module and remote storage pattern at present; The novel system log storing method that the embodiment of the invention provided, the corresponding stored pattern called after peripheral hardware memory module in route system.
If current memory module has been set to the peripheral hardware memory module, whether then judge on the router successful carry External memory equipment.
Wherein, said External memory equipment is the packaged type memory device, and is not limited to certain specific type or model, and the memory capacity of said External memory equipment also can be adjusted according to user's actual needs, does not do concrete qualification here.
102, if not successful carry External memory equipment then is stored in system journal in the internal storage of router, if successful carry External memory equipment, the rule that then sets according to the peripheral hardware memory module is stored in system journal in the External memory equipment.
Carry out subsequent treatment according to the judged result in the step 101; If judged result is not successful carry External memory equipment; Then the system journal with router is stored in the internal storage of said router; If judged result is successful carry External memory equipment, the rule that then sets according to said peripheral hardware memory module is stored in the system journal of said router in the said External memory equipment.
The particularly important is, when being stored in said system journal in the External memory equipment, need the generation system journal file, syslog file can be a text formatting, but the perhaps file format of other register system daily record is not done concrete qualification here.Storage format under this storage format and local memory module, the remote storage pattern is different; Because under local memory module; System journal is stored in the internal storage with direct-recording mode, and this is that storage mode by RAM determines, and under the remote storage pattern; Because system journal will send via the UDP message bag, so its storage format is according to server and fixed.
Wherein, the rule that sets of said peripheral hardware memory module will be elaborated in the subsequent implementation example of this specification.
In the present embodiment; When the memory module of router was set at the peripheral hardware memory module, if successful carry External memory equipment on the router, the rule that then sets according to said peripheral hardware memory module was stored in the system journal of said router in the said External memory equipment; Because the infinitely dilatation of memory capacity of External memory equipment; Therefore through the inventive method, can write down the magnanimity system journal and it is carried out longer-term storage, use the present invention program can also register system daily record efficiently under the prerequisite that does not rely on network to connect; The possibility of avoiding the system journal record to lose efficacy has improved the reliability of register system daily record.
Second embodiment of the invention will be carried out more detailed supplementary notes to the described system journal storage means of first embodiment, and the described method idiographic flow of present embodiment sees also Fig. 2, comprises step:
201, memory module is set at the first peripheral hardware memory module.
Mention in this specification background technology part; The memory module of SysLog router comprises local memory module and remote storage pattern at present; The novel system log storing method that the embodiment of the invention provided, the corresponding stored pattern called after peripheral hardware memory module in route system.Implementation for the peripheral hardware memory module; The present invention program can be subdivided into two kinds; Comprise the first peripheral hardware memory module and the second peripheral hardware memory module, the description object of present embodiment is the first peripheral hardware memory module, and the second peripheral hardware memory module will describe in the 3rd embodiment.
The storage rule that the first peripheral hardware memory module is set is explained as follows:
Under the first peripheral hardware memory module, support the system journal of router is stored in the External memory equipment, do not support the system journal of router is stored in the internal storage or remote server of router.
If not successful carry External memory equipment, then the system journal with said router is stored in the interim internal memory, saidly saves as the interim memory space to the internal storage application of said router in interim;
If successful carry External memory equipment, then the system journal with said router is stored in the said External memory equipment.
Therefore, realize the inventive method the time, need the memory module of router be set at the first peripheral hardware memory module.
202, judge whether successfully the carry External memory equipment.
After step 201, the memory module of current router has been set to the first peripheral hardware memory module, if router startup work, whether then judges on the router successful carry External memory equipment.
Wherein, said External memory equipment is the packaged type memory device, comprises that perhaps other can not do concrete qualification here as the External memory equipment of router among the present invention to readable and writable memory.In addition, readable and writable memory can be USB storage, removable hard disk or mobile memory card, just for example, does not do concrete qualification here.Therefore said External memory equipment is not limited to certain specific type or model; The memory capacity of said External memory equipment also can be adjusted according to user's actual needs; Because the memory capacity of said peripheral hardware memory device generally can reach hundreds of MB even hundreds of GB; Therefore can carry out mass memory to system journal,, also not do concrete qualification here for the particular capacity of External memory equipment.
203, if not successful carry External memory equipment then is stored in system journal in the interim internal memory, if successful carry External memory equipment then is stored in system journal in the External memory equipment.
The rule that sets according to the first peripheral hardware memory module; If the not successful carry External memory equipment of router; Then the system journal with said router is stored in the interim internal memory, if successful carry External memory equipment, then the system journal with said router is stored in the said External memory equipment.
The particularly important is, when being stored in said system journal in the External memory equipment, need the generation system journal file, syslog file can be a text formatting, but the perhaps file format of other register system daily record is not done concrete qualification here.Storage format under this storage format and local memory module, the remote storage pattern is different; Because under local memory module; System journal is stored in the internal storage with direct-recording mode, and this is that storage mode by RAM determines, and under the remote storage pattern; Because system journal will send via the UDP message bag, so its storage format is according to server and fixed.
Preferably; If successful carry External memory equipment; System journal with said router then is stored in the said External memory equipment; And copy to the system journal that is stored in the interim internal memory during the not successful carry External memory equipment in the said External memory equipment, duplicate general space of removing said interim internal memory, back, and discharge said interim internal memory.The storage format conversion that relates in the middle of this is accomplished by router interior.
Wherein, Saidly save as interim memory space in interim to the internal storage application of said router; When memory module was set to the first peripheral hardware memory module, system will be to the internal storage application temporary space of router, the system journal that system is generated when being used for storing under this memory module carry External memory equipment not; In a single day and find successful carry External memory equipment, the later system journal that takes place just is stored in the said External memory equipment.
204, system journal is shown processing.
The system journal of storage router is in order to supply the system event of user monitoring route system.Therefore after process step 201,202 and 203, after system's success storage system daily record, this step will show processing to system journal.
Under the first peripheral hardware memory module:
Optional, from said External memory equipment, directly read said system journal, and show said system journal.
Mention in the step 203 actual storage externally the system journal in the memory device be syslog file; And this display mode is to be used as internal storage to said External memory equipment equally to treat; Therefore in fact this display mode need read corresponding syslog file and resolve, and could show according to the display mode of prior art.In this case External memory equipment still carry on router, be equivalent to expand the internal storage of memory space.
Optional, according to system journal generation system journal file in the said External memory equipment, said syslog file supplies terminal equipment to read.
Mention in the step 203 actual storage externally the system journal in the memory device be syslog file; When said External memory equipment when still carry is on router; The terminal equipment that is connected with said router can directly read the syslog file that is stored in the said External memory equipment; When said External memory equipment removes from router, can be mounted to supply said terminal equipment to read on the terminal equipment.
In the present embodiment; When the memory module of router was set at the first peripheral hardware memory module, if successful carry External memory equipment on the router, the rule that then sets according to the said first peripheral hardware memory module was stored in the system journal of said router in the said External memory equipment; Because the infinitely dilatation of memory capacity of External memory equipment; Therefore through the inventive method, can write down the magnanimity system journal and it is carried out longer-term storage, use the present invention program can also register system daily record efficiently under the prerequisite that does not rely on network to connect; The possibility of avoiding the system journal record to lose efficacy has improved the reliability of register system daily record.
Third embodiment of the invention will be carried out more detailed supplementary notes to the described system journal storage means of first embodiment, and the described method idiographic flow of present embodiment sees also Fig. 3, comprises step:
301, memory module is set at the second peripheral hardware memory module.
Mention in this specification background technology part; The memory module of SysLog router comprises local memory module and remote storage pattern at present; The novel system log storing method that the embodiment of the invention provided, the corresponding stored pattern called after peripheral hardware memory module in route system.Implementation for the peripheral hardware memory module; The present invention program can be subdivided into two kinds; Comprise the first peripheral hardware memory module and the second peripheral hardware memory module, the description object of present embodiment is the second peripheral hardware memory module, and the second peripheral hardware memory module describes in second embodiment.
The storage rule that the second peripheral hardware memory module is set is explained as follows:
Under the second peripheral hardware memory module, support the system journal of router is stored in the External memory equipment, support simultaneously the system journal of router is stored in the internal storage or remote server of router.
If not successful carry External memory equipment, then the system journal with said router is stored in the internal storage or remote server of said router;
If successful carry External memory equipment, then the system journal with said router is stored in the said External memory equipment.
Therefore, realize the inventive method the time, need the memory module of router be set at the second peripheral hardware memory module.
302, judge whether successfully the carry External memory equipment.
After step 301, the memory module of current router has been set to the second peripheral hardware memory module, if router startup work, whether then judges on the router successful carry External memory equipment.
Wherein, said External memory equipment is the packaged type memory device, comprises that perhaps other can not do concrete qualification here as the External memory equipment of router among the present invention to readable and writable memory.In addition, readable and writable memory can be USB storage, removable hard disk or mobile memory card, just for example, does not do concrete qualification here.Therefore said External memory equipment is not limited to certain specific type or model; The memory capacity of said External memory equipment also can be adjusted according to user's actual needs; Because the memory capacity of said peripheral hardware memory device generally can reach hundreds of MB even hundreds of GB; Therefore can carry out mass memory to system journal,, also not do concrete qualification here for the particular capacity of External memory equipment.
303, if not successful carry External memory equipment then is stored in system journal in the internal storage or remote server of router, if successful carry External memory equipment then is stored in system journal in the External memory equipment.
The rule that sets according to the second peripheral hardware memory module; If not successful carry External memory equipment; Then the system journal with said router is stored in the internal storage or remote server of said router; If successful carry External memory equipment, then the system journal with said router is stored in the said External memory equipment.
The particularly important is, when being stored in said system journal in the External memory equipment, need the generation system journal file, syslog file can be a text formatting, but the perhaps file format of other register system daily record is not done concrete qualification here.Storage format under this storage format and local memory module, the remote storage pattern is different; Because under local memory module; System journal is stored in the internal storage with direct-recording mode, and this is that storage mode by RAM determines, and under the remote storage pattern; Because system journal will send via the UDP message bag, so its storage format is according to server and fixed.
Preferably; If successful carry External memory equipment; System journal with said router then is stored in the said External memory equipment; And copy to internal storage that is stored in said router during the not successful carry External memory equipment or the system journal in the remote server in the said External memory equipment, so just can be synchronously externally storage system daily record in the internal storage of memory device and router or the remote server.The storage format conversion that relates in the middle of this is accomplished by router interior.
304, system journal is shown processing.
The system journal of storage router is in order to supply the system event of user monitoring route system.Therefore after process step 301,302 and 303, after system's success storage system daily record, this step will show processing to system journal.
Under the second peripheral hardware memory module:
Optional, from said External memory equipment, directly read said system journal, and show said system journal.
Mention in the step 303 actual storage externally the system journal in the memory device be syslog file; And this display mode is to be used as internal storage to said External memory equipment equally to treat; Therefore in fact this display mode need read corresponding syslog file and resolve, and could show according to the display mode of prior art.In this case External memory equipment still carry on router, be equivalent to expand the internal storage of memory space.
Optional, according to system journal generation system journal file in the said External memory equipment, said syslog file supplies terminal equipment to read.
Mention in the step 303 actual storage externally the system journal in the memory device be syslog file; When said External memory equipment when still carry is on router; The terminal equipment that is connected with said router can directly read the syslog file that is stored in the said External memory equipment; When said External memory equipment removes from router, can be mounted to supply said terminal equipment to read on the terminal equipment.
Under the second peripheral hardware memory module, be stored in the internal storage of router or the system journal on the remote server, show processing, do not elaborate here according to present technology.
In the present embodiment; When the memory module of router was set at the second peripheral hardware memory module, if successful carry External memory equipment on the router, the rule that then sets according to the said second peripheral hardware memory module was stored in the system journal of said router in the said External memory equipment; Because the infinitely dilatation of memory capacity of External memory equipment; Therefore through the inventive method, can write down the magnanimity system journal and it is carried out longer-term storage, use the present invention program can also register system daily record in different bank; The possibility of avoiding the system journal record to lose efficacy has improved the reliability of register system daily record.
Fourth embodiment of the invention will be elaborated to a kind of router of the described method of first embodiment of realizing, said router topology figure sees also Fig. 4, comprising:
Judge module 401 is used for then judging whether successfully the carry External memory equipment if current memory module is the peripheral hardware memory module.
Mention in this specification background technology part, the memory module of SysLog router comprises local memory module and remote storage pattern at present, newly-increased a kind of memory module in the novel router that the embodiment of the invention provided, called after peripheral hardware memory module.
If current memory module has been set to the peripheral hardware memory module, whether then judge on the router successful carry External memory equipment.
Wherein, said External memory equipment is the packaged type memory device, and is not limited to certain specific type or model, and the memory capacity of said External memory equipment also can be adjusted according to user's actual needs, does not do concrete qualification here.
Storage control module 402; Be used for judged result according to judge module 401; If not successful carry External memory equipment; Then the system journal with router is stored in the internal storage of router, if successful carry External memory equipment, the rule that then sets according to said peripheral hardware memory module is stored in the system journal of said router in the said External memory equipment.
Particularly, storage control module 402 can be the USB control module, is used to connect External memory equipment, and said system journal is stored in the said External memory equipment.Here, storage control module 402 can be not limited to the USB control module for the USB control module.
The particularly important is, when being stored in said system journal in the External memory equipment, need the generation system journal file, syslog file can be a text formatting, but the perhaps file format of other register system daily record is not done concrete qualification here.Storage format under this storage format and local memory module, the remote storage pattern is different; Because under local memory module; System journal is stored in the internal storage with direct-recording mode, and this is that storage mode by RAM determines, and under the remote storage pattern; Because system journal will send via the UDP message bag, so its storage format is according to server and fixed.
In addition, said router also comprises the CPU that is connected on the system bus, adsl line interface module, ethernet interface module etc., and these all belong to prior art, no longer elaborate here.
In the present embodiment; When the memory module of router is set at the peripheral hardware memory module; If the judged result of judge module 401 is a successful carry External memory equipment on the router; Then the rule that sets according to said peripheral hardware memory module of storage control module 402 is stored in the system journal of said router in the said External memory equipment, because the infinitely dilatation of memory capacity of External memory equipment, so use router of the present invention; Can write down the magnanimity system journal and it is carried out longer-term storage; Use the router of the present invention can also register system daily record efficiently under the prerequisite that does not rely on network to connect, the possibility of avoiding the system journal record to lose efficacy have improved the reliability of register system daily record.
Fifth embodiment of the invention will be elaborated to the described router of the 4th embodiment, and said router topology figure sees also Fig. 5, comprising:
Judge module 501 is used for then judging whether successfully the carry External memory equipment if current memory module is the peripheral hardware memory module.
Mention in this specification background technology part, the memory module of SysLog router comprises local memory module and remote storage pattern at present, newly-increased a kind of memory module in the novel router that the embodiment of the invention provided, called after peripheral hardware memory module.
If current memory module has been set to the peripheral hardware memory module, whether then judge on the router successful carry External memory equipment.
Wherein, said External memory equipment is the packaged type memory device, and is not limited to certain specific type or model, and the memory capacity of said External memory equipment also can be adjusted according to user's actual needs, does not do concrete qualification here.
Storage control module 502; Be used for judged result according to judge module 501; If not successful carry External memory equipment; Then the system journal with router is stored in the internal storage of router, if successful carry External memory equipment, the rule that then sets according to said peripheral hardware memory module is stored in the system journal of said router in the said External memory equipment.
Particularly, storage control module 502 can be the USB control module, is used to connect External memory equipment, and said system journal is stored in the said External memory equipment.Here, storage control module 402 can be not limited to the USB control module for the USB control module.
The particularly important is, when being stored in said system journal in the External memory equipment, need the generation system journal file, syslog file can be a text formatting, but the perhaps file format of other register system daily record is not done concrete qualification here.Storage format under this storage format and local memory module, the remote storage pattern is different; Because under local memory module; System journal is stored in the internal storage with direct-recording mode, and this is that storage mode by RAM determines, and under the remote storage pattern; Because system journal will send via the UDP message bag, so its storage format is according to server and fixed.
Setting module 503 is used for memory module is set at said peripheral hardware memory module.
Processing module 504 is used for said system journal is shown processing.
Two kinds of processing of the said demonstration of processing module 504 have two kinds:
Optional, from said External memory equipment, directly read said system journal, and show said system journal.
Aforementioned mention actual storage externally the system journal in the memory device be syslog file; And this display mode is to be used as internal storage to said External memory equipment equally to treat; Therefore in fact this display mode need read corresponding syslog file and resolve, and could show according to the display mode of prior art.In this case External memory equipment still carry on router, be equivalent to expand the internal storage of memory space.
Optional, according to system journal generation system journal file in the said External memory equipment, said syslog file supplies terminal equipment to read.
Mention in aforementioned actual storage externally the system journal in the memory device be syslog file; When said External memory equipment when still carry is on router; The terminal equipment that is connected with said router can directly read the syslog file that is stored in the said External memory equipment; When said External memory equipment removes from router, can be mounted to supply said terminal equipment to read on the terminal equipment.
In addition, said router also comprises the CPU that is connected on the system bus, adsl line interface module, ethernet interface module etc., and these all belong to prior art, no longer elaborate here.
In the present embodiment; When the memory module of setting module 503 routers is set at the peripheral hardware memory module; If the judged result of judge module 501 is a successful carry External memory equipment on the router; Then the rule that sets according to said peripheral hardware memory module of storage control module 502 is stored in the system journal of said router in the said External memory equipment, and subsequent treatment module 504 can also show processing to system journal.Because the infinitely dilatation of memory capacity of External memory equipment; Therefore use router of the present invention; Can write down the magnanimity system journal and it is carried out longer-term storage; Use the router of the present invention can also register system daily record efficiently under the prerequisite that does not rely on network to connect, the possibility of avoiding the system journal record to lose efficacy have improved the reliability of register system daily record.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in a kind of computer-readable recording medium; The above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
More than a kind of system journal storage means provided by the present invention and router have been carried out detailed introduction; For one of ordinary skill in the art; Thought according to the embodiment of the invention; The part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a system journal storage means is characterized in that, comprising:
If current memory module is the peripheral hardware memory module, then judge whether successfully the carry External memory equipment;
If not successful carry External memory equipment; Then the system journal with router is stored in the internal storage of said router; If successful carry External memory equipment, the rule that then sets according to said peripheral hardware memory module is stored in the system journal of said router in the said External memory equipment.
2. method according to claim 1 is characterized in that, when said peripheral hardware memory module is the first peripheral hardware memory module,
If not successful carry External memory equipment, then the system journal with said router is stored in the interim internal memory, saidly saves as the interim memory space to the internal storage application of said router in interim;
If successful carry External memory equipment, then the system journal with said router is stored in the said External memory equipment.
3. method according to claim 1 is characterized in that, when said peripheral hardware memory module is the second peripheral hardware memory module,
If not successful carry External memory equipment, then the system journal with said router is stored in the internal storage or remote server of said router;
If successful carry External memory equipment, then the system journal with said router is stored in the said External memory equipment.
4. according to each described method in the claim 1 to 3, it is characterized in that said judging whether successfully further comprises before the carry External memory equipment:
Memory module is set at said peripheral hardware memory module.
5. according to each described method in the claim 1 to 3, it is characterized in that the said rule that sets according to said peripheral hardware memory module further comprises after being stored in the system journal of said router in the said External memory equipment:
Said system journal is shown processing.
6. method according to claim 5 is characterized in that, said said system journal is shown to handle comprise:
From said External memory equipment, read said system journal, and show said system journal;
Or,
According to system journal generation system journal file in the said External memory equipment, said syslog file supplies terminal equipment to read.
7. according to each described method in the claim 1 to 3, it is characterized in that,
Said External memory equipment comprises: USB storage, removable hard disk or mobile memory card.
8. a router is characterized in that, comprising:
Judge module is used for then judging whether successfully the carry External memory equipment if current memory module is the peripheral hardware memory module;
Storage control module; Be used for if not successful carry External memory equipment; Then the system journal with router is stored in the internal storage of router; If successful carry External memory equipment, the rule that then sets according to said peripheral hardware memory module is stored in the system journal of said router in the said External memory equipment.
9. router according to claim 8 is characterized in that, said router further comprises:
Setting module is used for memory module is set at said peripheral hardware memory module.
10. according to Claim 8 or 9 described routers, it is characterized in that said router further comprises:
Processing module is used for said system journal is shown processing.
CN2011103892632A 2011-11-30 2011-11-30 Method for storing system logs, and router Pending CN102420756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103892632A CN102420756A (en) 2011-11-30 2011-11-30 Method for storing system logs, and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103892632A CN102420756A (en) 2011-11-30 2011-11-30 Method for storing system logs, and router

Publications (1)

Publication Number Publication Date
CN102420756A true CN102420756A (en) 2012-04-18

Family

ID=45944996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103892632A Pending CN102420756A (en) 2011-11-30 2011-11-30 Method for storing system logs, and router

Country Status (1)

Country Link
CN (1) CN102420756A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015024425A1 (en) * 2013-08-19 2015-02-26 中兴通讯股份有限公司 Router and method for system log alerting in router
CN106033322A (en) * 2015-03-17 2016-10-19 北京元心科技有限公司 Method and device for data storage
CN106844177A (en) * 2017-01-23 2017-06-13 联想(北京)有限公司 LINUX blog management methods, device and system
CN107506149A (en) * 2017-08-29 2017-12-22 郑州云海信息技术有限公司 System management memory journal dump method and device
CN107608869A (en) * 2017-09-13 2018-01-19 华立科技股份有限公司 log recording method and device
CN107736999A (en) * 2017-06-21 2018-02-27 常州礼乐医疗科技有限公司 A kind of pulse therapeutic equipment and treatment method based on Internet of Things
CN108595367A (en) * 2018-04-25 2018-09-28 银川华联达科技有限公司 A kind of server system based on computer cluster in LAN
CN112445678A (en) * 2020-10-16 2021-03-05 苏州浪潮智能科技有限公司 Method for storing server system log
CN114520974A (en) * 2022-01-11 2022-05-20 锐捷网络股份有限公司 Network authentication system, network authentication method, cloud server and network equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010278488A (en) * 2009-05-26 2010-12-09 Hitachi Ltd Communication relay
CN102147763A (en) * 2010-02-05 2011-08-10 中国长城计算机深圳股份有限公司 Method, system and computer for recording weblog

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010278488A (en) * 2009-05-26 2010-12-09 Hitachi Ltd Communication relay
CN102147763A (en) * 2010-02-05 2011-08-10 中国长城计算机深圳股份有限公司 Method, system and computer for recording weblog

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104427518A (en) * 2013-08-19 2015-03-18 中兴通讯股份有限公司 Router and method
WO2015024425A1 (en) * 2013-08-19 2015-02-26 中兴通讯股份有限公司 Router and method for system log alerting in router
CN106033322B (en) * 2015-03-17 2019-11-01 北京元心科技有限公司 A kind of date storage method and device
CN106033322A (en) * 2015-03-17 2016-10-19 北京元心科技有限公司 Method and device for data storage
CN106844177B (en) * 2017-01-23 2020-08-25 联想(北京)有限公司 LINUX log management method, device and system
CN106844177A (en) * 2017-01-23 2017-06-13 联想(北京)有限公司 LINUX blog management methods, device and system
CN107736999A (en) * 2017-06-21 2018-02-27 常州礼乐医疗科技有限公司 A kind of pulse therapeutic equipment and treatment method based on Internet of Things
CN107506149A (en) * 2017-08-29 2017-12-22 郑州云海信息技术有限公司 System management memory journal dump method and device
CN107608869A (en) * 2017-09-13 2018-01-19 华立科技股份有限公司 log recording method and device
CN108595367A (en) * 2018-04-25 2018-09-28 银川华联达科技有限公司 A kind of server system based on computer cluster in LAN
CN112445678A (en) * 2020-10-16 2021-03-05 苏州浪潮智能科技有限公司 Method for storing server system log
CN112445678B (en) * 2020-10-16 2023-01-06 苏州浪潮智能科技有限公司 Method for storing server system log
CN114520974A (en) * 2022-01-11 2022-05-20 锐捷网络股份有限公司 Network authentication system, network authentication method, cloud server and network equipment

Similar Documents

Publication Publication Date Title
CN102420756A (en) Method for storing system logs, and router
KR20060051050A (en) Recovery of duplex data system after power failure
CN108776579B (en) Distributed storage cluster capacity expansion method, device, equipment and storage medium
CN108810741A (en) A kind of method, apparatus and wireless headset of double wireless headset connections
CN108833149A (en) Method and system for monitoring network availability and self-healing of express delivery cabinet
CN101609435B (en) Method of power failure protection of equipment, electronic equipment and network system
CN107968713A (en) Remote wake-up method, apparatus and system
CN105912422A (en) Data backup method, backup client and data backup system
CN103346898A (en) Method for processing configuration information of hot plug board card, and network communication device
CN102148838A (en) Web authentication method, network equipment and Web authentication system
CN107562494A (en) A kind of method for updating memory SPD firmware
CN107623703A (en) Global transaction identifies GTID synchronous method, apparatus and system
CN102609327A (en) Method and device for improving reliability of multi-core processor
CN105978748A (en) Terminal equipment information counting method and terminal equipment information counting device based on Hash node
CN101729314A (en) Method and device for recovering dynamic table entries and dynamic host configuration protocol snoopingsnooping equipment
CA2570883A1 (en) Method and apparatus for electronic mailing of data utilizing a data reference
CN113051428B (en) Method and device for back-up storage at front end of camera
CN103051484B (en) Session service processing method, system and Session Border Controll
CN103973466B (en) A kind of method and device waking up suspend mode link
CN117061535A (en) Multi-activity framework data synchronization method, device, computer equipment and storage medium
JP2008154218A (en) Network device, voip gateway and communication redundant method thereof
CN101741605B (en) Method, apparatus and system for processing message
CN114189471B (en) Cross-equipment link aggregation group active-standby configuration method, system, terminal and storage medium
CN103166994A (en) Method and device of obtaining network data
CN100395706C (en) Automatic start method of switchboard plate

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120418