# pynfs使用教程 #
## 1.如何下载, 编译安装,配置和使用 ##
###安装 ###
    $yum install python-devel
    $ln -s /usr/bin/python2 /usr/bin/python
    $./setup.py build
###使用###
    如果从文件根目录使用必须先执行
    $./setup.py build_ext --inplace
    或者直接进入文件目录运行
    ./testserver.py SERVER:/PATH [options] [flags] [testcode]
    首先执行,
    ./testserver.py SERVER:/PATH  --maketree

##2参数解析
###option参数###
    all : run all standard tests (defaults to running none)
    --rundeps : run dependencies even if not specifically requested on command line
    --maketree : will (re)create the test tree. Ie it will create and populate
         the directories /PATH/tmp and /PATH/tree
    -o, --outfile : will save results into given file.
        results can then be examined using ./showresults.py FILE
    --showflags : will show a list of available flags
    -v : show test status as they are being run, instead of summary at end

 

##3例子
    ./testserver.py 10.10.2.1:/home/mnt2  --force --maketree -v all
    ./testserver.py 10.10.2.1:/home/nfs --rundeps ACL10
    ./testserver.py 10.10.2.1:/home/mnt2 --rundeps acl
    ./testserver.py 10.10.2.1:/home/mnt2 --rundeps setclientid all --hidepass

 

   ./testserver.py 10.10.1.1:12345/mnt --rundeps access --hidepass

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