CN1477822A - Extension storage method of journal information - Google Patents

Extension storage method of journal information Download PDF

Info

Publication number
CN1477822A
CN1477822A CNA031500420A CN03150042A CN1477822A CN 1477822 A CN1477822 A CN 1477822A CN A031500420 A CNA031500420 A CN A031500420A CN 03150042 A CN03150042 A CN 03150042A CN 1477822 A CN1477822 A CN 1477822A
Authority
CN
China
Prior art keywords
log information
write
buffering area
journal information
log
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA031500420A
Other languages
Chinese (zh)
Other versions
CN1211980C (en
Inventor
陈志伟
庞鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
BEIJIANG GANGWAN NETWORK 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 BEIJIANG GANGWAN NETWORK Co Ltd filed Critical BEIJIANG GANGWAN NETWORK Co Ltd
Priority to CN 03150042 priority Critical patent/CN1211980C/en
Publication of CN1477822A publication Critical patent/CN1477822A/en
Application granted granted Critical
Publication of CN1211980C publication Critical patent/CN1211980C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

The extended storage method for journal information has two different modes according to criticality, for urgent journal information it can be directly written into non-volatile random access memory, and for general journal information it can be written into a buffer zone in which several journal information can be stored. If the buffer zone is filled up by written journal informations, the contents of the buffer zone can be written into the non-volatile random access memory, after the buffer zone is emptied, the new journal information can be written into it.

Description

The expansion store method of log information
Affiliated technical field
The invention belongs to computer network communication field, be specifically related to a kind of method that realizes that on the network switch log information expansion is preserved and safeguarded.
Background technology
Log pattern is mainly used to write down ruuning situation and user's operation behavior of whole system in the network switch, and log information can be shown to on serial ports connection or the terminal with the telnet connection, and this mode is mainly used in debugging and checks system mode; Log information also can store log information server server into, and this mode is used for the ruuning situation of long-term follow system and user's order line operation behavior.
Log information directly is shown on the terminal, advantage is to obtain log information in real time, directly output to the method on the serial ports connecting terminal lessly for the duty ratio of system, shortcoming is that log information can not be preserved, and the output line number also will be subjected to the restriction of user terminal program.Log information stores in the log information server of special outside, advantage is the restriction that does not have the bar number basically, can use specific software conveniently to browse, shortcoming is for an embedded system, system resource is often more limited, because this method all will be packaged into the IP message with all log informations and deliver to special log information server, duty ratio for system is bigger, can influence normal Business Processing, and to require the network between the log information server and the network switch must be available, just can not collect for the log information of having no progeny in the network.In the expansion of some manufacturer realizes, the method that also provides log information to write sdram memory, but the memory headroom that this method can take system to be needed when normally moving, SDRAM information can be lost after the simultaneity factor power down, causes log information not preserve.Simultaneously, in the said method, information run time that the record of log information all being register system, information during for system start-up does not then have record, particularly record special-purpose log information server, must wait system to start basically and finish, could use after the success when ICP/IP protocol stack goes out.
Summary of the invention
The present invention overcomes the deficiency of above-mentioned log information store method, a kind of expansion preservation of log information and the method for handling are provided, can reduce the load of log information recording for system, whether the process that log information is preserved does not rely on network unobstructed, the assurance log information can be preserved after power down, simultaneously, be increased in the system starting process processing to log information.
Technology contents of the present invention: a kind of expansion store method of log information, preserve with two kinds of different modes according to the critical degree of log information, for urgent log information, nonvolatile ram writes direct, for general log information, then write the buffering area that to deposit many log informations, write fullly as buffering area, the content of buffering area is write nonvolatile ram.
Daily record is set writes timer, as timer then, the content of buffering area is write nonvolatile ram.
Technique effect of the present invention: at first select nonvolatile ram (Non-VolatileRandom Access Memory, NVRAM) media of storing as log information, the can be recycled memory space of NVRAM is preserved the log information in nearest period.And whether available, daily record is kept at device interior if not relying on network, guarantees not lose after the log information power down.Secondly, the read or write speed of NVRAM is more much lower than corresponding SDRAM, and and Installed System Memory in order to reduce the read-write number of times, is write NVRAM according to the critical degree of log information with two kinds of diverse ways: for urgent log information on a pci bus, NVRAM writes direct, for general log information, open up the buffering area that can deposit many log informations, use a timer simultaneously, only full or timer just writes NVRAM then the time when buffering.This method can reduce the load of system greatly, and the 3rd, because the initialization of NVRAM is compared in the initialization of whole system early, so, in the process of system start-up, just the log information of log-on message can be write NVRAM, thereby realize monitoring system start-up.
Description of drawings
Fig. 1 is the flow chart that log information writes.
Embodiment
With reference to figure 1, be example with 6800 series of switch of Harbor Network, specify the specific embodiment of the present invention:
Daily record writes opportunity 1: system opens up a free memory, is used for log buffer.When the switch incident takes place, trigger a log information write operation, system can obtain current daily record configuration information.If require to write NVRAM, at first judge the rank of log information, if urgent log information, the NVRAM that writes direct is if general log information judges then whether buffer area can put into log information, if can put into, then information be added in the buffer area.Otherwise, the buffer area content is write NVRAM.Because the capacity limit of NVRAM, the method that can adopt circulation to write, daily record is write just from the beginning to cover after full and is rewritten, because the user is concerned about most basically is the log information of current this section period, so can satisfy user's requirement well.If disposed the log information demonstration or recorded outside log server, then carried out corresponding operation.
For fear of because the buffering area problem that can not write for a long time less than the daily record that causes, daily record writes opportunity 2: create daily record and write timer, when timer then, judge whether the log information preservation is arranged in the log buffer district.If log information is arranged in the buffer area, log information is saved among the NVRAM, empty buffering area after, write new log information.

Claims (2)

1, a kind of expansion store method of log information, it is characterized in that preserving with two kinds of different modes according to the critical degree of log information, for urgent log information, the nonvolatile ram that writes direct for general log information, then writes the buffering area that can deposit many log informations, write full as buffering area, the content of buffering area is write nonvolatile ram, after buffering area empties, write new log information.
2, the expansion store method of log information as claimed in claim 1 is characterized in that being provided with daily record and writes timer, as timer then, the content of buffering area is write nonvolatile ram.
CN 03150042 2003-07-31 2003-07-31 Extension storage method of journal information Expired - Fee Related CN1211980C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03150042 CN1211980C (en) 2003-07-31 2003-07-31 Extension storage method of journal information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03150042 CN1211980C (en) 2003-07-31 2003-07-31 Extension storage method of journal information

Publications (2)

Publication Number Publication Date
CN1477822A true CN1477822A (en) 2004-02-25
CN1211980C CN1211980C (en) 2005-07-20

Family

ID=34156411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03150042 Expired - Fee Related CN1211980C (en) 2003-07-31 2003-07-31 Extension storage method of journal information

Country Status (1)

Country Link
CN (1) CN1211980C (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100340989C (en) * 2004-04-14 2007-10-03 华为技术有限公司 Data preserving method for random storage
CN100361454C (en) * 2005-04-27 2008-01-09 华为技术有限公司 Method for obtaining of daily information from network element equipment by network management server
CN100399746C (en) * 2004-09-23 2008-07-02 华为技术有限公司 Journal recording subsystem and its method
CN100449543C (en) * 2005-09-16 2009-01-07 腾讯科技(深圳)有限公司 Method and apparatus for holding journal
CN101018121B (en) * 2007-03-15 2011-03-09 杭州华三通信技术有限公司 Log convergence processing method and convergence processing device
CN102681795A (en) * 2012-05-02 2012-09-19 无锡众志和达存储技术有限公司 Method for data input/output (I/O) read-in in small computer system interface (SCSI) Target mode of Linux system
CN103049221A (en) * 2012-12-19 2013-04-17 创新科存储技术有限公司 Method and device for processing disk array cache memory flash
CN101788948B (en) * 2010-02-05 2013-08-21 瑞斯康达科技发展股份有限公司 Dynamic storage system of journal information and method
CN103927496A (en) * 2013-01-11 2014-07-16 北大方正集团有限公司 Information record method, information record device, information output method and information output device used in publishing process
CN104750598A (en) * 2013-12-26 2015-07-01 南京南瑞继保电气有限公司 A storage method for IEC61850 log service
CN106815124A (en) * 2015-12-01 2017-06-09 北京国双科技有限公司 Journal file treating method and apparatus
CN108205422A (en) * 2016-12-19 2018-06-26 北京君正集成电路股份有限公司 A kind of storage method and device
CN109284257A (en) * 2018-08-10 2019-01-29 锐捷网络股份有限公司 A kind of log write-in method, apparatus, electronic equipment and storage medium
CN112612677A (en) * 2020-12-28 2021-04-06 北京天融信网络安全技术有限公司 Log storage method and device, electronic equipment and readable storage medium

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100340989C (en) * 2004-04-14 2007-10-03 华为技术有限公司 Data preserving method for random storage
CN100399746C (en) * 2004-09-23 2008-07-02 华为技术有限公司 Journal recording subsystem and its method
CN100361454C (en) * 2005-04-27 2008-01-09 华为技术有限公司 Method for obtaining of daily information from network element equipment by network management server
CN100449543C (en) * 2005-09-16 2009-01-07 腾讯科技(深圳)有限公司 Method and apparatus for holding journal
CN101018121B (en) * 2007-03-15 2011-03-09 杭州华三通信技术有限公司 Log convergence processing method and convergence processing device
CN101788948B (en) * 2010-02-05 2013-08-21 瑞斯康达科技发展股份有限公司 Dynamic storage system of journal information and method
CN102681795A (en) * 2012-05-02 2012-09-19 无锡众志和达存储技术有限公司 Method for data input/output (I/O) read-in in small computer system interface (SCSI) Target mode of Linux system
CN103049221A (en) * 2012-12-19 2013-04-17 创新科存储技术有限公司 Method and device for processing disk array cache memory flash
CN103927496A (en) * 2013-01-11 2014-07-16 北大方正集团有限公司 Information record method, information record device, information output method and information output device used in publishing process
CN103927496B (en) * 2013-01-11 2017-06-16 北大方正集团有限公司 Information recording method and device, output intent and device during publication
CN104750598A (en) * 2013-12-26 2015-07-01 南京南瑞继保电气有限公司 A storage method for IEC61850 log service
CN104750598B (en) * 2013-12-26 2017-11-24 南京南瑞继保电气有限公司 A kind of storage method of IEC61850 log services
CN106815124A (en) * 2015-12-01 2017-06-09 北京国双科技有限公司 Journal file treating method and apparatus
CN108205422A (en) * 2016-12-19 2018-06-26 北京君正集成电路股份有限公司 A kind of storage method and device
CN109284257A (en) * 2018-08-10 2019-01-29 锐捷网络股份有限公司 A kind of log write-in method, apparatus, electronic equipment and storage medium
CN109284257B (en) * 2018-08-10 2021-01-05 锐捷网络股份有限公司 Log writing method and device, electronic equipment and storage medium
CN112612677A (en) * 2020-12-28 2021-04-06 北京天融信网络安全技术有限公司 Log storage method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN1211980C (en) 2005-07-20

Similar Documents

Publication Publication Date Title
CN1211980C (en) Extension storage method of journal information
CN101563729B (en) Hybrid solid-state memory system having volatile and non-volatile memory
EP2248023B1 (en) Extended utilization area for a memory device
US5283885A (en) Storage module including a refresh device for storing start and stop refresh addresses
CN100474268C (en) Cache integrity apparatus, systems, and methods
US5012407A (en) Computer system which accesses operating system information and command handlers from optical storage via an auxiliary processor and cache memory
US20030046489A1 (en) Disk memory device
EP1761932B1 (en) Dram with half and full density operation
CN101567221A (en) Damaged memory unit address management method for SDRAM
US20090210612A1 (en) Memory controller, nonvolatile memory device, and nonvolatile memory system
JP3627915B2 (en) BOOT BLOCK FLASH MEMORY CONTROL CIRCUIT, IC MEMORY CARD WITH THE SAME, SEMICONDUCTOR STORAGE DEVICE, AND BOOT BLOCK FLASH MEMORY METHOD
CN101526922A (en) Flash data access method and device thereof
CN100578467C (en) Caching device based on universal serial bus
JPH06161675A (en) Ic card
CN100533364C (en) Generalized flash memory and its method
JPH09259029A (en) Control system for storage device using eeprom
JP2723038B2 (en) Method of storing data in storage device
CN110134638A (en) A kind of dual processor method for interchanging data
KR100532331B1 (en) Card-type Voice Mail Device with Commercial Operating System
JPS63200399A (en) Data processing system
US20020161993A1 (en) Computer start up memory
JP3390207B2 (en) Information recording medium with built-in CPU
JPH036643A (en) Floppy disk device
KR19980058180A (en) Method of storing compressed data
CN101419837B (en) Storage device and method for status information access of the storage device

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
ASS Succession or assignment of patent right

Owner name: HUAWEI TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: GANGWAN NETWORK CO., LTD.

Effective date: 20060922

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20060922

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: Huawei Technologies Co., Ltd.

Address before: 100089, No. 21 West Third Ring Road, Beijing, Haidian District, Long Ling Building, 13 floor

Patentee before: Harbour Networks Holdings Limited

C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20050720

Termination date: 20110731