- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Change wtmp
Operating System - Tru64 Unix
1752574
Members
4883
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО01-20-2005 06:27 AM
тАО01-20-2005 06:27 AM
Change wtmp
Question> How to change wtmp to something else.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2005 08:34 AM
тАО01-20-2005 08:34 AM
Re: Change wtmp
Hi,
into a dog?
Michael
into a dog?
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2005 09:43 AM
тАО01-20-2005 09:43 AM
Re: Change wtmp
Nope, Not necessarily into a dog. But a maintenance proc other than the normal accounting one.
Aside from the one I use:
The following example converts the /var/adm/wtmp binary file records to ASCII records:
# /usr/sbin/acct/fwtmp < /var/adm/wtmp
system boot 0 20000 0000 652547412 Jan 5 11:10:12 1994
system boot 0 10062 0123 652547412 Jan 5 11:10:12 1994
bcheck bl 6 80000 0000 652547413 Jan 5 11:10:13 1994
cat cr 16 80000 0000 652547414 Jan 5 11:10:14 1994
rc rc 17 80000 0000 652547485 Jan 5 11:11:25 1994
hoffman co console 147 70000 0001 652547495 Jan 5 11:11:35 1994
hoffman p4 pty/ttyp4 2156 80000 0002 652650095 Jan 6 15:41:35 1994
LOGIN p4 pty/ttyp4 2140 60000 0000 652649075 Jan 6 15:24:35 1994
LOGIN p4 pty/ttyp4 2140 80000 0000 652649086 Jan 6 15:24:46 1994
To correct a /var/adm/wtmp file:
Change your working directory to /var/adm/acct/nite.
Use the fwtmp command to create an ASCII version of the wtmp file.
# fwtmp < wtmp.0617 > wtmp_temp
Edit the temporary file and remove the corrupted records.
Use the fwtmp command to recreate the wtmp file.
# fwtmp -ic < wtmp_temp > wtmp.0617
David
By the way. This was just off the wall question.
Aside from the one I use:
The following example converts the /var/adm/wtmp binary file records to ASCII records:
# /usr/sbin/acct/fwtmp < /var/adm/wtmp
system boot 0 20000 0000 652547412 Jan 5 11:10:12 1994
system boot 0 10062 0123 652547412 Jan 5 11:10:12 1994
bcheck bl 6 80000 0000 652547413 Jan 5 11:10:13 1994
cat cr 16 80000 0000 652547414 Jan 5 11:10:14 1994
rc rc 17 80000 0000 652547485 Jan 5 11:11:25 1994
hoffman co console 147 70000 0001 652547495 Jan 5 11:11:35 1994
hoffman p4 pty/ttyp4 2156 80000 0002 652650095 Jan 6 15:41:35 1994
LOGIN p4 pty/ttyp4 2140 60000 0000 652649075 Jan 6 15:24:35 1994
LOGIN p4 pty/ttyp4 2140 80000 0000 652649086 Jan 6 15:24:46 1994
To correct a /var/adm/wtmp file:
Change your working directory to /var/adm/acct/nite.
Use the fwtmp command to create an ASCII version of the wtmp file.
# fwtmp < wtmp.0617 > wtmp_temp
Edit the temporary file and remove the corrupted records.
Use the fwtmp command to recreate the wtmp file.
# fwtmp -ic < wtmp_temp > wtmp.0617
David
By the way. This was just off the wall question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-20-2005 01:09 PM
тАО01-20-2005 01:09 PM
Re: Change wtmp
David,
Hmm, I guess I'm not seeing exactly where you're going. The answer to "how to turn it into something else" is, I think, "programming." But I doubt that's exactly the answer you wanted! :-)
Were you talking about some kind of statistical analysis of logins, Excel format, ...? Automation of the tasks listed?
Mic
Hmm, I guess I'm not seeing exactly where you're going. The answer to "how to turn it into something else" is, I think, "programming." But I doubt that's exactly the answer you wanted! :-)
Were you talking about some kind of statistical analysis of logins, Excel format, ...? Automation of the tasks listed?
Mic
What kind of a name is 'Wolverine'?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP