KR920009721B1 - Method for processing log file - Google Patents

Method for processing log file Download PDF

Info

Publication number
KR920009721B1
KR920009721B1 KR1019900007205A KR900007205A KR920009721B1 KR 920009721 B1 KR920009721 B1 KR 920009721B1 KR 1019900007205 A KR1019900007205 A KR 1019900007205A KR 900007205 A KR900007205 A KR 900007205A KR 920009721 B1 KR920009721 B1 KR 920009721B1
Authority
KR
South Korea
Prior art keywords
data
file
time
date
record
Prior art date
Application number
KR1019900007205A
Other languages
Korean (ko)
Other versions
KR910020572A (en
Inventor
함석진
Original Assignee
삼성전자 주식회사
정용문
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 삼성전자 주식회사, 정용문 filed Critical 삼성전자 주식회사
Priority to KR1019900007205A priority Critical patent/KR920009721B1/en
Publication of KR910020572A publication Critical patent/KR910020572A/en
Application granted granted Critical
Publication of KR920009721B1 publication Critical patent/KR920009721B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/22Arrangements for supervision, monitoring or testing

Abstract

The log file processing method supervises man machine communication data related to PBX operation by storing data on a disk. The method comprises a data storage process for constructing a record by comparing current and former day and time when data storage is requested and for storing the record, and a message searching process for selecting corresponding file and formatting message when data search is requested. The data storage process comprises: (A) comparing the current day with the corresponding data recording day; (B) creating file when the days are different and otherwise comparing the current time with the data recording time; (C) storing the last pointer of the file on the corresponding time area of header area when the times are different and otherwise creating new record and storing data.

Description

전자교환기의 로그화일 처리방법Log file processing method of electronic exchange

제1도는 본 발명을 수행하기 위한 시스템도.1 is a system diagram for carrying out the present invention.

제2도는 본 발명에 따른 흐름도.2 is a flow chart in accordance with the present invention.

제3도는 본 발명에 따른 로그화일 구성도.3 is a log file configuration diagram according to the present invention.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for the main parts of the drawings

101 : 메인버스 102 : MPMA101: main bus 102: MPMA

103 : MECA 104 : MSIA103: MECA 104: MSIA

105 : PCCA 106 : IOIA105: PCCA 106: IOIA

107 : 하드디스크107: hard disk

본 발명은 전자교환기에서 MMC(Man Machine Communication) 방법에 관한 것으로서, 특히 교환기운용에 관련된 정보들을 디스크에 저장하고 관리하는 로그화일 처리방법에 관한 것이다.The present invention relates to a MMC (Man Machine Communication) method in an electronic exchange, and more particularly, to a log file processing method for storing and managing information related to exchange operation on a disk.

일반적으로 교환기에서 운용에 관련된 MMC 자료들의 관리는 그 자료를 프린터를 통하여 용지에 출력됐고 운용자가 그 자료들을 관리하는 방법을 사용하고 있다.In general, management of MMC data related to operation at the exchange is printed on paper through a printer, and the operator uses a method of managing the data.

따라서 시스템 운용에 관한 정보를 디스크에 저장하고 관리하는 기능이 있으므로 프린터의 고장시 출력메시지가 유실되는 경우가 발생할 수 있으며, 출력된 메시지를 보관하는데에도 상당한 어려움이 있다. 또한 상기와 같이 프린터를 통해 종이에 데이터를 보관할 경우 메시지 검색이 필요할 경우 일일이 수작업으로 메시지를 검색하여야 하기 때문에 효율적인 데이터 처리가 될 수 없었다.Therefore, since there is a function to store and manage the information on the system operation on the disk, the output message may be lost when the printer breaks down, and there is a considerable difficulty in storing the output message. In addition, when storing the data on the paper through the printer as described above, if you need to retrieve the message manually because the message must be manually retrieved could not be efficient data processing.

따라서 본 발명의 목적은 MMC 데이터를 소정 기록장치에 기록하는 방법을 제공함에 있다.It is therefore an object of the present invention to provide a method for recording MMC data in a predetermined recording apparatus.

본 발명의 다른 목적은 소정 기록장치에 기록된 MMC 데이터를 읽어 들이는 방법을 제공함에 있다.Another object of the present invention is to provide a method of reading MMC data recorded in a predetermined recording apparatus.

본 발명의 또 다른 목적은 MMC 데이터를 소정기록 장치에 기록하고 그를 다시 읽어들이므로서, MMC데이터를 효율적으로 관리할 수 있는 방법을 제공함에 있다.It is still another object of the present invention to provide a method for efficiently managing MMC data while recording and re-reading MMC data in a predetermined recording apparatus.

이하 본 발명을 첨부된 도면을 참조로 상세히 설명한다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

제1도는 본 발명을 수행하기 위한 시스템도로서, 본 시스템의 각 모듈들 사이에 데이터를 교환할 수 있도록 하는 메인버스(101)와, 상기 상기 메인버스(101)에 접속되며 CPU 모듈로서 본 발명을 제어하는 MPMA(102)와, 메인버스(101)에 접속되며 메모리 모듈로서 상기 MPMA(102)에서 수행시킬 프로그램과 데이터를 저장하고 있는 MECA(103)와, 상기 메인버스(101)와 접속되며 보조기억장치 인터페이스 모듈로서 접속된 소정 하드디스크(107)를 제어하며 상기 MPMA(102)의 지시에 따라 상기 하드디스크(107)에 데이터를 기록하거나 또는 데이터를 읽어들이는 MSIA(104)와, 상기 메인버스(101)와 접속되며 입출력장치 인터페이스로서 입출력포트를 제어하며 상기 MPMA(102)의 지시에 따라 소정 입출력장치로 데이터를 전송하거나 읽어 들이는 IOIA(105)와, 상기 메인버스(101)와 접속되며 프로세서간 통신 모듈로서 타프로세서와의 통신을 담당하여 타프로세서로 MMC 처리요구신호를 송신하고 그 결과를 수신하는 PCCA(106)와, 상기 MSIA(104)에 접속되어 상기 MPMA(102)에 제어되는 상기 하드디스크(107)로 구성된다.1 is a system diagram for carrying out the present invention, the main bus 101 for exchanging data between the modules of the system, and the present invention as a CPU module connected to the main bus 101 It is connected to the main bus 101 and the MPMA 102, which is connected to the main bus 101 and stores the program and data to be executed in the MPMA 102 as a memory module, MSIA 104 which controls a predetermined hard disk 107 connected as an auxiliary memory interface module and writes data to or reads data from the hard disk 107 according to the instructions of the MPMA 102; An IOIA 105 connected to the main bus 101 and controlling an input / output port as an input / output device interface and transmitting or reading data to or from a predetermined input / output device according to the instruction of the MPMA 102; Connected PCCA 106 which is in charge of communication with other processors and transmits MMC processing request signal to other processors and receives the result, and is connected to MSIA 104 and controlled by MPMA 102. The hard disk 107 is configured.

제2도는 본 발명에 따른 흐름도로서 (a)는 MMC 데이터를 저장하는 흐름도이고 (b)는 상기 (a)에서 저장한 데이터를 필요에 따라 검색 및 검출하는 흐름도로서, (a)는 데이터값 저장요구를 받으면 그때의 날짜와 이전에 기록된 데이터의 날짜를 비교하여 날짜가 변경되었으면 현재 날짜에 해당하는 화일을 생성시키고 이전의 날짜를 비교하여 변경되지 않았으면 현재의 시간과 이전에 기록된 데이터의 시간을 비교하는 제1과정과, 상기 제1과정에서 현재의 시간과 이전데이터의 시간을 비교할시 변경되었으면 화일의 헤드부의 해당시간 영역에 화일의 마지막 포인터를 기록하고 현재의 시간이 이전의 데이터의 시간과 동일할시는 또 다른 하나의 레코드를 구성하여 저장하는 제2과정으로 구성되며, (b)는, 데이터 검색이 요구되면 해당 날짜의 화일을 검색선택한뒤 해당화일 헤드부의 시간영역의 포인터값을 읽어서 그 포인터로 이동한뒤 하나의 레코드를 읽는 제A과정과, 상기 제A과정 수행후 검색조건에 적합한가 판단하여 검색조건에 적합한가 판단하여 검색조건에 적합하면 메시지를 포매팅한뒤 이를 프린트 출력하고 검색종료시간이 지났는가 점검하면 상기 검색조건에 적합한가 판단할때 검색조건에 적합하지 않을 경우는 프린트 출력 다음 단계로 점프하는 제B과정과, 상기 제B과정에서 검색종료시간이 지났는가 점검할시 검색종료시간이 지났으면 흐름을 종료하고 검색종료시간이 지났으면 흐름을 종료하고 검색종료시간이 지나지 않았을 경우는 화일끝인가 점검하여 화일의 끝이 아니면 상기 제A과정의 하나의 레코드를 읽는 단계로 리턴하고 화일의 끝인 경우는 다음 날짜의 화일을 선택한뒤 상기 하나의 레코드를 읽는 단계로 리턴하는 제C과정으로 구성된다.2 is a flowchart according to the present invention, (a) is a flowchart for storing MMC data, and (b) is a flowchart for searching and detecting the data stored in (a) as necessary, and (a) is a data value storage. When requested, compare the date at that time with the date of the previously recorded data to create a file corresponding to the current date if the date has changed, and compare the previous date to the date of the previously recorded data if not changed. In the first step of comparing the time, and when the current time and the time of the previous data are changed in the first step, the last pointer of the file is recorded in the corresponding time area of the head of the file, and the current time of the previous data is recorded. When it is equal to time, it consists of a second process of constructing and storing another record, and (b), if a data retrieval is required, search and select a file of the corresponding date. After reading the pointer value in the time domain of the corresponding file head, move to the pointer, and read one record, and if it meets the search condition by determining whether it is suitable for the search condition after performing the above process A, After formatting the message, print it out and check whether the search end time has elapsed. If it does not meet the search condition, if it does not meet the search condition, step B jumps to the next step of print output. If the search time is over, the flow ends. If the search time is over, the flow ends. If the search time has not elapsed, the end of the flow is checked. Return to the step of reading one record, and if it is the end of the file, select the file of the next date and C is composed of a process of returning to the stage to read my record.

제3도는 상기 제2도의 흐름에 따라 MMC 데이터가 기록될때 로그화일의 도시도로서, 헤드부와 레코드부로 나누어지며, 헤드부는 그날의 날짜를 기록하는 영역 및 0시에서 23시까지의 시간별로 화일의 포인터를 기록하는 영역으로 이루어져 있다. 그리고 레코드부는 연속된 레코드들의 집합으로 구성되며, 하나의 레코드는 검색시 필요한 범위를 선택할 수 있는 키(key) 영역과 실제의 데이터 부분으로 구성되어 있다.FIG. 3 is a diagram of a log file when MMC data is recorded according to the flow of FIG. 2, which is divided into a head portion and a record portion, and the head portion is an area for recording the date of the day and the time of the file by time from 0 to 23:00. It consists of an area for recording pointers. The record section is composed of a series of records, and one record is composed of a key region and an actual data portion for selecting a range required for retrieval.

따라서 본 발명을 제1도에서 제3도를 참조하여 일실시예를 상세히 설명한다.Therefore, an embodiment of the present invention will be described in detail with reference to FIGS.

본 발명은 정보의 저장요구를 받아 화일에 저장하는 기능과 필요한 정보의 검색요구를 받아 저장된 정보를 찾아서 출력하는 두가지 성능을 갖는다.The present invention has two functions of receiving a request for storing information and storing it in a file, and finding and outputting stored information in response to a request for searching for necessary information.

우선 정보를 저장하는 방법을 제2a도와 같이 CPU 모듈 MPMA(102)는 (201)단계에서 정보의 저장요구를 받으면 (202)단계에서 MSIA(104)을 통해 하드디스크(107)상에서 이전데이터의 날짜와 현재의 날짜를 비교한다. 이때 비교결과, 날짜가 변경되었으면 (203)단계에서 현재 날짜에 해당하는 새로운 화일을 생성한뒤 (204)단계로 진행한다.First, as shown in FIG. 2A, when the CPU module MPMA 102 receives a request for storing the information in step 201, the date of the previous data on the hard disk 107 through the MSIA 104 in step 202. Compare the current date with. At this time, if the date is changed as a result of the comparison, a new file corresponding to the current date is generated in step 203, and then the process proceeds to step 204.

그러나 상기 (202)단계에서 비교결과, 날짜가 변경되지 않고 상기 (204)단계로 바로 진행하여 이번에는 상기 하드디스크(107)로부터 이전데이터의 시간과 현재의 시간을 비교한다. 이때 만일 시간이 변경되었으면 (205)단계로 수행하여 헤드부의 해당 영역에 변경화일의 마지막 포인터를 기록한뒤 (206)단계로 진행한다.However, as a result of the comparison in step 202, the date does not change, and the flow proceeds directly to step 204, and this time compares the time of previous data with the current time from the hard disk 107. In this case, if the time is changed, the process proceeds to step 205 to record the last pointer of the changed file in the corresponding area of the head, and then proceeds to step 206.

상기 (204)단계에서 만일 이전데이터의 시간과 현재의 시간비교시 동일하다면 상기 (206)단계로 바로 진행하여 데이터와 검색에 필요한 키(key)를 조합하여 저장에 필요한 하나의 레코드를 구성한다. 그리고 (207)단계에서 상기 구성한 레코드를 상기 하드디스크(107)의 화일에 저장한뒤 종료한다.In step 204, if the time of the previous data is the same as the current time comparison, the flow proceeds directly to step 206, whereby a combination of data and a key required for retrieval is combined to form one record for storage. In step 207, the configured record is stored in the file of the hard disk 107 and then terminated.

상기 저장된 화일의 정보검색 방법은 제2b도와 같다. 상기 MPMA(102)는 검색에 필요한 키(key)를 가지고 (210)단계에서 검색요구를 받으면, (211)단계에서 해당 날짜키에 해당하는 화일을 선택한다. 그리고 (212)단계에서 화일 헤드부의 시간영역에서 시간키의 포인터를 읽어 (213)단계에서 화일의 포인터를 이동시킨다. (214)단계에서는 상기 하드디스크(107)에서 하나의 레코드를 읽어 (215)단계에서 검색키들의 조건에 적합한지를 검사하여, 적합하면 (216)단계에서 출력에 필요한 형태로 다시 포매팅(Formatting)하여 출력시킨다. 그리고 (218)단계에서 상기 레코드가 검색키의 검색종료시간이 지났는지를 검사한다. 그런데 상기 (215)단계에서 검색조건에 적합한가 검사할때 적합하지 않을 경우는 상기 (218)단계로 점프하여 수행한다. 상기 (218)단계에서 검색종료시간이 지났음으로 판단될 경우는 수행을 종료하며, 검색종료시간이 지나지 않았음으로 판단되면 (219)단계에서 화일의 끝인가 점검하며 끝이면 (220)단계에서 다음 날짜의 화일을 선택한뒤 상기 (214)단계로 리턴하여 상기 (214-219)단계까지의 흐름을 반복 수행한다. 또한 상기 (219)단계에서 화일의 끝이 아닐 경우는 상기 (214)단계로 다시 리턴하여 상기한 (214-219) 단계를 검색종료시간에 해당하는 레코드를 찾을때까지 계속 수행한다.The information retrieval method of the stored file is shown in FIG. 2B. The MPMA 102 receives a search request in step 210 with a key required for searching, and selects a file corresponding to the date key in step 211. In operation 212, the pointer of the time key is read in the time domain of the file head unit, and the pointer of the file is moved in operation 213. In step 214, one record is read from the hard disk 107, and in step 215, it is checked whether the conditions of the search keys are satisfied, and if appropriate, in step 216, the data is reformatted into a form necessary for output. Output it. In step 218, it is checked whether the record has passed the search end time of the search key. However, if it is not suitable when checking whether the search condition is suitable in step 215, the process jumps to step 218. If it is determined in step 218 that the search end time has elapsed, the operation ends. If it is determined that the search end time has not elapsed, it is checked in step 219 whether it is the end of the file. After selecting a file of a date, the flow returns to step 214 to repeat the flow of steps 214-219. If it is not the end of the file in step 219, the process returns to step 214 and the above steps 214 to 219 are continued until the record corresponding to the search end time is found.

이상과 같이 동작하는 본 발명을 전자교환기에서 채용할 경우 편리하고 효율적인 유저 보수 기능을 제공할 수 있으며, 시스템의 안정적인 운용을 유지할 수 있는 이점이 있다.When employing the present invention operating as described above in the electronic exchange can provide a convenient and efficient user maintenance function, there is an advantage that can maintain a stable operation of the system.

Claims (3)

전자교환기의 로그화일 처리방법에 있어서, 데이터의 저장이 요구되면 이전의 날짜 및 시간을 비교하여 하나의 레코드를 구성한뒤 그 레코드를 저장하는 데이터 저장과정과, 데이터 검색이 요구되면 해당 화일을 선택하여 메시지를 포매팅한 후 출력하는 데이터 검색과정으로 구성됨을 특징으로 하는 방법.In the log file processing method of the electronic exchange, when the data is required to be stored, a process of storing a record is made after comparing a previous date and time, and storing the record. Method for retrieving data after formatting the message. 제1항에 있어서, 데이터 저장과정이, 데이터값 저장요구를 받으면 그때의 날짜와 이전에 기록된 데이터의 날짜를 비교하여 날짜가 변경되었으면 현재 날짜에 해당하는 화일을 생성시키고 이전의 날짜를 비교하여 변경되지 않았으면 이번에는 현재의 시간과 이전에 기록된 데이터의 시간을 비교하는 제1과정과, 상기 제1과정에서 현재의 시간과 이전데이터의 시간을 비교할시 변경되었으면 화일의 헤드부의 해당시간 영역에 화일의 마지막 포인터를 기록하고 현재의 시간이 이전의 데이터의 시간과 동일할시는 또 다른 하나의 레코드를 구성하여 저장하는 제2과정으로 구성됨을 특징으로 하는 전자교환기의 로그화일 처리방법.The method of claim 1, wherein the data storing process compares the date of the previously recorded data with the date when the data value storage request is received, and generates a file corresponding to the current date if the date is changed, and compares the previous date. If not changed, the first step of comparing the current time with the time of the previously recorded data, and the corresponding time area of the head of the file if it is changed when comparing the current time with the time of the previous data in the first step. And a second process of writing and storing another record when the last pointer of the file is recorded and the current time is the same as the time of the previous data. 제2항에 있어서, 데이터 검색과정이, 데이터 검색이 요구되면 해당 날짜의 화일을 검색 선택한뒤 해당화일 헤드부의 시간영역의 포인터값을 읽어서 그 포인터로 이동한뒤 하나의 레코드를 읽은 제A과정과, 상기 제A과정 수행후 검색조건에 적합한가 판단하여 검색조건에 적합하면 메시지를 포매팅한뒤 이를 프린트 출력하고 검색종료시간이 지났는가 점검하고 상기 검색조건에 적합한가 판단할때 검색조건에 적합하지 않을 경우는 프린트 출력 다음 단계로 점프하는 제B과정과, 상기 제B과정에서 검색종료시간이 지났는가 점검할시 검색종료시간이 지났으며 흐름을 종료하고 검색종료시간이 지나지 않았을 경우는 화일끝인가 전검하여 화일의 끝이 아니면 상기 제A과정의 하나의 레코드를 읽는 단계로 리턴하고 화일의 끝인 경우는 다음 날짜의 화일을 선택한뒤 상기 하나의 레코드를 읽은 단계로 리턴하는 제C과정으로 구성됨을 특징으로 하는 전자교환기의 로그화일 처리방법.The method of claim 2, wherein the data retrieval process includes: a process of retrieving and selecting a file of a corresponding date when a data retrieval is requested, reading a pointer value of a time area of the corresponding file head, moving the pointer, and reading a record; After performing step A, if it is determined that the search condition is suitable, the message is formatted and printed out. If the search condition is over, the message is printed. If the search condition is not satisfied, the message is printed. Output process B jumps to the next step, and if the search end time has passed in the process B, if the search end time has passed and the flow ends and the search end time has not passed, the end of the file is examined. Otherwise, return to the step of reading one record of step A, and if the end of the file is the file of the next date And a step C of selecting and returning the one record to the read step.
KR1019900007205A 1990-05-19 1990-05-19 Method for processing log file KR920009721B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019900007205A KR920009721B1 (en) 1990-05-19 1990-05-19 Method for processing log file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019900007205A KR920009721B1 (en) 1990-05-19 1990-05-19 Method for processing log file

Publications (2)

Publication Number Publication Date
KR910020572A KR910020572A (en) 1991-12-20
KR920009721B1 true KR920009721B1 (en) 1992-10-22

Family

ID=19299188

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019900007205A KR920009721B1 (en) 1990-05-19 1990-05-19 Method for processing log file

Country Status (1)

Country Link
KR (1) KR920009721B1 (en)

Also Published As

Publication number Publication date
KR910020572A (en) 1991-12-20

Similar Documents

Publication Publication Date Title
KR940024703A (en) Memory Controller and Memory Data Retrieval Circuit
JPH0543135B2 (en)
JP4177833B2 (en) Method and apparatus for multi-process access to linked list
KR920009721B1 (en) Method for processing log file
US5170479A (en) File block managing system using next record header position data and delete history data from block header and record headers to locate requested record block
JPH0756651B2 (en) Document file search method
JPH0561758A (en) Information link device
JP2573577B2 (en) File access device
JP2747009B2 (en) Record addition method for indexed sequential files
US5978321A (en) Retrieval method with repeated retrieval of inputted characters and medium storing implementing software
JPH06242999A (en) Data file managing method
JP2817911B2 (en) Access control method for keyed files
JPH07282073A (en) Data retrieving device and its method
JPH0659948A (en) File management system
JPH0664599B2 (en) Document file search device
JPH05165686A (en) Data store control system
JPH01226048A (en) Error logging system
JPS62177642A (en) File management system for postscript filing device
JPH05233386A (en) Data base management system
JPH0736747A (en) Method for managing information stored in different kinds of storage media
JPH05128050A (en) Method for data retrieval control in electronic computer system
GB2245090A (en) Image filing system and method
KR870003438A (en) Image Information Retrieval Network System
JPH0398167A (en) Adverse retrieving system for index forward compiling file
JPH0785089A (en) Character processing device

Legal Events

Date Code Title Description
A201 Request for examination
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20070910

Year of fee payment: 16

LAPS Lapse due to unpaid annual fee