- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to find the login time for specific period
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
05-13-2009 08:10 PM
05-13-2009 08:10 PM
How to find the login time for specific period
I am trying to generate the report to get login details of my project members from QC.
Anybody can help me the tips to get the details.
Thanks in Advance
Regards,
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 08:16 PM
05-13-2009 08:16 PM
Re: How to find the login time for specific period
you can used "last" to see who is login when but its depending on /var/wtmp file or else you need to enable auditing for more information see the man pages of auditing.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 09:21 PM
05-13-2009 09:21 PM
Re: How to find the login time for specific period
"last" and "lastb" is the command to give login/logout details and bad login details respectively.
If you need login details for specific users you can grep with user name from those command outputs
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 09:29 PM
05-13-2009 09:29 PM
Re: How to find the login time for specific period
you can use last command to get information, if you require more detail info need to look in /var/adm/syslog/syslog.log file, below is sample like which will generate when anybody will login, hope this will help, thanks,
May 14 13:25:44 testserver1.domain.com inetd[17786]: telnet/tcp: Connection from avipc (10.61.42.232) at Thu May 14 13:25:44 2009
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 10:03 PM
05-13-2009 10:03 PM
Re: How to find the login time for specific period
Dear Rajesh
last is the best command
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 11:04 PM
05-13-2009 11:04 PM
Re: How to find the login time for specific period
For you better to check with ,
#last -R -5 username (eg:root)
It will shows the last 5 login details of that specific user. It will also shows from which ip adress the user is logged in.
Hope this will help you..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2009 11:21 PM
05-13-2009 11:21 PM
Re: How to find the login time for specific period
For login details you can check
#more /var/adm/wtmps
#more /var/adm/utmps
or you can use last command
#last
check man pages of last.
check below link in detais
http://docs.hp.com/en/B2355-60103/utmp.4.html
New files:
http://docs.hp.com/en/B2355-60103/wtmps.4.html
http://docs.hp.com/en/B2355-60103/utmps.4.html
If it helps, pls assign point.
Rgds//
Taifur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2009 02:17 AM
05-14-2009 02:17 AM
Re: How to find the login time for specific period
Thanks for your reply.
Regards,
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2009 02:22 AM
05-14-2009 02:22 AM
Re: How to find the login time for specific period
Please assign some points who give there valuable time for your problem.
To know how to assign points please go through the below link.
http://forums13.itrc.hp.com/service/forums/helptips.do?#33
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2009 02:20 PM
05-14-2009 02:20 PM
Re: How to find the login time for specific period
sp,