- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- yet another utmp question
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
10-13-2009 07:35 AM
10-13-2009 07:35 AM
yet another utmp question
Well, I observed utmp file is not getting updated. And whenever a login/logout is happening, the utmpx file is being updated.
who,w commands are working perfect.
my question is that possible utmp not getting updated and "who" working proparly?
in that case from where it is fetching the "idle time"? (who -u)
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 07:56 AM
10-13-2009 07:56 AM
Re: yet another utmp question
"utmpd, user accounting database daemon, manages the user accounting database which is the database of currently logged-in users. This was previously maintained by /etc/utmp and /etc/utmpx files on HP-UX."
A bit further, it states:
"utmpd(1M) takes care of synchronizing the legacy /etc/utmpx file and its own in-memory database. The synchronization is bi-directional from the utmpd's database to the /etc/utmpx and from the /etc/utmpx file to utmpd's database. However, this synchronization does not happen in real time. There is a time lag which could span from a few seconds on a lightly loaded system to a few minutes on a heavily loaded system."
Always worth checking manpages.. things change all the time :-)
Cheers
Wout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 05:43 PM
10-13-2009 05:43 PM
Re: yet another utmp question
I think this gonna help you out, please look at previous threads they are pretty useful ;)
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 09:50 PM
10-13-2009 09:50 PM
Re: yet another utmp question
Read the manpage of command "fwtmp & wtmpfix" which transfer wtmp-like file into ascii format.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 10:50 PM
10-13-2009 10:50 PM
Re: yet another utmp question
As Wouter said, who(1) doesn't use utmp, it talks to utmpd(1M).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2009 01:05 AM
10-14-2009 01:05 AM
Re: yet another utmp question
It says that nowadays the utmpd daemon keeps the database of currently logged-in users in memory, and the files are "old stuff". That's why everything works fine.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2009 04:47 AM
10-14-2009 04:47 AM
Re: yet another utmp question
thankyou for the info on utmpd.
i found in utmpd man that "getuts" should be used for add,update or query the log information.
getuts is having all the values but "last access time". from which, we can be able to calculate the idle time. it is having only entry time field(ut_tv).
any idea on how to fetch the "last access time" to calculate idle time?.
-R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2009 12:41 AM
10-16-2009 12:41 AM
Re: yet another utmp question
You created another thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1378982
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2009 01:05 AM
10-16-2009 01:05 AM
Re: yet another utmp question
Actually i waited for some time for reply in this thread. I thought the thread title is some what not related the question on my mind. So I created another thread.
Sorry for the Inconvenience caused.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2009 01:06 AM
10-16-2009 01:06 AM