Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

utmpx wtmpx not showing recent entries

Posted on 2002-07-08
5
Medium Priority
?
283 Views
Last Modified: 2013-12-27
Have a puzzling issue here.  I have some Sol 7/8 computers that are having a problem when I issue a "last -20" command.  Some of the boxes report entries starting 6 months ago and others report nothing just "wtmp begins Mon Jun 15 06:40" (or some other date in the past).

I've looked at /var/adm/*tmpx and done a strings on them.  They are being modified with new date (mod date changes) and I can see the new logins in the file when I do a strings on them.  Any ideas?

--- Micah
0
Comment
Question by:micahman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 14

Accepted Solution

by:
chris_calabrese earned 400 total points
ID: 7143382
The files may be corrupt.  Try blowing them away, recreating them, and rebooting.
0
 

Expert Comment

by:emrehayretci
ID: 7153433
IT should be related with your audit settings. It is possible to activate them. If you are using the default settings, then the problem should be related with the file itself. It may be corrupted.

Delete it and create it with touch again.
0
 

Author Comment

by:micahman
ID: 7154012
As the wtpmx and utmpx files are not test files and, from what I have read, can corrupt the OS if removed improperly, I'd rather not just delete these files randomly and hope that they come back and all is well.  Has anyone had experience with this? Anyone know where there are docs that explain this process?  I have searched Sun's and many other sites and found nothing that relates to this process.
0
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 7154548
It won't corrupt the OS, but it will confuse things like last and who. That's why you need to reboot afterwards to wipe the slate clean.
0
 

Author Comment

by:micahman
ID: 7159173
Finally got a chance to test this out on one of the servers.  Worked like a charm.  Thanks!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question