<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    JUST DO IT ~

    我只想當個程序員

    網絡命令 iperf vnstat scp


    網絡測試
    安裝:
     sudo apt install iperf 
     brew install  iperf 

     ~~~~~~~~~~~~~~~~~~~~~
    tcp 測試
    服務器:
                iperf -s 

    客戶端: 
                iperf -c   服務ip

    udp 測試
    server :
                     iperf -s -u 
    client :

                     iperf -c ip  -u

                     iperf -c ip -u  -i 10 -f m

    -u 使用udp 

    -i  間隔報告時間

    -f m 顯示M單位 

    -n 長度  發送特定長度 
    -t  1000 發送時間持續1000秒
     






    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    scp 命令

    拷貝到遠程機器
    scp solarized.zip  gao@10.0.0.124:~


    從遠程拷貝本地

    scp -r root@192.168.120.204:/opt/soft/mongodb /opt/soft/


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    監控網卡帶寬

    sudo api install vnstat 

    brew install vnstat    

    http://humdi.net/vnstat/
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    參考:

    iperf vnstat  網絡監控入門
    http://www.yangchenyun.com/2012/02/measure-network-performance/

    每天一個linux命令scp
    http://www.cnblogs.com/peida/archive/2013/03/07/2947326.html



    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    /usr/local/Cellar/coreutils/8.23_1/bin> iperf --help

    Usage: iperf [-s|-c host] [options]

           iperf [-h|--help] [-v|--version]


    Client/Server:

      -f, --format    [kmKM]   format to report: Kbits, Mbits, KBytes, MBytes

      -i, --interval  #        seconds between periodic bandwidth reports---------> 多少秒 分段 報告

      -l, --len       #[KM]    length of buffer to read or write (default 8 KB)

      -m, --print_mss          print TCP maximum segment size (MTU - TCP/IP header)

      -o, --output    <filename> output the report or error message to this specified file

      -p, --port      #        server port to listen on/connect to

      -u, --udp                use UDP rather than TCP

      -w, --window    #[KM]    TCP window size (socket buffer size)

      -B, --bind      <host>   bind to <host>, an interface or multicast address

      -C, --compatibility      for use with older versions does not sent extra msgs

      -M, --mss       #        set TCP maximum segment size (MTU - 40 bytes)

      -N, --nodelay            set TCP no delay, disabling Nagle's Algorithm

      -V, --IPv6Version        Set the domain to IPv6


    Server specific:

      -s, --server             run in server mode

      -U, --single_udp         run in single threaded UDP mode

      -D, --daemon             run the server as a daemon


    Client specific:

      -b, --bandwidth #[KM]    for UDP, bandwidth to send at in bits/sec

                               (default 1 Mbit/sec, implies -u)

      -c, --client    <host>   run in client mode, connecting to <host>

      -d, --dualtest           Do a bidirectional test simultaneously

      -n, --num       #[KM]    number of bytes to transmit (instead of -t)  --------> 發送長度

      -r, --tradeoff           Do a bidirectional test individually

      -t, --time      #        time in seconds to transmit for (default 10 secs)   ------>   每秒發送次數 

      -F, --fileinput <name>   input the data to be transmitted from a file

      -I, --stdin              input the data to be transmitted from stdin

      -L, --listenport #       port to receive bidirectional tests back on

      -P, --parallel  #        number of parallel client threads to run

      -T, --ttl       #        time-to-live, for multicast (default 1)

      -Z, --linux-congestion <algo>  set TCP congestion control algorithm (Linux only)


    Miscellaneous:

      -x, --reportexclude [CDMSV]   exclude C(connection) D(data) M(multicast) S(settings) V(server) reports

      -y, --reportstyle C      report as a Comma-Separated Values

      -h, --help               print this message and quit

      -v, --version            print version information and quit


    [KM] Indicates options that support a K or M suffix for kilo- or mega-


    The TCP window size option can be set by the environment variable

    TCP_WINDOW_SIZE. Most other options can be set by an environment variable

    IPERF_<long option name>, such as IPERF_BANDWIDTH.


    Report bugs to <iperf-users@lists.sourceforge.net>

    /usr/local/Cellar/coreutils/8.23_1/bin> 


    posted on 2015-05-01 22:43 小高 閱讀(373) 評論(0)  編輯  收藏 所屬分類: LinuxMac OSXGUN命令

    導航

    <2015年5月>
    262728293012
    3456789
    10111213141516
    17181920212223
    24252627282930
    31123456

    統計

    常用鏈接

    留言簿(3)

    隨筆分類(352)

    收藏夾(19)

    關注的blog

    手冊

    搜索

    積分與排名

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲国产成人手机在线观看| 午夜老司机免费视频| 国产精品亚洲综合一区在线观看| 99在线免费视频| 亚洲欧美综合精品成人导航| 国产hs免费高清在线观看| 久久精品免费观看国产| 一级白嫩美女毛片免费| 久久亚洲精品AB无码播放| 亚洲国产成人精品女人久久久 | 国产精品V亚洲精品V日韩精品 | 久久精品国产亚洲av成人| 亚洲AⅤ优女AV综合久久久| 三年在线观看免费观看完整版中文 | 久久青青草原亚洲av无码app | 国产99久久久久久免费看| 亚洲国产综合AV在线观看| 亚洲一区在线免费观看| 久久久久亚洲精品天堂| 亚洲国产精品不卡在线电影| 亚洲日韩小电影在线观看| 人妻视频一区二区三区免费| 98精品全国免费观看视频| 最新国产乱人伦偷精品免费网站 | 亚洲av日韩av欧v在线天堂| 青青草国产免费久久久91| 亚洲免费网站观看视频| 真人做人试看60分钟免费视频| 日韩免费无码视频一区二区三区| 成人性生交大片免费看中文| 成年女人A毛片免费视频| 久久国产免费直播| 国产高清对白在线观看免费91 | 国产亚洲精品无码拍拍拍色欲| 亚洲午夜国产片在线观看| 久久久久亚洲AV成人网| 亚洲熟妇无码八AV在线播放| 亚洲热妇无码AV在线播放| 久久精品九九亚洲精品天堂| 亚洲国产成人私人影院| 亚洲综合一区二区精品久久|