CN108959451A - It is a kind of to unify the automatic collection method of storage server NAS log and system - Google Patents
It is a kind of to unify the automatic collection method of storage server NAS log and system Download PDFInfo
- Publication number
- CN108959451A CN108959451A CN201810614886.7A CN201810614886A CN108959451A CN 108959451 A CN108959451 A CN 108959451A CN 201810614886 A CN201810614886 A CN 201810614886A CN 108959451 A CN108959451 A CN 108959451A
- Authority
- CN
- China
- Prior art keywords
- log
- usb device
- storage server
- usb
- text document
- 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 automatic collection method of unification storage server NAS log and systems, which comprises the following steps: S1: server memory circumscribed USB equipment;An external USB equipment is inserted on any one controller of storage server;S2: detect whether extraneous USB device meets log downloading condition;Step S3 is gone to if meeting, otherwise without operation;Meeting log to download first subregion that condition includes: USB device is FAT32 file system, and includes a text document in subregion, has collector journal order mtop collectnaslog in text document;S3: the log read instruction in identification USB device, download log to USB device.The collector journal order in the text document in USB device is read, do_usb script, download log to USB device are called.
Description
Technical field
The invention belongs to server log collection technique fields, and in particular to a kind of to unify storage server NAS log certainly
Dynamic collection method and system.
Background technique
NAS(Network Attached Storage: network attached storage) it is connected on network and has data storage function
The device of energy, therefore also referred to as " network memory ".
It is a kind of exclusive data storage server;It is data-centered, and storage equipment is completely separated with server,
Data are managed concentratedly, to discharge bandwidth, improve performance, reduce total cost of ownership, protection investment.Its cost is well below using
Server storage, and efficiency is significantly larger than the latter.
NAS is defined as a kind of special exclusive data storage server, including memory device (such as disk array, CD/
DVD drive, tape drive or moveable storage medium) and embedded systems software, it is possible to provide cross-platform file-sharing function
Energy.NAS usually occupies the node of oneself on one lan, without the intervention of application server, user is allowed to access on network
Data, in this configuration, all data in NAS centralized management and processing network will be loaded from application or enterprise servers
It is upper to unload, total cost of ownership is effectively reduced, protects customer investment.
NAS itself can support various protocols (such as NFS, CIFS, FTP, HTTP), and can support that various operations are
System.By any work station, the pipe of intuitive and convenient can be carried out to NAS device using IE or netscape browser
Reason.
NAS itself can support various protocols (such as NFS, CIFS, FTP, HTTP), and can support that various operations are
System.By any work station, the pipe of intuitive and convenient can be carried out to NAS device using IE or netscape browser
Reason.
Influence due to storing data by general data network transmission, vulnerable to flows other on network.Work as network
On have and can seriously affect system performance when other big data flows;Since storing data passes through general data network transmission,
It is easy to produce the safety problems such as data leak.
Storage can only be accessed with file mode, and physical data block cannot be directly accessed as generic file system, because
This can seriously affect system effectiveness in some cases, for example large database cannot use NAS.
It is whether normal to detect its operation therefore, it is necessary to be collected to NAS system log;Collection in the prior art
Manual entry storage system is needed to be collected, it is very inconvenient;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 a kind of unified storage server NAS log and receive automatically
Set method and system;To solve drawbacks described above in the prior art, it is necessary.
Summary of the invention
It is an object of the present invention to design a kind of unified storage service in view of the above-mentioned drawbacks of the prior art, providing
The automatic collection method of device NAS log and system, to solve the above technical problems.
To achieve the above object, the present invention provides following technical scheme:
A kind of unified automatic collection method of storage server NAS log, which comprises the following steps:
S1: server memory circumscribed USB equipment;
An external USB equipment is inserted on any one controller of storage server;
S2: detect whether extraneous USB device meets log downloading condition;Step S3 is gone to if meeting, otherwise without
Operation;
Meeting log downloading condition includes:
First subregion of USB device is FAT32 file system, and includes a text document in subregion, is had in text document
Collector journal order mtop collectnaslog;
S3: the log read instruction in identification USB device, download log to USB device.
The collector journal order in the text document in USB device is read, do_usb script, download log to USB are called
Equipment.
Text document is mtop.txt file in step S2;
A kind of unified storage server NAS log auto-collection system characterized by comprising
Detection module;Extraneous USB device is detected whether;
Judgment module: whether the outer machine USB device of judgement meets log downloading condition;
Download module: reading the collector journal order in the text document in USB device, calls do_usb script, download log
To USB device.
The beneficial effects of the present invention are in storage system operation, user or maintenance personnel need to collect NAS correlation
Log, do not need log in storage system and do not need manual operation can by external USB equipment be inserted into storage system into
Row is automatic to be collected.
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 unified automatic collection method of storage server NAS log 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.
Embodiment 1:
As shown in Figure 1, a kind of unified automatic collection method of storage server NAS log provided by the invention, which is characterized in that packet
Include following steps:
S1: server memory circumscribed USB equipment;
An external USB equipment is inserted on any one controller of storage server;
S2: detect whether extraneous USB device meets log downloading condition;Step S3 is gone to if meeting, otherwise without
Operation;
Meeting log downloading condition includes:
First subregion of USB device is FAT32 file system, and includes a text document in subregion, is had in text document
Collector journal order mtop collectnaslog;
S3: the log read instruction in identification USB device, download log to USB device.
The collector journal order in the text document in USB device is read, do_usb script, download log to USB are called
Equipment.
Text document is mtop.txt file in step S2;
Embodiment 2:
The present invention gives a kind of unified storage server NAS log auto-collection system characterized by comprising
Detection module;Extraneous USB device is detected whether;
Judgment module: whether the outer machine USB device of judgement meets log downloading condition;
Download module: reading the collector journal order in the text document in USB device, calls do_usb script, download log
To USB device.
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 (6)
1. a kind of unified automatic collection method of storage server NAS log, which comprises the following steps:
S1: server memory circumscribed USB equipment;
S2: detect whether extraneous USB device meets log downloading condition;Step S3 is gone to if meeting, otherwise without
Operation;
S3: the log read instruction in identification USB device, download log to USB device.
2. a kind of unified automatic collection method of storage server NAS log according to claim 1, which is characterized in that institute
Step S1 is stated to specifically include:
An external USB equipment is inserted on any one controller of storage server.
3. a kind of unified automatic collection method of storage server NAS log according to claim 1 or 2, which is characterized in that
Meeting log downloading condition in the step S2 includes:
First subregion of USB device is FAT32 file system, and includes a text document in subregion, is had in text document
Collector journal order mtop collectnaslog.
4. a kind of unified automatic collection method of storage server NAS log according to claim 3, which is characterized in that step
Text document is mtop.txt file in rapid S2.
5. a kind of unified automatic collection method of storage server NAS log according to claim 4, which is characterized in that institute
Step S3 is stated to specifically include:
The collector journal order in the text document in USB device is read, do_usb script, download log to USB device are called.
6. a kind of unified storage server NAS log auto-collection system characterized by comprising
Detection module;Extraneous USB device is detected whether;
Judgment module: whether the outer machine USB device of judgement meets log downloading condition;
Download module: reading the collector journal order in the text document in USB device, calls do_usb script, download log
To USB device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810614886.7A CN108959451A (en) | 2018-06-14 | 2018-06-14 | It is a kind of to unify the automatic collection method of storage server NAS log and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810614886.7A CN108959451A (en) | 2018-06-14 | 2018-06-14 | It is a kind of to unify the automatic collection method of storage server NAS log and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108959451A true CN108959451A (en) | 2018-12-07 |
Family
ID=64488987
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810614886.7A Pending CN108959451A (en) | 2018-06-14 | 2018-06-14 | It is a kind of to unify the automatic collection method of storage server NAS log and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108959451A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101582816A (en) * | 2009-06-11 | 2009-11-18 | 中兴通讯股份有限公司 | Home gateway, and system and method for collecting diagnosis and maintenance information thereof |
CN102594591A (en) * | 2012-02-07 | 2012-07-18 | 大唐移动通信设备有限公司 | Log collection method and device |
CN102737102A (en) * | 2011-04-01 | 2012-10-17 | Ls产电株式会社 | Plc data log module and method for storing data in the same |
-
2018
- 2018-06-14 CN CN201810614886.7A patent/CN108959451A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101582816A (en) * | 2009-06-11 | 2009-11-18 | 中兴通讯股份有限公司 | Home gateway, and system and method for collecting diagnosis and maintenance information thereof |
CN102737102A (en) * | 2011-04-01 | 2012-10-17 | Ls产电株式会社 | Plc data log module and method for storing data in the same |
CN102594591A (en) * | 2012-02-07 | 2012-07-18 | 大唐移动通信设备有限公司 | Log collection method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8418003B2 (en) | Log collecting apparatus, program, method, and system | |
CN103577482B (en) | A kind of webpage collection method, device and browser | |
CN104317800A (en) | Hybrid storage system and method for mass intelligent power utilization data | |
CN110083391A (en) | Call request monitoring method, device, equipment and storage medium | |
CN104933114A (en) | Mass log management cloud platform | |
US6397247B1 (en) | Failure prediction system and method for a client-server network | |
CN105824837A (en) | Log treatment method and device | |
CN105429791A (en) | Distributed service state detection device and method | |
CN109165143A (en) | Database detection method, system, server and storage medium | |
CN102915376A (en) | Method and equipment for detecting deviant behavior of database | |
CN101330406A (en) | System and method for monitoring WAP imperfect picture | |
CN102111285A (en) | Method and system for managing log information | |
CN106656577A (en) | User behavior statistical method for APP and browser, and intelligent router | |
CN106708859A (en) | Auditing method for resource access behaviors and device | |
CN112711493A (en) | Scenario root cause analysis application | |
CN102981939B (en) | Disk monitoring method | |
CN102025536A (en) | Method and device for collecting Unix/Linux system operation data | |
CN103870560A (en) | Log managing method for cluster | |
CN108959451A (en) | It is a kind of to unify the automatic collection method of storage server NAS log and system | |
CN1997005B (en) | System and method for management and control of the network communication data | |
CN104104666B (en) | Method of detecting abnormal cloud service and device | |
CN104915376A (en) | Cloud storage file archiving and compressing method | |
CN116048846A (en) | Data transmission method, device, equipment and storage medium | |
CN106649011A (en) | Detection method and detection device for server equipment | |
CN109669811B (en) | Data processing method and terminal capable of reliable access |
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: 20181207 |