CN105808579A - Method for fast inquiry of user file information of NETAPP CIFS (Common Internet File System) - Google Patents

Method for fast inquiry of user file information of NETAPP CIFS (Common Internet File System) Download PDF

Info

Publication number
CN105808579A
CN105808579A CN201410849033.3A CN201410849033A CN105808579A CN 105808579 A CN105808579 A CN 105808579A CN 201410849033 A CN201410849033 A CN 201410849033A CN 105808579 A CN105808579 A CN 105808579A
Authority
CN
China
Prior art keywords
user
file information
netappcifs
fileinfo
library
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
CN201410849033.3A
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.)
Wuxi China Resources Microelectronics Co Ltd
Original Assignee
Wuxi China Resources Microelectronics 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 Wuxi China Resources Microelectronics Co Ltd filed Critical Wuxi China Resources Microelectronics Co Ltd
Priority to CN201410849033.3A priority Critical patent/CN105808579A/en
Publication of CN105808579A publication Critical patent/CN105808579A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a method for fast inquiry of user file information of a NETAPP CIFS (Common Internet File System). The method comprises the following steps of: scanning a file library in advance to acquire a first file information list; extracting the first file information list to acquire a second file information list; storing the second file information list into a database; providing a search entrance; receiving a search condition from the search entrance, and searching from the database according to the search condition and feeding back a searched result. According to the above inquiry method, the first file information list is obtained through scanning the file library in advance and is then extracted to obtain the second file information list, inquiry data can be prepared in advance; the inquiry data prepared in advance are stored in the database to be inquired by a user; for the database with millions of records, the time consumed for inquiring the database once by the user lasts for a few seconds, thus the speed can be greatly improved.

Description

