CN109165204A - A method of it is shown based on the script detection bis- client directories of NFS - Google Patents

A method of it is shown based on the script detection bis- client directories of NFS Download PDF

Info

Publication number
CN109165204A
CN109165204A CN201810927665.5A CN201810927665A CN109165204A CN 109165204 A CN109165204 A CN 109165204A CN 201810927665 A CN201810927665 A CN 201810927665A CN 109165204 A CN109165204 A CN 109165204A
Authority
CN
China
Prior art keywords
client
nfs
bis
script
catalogue
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
CN201810927665.5A
Other languages
Chinese (zh)
Other versions
CN109165204B (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810927665.5A priority Critical patent/CN109165204B/en
Publication of CN109165204A publication Critical patent/CN109165204A/en
Application granted granted Critical
Publication of CN109165204B publication Critical patent/CN109165204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of methods shown based on the script detection bis- client directories of NFS, it is characterized in that include the following steps: 1) perform script, the directory creating progress and catalogue number of the one of customer end A of real time print;2) another customer end B is logged in, current directory number is calculated, and compares customer end A and whether customer end B catalogue number is identical.This patent proposes a kind of automatic method that detection NFS client directory is shown, can realize that the catalogue of double clients is compared by script, and real time print directory creating process, position the time made a fault.This method becomes automating by the reperformance test step that the time is more than 24 hours is executed, and reduces the working time by automatized script, improves work efficiency.

Description

A method of it is shown based on the script detection bis- client directories of NFS
Technical field
Method that the bis- client directories of detection NFS based on script show that the present invention relates to a kind of.
Background technique
NFS is exactly the abbreviation of Network FileSystem, its maximum function be exactly can be allowed by network it is different Machine, different operating system shared file (sharefiles) each other --- can by the catalogue of NFS carry distance host, The catalogue is accessed just as access local directory, so a file server can also be simply seen as (FileServer).It can make local work station that less disk space can be used in this way;It does not need as user at every A User Catalog is put on net machine;The quantity of mobile device on network is reduced, therefore the sharing mode is also commonly used for storing In network system.
With customer users time increase, may happen suddenly various situations, for example, the customer side A and B simultaneously share it is same A catalogue, the subdirectory of A client creation in original 2017 under the catalogue, across new in the creation of B client after year to 2018 Subdirectory, refresh A client NFS client the case where cannot but showing newly-built subdirectory, this is because customer end A Fs(text Part service) permission recycling is abnormal, when customer end B creates file, since customer end A holds Fs permission, it is believed that local metadata is It is newest, using local cache, without to mds(Metadata Service) obtain, cause customer service to be affected.Therefore it is testing The problem of should paying attention to the display of NFS client directory in the process.
Summary of the invention
The purpose of the present invention is to deficiencies of the prior art, and provide a kind of bis- based on script detection NFS The method that client directory is shown, this method are directed to above situation, and this patent proposes a kind of detection NFS client directory and shows Method, save the testing time, improve working efficiency.
This programme is achieved by the following technical measures: one kind is shown based on the script detection bis- client directories of NFS Method, it is characterized in that include the following steps: 1) perform script, the directory creating progress of the one of customer end A of real time print And catalogue number;2) another customer end B is logged in, current directory number is calculated, and compares customer end A and customer end B catalogue number is It is no identical.It can thus realize that the catalogue of double clients is compared by script, and real time print directory creating process, positioning The time made a fault.
Before step 1), collection group terminal creaties directory first, and to be arranged NFS shared, shares to two different clients of A and B End;The above-mentioned catalogue of carry in two clients of A and B, and carry path, two client modification/etc/hosts of A and B are set File increases the respective address ip and client name, realizes and exempts from close login between client;Two client modifications of A and B/ Etc/hosts file increases the respective address ip and client name, realizes and exempts from close login between client.It in this way can be real Exempt from close login between existing customer end A and customer end B, ensure that the smooth of script operation, be conducive to detection.
In the step 2 after real time print creaties directory progress, interval time t logs in customer end B, t >=10s.T is logical Often selection 10s can use ssh telnet client end B, check the total and son with A client of subdirectory using ls order Catalogue number compares.Having time interval can be more advantageous to detection in this way.Execution script is placed on to any mesh of A client Under record.Any client A or B can be selected to store, if selection customer end B, needs telnet client end A.
If catalogue number is not identical in step 2, output error, and while marking which catalogue go out mistake and error when Between.If catalogue number is identical in step 2, repeatedly step 1) and step 2, circulating repetition n times, n≤10000.In this way once going out Now fault can inquire the mistake gone out when creating which catalogue and error time, check conducive to staff.Setting is less than one Ten thousand times, in this way, executing the reperformance test step that the time is more than 24 hours becomes automating, work is reduced by automatized script Time improves work efficiency.
In the step 1), by modifying client time, puts to backstage and execute, for simulating since matter of time draws The NFS client directory risen shows inconsistent situation.It can be used for verifying and detecting.
It can be seen that compared with prior art, the present invention implementing with substantive distinguishing features outstanding and significant progress Beneficial effect be also obvious.
Detailed description of the invention
Fig. 1 is the flow chart of the specific embodiment of the invention.
Specific embodiment
In order to clarify the technical characteristics of the invention, below by a specific embodiment, and its attached drawing is combined, it is right This programme is illustrated.
By attached drawing as can be seen that the method shown based on the script detection bis- client directories of NFS of this programme, feature It is to include the following steps: 1) perform script, the directory creating progress and catalogue number of the one of customer end A of real time print;2) Interval time 10s logs in another customer end B of customer end B Telnet, checks subdirectory sum current directory using ls order Number, and compare customer end A and whether customer end B catalogue number is identical.
Before step 1), collection group terminal creaties directory first, and to be arranged NFS shared, shares to two different clients of A and B End;The above-mentioned catalogue of carry in two clients of A and B, and carry path, two client modification/etc/hosts of A and B are set File increases the respective address ip and client name, realizes and exempts from close login between client;Two client modifications of A and B/ Etc/hosts file increases the respective address ip and client name, realizes and exempts from close login between client, by the foot of execution Originally it is placed under any catalogue of A client.
If catalogue number is not identical in step 2, output error, and while marking which catalogue go out mistake and error when Between.If catalogue number is identical in step 2, repeatedly step 1) and step 2, circulating repetition n times, n is 10000 in the present embodiment.
In the step 1), by modifying client time, puts to backstage and execute, for simulating since matter of time draws The NFS client directory risen shows inconsistent situation.
The present invention is not limited in above-mentioned specific embodiment, and those of ordinary skill in the art are in essential scope of the invention The variations, modifications, additions or substitutions inside made, also should belong to protection scope of the present invention.

