- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- "last" command dumps core - HP-UX 11.00
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
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
10-18-2001 10:00 AM
10-18-2001 10:00 AM
# whoami
root
# uname -a
HP-UX pokie B.11.00 U 9000/800 1514750538 unlimited-user license
# last
Memory fault(coredump)
# file core
core: core file from 'last' - received SIGSEGV
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 10:13 AM
10-18-2001 10:13 AM
Re: "last" command dumps core - HP-UX 11.00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 10:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 10:25 AM
10-18-2001 10:25 AM
Re: "last" command dumps core - HP-UX 11.00
I have both files:
# ls -altr /var/adm/btmp
-rw------- 1 root other 4500 Oct 18 13:12 /var/adm/btmp
# ls -altr /var/adm/wtmp
-rw-rw-r-- 1 adm adm 161336 Oct 18 13:59 /var/adm/wtmp
How do I tell which is corrupted?
Thanks,
/ Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 10:29 AM
10-18-2001 10:29 AM
Re: "last" command dumps core - HP-UX 11.00
last command gets its information from wtmp file where as lastb gets it from btmp.
In your case looks like wtmp is corrupted.
you could try "cat /dev/null > /var/adm/wtmp"
-HTH
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 10:37 AM
10-18-2001 10:37 AM
Re: "last" command dumps core - HP-UX 11.00
But the "cat /dev/null > /var/adm/wtmp" command fixed this problem. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 10:51 AM
10-18-2001 10:51 AM
Re: "last" command dumps core - HP-UX 11.00
One more trick. If you ever need/want to preserve your 'wtmp' and/or 'btmp' file, but it is corrupted, or you simply want to trim it, then you can "edit" it like this:
# /usr/sbin/acct/fwtmp < /var/adm/wtmp > /tmp/wtmp
At this point, you may edit the /tmp/wtmp file, since it is a ASCII file.
# /usr/sbin/acct/fwtmp -ic < /tmp/wtmp > /var/adm/wtmp
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 01:03 PM
10-18-2001 01:03 PM
Re: "last" command dumps core - HP-UX 11.00
You can use /usr/sbin/acct/wtmpfix command
to try fixing the corrupt
wtmp file. If it doesn't
work you can preserve
the ascii version of the file
by running fwtmp .
-raj