How to find the log for executed command in IBM AIX?


 
Thread Tools Search this Thread
Operating Systems AIX How to find the log for executed command in IBM AIX?
# 1  
Old 07-04-2012
How to find the log for executed command in IBM AIX?

In Unix If we executed any command where will generate the particluar log related to command in Unix.
# 2  
Old 07-04-2012
I do not think without the auditing subsystem if this is possible. But, if your users are honest and if you are root or have root like privileges, you can find /home/username/.sh_history file which contains the executed commands history.
# 3  
Old 07-04-2012
I have once tried to port Snoopy logger to AIX and gave up after a couple of days. Somehow it is not possible to preload a library in AIX so overriding the execve() system call won't work.

I agree wiht admin_xor: without the auditing subsystem true command logs can't be implemented.

I hope this helps.

bakunin
# 4  
Old 07-06-2012
Thanks for yours valuable reply...
I will check it...
# 5  
Old 08-10-2012
I posted in another thread about this, but no harm mentioning here.
Rootsh on sourceforge will sort you out.
Logs everything to syslog (NB if you choose to log output as well as input and someone cats [or similar] a massive file, the output logs to syslog which can be significant overhead)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Find Original user who executed the command

Hi Team, Please help me with the below question. SunOS 5.10 Shell: -bash I am trying to find the original user who executed a command on my development server. In my dev server users login using their personal id and sudo to a common id using 'sudo -u commonid -i'. Once logged in as... (6 Replies)
Discussion started by: sam99
6 Replies

2. UNIX for Dummies Questions & Answers

Set Command to output a log of every command executed in the script

Hi Guys, I like to output every command executed in the script to a file. I have tried set -x which does the same. But it is not giving the logs of the child script which is being called from my script. Is there any parameters in the Set command or someother way where i can see the log... (2 Replies)
Discussion started by: mac4rfree
2 Replies

3. Shell Programming and Scripting

I want a script to view the complete log information of data stage job from UNIX IBM AIX.

Hi, I am working on data stage 8.7 version and I want a script a to view the all log information of the data stage job from UNIX environment. Can you please help me out by give the script. Thanks in advance... (7 Replies)
Discussion started by: victory
7 Replies

4. AIX

IBM AIX on IBM Eseries & x series server

Hi, I want to know whether IBM AIX can be installed on the IBM e series and x series server hardware? Thanks & Regards Arun (2 Replies)
Discussion started by: Arun.Kakarla
2 Replies

5. UNIX for Advanced & Expert Users

Using SCP command in IBM AIX to download file from remote to local system

Hi, When i run the code in solaris unix machine, the file from remote server is getting downloaded. but when i use the same code in IBM AIX remote machine, it is not running. It is saying "Erro during scp transfer." Below is the code. Please give some resolution. SCPClient client = new... (1 Reply)
Discussion started by: gravi2020
1 Replies

6. UNIX for Dummies Questions & Answers

HP Tru 64 & IBM AIX -- Few How to find

Anyone of you , Could you pls give me the command on HP Tru64 and IBM -AIX for below ? 1) How to find number of CPU & Number of core 2) Free RAM 3) How to get previously executed commands from history 4) Which process consumes more cpu resource? ( Similar to TOP in Linux/Solaris) (1 Reply)
Discussion started by: johnveslin
1 Replies

7. AIX

Command for changing date in IBM AIX

Hello everybody, plz tell me the command for chaging the date paramater in IBM AIX.. (3 Replies)
Discussion started by: oracle_rajesh_k
3 Replies

8. Cybersecurity

Help Required: Command to find IP address and command executed of a user

Hi, I am trying to write a script which would figure out who has run which command and their IP. As i dont have any clue as to which commands would do this job, i request some gurus to help me on this. Thanks Vishwas (2 Replies)
Discussion started by: loggedout
2 Replies

9. UNIX for Dummies Questions & Answers

how to find the exit status for the last executed command

I am executing a find command in my script i.e find $2 -type f -name '*.gif' -mtime +$1 -exec rm {} \; how do i check that this command is executed properly.. i would lke t trap the errror and display my error message kinly help.. this is an urgent issue. (1 Reply)
Discussion started by: vijay.amirthraj
1 Replies

10. AIX

Analogue of Format Command in AIX for IBM

I need to install AIX 5.3 on an RS/6000 Server. When i boot from an AIX 5.3 CD i get an option to upgrade to 5.3 from 5.2(existing OS). Is there a way by which i can force AIX to perform a new install with creating new partitions. I am looking for the analogue of 'Format' command in AIX that... (2 Replies)
Discussion started by: bestoption
2 Replies
Login or Register to Ask a Question