Method for NETAPP CIFS quick search user file information
Technical field
The present invention relates to NETAPP storage management, particularly relate to a kind of method for NETAPPCIFS quick search user file information.
Background technology
Each user can be carried out distributed disk management by NETAPPCIFS, and restriction user is excessively used memory space.But NETAPPCIFS does not provide the function of user search owner file.When user needs cleaning owner file, oneself there are how many files on earth because knowing, are distributed in and which catalogue cannot be cleared up.Especially, after personnel leave office, namely its file becomes the rubbish that cannot clear up, and disk space can not get effectively discharging recycling.
According to NETAPP official technical documentation and agency's consulting, it is known that the method being currently used for retrieval user file has: 1, DIR order;2, third party's file management platform (TeamDoc, edodocs etc.) is used instead;3、windowsstorageserver.
For a library having million number of stages files, performing a DIR order, the All Files to retrieve certain user from library takes around several hours, and command parameter is complicated, operability extreme difference.Third party's file management platform buying expenses is general higher, and multi-functional greatly takes less than.Windowsstorageserver needs to consider cluster, and implementation cost is high, there is speed bottle-neck and machine risk of delaying.
Summary of the invention
Based on this, it is necessary to for providing a kind of method for NETAPPCIFS quick search user file information, it can provide the user the quick inquiry velocity of comparison, simultaneously lower in cost.
A kind of method for NETAPPCIFS quick search user file information, comprises the steps:
In advance library is scanned, it is thus achieved that the first fileinfo list;
Described first fileinfo list is carried out extraction process, it is thus achieved that the second fileinfo list;
Described second fileinfo list is stored in data base;
Access entry is provided;
Receive search condition from described access entry, from data base, carry out retrieval feedback searching result according to search condition.
Wherein in an embodiment, described in advance library is scanned, it is thus achieved that the step of the first fileinfo list includes:
Using the dir order in windows system that library is scanned, and be redirected in text by scanning result, described text preserves described first fileinfo list.
Wherein in an embodiment, described dir order includes "/q " parameter, so that comprising file owners's information in fileinfo.
Wherein in an embodiment, described dir order is organized in autoexec, and performs in idle timing.
Wherein in an embodiment, described described first fileinfo list is carried out extraction process, it is thus achieved that the step of the second fileinfo list includes: extract the fileinfo of information needed kind, obtain the second fileinfo list;Described information category includes filename, file size, residing catalogue, the owner and accesses the time recently.
Wherein in an embodiment, in the described step that described second fileinfo list provides access entry and feedback searching result, webpage is adopted to provide query page and results page.
Wherein in an embodiment, also include: the retrieval result according to pre-conditioned generation is provided in results page.
Wherein in an embodiment, the described retrieval result according to pre-conditioned generation includes:
Library total files, library store total occupancy, specify the lists of documents of user, specify the total files of user, specify the ranking storing total occupancy of the total occupancy of storage of user, file size ranking, each user.
Wherein in an embodiment, also include: the trendgram storing total occupancy of the trendgram of the total occupancy of output file library storage and appointment user.
Wherein in an embodiment, also include: retrieve the lists of documents of this user according to user name, and retrieval result is exported to the step that form document preserves.
Above-mentioned querying method, by previously-scanned acquisition the first fileinfo list, then extracts and obtains the second message file list, it is possible to first will inquire about DSR.And preprepared inquiry data are saved in data base for user's inquiry, for data base, the data magnitudes of million records, inquiry once spent time, speed was greatly improved all in second level.Meanwhile, each of said method processes instrument involved in step and product and uncomplicated, therefore less costly.
Accompanying drawing explanation
Fig. 1 is the method flow diagram inquiring about fileinfo for NETAPPCIFS of an embodiment;
Fig. 2 is an instantiation of flow process shown in Fig. 1;
Fig. 3 is results page schematic layout pattern.
Detailed description of the invention
As it is shown in figure 1, be the method flow diagram for NETAPPCIFS quick search user file information of an embodiment.CIFS (CommonInternetFileSystem, common internet file system) carries out the agreement that network file is shared between windows main frame, it is possible to achieve the disk file of the server of user operation network-side.NETAPPCIFS is based on the library system of NETAPP storage.
The querying method of the present embodiment is inquired about when using NETAPPCIFS for user and oneself is stored the fileinfo on library at NETAPP, can allow user understand file NETAPP store library takies space, preservation the information such as directory location, facilitate user to manage file better.In conjunction with Fig. 2, this querying method comprises the steps:
Step S110: in advance library is scanned, it is thus achieved that the first fileinfo list.Previously-scanned referring to had been scanned before user inquires about, rather than started scanning after user sends inquiry request again.The scanning of library is related to the file management system utilizing operating system to obtain fileinfo, it is necessary to disk is carried out substantial amounts of operation, therefore consuming time longer, especially for the library with heap file (such as million number of stages).It is scanned in advance can obtaining the first fileinfo list in advance.
The present embodiment adopts the dir order in windows system that library is scanned.Dir order can obtain the listed files under specified file catalogue and subdirectory.According to further parameter, it is also possible to display content and mode to list are adjusted.Such as "/a " parameter displays file attributes, "/q " parameter display file owners's information, "/w " parameter show list etc. with wide format.
Dir order except performing and show in cmd forms, it is also possible to the structure of execution is redirected in text.Such as need to be redirected in list.txt file by the file under c dish and subdirectory list, it is possible to adopt as issued orders: dirc: > Lu Jing list.txt.
Through arranging the parameter of dir order, then using and redirect symbol, it is possible to be all saved in a text by fileinfo all of in library, the fileinfo preserved in text is called the first fileinfo list in the present embodiment.In the present embodiment, due to for NETAPPCIFS, therefore relate to the file management to multiple users.Dir order must comprise "/q " parameter, so that fileinfo comprises owner information.
Further, the scanning of library can regularly be performed.The present embodiment adopts the mode being organized in autoexec (.bat file) by dir order and performing in idle timing.Such as user is typically in work hours use library.Therefore autoexec can be preserved on the server, and certain the time timing After Hours in every day performs.Thus can obtain the first up-to-date fileinfo list every day.
Step S120: described first fileinfo list is carried out extraction process, it is thus achieved that the second fileinfo list.The the first fileinfo list being scanned library obtaining can not accurately customize, and generally can comprise some unnecessary information.The type of organization of the first fileinfo list simultaneously is also inconvenient to directly inquire about.Such as use the first fileinfo list that dir order obtains to be saved in text, be not easy to directly read and inquire about.Therefore the first fileinfo is carried out extraction process, reject unnecessary information, extract the fileinfo of information needed kind, obtain the second fileinfo list, and be organized into the convenient form read and inquire about.In the present embodiment, described information category includes filename, file size, residing catalogue, the owner and accesses the time recently.
Step S130: described second fileinfo list is stored in data base.Data base can provide the query composition of quick multiple condition.The present embodiment adopts SQL database to preserve described second fileinfo list.It is appreciated that in other embodiments, it is also possible to adopt other data bases to preserve the second fileinfo list.
Step S140: access entry is provided.User can input search condition from access entry and obtain the fileinfo wanted.In the present embodiment, webpage is adopted to provide query page as access entry.Such as write a query page, then use the windows IIS provided service erection to access website.The mode of website visiting is prone to be easily accepted by a user and convenient deployment.It is appreciated that in other embodiments, it is also possible to adopt other modes to provide access entry, for instance a retrieval client is provided.
Step S150: receive search condition from described access entry, carries out retrieval feedback searching result according to search condition from data base.In the present embodiment, webpage is adopted to provide results page.It is filled in results page by inquiring about the retrieval result obtained from data base, checks for user.So have only to carry out query manipulation by webpage, simple to operate, easy to use.
Further, the method for the present embodiment also includes: provide the retrieval result according to pre-conditioned generation in results page.This pre-conditioned search condition that can be querying method and pre-set, typically belongs to search condition of overall importance.Can also be user's search condition of customizing in advance and preserving, for automatically performing when retrieval every time.The described retrieval result according to pre-conditioned generation includes: library total files, library store total occupancy, specify the lists of documents of user, specify the total files of user, specify the total occupancy ranking of storage of the total occupancy of storage of user, file size ranking, each user.
Namely, in results page except the result that the search condition being currently entered according to user obtains is provided, always according to some informative results of above-mentioned pre-conditioned display, with to the more reference information of user report, for instance show that library total files, library store total occupancy ranking of storage of total occupancy, the total files of active user, the total occupancy of storage of active user, file size ranking, each user etc..User is facilitated better to understand the storage state that the library of server is current.
Additionally, also can according to the trendgram of the historical data total occupancy of output file library storage preserved and the trendgram storing total occupancy specifying user.Trendgram can be shown according to time spans such as sky, week, the moons.
In one embodiment, as it is shown on figure 3, adopt following webpage representation form.
Division rectangular area, results page upper left side is shown library file sum and stores total occupancy.
Division rectangular area, results page lower left divides each user of row to have total number of files and storage consumption, and carries out ranking by storage consumption.
On the right of results page divide rectangular area with trendgram mode describe clicked user storage consumption variation tendency (such as X-axis unit with sky, the moon two kinds of modes carry out, Y-axis maximum is to show maximum storage occupancy mark in time interval, initial point is a certain amount of from the skew of trend minimum memory occupancy direction, make figure moderate, amplify, fully represent change details).
Further, the method for the present embodiment also includes: retrieve the lists of documents of this user according to user name, and retrieval result is exported to the step that form document preserves.Such as import in excel form.
Above-mentioned querying method, by previously-scanned acquisition the first fileinfo list, then extracts and obtains the second message file list, it is possible to first will inquire about DSR.And preprepared inquiry data are saved in data base for user's inquiry, speed is greatly improved.For data base, the data magnitude of million records, the time spent by inquiry once is all in second level, it is possible to multiple user's Reusabilities.
Each technical characteristic of embodiment described above can combine arbitrarily, for making description succinct, the all possible combination of each technical characteristic in above-described embodiment is not all described, but, as long as the combination of these technical characteristics is absent from contradiction, all it is considered to be the scope that this specification is recorded.
Embodiment described above only have expressed the several embodiments of the present invention, and it describes comparatively concrete and detailed, but can not therefore be construed as limiting the scope of the patent.It should be pointed out that, for the person of ordinary skill of the art, without departing from the inventive concept of the premise, it is also possible to making some deformation and improvement, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (10)

