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


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Not logging ftp connections in /var/adm/wtmpx file (in last command output)
# 1  
Old 11-29-2012
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 way not keep log of these ftp sessions on /var/adm/wtmpx file.

Sample:
Code:
root@ppstest01 # last | more
testftp   ftp          192.168.200.94   Fri Nov 30 09:57 - 09:57  (00:00)
testftp   ftp          192.168.200.93   Fri Nov 30 09:57 - 09:57  (00:00)
testftp   ftp          192.168.200.94   Fri Nov 30 09:56 - 09:56  (00:00)
testftp   ftp          192.168.200.93   Fri Nov 30 09:56 - 09:56  (00:00)
testftp   ftp          192.168.200.94   Fri Nov 30 09:56 - 09:56  (00:00)
testftp   ftp          192.168.200.93   Fri Nov 30 09:56 - 09:56  (00:00)
testftp   ftp          192.168.200.94   Fri Nov 30 09:55 - 09:55  (00:00)
testftp   ftp          192.168.200.93   Fri Nov 30 09:55 - 09:55  (00:00)
testftp   ftp          192.168.200.94   Fri Nov 30 09:55 - 09:55  (00:00)
testftp   ftp          192.168.200.93   Fri Nov 30 09:55 - 09:55  (00:00)


Last edited by Scott; 11-29-2012 at 10:54 PM.. Reason: Please use code tags
# 2  
Old 11-30-2012
You can use -W option on command line while starting ftpd process to disable ftp login/logout sessions recording into wtmpx file.

Check the ftpd manual here
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Local zone is not logging systems messages to /var/adm/messages

This is isolated to just 1 non-global zone out of many zones managed This is a Solaris 11 system on SPARC This is NOT a branded zone syslogd is active This came to our attention when one of our scripts didn't run over the weekend prompting us to check our messages logging in... (6 Replies)
Discussion started by: samthewildone
6 Replies

2. Shell Programming and Scripting

Want to separate my /var/adm/messages output

Hi, Please help to seprate my /var/adm/messages output. Than i want to take this output in the excel. e,g cat /var/adm/messages Sep 4 10:16:52 ibsadm1 inetd: vnetd from 172.17.5.20 38353 Sep 4 10:16:52 ibsadm1 inetd: bpcd from 172.17.5.20 915 Sep 4 10:16:55 ibsadm1 inetd: ... (5 Replies)
Discussion started by: nirjhar17
5 Replies

3. Solaris

Difference between /var/log/syslog and /var/adm/messages

Hi, Is the contents in /var/log/syslog and /var/adm/messages are same?? Regards (3 Replies)
Discussion started by: vks47
3 Replies

4. AIX

/var/adm/messages file is missing

Hi, The server is p570 with AIX@5300-10... The messages file is missing...how do I get it back and start logging the messages?? Can I just create the file again? (2 Replies)
Discussion started by: gkr747
2 Replies

5. Solaris

/var/adm/meesages file empty

Do not know the reason y messages file is empty already restarted the syslog daemon but still its showing empty . xxxxxxx# more /var/adm/messages xxxxxx# # ps -efo zone,pid,ppid,time,comm | grep syslog | grep global global 11861 1 00:10 /usr/sbin/syslogd svcs... (2 Replies)
Discussion started by: fugitive
2 Replies

6. Solaris

/var/adm/messages file rotation

I have a solaris 10 machine, lately I had a drive error issue so the dmesg command would show a screen full, now that the drive issue is resolved I want to have a fresh start for my #dmesg command output. The root cron looks like this The /etc/logadm.conf file has this entry If I manually... (2 Replies)
Discussion started by: Tirmazi
2 Replies

7. Solaris

diff b/w /var/log/syslog and /var/adm/messages

hi sirs can u tell the difference between /var/log/syslogs and /var/adm/messages in my working place i am having two servers. in one servers messages file is empty and syslog file is going on increasing.. and in another servers message file is going on increasing but syslog file is... (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

8. AIX

Impacts of emptying /var/adm/wtmp file ?

In our operating procedures, if a workstation has a space problem in the /var filesystem, one of the most frequent case we were told is the size of the /var/adm/wtmp file. Someone once told me it is dangerous to do this. Is it ? I cannot say for certain that whomever wrote that procedure is... (2 Replies)
Discussion started by: Browser_ice
2 Replies

9. Solaris

stop wtmpx logging

Hello One of our applications initiates an ftp logon to itself twice every second ...(to check some files or something im not sure) but every time it does this it logs an entry into the wtmpx database, this file is now getting absolutely huge and whilst I know that I could implement some type of... (1 Reply)
Discussion started by: hcclnoodles
1 Replies

10. UNIX for Advanced & Expert Users

how to delete entry in file "wtmpx"(/var/adm/wtmpx)

Do someone know how to delete entry(some lines) in file "wtmpx" that command "last" use it. this file is binary so I cannot edit directy. ========================= #last root pts/1 noc Fri Mar 3 22:04 still logged in root pts/1 noc Fri Mar 3 22:01 - 22:02 ... (4 Replies)
Discussion started by: arm_naja
4 Replies
Login or Register to Ask a Question

Featured Tech Videos