Claims (8)

1. a kind of method shown based on the script detection bis- client directories of NFS, it is characterized in that including the following steps:
1) perform script, the directory creating progress and catalogue number of the one of customer end A of real time print;
2) another customer end B is logged in, current directory number is calculated, and compares customer end A and whether customer end B catalogue number is identical.
2. the method shown according to claim 1 based on the script detection bis- client directories of NFS, it is characterized in that: in step 1) before, collection group terminal creaties directory first, and to be arranged NFS shared, shares to two different clients of A and B;In two visitors of A and B The above-mentioned catalogue of carry on the end of family, and carry path is set, two client modification/etc/hosts files of A and B increase respective ip Address and client name are realized and exempt from close login between client;Two client modification/etc/hosts files of A and B increase Add the respective address ip and client name, realizes and exempt from close login between client.
3. the method shown according to claim 2 based on the script detection bis- client directories of NFS, it is characterized in that: will execute Script be placed under any catalogue of A client.
4. the method according to claim 1 or claim 2 shown based on the script detection bis- client directories of NFS, it is characterized in that: described In step 2 after real time print creaties directory progress, interval time t logs in customer end B, t >=10s.
5. the method shown according to claim 4 based on the script detection bis- client directories of NFS, it is characterized in that: remotely stepping on B client is recorded, check subdirectory sum using ls order and is compared with the subdirectory number of A client.
6. the method shown according to claim 1 based on the script detection bis- client directories of NFS, it is characterized in that: step 2 If catalogue number is not identical in, output error, and the mistake that goes out of while marking which catalogue and error time.
7. the method shown according to claim 6 based on the script detection bis- client directories of NFS, it is characterized in that: step 2 If catalogue number is identical in, repeatedly step 1) and step 2, circulating repetition n times, n≤10000.
8. the method shown according to claim 1 based on the script detection bis- client directories of NFS, it is characterized in that: described In step 1), by modifying client time, puts to backstage and execute, for simulating the NFS client due to caused by matter of time Catalogue shows inconsistent situation.
CN201810927665.5A 2018-08-15 2018-08-15 Method for detecting NFS double-client directory display based on script Active CN109165204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810927665.5A CN109165204B (en) 2018-08-15 2018-08-15 Method for detecting NFS double-client directory display based on script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810927665.5A CN109165204B (en) 2018-08-15 2018-08-15 Method for detecting NFS double-client directory display based on script

Publications (2)

Publication Number Publication Date
CN109165204A true CN109165204A (en) 2019-01-08
CN109165204B CN109165204B (en) 2022-02-18

Family

ID=64895764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810927665.5A Active CN109165204B (en) 2018-08-15 2018-08-15 Method for detecting NFS double-client directory display based on script

Country Status (1)

Country Link
CN (1) CN109165204B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567858A (en) * 2008-04-21 2009-10-28 联想(北京)有限公司 Method and system for synchronizing data
CN104468615A (en) * 2014-12-25 2015-03-25 西安电子科技大学 Data sharing based file access and permission change control method
US9110920B1 (en) * 2007-05-03 2015-08-18 Emc Corporation CIFS access to NFS files and directories by translating NFS file handles into pseudo-pathnames
CN106503158A (en) * 2016-10-31 2017-03-15 深圳中兴网信科技有限公司 Method of data synchronization and device
CN106550037A (en) * 2016-11-07 2017-03-29 天脉聚源(北京)传媒科技有限公司 A kind of method and device of server data sharing
CN106776980A (en) * 2016-12-06 2017-05-31 上海爱数信息技术股份有限公司 A kind of document synchronization method and system, document-synchronization client
CN107145417A (en) * 2017-05-08 2017-09-08 郑州云海信息技术有限公司 A kind of outer plug-in card installation site method of calibration and device
CN108205623A (en) * 2016-12-16 2018-06-26 杭州华为数字技术有限公司 For the method and apparatus of share directory

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9110920B1 (en) * 2007-05-03 2015-08-18 Emc Corporation CIFS access to NFS files and directories by translating NFS file handles into pseudo-pathnames
CN101567858A (en) * 2008-04-21 2009-10-28 联想(北京)有限公司 Method and system for synchronizing data
CN104468615A (en) * 2014-12-25 2015-03-25 西安电子科技大学 Data sharing based file access and permission change control method
CN106503158A (en) * 2016-10-31 2017-03-15 深圳中兴网信科技有限公司 Method of data synchronization and device
CN106550037A (en) * 2016-11-07 2017-03-29 天脉聚源(北京)传媒科技有限公司 A kind of method and device of server data sharing
CN106776980A (en) * 2016-12-06 2017-05-31 上海爱数信息技术股份有限公司 A kind of document synchronization method and system, document-synchronization client
CN108205623A (en) * 2016-12-16 2018-06-26 杭州华为数字技术有限公司 For the method and apparatus of share directory
CN107145417A (en) * 2017-05-08 2017-09-08 郑州云海信息技术有限公司 A kind of outer plug-in card installation site method of calibration and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
胡兰兰: "Linux实现文件共享方法分析", 《三门峡职业技术学院学报》 *

Also Published As

Publication number Publication date
CN109165204B (en) 2022-02-18

Similar Documents

Publication Publication Date Title
US11593302B2 (en) Methods, systems, and computer readable mediums for implementing a data protection policy for a transferred enterprise application
CN103023710B (en) A kind of safety test system and method
US8024712B1 (en) Collecting application logs
CN112100052B (en) Playback method and device of interface test scene
US9654580B2 (en) Proxy-based web application monitoring through script instrumentation
WO2021189852A1 (en) Method, apparatus and device for automatically testing private zone, and storage medium
KR100968126B1 (en) System for Detecting Webshell and Method Thereof
CN106897207A (en) Ui testing method and apparatus
US20180357143A1 (en) Testing computing devices
US10083070B2 (en) Log file reduction according to problem-space network topology
CN105743732A (en) Method and system for recording transmission paths and distribution conditions of files in local area network
CN110008197A (en) A kind of data processing method, system and electronic equipment and storage medium
CN111338881B (en) Automatic testing method and device for parallel reading and writing of NAS file system
Easwaramoorthy et al. Digital forensic evidence collection of cloud storage data for investigation
CN103927252A (en) Cross-component log recording method, device and system
DE112012000305T5 (en) Joint restoration of data sources
CN106815248B (en) Website analysis method and device
CN110807000B (en) File repair method and device, electronic equipment and storage medium
CN112256984A (en) Method and device for acquiring interface background screenshot corresponding to webpage
CN107844542A (en) A kind of distributed document storage method and device
CN109165204A (en) A method of it is shown based on the script detection bis- client directories of NFS
US8271879B2 (en) Workstation management application
CN104346580A (en) Apparatus and method for controlling access of a resource
US9002788B2 (en) System for configurable reporting of network data and related method
CN113806119A (en) Memory card processing method, device, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant