- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to check what did the user do in HP-UX 11i...
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
тАО10-06-2009 12:22 PM
тАО10-06-2009 12:22 PM
Re: How to check what did the user do in HP-UX 11i v1
http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1375354
which requires changing all the user profiles. Or create this script:
#!/usr/bin/sh
set -u
for ACTIVE in $(who -q | grep -v users)
do
echo "## $(date)" >> ~$ACTIVE/.sh_history
done
This script uses who -q to get just a list of logged-in users, then appends the current date-time to .sh_history in their home directory. You can save this as a script and put it into root's cron to run a few times during the day.
Now everyone's .sh_history will be time stamped while they are logged in.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2009 12:36 PM
тАО10-06-2009 12:36 PM
Re: How to check what did the user do in HP-UX 11i v1
I have tried your way, that script worked but it looks like just one time use only.
I ran you script and ran bdf, ioscan -funC disk, cd / for test. In cmd history output, just bdf was marked timestamped, the other two like normal one without timestamped, details are as follows, how to use it?
# history
...
1063 /home/user/whodowhen.sh
1064 ## Tue Oct 6 16:35:04 EDT 2009
## Tue Oct 6 16:35:04 EDT 2009
## Tue Oct 6 16:35:04 EDT 2009
bdf
1065 ioscan -funC disk
1066 cd /
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2009 12:38 PM
тАО10-06-2009 12:38 PM
Re: How to check what did the user do in HP-UX 11i v1
Thanks a lot for your hyperlink above, I checked, found one look good and worked fine but need added two entried to each user's .profile file for all HP-UX servers.
-G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2009 03:01 PM
тАО10-06-2009 03:01 PM
Re: How to check what did the user do in HP-UX 11i v1
You probably missed the comment about cron. This scriupt must be run several times each day. To do this, you place the script into root's cron and specify that it run every 2 hours or whatever time you would like to use. Here is an example of a cron entry:
0 1,5,10,15,20 * * * /usr/contrib/bin/timestamp.sh
The script will be run every 5 hours. This assumes that the script has been created and stored in /usr/contrib/bin as the file: timestamp.sh
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2009 11:18 AM
тАО10-07-2009 11:18 AM
Re: How to check what did the user do in HP-UX 11i v1
- « Previous
-
- 1
- 2
- Next »