03-27-2008
I think lftp has such client log files, but cannot be 100% sure, I don't have it handy to check. What I have is "ncftp" :
cd $HOME/.ncftp
Listing the files will reveal "history" file and "trace" file :
history holds all the commands executed, and trace looks like this :
Quote:
SESSION STARTED at: 2008-03-11 11:14:20 EET +0200
Program Version: NcFTP 3.2.1/349 Jul 29 2007, 09:55 AM
Library Version: LibNcFTP 3.2.1 (August 13, 2007)
Process ID: 5687
Platform: linux-x86-glibc2.6
Hostname: myhost.mycompany.net (rc=2)
Terminal: xterm
11:14:20 Fw: Type: 0 User: Pass: (none) Port: 0
11:14:20 FwExceptions: .mycompany.net,localdomain
11:14:22 > help
11:14:23 >
11:14:23 >
11:14:23 >
11:14:23 >
SESSION ENDED at: Tue Mar 11 11:14:28 2008
That's all I can think of, HTH.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi ,
I am a newbie to unix,linux i have a fedora core 4 linux. I had set it up as a pptp vpn client to a windows pptp server. Everything was working fine. Recently i saw that there were many attempts to hack into the root login using ssh. so i changed the ssh port,the ssh portocol to 2. And... (0 Replies)
Discussion started by: qais
0 Replies
2. UNIX and Linux Applications
Folks
I am on a quest....
I am looking for a lightweight FTP client capable of FTPS and or SFTP that has good audit and logging capabilities without requiring a central server component. My platforms are Linux, Solaris, AIX, and Windows Server.
The kicker is I have found things that meet the... (3 Replies)
Discussion started by: ArtF
3 Replies
3. UNIX for Dummies Questions & Answers
Hi.
Is there a way or command (other than netstat) in Unix to find out or get a list a users who FTP into a particular server? Like, say last 1000 users. I need to get the user ID (any info), who FTP to a particular server.
netstat gives only the users who have an FTp session currently.
... (2 Replies)
Discussion started by: manisendhil
2 Replies
4. Linux
Hi,
I need to get a hostory of users who FTP into a server. How can I do it in Linux/Unix? Is there a command for this? I do not want to use netstat -a as it gives only the list of users who have a session currently on the server. Can this be done with the "last" command?
Please do let me... (0 Replies)
Discussion started by: manisendhil
0 Replies
5. UNIX for Advanced & Expert Users
Hi.
Is there a way or command (other than netstat) in Unix to find out or get a list a users who FTP into a particular server? Like, say last 1000 users. I need to get the user ID (any info), who FTP to a particular server.
netstat gives only the users who have an FTp session currently.
... (4 Replies)
Discussion started by: manisendhil
4 Replies
6. Solaris
Hi
I currently have a Windows mapped network drive on a PC which is connected to the network. Also on the network is a Solaris box running Solaris 8 which I can view (root file system) from the Windows PC.
The mapped network syntax is sharename\\server name. When I select this mapped drive on... (3 Replies)
Discussion started by: jamba1
3 Replies
7. Shell Programming and Scripting
Hi Guys,
I am trying to capture the FTP Logs in a log file.
I am using the below code.
ftp -d -n -v $Remote_Host << EOD > $Ftp_LOG;
Since iam running the script in debug mode, i am able to see that the ftp is done and the file has been transferred.
But the log file does not have... (7 Replies)
Discussion started by: mac4rfree
7 Replies
8. Linux
Hello everyone. I have a script that telnets into a linux workstation and restarts a service, while logging the session to a file. I'm kind of new to linux so when I was using windows I would capture something like
windows cli: telnet xxx.xxx.xxx.xxx -f c:/capture.log
...
# /sbin/service... (3 Replies)
Discussion started by: Elyas_cr
3 Replies
9. Shell Programming and Scripting
I am new to Shell scripting and below is my requirement.
I need to search some specific word e.g. "exception" or "transaction" from log file.
We have multiple env e.g. Level1 , Level2 etc and each env have Multiple boxes e.g. For Level 1 env we have "test11.test.com" , "test12.test.com".
Each... (1 Reply)
Discussion started by: peeyush
1 Replies
10. UNIX for Beginners Questions & Answers
How to see the status of all the ftp put & get files logs and curent ftp transfer status if any active ftp running in the background ? (2 Replies)
Discussion started by: i4ismail
2 Replies
ncftpls(1) General Commands Manual ncftpls(1)
NAME
ncftpls - Internet file transfer program for scripts
SYNOPSIS
ncftpls [options] ftp://url.style/host/path/name/
OPTIONS
Command line flags:
-m Use a machine readable list format, if the server supports it. This requires that the server software support the MLSD extensions,
and many implementations do not have these features.
-1 Most basic format, one item per line.
-l Long list format.
-C Columnized list format. This is the default list format.
-R Recurse all subdirectories while listing.
-a Show all files, if server allows it (as in "/bin/ls -a").
-i XX Filter the listing (if server supports it) with the wildcard XX.
-x -XX Set the ls flags to use on the server.
-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.
-t XX Timeout after XX seconds.
-E Use regular (PORT) data connections.
-F Use passive (PASV) data connections. The default is to use passive, but to fallback to regular if the passive connection fails or
times out.
-r XX Redial a maximum of XX times until connected to the remote FTP server.
-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.
The -W, -X, and -Y options are useful for advanced users who need to tweak behavior on some servers. For example, users accessing
mainframes might need to send some special SITE commands to set blocksize and record format information.
For these options, you can use them multiple times each if you need to send multiple commands. For the -X option, you can use the
cookie %s to expand into the name of the file that was transferred.
-o XX Set advanced option XX.
This option is used primarily for debugging. It sets the value of an internal variable to an integer value. An example usage
would be: -o useFEAT=0,useCLNT=1 which in this case, disables use of the FEAT command and enables the CLNT command. The available
variables include: usePASV, useSIZE, useMDTM, useREST, useNLST_a, useNLST_d, useFEAT, useMLSD, useMLST, useCLNT, useHELP_SITE,
useSITE_UTIME, STATfileParamWorks, NLSTfileParamWorks, require20, allowProxyForPORT, doNotGetStartCWD.
DESCRIPTION
The purpose of ncftpls is to do remote directory listings using the File Transfer Protocol without entering an interactive shell. This
lets you write shell scripts or other unattended processes that can do FTP.
The default behavior is to print the directory listing in columnized format (i.e. ls -CF), but that is not very useful for scripting. This
example uses the -1 flag, to print one file per line:
$ ncftpls -1 ftp://ftp.ncftp.com/pub/ncftp/
You can also do a remote "ls -l", by using "ncftpls -l". If you want to try other flags, you have to use them with the -x flag. For exam-
ple, if you wanted to do a remote "ls -lrt", you could do this:
$ ncftpls -x "-lrt" ftp://ftp.ncftp.com/pub/ncftp/
By default the program tries to open the remote host and login anonymously, but you can specify a username and password information like
you can with ncftpget or ncftpput.
Note that the standard specifies that URL pathnames are are relative pathnames. For FTP, this means that URLs specify relative pathnames
from the start directory, which for user logins, are typically the user's home directory. If you want to use absolute pathnames, you need
to include a literal slash, using the "%2F" code for a "/" character. Examples:
$ ncftpls -u linus ftp://ftp.kernel.org/%2Fusr/src/
$ ncftpls ftp://steve@ftp.apple.com/%2Fetc/
DIAGNOSTICS
ncftpls returns the following exit values:
0 Success.
1 Could not connect to remote host.
2 Could not connect to remote host - timed out.
3 Transfer failed.
4 Transfer failed - timed out.
5 Directory change failed.
6 Directory change failed - timed out.
7 Malformed URL.
8 Usage error.
9 Error in login configuration file.
10 Library initialization failed.
11 Session initialization failed.
AUTHOR
Mike Gleason, NcFTP Software (http://www.ncftp.com).
SEE ALSO
ncftpput(1), ncftpget(1), ncftp(1), ftp(1), rcp(1), tftp(1).
LibNcFTP (http://www.ncftp.com/libncftp/).
ncftpls NcFTP Software ncftpls(1)