- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HPUX 11.31 IA64, wtmp not getting updated..
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
Forums
Discussions
Discussions
Discussions
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
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
04-30-2008 07:46 PM
04-30-2008 07:46 PM
HPUX 11.31 IA64, wtmp not getting updated..
Whne i login on the HPUX1131 system record is added to the "/var/adm/wtmp" file, but when i run the command to see the data ..
cat /var/adm/wtmp | /usr/sbin/acct/fwtmp
I get the following output
root 2 pts/2 18944 7 0000 0000 0 Jan 1 05:30:00 1970 46.105.110.100
Instead of "Jan 1 05:30:00 1970" as seen above, i`am expecting the date on which the user last logged in.
What might be the issue?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2008 10:05 PM
04-30-2008 10:05 PM
Re: HPUX 11.31 IA64, wtmp not getting updated..
Have you read utmpd(1M)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2008 10:12 PM
04-30-2008 10:12 PM
Re: HPUX 11.31 IA64, wtmp not getting updated..
for me its
/var/adm> ls -lrt|grep wtmp
-rw-rw-r-- 1 adm adm 22440 Apr 30 23:48 wtmp
-rw-r--r-- 1 root root 1086400 Apr 30 23:48 wtmpx
.What does "last" command says.
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2008 11:50 PM
04-30-2008 11:50 PM
Re: HPUX 11.31 IA64, wtmp not getting updated..
-rw-r--r-- 1 adm adm 288 May 25 23:25 wtmp
One more strange thing is the data is somewhat strange after i login and logout for 3/4 times..
0 pts/0 18897 8 0000 0000 0 Jan 1 05:30:00 1970
root 1886679855 12288 0000 0000 21227 Jan 1 11:23:47 1970 72.57.167.231
H9¨ 0 0 0000 0000 1919905652 Nov 3 08:37:32 2030
I read the man for utmpd, but not sure whether this is related to wtmp.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2008 12:32 AM
05-01-2008 12:32 AM
Re: HPUX 11.31 IA64, wtmp not getting updated..
This file looks hopelessly corrupted. You should scratch it and use the wtmps file instead:
/usr/sbin/acct/fwtmp -X < /var/adm/wtmps
>I read the man for utmpd, but not sure whether this is related to wtmp.
It creates both but there is a delay but obviously not since 1970. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2008 01:18 AM
05-01-2008 01:18 AM
Re: HPUX 11.31 IA64, wtmp not getting updated..
Thanks. The command mentioned by you returns proper results.
I deleted all the entries in "/var/adm/wtmp", but the new entries are again not added correctly. What might be the issue here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2008 01:20 AM
05-01-2008 01:20 AM
Re: HPUX 11.31 IA64, wtmp not getting updated..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2008 01:58 AM
05-01-2008 01:58 AM
Re: HPUX 11.31 IA64, wtmp not getting updated..
Is it because /etc/utmp is bad?
You man have to stop utmpd then erase wtmp then restart?