Sponsored Content
Operating Systems Solaris Something is removing/deleting my wtmpx file? Post 302777565 by hicksd8 on Friday 8th of March 2013 06:10:22 AM
Old 03-08-2013
Yep, that's the script that deals with wtmpx and should "rotate" the logs. What you've posted looks normal to me but this isn't my forte.

I do know that sysadmins have been known to add lines into this script to cleardown everyday and I thought your previous sysadmins might have done that.

There are some real Solaris accounting wizards on this forum who can answer this faster than me. Let's wait for one of them to chip in.

Last edited by hicksd8; 03-08-2013 at 09:20 AM..
 

10 More Discussions You Might Find Interesting

1. 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

2. UNIX for Dummies Questions & Answers

wtmpx file

Hello everybody: the wtmpx file on my Sol8 machine, got so big (2GB), that my root partition is almost full now, can I empty that file, I read about it that it contains database of user access and auditing, so in case I emptied it will it affect my system?? Thanks alot (3 Replies)
Discussion started by: aladdin
3 Replies

3. Solaris

wtmpx file is too big

Hi, I am using Sun Solaris 5.9 OS. I have found a file called wtmpx having a size of 5.0 GB. I want to clear this file using :>/var/adm/wtmpx. My query is, would it cause any problem to the running live system. Could anyone suggest the best method to clear the file without causing problem to... (6 Replies)
Discussion started by: Vijayakumarpc
6 Replies

4. UNIX for Advanced & Expert Users

wtmpx file is not updating

Hi in my solaris 9 system wmptx file is not updating so it is not recording any login or logout or any other entry. can any one tell me how to solve this problem (0 Replies)
Discussion started by: aaysa123
0 Replies

5. Solaris

wtmpx file

What could possibly happen if wtmpx file got deleted by mistake? Thanks, (8 Replies)
Discussion started by: Pouchie1
8 Replies

6. UNIX for Dummies Questions & Answers

Deleting/Removing sentence from .txt

Hi, now i need to remove the entires i inserted into my .txt file. echo -n "Title: " read Title echo -n "Author: " read Author if grep -q "$Title: $Author" "BookDB.txt"; then sed '$Title: $Author' BookDB.txt echo "Book Title '$Title' removed successfully!" ... (6 Replies)
Discussion started by: santonio
6 Replies

7. Shell Programming and Scripting

Deleting pattern without removing line

I am trying to delete a pattern without removing line. I searched a lot in this forum and using those I could come up with sed command but it seems that command does not work. Here's how my file looks like: 1 ./63990 7 1171 ./63990 2 2425 ./63990 9 2539 ./63990 1 3125 ./63990 1 10141... (7 Replies)
Discussion started by: shoaibjameel123
7 Replies

8. Solaris

WTMPX File corrupted

Hi All I work on solaris 8, 9 and 10 platforms and have encountered an error which is my wtmpx files appear to be corrupted as all entries contain the date 1970 (the birth of unix). Now this is obviously not the case, so my query is: 1 - Can the existing wtmpx files be manipulated to... (6 Replies)
Discussion started by: drestarr96
6 Replies

9. Solaris

Wtmpx File Permissions Question

Hi all, I have been tasked to change permissions on the wtmpx file to 640. Currently the permissions are at 644. My question is will anything be affected if I change the permissions as shown? Thanks in advance. Derek (2 Replies)
Discussion started by: Derk Berk
2 Replies

10. UNIX for Advanced & Expert Users

Getting information from the wtmpx file

Hi, I tried running the command "last" in the server to check the users that were last logged into the system. However, I get this error : root@csidblog:# last /var/adm/wtmpx: Value too large for defined data type How do I proceed to get this info? I read some forums suggesting to use... (2 Replies)
Discussion started by: anaigini45
2 Replies
IP2HOST(1)						User Contributed Perl Documentation						IP2HOST(1)

NAME
ip2host - Resolves IPs to hostnames in web server logs SYNOPSIS
ip2host [OPTIONS] [cache_file] < infile > outfile infile - Web server log file. outfile - Same as input file, but with IPs resolved to hostnames. Options: --children=... Number of child processes to spawn (default: 40) --timeout=... Seconds to wait on DNS response (default: 20) --buffer=... Maximum number of log lines to keep in memory (default: 50000) --flush=... Number of lines to process before flushing output buffer (default: 500) --cache=... Filename to use as disk cache (default: none) --ttl=... Number of seconds before IPs cached on disk are expired (default: 604800 - One week) DESCRIPTION
This is a faster, drop-in replacement for the logresolve utility distributed with the Apache web server. It's been reported to work under Linux, FreeBSD, Solaris, Tru64, and IRIX. AUTHOR
Maurice Aubrey <maurice.aubrey+ip2host@gmail.com> Based on the logresolve.pl script by Rob Hartill. COPYRIGHT
Copyright 1999-2007, Maurice Aubrey <maurice.aubrey+ip2host@gmail.com>. This module is free software; you may redistribute it and/or modify it under the same terms as Perl itself. README
Resolves IPs to hostnames in web server logs. This is a faster, drop-in replacement for the logresolve utility distributed with the Apache web server. SCRIPT CATEGORIES
Web perl v5.14.2 2012-02-15 IP2HOST(1)
All times are GMT -4. The time now is 05:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy