Re: rsh messages and wtmp
- From: "Davignon, Edward" <Edward.Davignon@xxxxxxxxxxxxxx>
- Date: Wed, 30 May 2007 09:23:15 -0400
You could use fwtmp and grep to trim wtmp on a regular basis.
Here are some commands from the fwtmp man page:
/usr/sbin/acct/fwtmp < /var/adm/wtmp > dummy.file
/usr/sbin/acct/fwtmp -ic < dummy.file > /var/adm/wtmp
Edward.Davignon@xxxxxxxxxxxxxx
Lead Analyst - Distributed Systems
Utility Shared Services - IT
Energy East Corporation
Office Phone: (585) 771-4952
________________________________
From: IBM AIX Discussion List [mailto:aix-l@xxxxxxxxxxxxx] On Behalf Of
Robert Miller
Sent: Tuesday, May 29, 2007 6:32 PM
To: aix-l@xxxxxxxxxxxxx
Subject: rsh messages and wtmp
Folks,
We have a box that copies several files to other boxes via rcp using a
shell script. The script runs once a minute through cron.
This causes quite a few rsh messages in wtmp, which I have had to clear
out on a consistent basis. I have had the author of the script pare the
copies down to the bare minimum, which has helped, but I'm still in the
same boat - it just takes longer to fill up.
Unfortunately, NFS isn't really an option because we can't use
hardmounts, and the automounter has caused me more grief than I'd like
to think about. I'm also not really wild about the idea of having
.netrc files sitting around if I can avoid it - and I believe ftp would
still cause an entry in wtmp anyways.
Other than rolling off the wtmp file to tape every week or month (the
rsh messages take up 90+% of the wtmp file), does anyone have any ideas
on how to move these files around using a script, without causing a
bunch of messages in wtmp?
TIA,
--rm
- Follow-Ups:
- Re: rsh messages and wtmp
- From: Robert Miller
- Re: rsh messages and wtmp
- References:
- rsh messages and wtmp
- From: Robert Miller
- rsh messages and wtmp
- Prev by Date: Re: rsh messages and wtmp
- Next by Date: Re: rsh messages and wtmp
- Previous by thread: Re: rsh messages and wtmp
- Next by thread: Re: rsh messages and wtmp
- Index(es):
Relevant Pages
|
|