- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to find out the last login of an individual us...
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
Discussions
Discussions
Forums
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
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-05-2011 05:40 PM
тАО04-05-2011 05:40 PM
WTMPS_FILE begins at Fri Apr 17 15:42:22.
Here am bit dowted, for the current yr only the year will not be mentioned on the time stamp, but in 2011 april 17th dint come, so
it can be 2010 or before ?
How should i find it out?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2011 09:38 PM
тАО04-05-2011 09:38 PM
Re: how to find out the last login of an individual user on 11i v3
Check the system date.
#date
Rgds...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2011 10:54 PM
тАО04-05-2011 10:54 PM
Re: how to find out the last login of an individual user on 11i v3
Shibin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2011 12:00 AM
тАО04-06-2011 12:00 AM
SolutionSome months ago we (finally!) removed some very old 10.20 and 11.00 systems whose wtmp/wtmps files covered at least two or three years.
Run "last | more" to view the entire wtmps file: the entries will be listed in order, from the newest to the oldest. If you see the latest entry as recorded in April, then entries on some other months, then April again, then the file includes data from the year 2010.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2011 03:56 AM
тАО04-06-2011 03:56 AM
Re: how to find out the last login of an individual user on 11i v3
> it can be 2010 or before ? How should i find it out?
If you convert the binary 'wtmps' to an ASCII file you also expose additional data (including an epoch timestamp):
# /usr/sbin/acct/fwtmp < /var/adm/wtmps > /tmp/wtmps
Now, if you want, you can edit this ASCII file, removing any lines you don't want, and replace the 'wtmps' binary by doing:
# /usr/sbin/acct/fwtmp -ic < /tmp/wtmps > /var/adm/wtmps
By the way, the simplest way to convert an Epoch timestamp to a human-readable tiime and date is simply (for example):
# perl -le '$t=shift and print scalar localtime($t)' 1302090854
...pass any timestemp you need converted.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2011 04:13 AM
тАО04-06-2011 04:13 AM
Re: how to find out the last login of an individual user on 11i v3
First you have to change top line to #!/usr/bin/perl
something according to your environment..