The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to trace a user salhoub HP-UX 4 08-04-2008 06:05 AM
Trace DHCP - Help! nuGuy UNIX for Dummies Questions & Answers 0 04-27-2008 01:00 PM
Function Trace ajcannon Shell Programming and Scripting 3 10-05-2007 03:55 AM
trace route command jhale123 UNIX for Dummies Questions & Answers 7 05-28-2002 08:34 PM
Trace connections jraitsev UNIX for Advanced & Expert Users 8 03-14-2002 05:00 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-22-2008
Registered User
 

Join Date: Dec 2007
Posts: 59
Which command can trace what I have done on aix?

I remember there is a command can trace what I have done on aix. such as when I run smitty user to add a new user, run any command on aix, install some application software on aix, just like trace every step and every screen out to a file.

I forget what command is, does anyone know it?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-23-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
 

Join Date: Sep 2007
Location: Germany
Posts: 1,681
What you did with smit you can see by looking into "~/smit.log". What has last been installed you can see with "lslpp -h" or "rpm -qa --last". For what has been done in the shell you can check the history like in "~/.sh_history".
I don't know about an "ultimate" command to see it all, sorry.
Reply With Quote
  #3 (permalink)  
Old 07-23-2008
Registered User
 

Join Date: Jan 2007
Posts: 22
I'd agree with zaxxon.

history is the command i use the most for checking what i've done in the past.

That or setting set -o vi so that i can cycle through old commands
Reply With Quote
  #4 (permalink)  
Old 07-23-2008
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,471
I would like to add the wtmp and utmp files in the /var tree to the list. If you need to know when and from where you have logged into the system this is the place to look.

I hope this helps.

bakunin
Reply With Quote
  #5 (permalink)  
Old 07-31-2008
Registered User
 

Join Date: Jul 2008
Posts: 1
I believe the command you're thinking of is "script". With no options, it logs everything on the screen to typeset by default.

amoser
Reply With Quote
  #6 (permalink)  
Old 10-26-2008
Registered User
 

Join Date: Jun 2007
Posts: 20
Hey amoser

dnt u think the script command if run with no options will eventually be of a very large size and then will create problems??????
Reply With Quote
  #7 (permalink)  
Old 10-27-2008
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,471
Quote:
Originally Posted by masquerer View Post
dnt u think the script command if run with no options will eventually be of a very large size and then will create problems??????
This might be, but then such a tracing tool should not be implemented without some additional measures like log rotating facilities and cronjobs to shorten/file off the resulting logs.

It is advisable to come up with some quantity structure first to know how often to cycle the logs and how much space to provide for them growing in between.

bakunin
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
auditing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 04:04 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66