How to list the current ftp connections?


 
Thread Tools Search this Thread
Operating Systems AIX How to list the current ftp connections?
# 1  
Old 01-17-2012
How to list the current ftp connections?

Hello,
I need to know How to list the ""current"" ftp connections?
the machine is AIX 6.1




Regards
Ahmed Amer
Cairo,Egypt
# 2  
Old 01-17-2012
Try
Code:
ps -ef|grep ftpd

This should show actual connections in progress, but it is jsut a snapshot, of course.



I hope that this helps



Robin
Liverpool/Blackburn
UK

Last edited by rbatte1; 01-17-2012 at 11:21 AM.. Reason: Spelling correction!
This User Gave Thanks to rbatte1 For This Post:
# 3  
Old 01-17-2012
Thanks a lot Robin Smilie
# 4  
Old 01-17-2012
Not tried on AIX but this work on HP-UX because ftp sessions do not appear in utmp (used by "who") but do appear in "wtmp" (used by last).
Code:
last | grep " ftp "|grep "still logged in"

# 5  
Old 01-17-2012
@methyl

It kinda worked with me!

#last |grep "ftp" |grep in (AIX 6.1)
# 6  
Old 01-23-2012
MySQL alternate way thru netstat

try :
$ netstat -a | grep ftp
hth

Last edited by DukeNuke2; 01-23-2012 at 07:40 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

What is the command used to list all connections on a host?

give the syntax (3 Replies)
Discussion started by: sonu pandey
3 Replies

2. UNIX for Advanced & Expert Users

Want to download a latest file with current date from FTP location

Dear Friends, I need help to write a shell / perl script to download the files from FTP location, having different file names (date inside the file name). Example: Mar 5 09:24 cfx_03052013_return_file.txt Mar 6 02:13 cfx_03062013_return_file.txt Mar 7 06:40... (3 Replies)
Discussion started by: Praveen Pandit
3 Replies

3. UNIX for Advanced & Expert Users

Not logging ftp connections in /var/adm/wtmpx file (in last command output)

Hi all, I have F5 load balancer on my system and checking service status by opening an ftp session in every 30 seconds. These ftp sessions are being logged in /var/adm/wtmpx and filling up the file. when i run the last command most of the output is this ftp session. I was wondering if there is a... (1 Reply)
Discussion started by: cepxat
1 Replies

4. UNIX for Dummies Questions & Answers

current day remote files from FTP

Hi All, I have to work on a korn shell script to pick up only the current day files dropped on the remote server (using ftp). The file do not have daytimestamp on it. It has to be based on server time (AIX) The file naming convention is "test_file.txt" When I log in into the ftp account... (15 Replies)
Discussion started by: pavan_test
15 Replies

5. UNIX for Dummies Questions & Answers

Need to know if there are ftp connections in my machine

Hello, I need to know if there are ftp connections in my machine. How can I find out that?any commands to use? PS: i know how to find which users are on my machine now by using #who -r regards (2 Replies)
Discussion started by: ahmedamer12
2 Replies

6. Programming

FTP - reusing data connections

Hi there, This may be a stupid question, but... Is it possible to use one data connection channel initiated on a FTP server for sending multiple commands (LIST, NLST, MLSD)? Thanks in advance! (1 Reply)
Discussion started by: Yezu
1 Replies

7. AIX

loggin incoming ftp connections in syslog

Hello, we recently configured syslog on one of our machines with the following line in /etc/syslog.conf *.info /audit/syslog.log rotate time 1d compress However it does not seem to be logging incoming ftp connections, only outgoing ftp connections? Is there a way to log incoming ftp... (2 Replies)
Discussion started by: zuessh
2 Replies

8. UNIX for Advanced & Expert Users

How to FTP all newly created but the current open file?

An application running on HP-UX constantly generates new text log files ( I think using logpipe ). Any new file created requires to be ftp'ed to an offline server, however I want to make sure that the current file being written should not be transferred. For examples consider the following files... (3 Replies)
Discussion started by: indianya
3 Replies

9. BSD

ipfw slow ssh and ftp connections

just as the title says. thanks. #General Rule Sets /sbin/ipfw add 0300 check-state /sbin/ipfw add 0301 deny tcp from any to any in established /sbin/ipfw add 0302 pass tcp from any to any out setup keep-state /sbin/ipfw add 0303 pass udp from any to any out #SSH FTP /sbin/ipfw add 0400... (11 Replies)
Discussion started by: dwildgoose
11 Replies
Login or Register to Ask a Question