CN109376129A - A method of storage log is collected when locking by SYS_TF automatically - Google Patents
A method of storage log is collected when locking by SYS_TF automatically Download PDFInfo
- Publication number
- CN109376129A CN109376129A CN201811166428.8A CN201811166428A CN109376129A CN 109376129 A CN109376129 A CN 109376129A CN 201811166428 A CN201811166428 A CN 201811166428A CN 109376129 A CN109376129 A CN 109376129A
- Authority
- CN
- China
- Prior art keywords
- log
- card
- sys
- named
- journal file
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to a kind of by SYS_TF collects storage log automatically method when locking, which comprises the following steps: S1: test script is prefabricated in TF card;S2: server is switched on into the interface OS;S3: the current time in system is obtained;S4: when system time is identical as reset time, test script in TF card is called;S5: log under acquisition system, and log is named;S6: journal file is copied in TF card;S7: journal file amount of capacity is obtained;S8: when log file size size >=TF memory card capacity;Erasing time point is than journal file earlier.
Description
Technical field
The invention belongs to log collection technical field of memory, and in particular to collect and deposit automatically when one kind is locking by SYS_TF
The method for storing up log.
Background technique
SYS_TF interface is the interface that Purely platform motherboard is integrated by PCH, TF card is installed in interface, mainly
Record, the function of storing BMC log.
Implementation method is after logging in BMC by SSH, smashclp order line to be run manually, by the BMC log of collection at present
And system log copies in TF card, when machine breaks down, it usually needs first pass through and carried out to log analysis to failure
Simple positioning;Comprehensively, the more full journal file of coverage plays the role of case study vital.However but need hand
It moves and is collected, not only inefficiency, but also there is the case where omitting.
This is in place of the deficiencies in the prior art.Therefore, in view of the above-mentioned drawbacks in the prior art, provide and design one kind and pass through
Automatically the method for storage log is collected when SYS_TF is locking;To solve the above problem in the prior art, it is necessary.
Summary of the invention
It is an object of the present invention to design one kind by SYS_TF card in view of the above-mentioned drawbacks of the prior art, providing
The automatic method for collecting storage log of timing, to solve the above technical problems.
To achieve the above object, the present invention provides following technical scheme:
A method of storage log is collected when locking by SYS_TF automatically, which comprises the following steps:
S1: test script is prefabricated in TF card;
S2: server is switched on into the interface OS;
S3: the current time in system is obtained;
S4: when system time is identical as reset time, test script in TF card is called;
S5: log under acquisition system, and log is named;
S6: journal file is copied in TF card;
S7: journal file amount of capacity is obtained;
S8: when log file size size >=TF memory card capacity;Erasing time point is than journal file earlier.
Preferably, test script is burnt in TF card in the step S1.
Preferably, in the step S5, message log under acquisition system, and be named according to current time;Life
Entitled message_201807192300.log;
Preferably, in the step S5, mcelog log under acquisition system, and be named according to current time;It is named as
mcelog_201807192300.log;
Preferably, obtaining BMC log in the step S5 by ssh and being named;It is named as BMClog_
201807192300.log。
The beneficial effects of the present invention are pass through message log, mcelog log under SYS_TF card auto acquisition system
And BMC log is obtained by ssh and successively saves and is stored in TF card according to system time point, manual storage log is changed to
The automatic method collected, store log of automation timing, improves efficiency, facilitates client and customer service fixed to failed machines problem
Position.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention have substantive distinguishing features outstanding and it is significant ground it is progressive, implementation
Beneficial effect be also obvious.
Detailed description of the invention
Fig. 1 is a kind of flow chart of method for collecting storage log when locking automatically by SYS_TF provided by the invention.
Specific embodiment
The present invention will be described in detail with reference to the accompanying drawing and by specific embodiment, and following embodiment is to the present invention
Explanation, and the invention is not limited to following implementation.
As shown in Figure 1, a kind of method for collecting storage log when locking automatically by SYS_TF provided by the invention, special
Sign is, comprising the following steps:
S1: test script is prefabricated in TF card;
S2: server is switched on into the interface OS;
S3: the current time in system is obtained;
S4: when system time is identical as reset time, test script in TF card is called;
S5: log under acquisition system, and log is named;
S6: journal file is copied in TF card;
S7: journal file amount of capacity is obtained;
S8: when log file size size >=TF memory card capacity;Erasing time point is than journal file earlier.
In the present embodiment, in the step S1, test script is burnt in TF card.
In the present embodiment, in the step S5, message log under acquisition system, and be named according to current time;
It is named as message_201807192300.log;
In the present embodiment, in the step S5, mcelog log under acquisition system, and be named according to current time;Name
For mcelog_201807192300.log;
In the present embodiment, in the step S5, BMC log is obtained by ssh and is named;It is named as BMClog_
201807192300.log。
Disclosed above is only the preferred embodiment of the present invention, but the present invention is not limited to this, any this field
What technical staff can think does not have creative variation, and without departing from the principles of the present invention made by several improvement and
Retouching, should all be within the scope of the present invention.
Claims (5)
1. a kind of method for collecting storage log when locking automatically by SYS_TF, which comprises the following steps:
S1: test script is prefabricated in TF card;
S2: server is switched on into the interface OS;
S3: the current time in system is obtained;
S4: when system time is identical as reset time, test script in TF card is called;
S5: log under acquisition system, and log is named;
S6: journal file is copied in TF card;
S7: journal file amount of capacity is obtained;
S8: when log file size size >=TF memory card capacity;Erasing time point is than journal file earlier.
2. a kind of method for collecting storage log when locking automatically by SYS_TF according to claim 1, feature exist
In in the step S1, test script is burnt in TF card.
3. a kind of method for collecting storage log when locking automatically by SYS_TF according to claim 2, feature exist
In, in the step S5, message log under acquisition system, and be named according to current time.
4. a kind of method for collecting storage log when locking automatically by SYS_TF according to claim 3, feature exist
In, in the step S5, mcelog log under acquisition system, and be named according to current time.
5. a kind of method for collecting storage log when locking automatically by SYS_TF according to claim 4, feature exist
In being obtained and BMC log and be named by ssh in the step S5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811166428.8A CN109376129A (en) | 2018-10-08 | 2018-10-08 | A method of storage log is collected when locking by SYS_TF automatically |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811166428.8A CN109376129A (en) | 2018-10-08 | 2018-10-08 | A method of storage log is collected when locking by SYS_TF automatically |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109376129A true CN109376129A (en) | 2019-02-22 |
Family
ID=65403067
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811166428.8A Pending CN109376129A (en) | 2018-10-08 | 2018-10-08 | A method of storage log is collected when locking by SYS_TF automatically |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109376129A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111198855A (en) * | 2019-12-31 | 2020-05-26 | 深圳移航通信技术有限公司 | Method and device for processing log data |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104866420A (en) * | 2015-04-27 | 2015-08-26 | 深圳市祈锦通信技术有限公司 | Precisely recorded mobile phone software testing method |
CN105204996A (en) * | 2015-09-24 | 2015-12-30 | 努比亚技术有限公司 | Memory leak detection device and method and terminal |
CN105608002A (en) * | 2015-12-17 | 2016-05-25 | 浪潮电子信息产业股份有限公司 | Method for simultaneously capturing all node information of Rack whole cabinet |
WO2016162273A1 (en) * | 2015-04-08 | 2016-10-13 | Hauni Maschinenbau Ag | Device and method for producing a multilayer three-dimensional structural film, multilayer structural film and bar-shaped article made of such a structural film |
CN107016099A (en) * | 2017-04-10 | 2017-08-04 | 国家电网公司 | The folder space monitoring maintenance system and method for class Unix system server |
CN107547943A (en) * | 2016-06-23 | 2018-01-05 | 中兴通讯股份有限公司 | A kind of journal file is derived automatically from method and set top box |
CN207268770U (en) * | 2017-10-26 | 2018-04-24 | 北京智芯微电子科技有限公司 | A kind of chip into examining system |
-
2018
- 2018-10-08 CN CN201811166428.8A patent/CN109376129A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016162273A1 (en) * | 2015-04-08 | 2016-10-13 | Hauni Maschinenbau Ag | Device and method for producing a multilayer three-dimensional structural film, multilayer structural film and bar-shaped article made of such a structural film |
CN104866420A (en) * | 2015-04-27 | 2015-08-26 | 深圳市祈锦通信技术有限公司 | Precisely recorded mobile phone software testing method |
CN105204996A (en) * | 2015-09-24 | 2015-12-30 | 努比亚技术有限公司 | Memory leak detection device and method and terminal |
CN105608002A (en) * | 2015-12-17 | 2016-05-25 | 浪潮电子信息产业股份有限公司 | Method for simultaneously capturing all node information of Rack whole cabinet |
CN107547943A (en) * | 2016-06-23 | 2018-01-05 | 中兴通讯股份有限公司 | A kind of journal file is derived automatically from method and set top box |
CN107016099A (en) * | 2017-04-10 | 2017-08-04 | 国家电网公司 | The folder space monitoring maintenance system and method for class Unix system server |
CN207268770U (en) * | 2017-10-26 | 2018-04-24 | 北京智芯微电子科技有限公司 | A kind of chip into examining system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111198855A (en) * | 2019-12-31 | 2020-05-26 | 深圳移航通信技术有限公司 | Method and device for processing log data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104199666B (en) | A kind of application program Dynamic Configuration and device | |
CN109086155A (en) | Server failure localization method, device, equipment and computer readable storage medium | |
CN106354583B (en) | A kind of heat backup method and system of MySQL database | |
CN105868075A (en) | System and method for monitoring and analyzing great deal of logs in real time | |
CN109086410A (en) | The processing method and system of streaming mass data | |
US20220260619A1 (en) | Abnormal electricity use recognition method and device, and computer-readable medium | |
CN103942063A (en) | Centralized configuration and remote deployment method for Java Web application | |
CN102624919A (en) | Distributed service integrated system for service-oriented architecture and application method thereof | |
CN105302687A (en) | Hard disk sequence detection method based on linux | |
CN112328371A (en) | Method for edge cloud interactive management of edge service based on K3S platform | |
CN106528370A (en) | Virtual machine state monitoring realized in virtualized layer | |
CN105306581A (en) | Router and cloud disk based data synchronization method | |
CN104636242A (en) | Method for automatically deleting repeated content in system logs on basis of Linux operating system | |
CN109189628A (en) | A kind of BMC log processing method and system applied to server test | |
CN107682169A (en) | A kind of method and apparatus using Kafka collection pocket transmission message | |
CN109376129A (en) | A method of storage log is collected when locking by SYS_TF automatically | |
CN107645427A (en) | A kind of system and method for automatic test network connectivty and stability | |
CN106708960A (en) | Restoration method for file system of NAS device and NAS device | |
CN103176867A (en) | Fast file differential backup method | |
CN101692249B (en) | Method for performing data access on power demand side system | |
CN101692641B (en) | High effective HLR/AUC data daily auditing method | |
CN108460163A (en) | K-DB method for synchronizing data of database, device, equipment and storage medium | |
CN102841840B (en) | The message logging restoration methods that Effect-based operation reorders and message number is checked | |
CN102479211A (en) | Mass data processing system and method on basis of database | |
CN101908976A (en) | Method for designing backup security policy for double-computer transaction file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190222 |