How to check if any files are being FTP'ed currently ?


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers How to check if any files are being FTP'ed currently ?
# 1  
Old 02-26-2019
How to check if any files are being FTP'ed currently ?

how to check if any files are being FTP'ed currently ? both FTP in and FTP out. And is there any system log for all the FTP activities ?
# 2  
Old 02-26-2019
Quote:
Originally Posted by i4ismail
how to check if any files are being FTP'ed currently ? both FTP in and FTP out. And is there any system log for all the FTP activities ?
ftp uses a certain port, yes? Now, issue a

Code:
netstat -ant tcp | grep ESTABLISHED

and look for connections using that port.

I hope this helps.

bakunin
# 3  
Old 02-26-2019
If you could tell us what OS (UNIX) exactly you are running, then we can give you a definite answer. NetApp ftp does log all requests, for example. Other ftpd servers do not log anything, except special case errors which go to syslog. The most likely answer is: your ftp does not log. Find and install one that does. Especially if this problem is related to a security issue.

sftp is a much better choice security wise, and it comes with most all UNIXes. It can log events. Give it VERY serious consideration.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to check whether files are transferred or not using ftp?

Hi, i want to execute a shell script which transfers files from one server to another using ftp in unix. How can i check whether the ftp is successful or not.(i.e files are transferred to destination server). because if i am checking the return code of ftp, it always shows 0 (denoting ftp is... (5 Replies)
Discussion started by: Little
5 Replies

2. Shell Programming and Scripting

Perl code to check date and check files in particular dir

Hi Experts, I am checking how to get day in Perl. If it is “Monday” I need to process…below is the pseudo code. Can you please prove the code for below condition. if (today=="Monday" ) { while (current_time LESS THAN 9:01 AM) ... (1 Reply)
Discussion started by: ajaypatil_am
1 Replies

3. UNIX Desktop Questions & Answers

Need to ftp some files, and check the number of rows in the transferd file

1)I need to write a script which ftps 3 files to a unix box, 2)once the files are ftped i need to check the number of rows in each file and compare it with the data (no of rows) coming in a manifest file, if the number of rows in each file matches the data coming in manifest file, then i need to... (3 Replies)
Discussion started by: imran_affu
3 Replies

4. Shell Programming and Scripting

Check file, before FTP

:mad: Hi All, I have written a script, which will get the file from other server through FTP. It is working fine, but i want to add a code which should first check, if the file is available in the source system and then do FTP, once successfully completed, it should delete the file. Is... (4 Replies)
Discussion started by: Amit.Sagpariya
4 Replies

5. Shell Programming and Scripting

file check before FTP

Hi I use a shell script to transfer files from UNIX to Windows 2000 server before the FTP i need to check whether any files with the same name exists. If the files are already present it need not be FTPed else the file should be FTPed. Kindly help me. (2 Replies)
Discussion started by: Codesearcher
2 Replies

6. Shell Programming and Scripting

How do I write a ksh script that will check if all ftp files are received?

I am trying to code a ksh script that will check to see if all 26 incoming ftp files have been received before proceeding to the next function, which is to rename each file. Here is the pseudo-code of what I am trying to do: <<STEP_1>> IF all ALS files have been transmitted then... (2 Replies)
Discussion started by: doug145
2 Replies

7. Shell Programming and Scripting

Check FTP Status

To all, I need to run a ftp command in one of my scripts and I need to evaluate what happens after it's done. The problem is the script would not capture the ftp responses. If I type the same thing on the command line, I get all kinds of responses. I would like to capture the same responses in... (2 Replies)
Discussion started by: april
2 Replies

8. UNIX for Advanced & Expert Users

Using FTP to check whether file is completely FTP... plz find the description below

Hi, We have some clients who will place huge files in to one of the remote server. And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients. My question Is there any FTP command/script to check from my local... (1 Reply)
Discussion started by: nmsrao
1 Replies

9. Shell Programming and Scripting

How to check the FTP Status?

Hi, I wrote a script that is generating a file and then i have to ftp this file on another server. For this i am using mput to put the file. How can i make sure that the file was ftp'd correctly to the another server, is there any status check ? Thanks. (1 Reply)
Discussion started by: smc3
1 Replies

10. Shell Programming and Scripting

Ftp Status Check

Hi, I'm using the below script to ftp the file passed as 3rd argument. I'm passing the source and destination directory as 1st and 2nd argument. This script does the ftp successfully. The script displays the echo before ftp stmt and does the ftp and does not display the stmts after that... (4 Replies)
Discussion started by: acheepi
4 Replies
Login or Register to Ask a Question