- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: no ouput from command 'last'
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
тАО07-18-2007 04:58 PM
тАО07-18-2007 04:58 PM
no ouput from command 'last'
anyone know why there are no output from command last? system running hp-ux 11.11. I have already do this for troubleshoot but still failed:
# cat /dev/null > /var/adm/wtmp
# last
wtmp begins Thu Jan 1 07:00
# /usr/sbin/acct/fwtmp < /var/adm/wtmp > /tmp/wtmp
# more /tmp/wtmp
user1 pts/5 0 0 0000 0000 0 Jan 1 07:00:00 1970
pts/5 0 0 0000 0000 0 Jan 1 07:00:00 1970
# /usr/sbin/acct/fwtmp -ic < /tmp/wtmp > /var/adm/wtmp
# last
wtmp begins Thu Jan 1 07:00
many thanks for your valuable time to discuss with me!
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2007 05:01 PM
тАО07-18-2007 05:01 PM
Re: no ouput from command 'last'
this case happened for command "w/who". no user display from command w.
thx,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2007 05:08 PM
тАО07-18-2007 05:08 PM
Re: no ouput from command 'last'
file /var/adm/wtmp;ll /var/adm/wtmp
last `who am i`
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2007 05:17 PM
тАО07-18-2007 05:17 PM
Re: no ouput from command 'last'
$ who am i
$ file /var/adm/wtmp
/var/adm/wtmp: ascii text
$ ll /var/adm/wtmp
-rw-r--r-- 1 adm adm 180 Jul 19 12:03 /var/adm/wtmp
$ last `who am i`
wtmp begins Thu Jan 1 07:00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2007 05:59 PM
тАО07-18-2007 05:59 PM
Re: no ouput from command 'last'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2007 06:06 PM
тАО07-18-2007 06:06 PM
Re: no ouput from command 'last'
you can cek timestamp of /var/adm/wtmp (july 19). when i run last command, there is message " wtmp begin at Jan 1".
i login to server too (so i have 2 session using my login user), but when i run last command, there are no user displayed.
thx,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2007 08:28 PM
тАО07-18-2007 08:28 PM
Re: no ouput from command 'last'
I assume that if last(1) sees garbage in wtmp, it prints that bogus date, the start of the epoch, (time_t)0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2007 08:52 PM
тАО07-18-2007 08:52 PM
Re: no ouput from command 'last'
then try logging in and check the result