- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Ftp log file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2005 11:25 PM
тАО01-09-2005 11:25 PM
Ftp log file
Is there any log file when what the files get or put after using ftp.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2005 11:33 PM
тАО01-09-2005 11:33 PM
Re: Ftp log file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 01:12 AM
тАО01-10-2005 01:12 AM
Re: Ftp log file
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u 027 -i -o
The -l will log in syslog but the input and output logs will be found in the same directory (/var/adm/syslog/) in the file: xferlog. See the man page for xferlog.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 01:13 AM
тАО01-10-2005 01:13 AM
Re: Ftp log file
inetd -c
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 02:32 AM
тАО01-10-2005 02:32 AM
Re: Ftp log file
My understanding is that -1 turns on the logging (and goes to /var/adm/syslog/syslog.log), but if you use the -i it logs all incoming files to the /var/adm/syslog/xferlog. -o logs all outgoing files to /var/adm/syslog/xferlog. If you do not do the -o or -i all transfers (and cd's etc) go to /var/adm/syslog/syslog.log.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 03:10 AM
тАО01-10-2005 03:10 AM
Re: Ftp log file
you should find it in /var/adm/syslog/syslog.log
or according to Gary's options in
/var/adm/syslog/xferlog ;-)
rgds Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 03:32 AM
тАО01-10-2005 03:32 AM
Re: Ftp log file
As others have mentioned here to track the ftp the log option need to be enabled on the /etc/inetd.conf file with a -l option and it will write on /var/adm/syslog/syslog.log.
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 05:17 AM
тАО01-10-2005 05:17 AM
Re: Ftp log file
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 06:32 AM
тАО01-10-2005 06:32 AM
Re: Ftp log file
My inetd.conf has the following
ftpd -v -l -L
And I see gets (RETR) and puts (STOR) in my /var/adm/syslog/syslog.log file.
Now that I look at this, it appears that it's due to the -L (logs all commands).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 07:02 AM
тАО01-10-2005 07:02 AM
Re: Ftp log file
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-10-2005 10:01 AM
тАО01-10-2005 10:01 AM
Re: Ftp log file
We commonly script our ftp jobs and capture the output to a file. i.e.
#! /bin/ksh
ftp -n -v << endl >> /home/someone/work/ftp.log
open some_server
user username userpassword
get some_file.txt (or put)
quit
endl
As you can see, this is a simplified ftp job that will log all action to ftp.log in somone's home directory. Instead of harcoding in the user name and password, one should use a .netrc file.
Search on .netrc and you will find the explanation of how this will eliminate the need for username and password.
Regards,
dl