1., for a method for NETAPPCIFS quick search user file information, comprise the steps:
In advance library is scanned, it is thus achieved that the first fileinfo list;
Described first fileinfo list is carried out extraction process, it is thus achieved that the second fileinfo list;
Described second fileinfo list is stored in data base;
Access entry is provided;
Receive search condition from described access entry, from data base, carry out retrieval feedback searching result according to search condition.
2. the method for NETAPPCIFS quick search user file information according to claim 1, it is characterised in that described in advance library is scanned, it is thus achieved that the step of the first fileinfo list includes:
Using the dir order in windows system that library is scanned, and be redirected in text by scanning result, described text preserves described first fileinfo list.
3. the method for NETAPPCIFS quick search user file information according to claim 2, it is characterised in that described dir order includes "/q " parameter, so that comprising owner information in fileinfo.
4. the method for NETAPPCIFS quick search user file information according to Claims 2 or 3, it is characterised in that described dir order is organized in autoexec, and perform in idle timing.
5. the method for NETAPPCIFS quick search user file information according to claim 1, it is characterized in that, described described first fileinfo list is carried out extraction process, the step obtaining the second fileinfo list includes: extracts the fileinfo of information needed kind, obtains the second fileinfo list;Described information category includes filename, file size, residing catalogue, the owner and accesses the time recently.
6. the method for NETAPPCIFS quick search user file information according to claim 1, it is characterised in that in the step of described offer access entry and feedback searching result, adopts webpage to provide query page and results page.
7. the method for NETAPPCIFS quick search user file information according to claim 6, it is characterised in that also include: the retrieval result according to pre-conditioned generation is provided in results page.
8. the method for NETAPPCIFS quick search user file information according to claim 7, it is characterised in that the described retrieval result according to pre-conditioned generation includes:
Library total files, library store total occupancy, specify the lists of documents of user, specify the total files of user, specify the ranking storing total occupancy of the total occupancy of storage of user, file size ranking, each user.
9. the method for NETAPPCIFS quick search user file information according to claim 8, it is characterised in that also include: the trendgram storing total occupancy of the trendgram of the total occupancy of output file library storage and appointment user.
10. the method for NETAPPCIFS quick search user file information according to claim 1, it is characterised in that also include: retrieve the lists of documents of this user according to user name, and retrieval result is exported to the step that form document preserves.
CN201410849033.3A 2014-12-30 2014-12-30 Method for fast inquiry of user file information of NETAPP CIFS (Common Internet File System) Pending CN105808579A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410849033.3A CN105808579A (en) 2014-12-30 2014-12-30 Method for fast inquiry of user file information of NETAPP CIFS (Common Internet File System)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410849033.3A CN105808579A (en) 2014-12-30 2014-12-30 Method for fast inquiry of user file information of NETAPP CIFS (Common Internet File System)

