Which command can trace what I have done on aix?


 
Thread Tools Search this Thread
Operating Systems AIX Which command can trace what I have done on aix?
# 1  
Old 07-22-2008
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?
# 2  
Old 07-23-2008
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.
# 3  
Old 07-23-2008
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
# 4  
Old 07-23-2008
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
# 5  
Old 07-31-2008
I believe the command you're thinking of is "script". With no options, it logs everything on the screen to typeset by default.

amoser
# 6  
Old 10-26-2008
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??????
# 7  
Old 10-27-2008
Quote:
Originally Posted by masquerer
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Maxdepth command not working in AIX.Need alternative solution for this command

Hi All, I am trying to select 30 days older files under current directory ,but not from subdirectory using below command. find <Dir> -type f -mtime + 30 This command selecting all the files from current directory and also from sub directory . I read some documention through internet ,... (1 Reply)
Discussion started by: kommineni
1 Replies

2. Shell Programming and Scripting

How to put a trace on shell script running in AIX?

Please help me in putting a trace on shell script running in AIX Best regards, Vishal (3 Replies)
Discussion started by: Vishal_dba
3 Replies

3. Shell Programming and Scripting

Stack Trace

Hi All Thought it would be kind of fun to implement a stack trace for a shell script that calls functions within a sub shell. This is for bash under Linux and probably not portable - #! /bin/bash error_exit() { echo "=======================" echo $1 echo... (4 Replies)
Discussion started by: steadyonabix
4 Replies

4. HP-UX

Command to trace System Calls on HP UX

All, Kindly let me know command which is used to trace the system calls on HP - UX server when an executable is run. On Solaris we have TRUSS which does the need. On HP UX we have TUSC command which is a third party software. Currently this is not installed on my HP Server. If there... (3 Replies)
Discussion started by: helper
3 Replies

5. AIX

How to turn on SMTP trace on AIX?

How to turn on SMTP trace on AIX V5? where to find the SMTP logs? (0 Replies)
Discussion started by: rainbow_bean
0 Replies

6. UNIX for Advanced & Expert Users

How to trace an AIX Process?

Hello, I execute an application on my Unix AIX Server and that one crashes after reading some files. These files are very big (80 Mbytes), the application is a CVS Repository. I have found with a comparaison on a Solaris Server that there are system limitations on my AIX Server in the... (2 Replies)
Discussion started by: steiner
2 Replies

7. AIX

Which command in AIX 5L is replace updatelv in AIX 4.3?

When I import VG, it shows: 0516-622 synclvodm: Warning, cannot write lv control block data. I found AIX V4.3 have updatelv command can recovery LVB from VG, however, updatelv is not existed on AIX 5L, which command to replace it? (2 Replies)
Discussion started by: rainbow_bean
2 Replies

8. AIX

AIX:Command to get netaddress/subnet address command in IPv4/IP6

AIX:Command to get netaddress/subnet address command in IPv4/IP6 Can anybody help us with a command to retrieve netaddress/subnet address command in IPv4/IP6 on aix machine. net/subnet address is in the format 172.16.212.0(signifies all 255 machines in an IPv4 network) (2 Replies)
Discussion started by: rookie8278
2 Replies

9. UNIX for Dummies Questions & Answers

Trace DHCP - Help!

Can someone help me with commands to trace DHCP on an HP_UX box? Thanks! (0 Replies)
Discussion started by: nuGuy
0 Replies

10. UNIX for Dummies Questions & Answers

trace route command

very new to unix whats the trace route command (7 Replies)
Discussion started by: jhale123
7 Replies
Login or Register to Ask a Question