Skip to main content

ncftp FTP client


参考リンク
ncftpのコマンド試した履歴
-------------------------------------------------
ncFTP
http://www.ncftp.com/ncftp/
http://peryaudo.hatenablog.com/entry/20100601/1275402835
http://lovepeers.org/2012/09/21/ftp-upload-recursively/
http://linux.math.tifr.res.in/manuals/man/ncftp.html
http://www.ncftp.com/ncftp/doc/ncftp.html

BusyBox
http://www.busybox.net/downloads/BusyBox.html
-------------------------------------------------
Option:
connect-timeout
Previous versions of the program used a single timeout value for everything. You can now have different values for different operations. However, you probably do not need to change these from the defaults unless you have special requirements.
 
The connect-timeout variable controls how long to wait, in seconds, for a connection establishment to complete before considering it hopeless. You can choose to not use a timeout at all by setting this to -1.
control-timeout
This is the timer used when ncftp sends an FTP command over the control connection to the remote server. If the server hasn't replied in that many seconds, it considers the session lost.
xfer-timeout
This timer controls how long to wait for data blocks to complete. Don't set this too low or else your transfers will timeout without completing.
 
/tmp # ncftpget
NcFTPGet 3.1.7

Usages:
  ncftpget [flags] remote-host local-dir remote-path-names...   (mode 1)
  ncftpget -f login.cfg [flags] local-dir remote-path-names...  (mode 2)
  ncftpget [flags] ftp://url.style.host/path/name               (mode 3)
  ncftpget -c [flags] remote-host remote-path-name > stdout (mode 4)
  ncftpget -c [flags] ftp://url.style.host/path/name > stdout (mode 5)

Flags:
  -u XX  Use username XX instead of anonymous.
  -p XX  Use password XX with the username.
  -P XX  Use port number XX instead of the default FTP service port (21).
  -d XX  Use the file XX for debug logging.
  -a     Use ASCII transfer type instead of binary.
  -t XX  Timeout after XX seconds.
  -v/-V  Do (do not) use progress meters.
  -f XX  Read the file XX for host, user, and password information.
  -A     Append to local files, instead of overwriting them.
  -z/-Z  Do (do not) not try to resume downloads (default: -z).
  -E     Use regular (PORT) data connections.
  -F     Use passive (PASV) data connections (default).
  -DD    Delete remote file after successfully downloading it.
  -b     Run in background (submit job to "ncftpbatch" and run).
  -bb    Same as "-b" but queue only (do not run "ncftpbatch").
  -B XX  Try setting the SO_RCVBUF size to XX.
  -r XX  Redial XX times until connected.
  -W XX  Send raw FTP command XX after logging in.
  -X XX  Send raw FTP command XX after each file transferred.
  -Y XX  Send raw FTP command XX before logging out.
  -R     Recursive mode; copy whole directory trees.
  -T     Do not try to use TAR mode with Recursive mode.

Examples:
  ncftpget ftp.freebsd.org . /pub/FreeBSD/README.TXT /pub/FreeBSD/index.html
  ncftpget ftp.gnu.org /tmp '/pub/gnu/README.*'
  ncftpget ftp://ftp.freebsd.org/pub/FreeBSD/README.TXT
  ncftpget -R ftp.ncftp.com /tmp /ncftp  (ncftp is a directory)
  ncftpget -u gleason -p my.password Bozo.probe.net . '/home/mjg/.*rc'
  ncftpget -u gleason Bozo.probe.net . /home/mjg/foo.txt  (prompt for password)
  ncftpget -f Bozo.cfg '/home/mjg/.*rc'
  ncftpget -c ftp.freebsd.org /pub/FreeBSD/README.TXT | /usr/bin/more
  ncftpget -c ftp://ftp.freebsd.org/pub/FreeBSD/README.TXT | /usr/bin/more

start 11:20:10, first 11:20:40, second 11:20:50
start 11:24:20, first 11:20:50, second, 12:25:20, last 12:25:50
90秒後終了。3回トライしている模様。

~ # ncftpget  -V -g 1 -u anonymous -p x -t 900,30,60  -B 8192 10.215.250.81 . config-1
Could not connect to 10.215.250.81 -- try again later: Connection timed out.
Could not connect to 10.215.250.81 -- try again later: Connection timed out.
Could not connect to 10.215.250.81 -- try again later: Connection timed out.

以下は2回トライしているか。
~ # cftpget  -V -g 1 -u anonymous -p x -t 120  -B 8192 10.215.250.81. config-1
Could not connect to 10.215.250.81 -- try again later: Connection timed out.
Could not connect to 10.215.250.81 -- try again later: Connection timed out.

start 11:37:00,  second 11:39:00, 11:42:00 (retry once)

Comments

Popular posts from this blog

SNMP mib file installation

Step1: Installing private MIB file and changing SNMP configuration on PC Refeering to the following link for private mibs: http://changineer.info/server/monitoring/monitoring_snmp.html http://wiki.pomme-tech.com/index.cgi?page=%A5%D7%A5%E9%A5%A4%A5%D9%A1%BC%A5%C8MIB%A4%CE%C4%C9%B2%C3&print=1 http://www.lesstep.jp/step_on_board/linux/23/ Refeering to the following link for errors related to mibs: http://www.zabbix.jp/node/3056 http://serverfault.com/questions/440319/did-not-find-zerodotzero-in-module-snmpv2-smi Step2. installing private mib files in an appropriate directory(/usr/share/snmp/private-bims) Step3. changing snmp.conf files. You may need to create an empty new file NOT snmpd.conf. ---------------------------------------- /etc/snmp/snmp.conf MIBDIRS /usr/share/snmp/mibs:/usr/share/snmp/private-bims MIBS all ---------------------------------------- Step4: Checking the output before and after installing private mib files. You don't need to restart th

SNMP mib tips: snmpwalk & snmptranslate

Referring to this web site: https://gist.github.com/bahootyper/575190 The following explanations are about snmpwalk & snmptranslate command options. #Displayes every OID $ snmptranslate -Tp #Dispaly OID label(MIB name) from OID $ snmptranslate .1.3.6.1.4.1.14823.2.2.1.1.2.1.1.2 WLSX-SWITCH-MIB::userPhyAddress #Dispaly MIB tree name from OID label #-IR: label,  -Tp: tree option $ snmptranslate -IR -Tp nUser6Name +-- -R-- String    nUser6Name(3)          Textual Convention: DisplayString          Size: 0..128 #Dispaly MIB tree name from OID label #-IR: label,  -Tp: tree option $ snmptranslate -Tp .1.3.6.1.4.1.14823.2.2.1.14.1.2.1.3 +-- -R-- String    nUser6Name(3)          Textual Convention: DisplayString          Size: 0..128 # OID's detailed option $ snmptranslate -Td .1.3.6.1.4.1.14823.2.2.1.14.1.2.1.3 WLSX-USER6-MIB::nUser6Name nUser6Name OBJECT-TYPE   -- FROM WLSX-USER6-MIB   -- TEXTUAL CONVENTION DisplayString   SYNTAX OCTET STRING (0..1

ettercap on MAC OSX

TK-MBA-2:~ taka$ brew info ettercap ettercap: stable 0.8.2 (bottled), HEAD Multipurpose sniffer/interceptor/logger for switched LAN https://ettercap.github.io/ettercap/ /usr/local/Cellar/ettercap/0.8.2_1 (75 files, 2.3MB) *   Poured from bottle on 2017-05-25 at 14:14:48 From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/ettercap.rb ==> Dependencies Build: cmake ✘ , ghostscript ✘ Required: pcre ✔ , libnet ✔ , openssl ✔ Optional: ghostscript ✘ , gtk+ ✘ , gtk+3 ✘ , luajit ✘ ==> Options --with-ghostscript Build with ghostscript support --with-gtk+ Build with gtk+ support --with-gtk+3 Build with gtk+3 support --with-luajit Build with luajit support --without-curses Install without curses interface --without-ipv6 Install without IPv6 support --without-plugins Install without plugins support --HEAD Install HEAD version TK-MBA-2:~ taka$ ettercap --with-gtk+ ettercap 0.8.2 copyright 2001-2015 Ettercap