Publications (1)

Publication Number Publication Date
CN105808579A true CN105808579A (en) 2016-07-27

Family

ID=56420449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410849033.3A Pending CN105808579A (en) 2014-12-30 2014-12-30 Method for fast inquiry of user file information of NETAPP CIFS (Common Internet File System)

Country Status (1)

Country Link
CN (1) CN105808579A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8099576B1 (en) * 2004-04-30 2012-01-17 Netapp, Inc. Extension of write anywhere file system layout
CN103150342A (en) * 2013-02-05 2013-06-12 珠海市君天电子科技有限公司 Method and system for managing files acquired by users
US8600998B1 (en) * 2010-02-17 2013-12-03 Netapp, Inc. Method and system for managing metadata in a cluster based storage environment
CN103838782A (en) * 2012-11-27 2014-06-04 广东新岸线计算机系统芯片有限公司 Method and device for achieving file scanning and storage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8099576B1 (en) * 2004-04-30 2012-01-17 Netapp, Inc. Extension of write anywhere file system layout
US8600998B1 (en) * 2010-02-17 2013-12-03 Netapp, Inc. Method and system for managing metadata in a cluster based storage environment
CN103838782A (en) * 2012-11-27 2014-06-04 广东新岸线计算机系统芯片有限公司 Method and device for achieving file scanning and storage
CN103150342A (en) * 2013-02-05 2013-06-12 珠海市君天电子科技有限公司 Method and system for managing files acquired by users

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘长欢,等: "《电脑高手学习宝典》", 31 July 2014, 中国铁道出版社 *

Similar Documents

Publication Publication Date Title
US7412437B2 (en) System and method for searching and retrieving related messages
US9792340B2 (en) Identifying data items
CN100507915C (en) Network search method, network search device, and user terminals
US7409641B2 (en) Method for replying to related messages
CN102521416B (en) Data correlation query method and data correlation query device
US8051035B2 (en) System and methods for image management
CN108491549B (en) Method and device for creating file directory in distributed storage system
CN102169507A (en) Distributed real-time search engine
US7945535B2 (en) Automatic publishing of digital content
JP5147947B2 (en) Method and system for generating search collection by query
CN102722487A (en) Method and apparatus for file management
CN100458784C (en) Researching system and method used in digital labrary
US20090094186A1 (en) Information Retrieval System, Registration Apparatus for Indexes for Information Retrieval, Information Retrieval Method and Program
CN103778202A (en) Enterprise electronic document managing server side and system
CN101472166A (en) Method for caching and enquiring content as well as point-to-point medium transmission system
CN103279474A (en) Video file index method and system
CN102930060A (en) Method and device for performing fast indexing of database
US20090144279A1 (en) Method for improving search efficiency in enterprise search system
CN104391941A (en) Method for rapidly establishing full-text retrieval tool for common files
CN105468785A (en) Computer file management method
CN105824902A (en) Data caching method and device
CN103123651A (en) Method of rapidly searching multiple same-kind paper, device and mobile equipment
US7818680B2 (en) Method for deleting related messages
CN103377246B (en) Bookmark processing method and terminal browser
US8495025B2 (en) Foldering by stable query

Legal Events

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

Application publication date: 20160727

RJ01 Rejection of invention patent application after publication