in reply to FTP listening

Monitoring FTP usage is operating system dependent. For example, with Solaris the 'last' command can be filtered for ftp sessions. While 'netstat -a' can also be filtered if you know the listening address. If you are using NT you have my pity ;-) - but no help from me.

Replies are listed 'Best First'.
RE: RE: FTP listening
by Anonymous Monk on Apr 17, 2000 at 14:28 UTC
    The 'last' command looks doable. It works on Linux, (Redhat and Slackware), Unixware and an ancient Ultrix we have here. You could split on the output of 'last' looking for "ftp" and a "still logged in" line. If your utmp file is huge, you might might want to limit the output by time or number of lines With netstat you won't get the username, if thats important to you. If you are using NT, check out Win32::EventLog (Process Win32 Event Logs) on CPAN and Usrstat.exe (Displays user name, full name, and last logon date and time) from the NT Server Resource Kit.