Sponsored Content
Operating Systems AIX How to find the log for executed command in IBM AIX? Post 302666537 by admin_xor on Wednesday 4th of July 2012 04:16:47 PM
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.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
FSTRACE_LSLOG(8)					       AFS Command Reference						  FSTRACE_LSLOG(8)

NAME
fstrace_lslog - Displays information about a log SYNOPSIS
fstrace lslog [-set <set name>+] [-log <log name>] [-long] [-help] fstrace lsl [-s <set name>+] [-log <log name>] [-lon] [-h] DESCRIPTION
The fstrace lslog command reports whether the "cmfx" log is available for use. If the -long argument is included, the output reports the log's defined size, and whether that amount of space is currently allocated in kernel memory or not. To change the "cmfx" trace log's size, use the fstrace setlog command. To display or set whether space is allocated for it in kernel memory, use the fstrace lsset or fstrace setset command to display or set the state of the corresponding "cm" event set, respectively. OPTIONS
-set <set name>+ Names the event set for which to display information about the corresponding trace log. The only acceptable value is "cm" (for which the associated trace log is "cmfx"). Provide either this argument or the -log argument, or omit both to display information about the "cmfx" log by default. -log <log name> Names the trace log about which to report. The only acceptable value is "cmfx". Provide either this argument or the -set argument, or omit both to report on the "cmfx" log by default. -long Reports the defined size of the log in kilobyte units and whether that amount of space is currently allocated in kernel memory. -help Prints the online help for this command. All other valid options are ignored. OUTPUT
By default, the fstrace lslog command displays only the name of the available log, "cmfx", in the following format: Available logs: cmfx When the -long flag is included, the output also reports the defined size of the log in kilobytes, and whether or not that amount of space is currently allocated in kernel memory, in the following format: Available logs: cmfx : <log_size> kbytes (allocated | unallocated) The "allocated" state indicates that the indicated number of kilobytes is reserved for the "cmfx" trace log in kernel memory. The "cm" event set's state is either "active" or "inactive", as reported by the fstrace lsset command, and set by the fstrace setset command's -active or -inactive flags respectively. The "unallocated" state indicates that no kernel memory is currently reserved for the "cmfx" trace log. The cm event set's state is "dormant", as reported by the fstrace lsset command and set by the fstrace setset command's -dormant flag. If the event set's state is later changed to active or inactive, the number of kilobytes indicated as <log_size> are again allocated in kernel memory. EXAMPLES
The following example uses the -long flag to display information about the "cmfx" log: # fstrace lslog -log cmfx -long Available logs: cmfx : 60 kbytes (allocated) PRIVILEGE REQUIRED
The issuer must be logged in as the local superuser "root". SEE ALSO
fstrace(8), fstrace_lsset(8), fstrace_setlog(8) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 FSTRACE_LSLOG(8)
All times are GMT -4. The time now is 03:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy