AIX (Advanced Interactive eXecutive, pronounced "a i ex") is a series of proprietary Unix operating systems developed and sold by IBM for several of its computer platforms.

learn more… | top users | synonyms

6
votes
4answers
422 views

How to only zip the files of a specific user?

I like zip, it's simple, but recently I came with the need of only zipping the file owned by one user in a directory. I read the manual and I can't find any option to for example do things like: ...
3
votes
1answer
201 views

Convert unix time from variable to normal time in AIX

-d doesn't work(date: Not a recognized flag: d): date -d @1141421607 and awk's awk -vNEXTEXECDATUM="$NEXTEXECDATUM" 'BEGIN { print strftime("%c", NEXTEXECDATUM); exit }' doesn't work: "awk: ...
19
votes
3answers
1k views

Find a file when you know its checksum?

I have the md5sum of a file and I don't know where it is on my system. Is there any easy option of find to identify a file based on its md5? Or do I need to develop a small script ? I'm working on ...
2
votes
1answer
876 views

Reproduce the “--max-depth=” switch for disk-usage command on AIX

When I work on Linux/GNU distro environment I often use that wonderfull command du --max-depth=1 / That gives you the size of each folder in your root directory. Today I work with AIX and ...
0
votes
1answer
474 views

Need to grant two users to an AIX server to just one folder [duplicate]

Ok, in our environment, most users (including myself as one of the unix admins) don't actually have admin rights directly on the aix servers. We login to a front unix server as ourselves without root ...
0
votes
1answer
43 views

Trying to change GID on AIX server

I am trying to change GID on Unix server "AIX". I want to change mygroupname:!:79002: from group GID from 79002 to 79003. I have permission to use sudo /usr/bin/chgroup. I have tried everything, ...
2
votes
2answers
2k views

Mail command to send attachements

I tried the below command uuencode data.txt | mailx –s “Test Mail” “mrp@xyz.com” But I get the below error ksh: uuencode: not found. Null Message body; hope that' ok which clearly tell that ...
1
vote
1answer
253 views

list out owned file/directories and change its permissions

Can anyone please tell how can I change files/directories owned by me only. below is the command that list out files/directories owned by me find . -user <username>
0
votes
1answer
35 views

Help on editing a script using grep and sed

First I'm new to unix so excuse my simple question, also be aware that I work on AIX. I have a lot of sql files that contains the following string: ${DB_USERNAME}.${TABLE_NAME} Can anyone please ...
0
votes
1answer
261 views

Setting max coredump size on AIX doesn't work

I googled to set the coredump max size on AIX to 20 MBytes: 0:root@SERVER:/root # su - username $ ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) 131072 ...
2
votes
2answers
56 views

Replacing a pattern with another between first and second occurrence of a pattern in file

Want the comma's (,) replaced by the alphabet u between the first occurrence of y till the second occurrence of y. Given below is the sample input file. 100y00893225900,008932259,06,2013,NOKIA Q ...
1
vote
2answers
307 views

portable command to unzip and untar on non GNU and old unix

On AIX 6.1 without GNU Tool installed I have a .tar.gz file. On Ubuntu I would use the very useful command : tar xzf myfile.tar.gz but in this case the z switch is not possible. I do remeber a ...
2
votes
1answer
134 views

Compile proftpd with MySQL authentication support on AIX

Edit 1: The problem seems to be related to MySQL component. because if I remove every SQL directives from config file, it does work on ftp/ftpes, sftp and ftps Edit 2: If I put an existing host ...
2
votes
0answers
111 views

Is there an equivalent of addr2line on AIX system?

I'd like to debug proftpd on AIX and according to the documentation, addr2line is a usefull binary to identify what is not working. Extract of proftpd debugging documentation: The key here for ...
3
votes
0answers
169 views

AIX NIM Master replicate / sync fails to an Alternate Master

I am getting a error when I try to replicate / sync my NIM database and resources to an Alternate NIM Master newly created in my environment: error replicating resources: unable to ...
1
vote
1answer
687 views

AIX's sed - in place editing

Is there any non-documented flag on AIX's sed implementation that allows in place editing? The man page shows no flag to this operation, which is one of the most usefull ones in other UNIX flavours.
1
vote
2answers
381 views

Other than a kill command or a system kill(pid, signal) command, what can cause a SIGKILL to occur for a process?

My process is mysteriously getting a SIGKILL on AIX. Running trace on the system indicated the process got a signal sent by itself via the kill(pid, SIGNAL) system call. I checked my code and I ...
1
vote
1answer
158 views

AIX cifs hostname with underscore

I am trying to type this comand but for some reason it takes the first and not the second version. I have entered both the host names in the host file, FYI. This command works (hostname zq13c1): ...
5
votes
1answer
1k views

How to identify executable path with its PID on AIX 5 or more

On AIX 5 or 6, `ps -ef` shows the executable full path randomly. Why and how to determine it? I find many thread through internet and also Unix & Linux and this stack overflow post about finding ...
0
votes
2answers
2k views

Clear file system cache on AIX

I'm using AIX 6.1 and for testing. I want to clear the file system cache. Something similar a this on linux : echo 2 > /proc/sys/vm/drop_caches Is this possible?
1
vote
2answers
309 views

ldd: cannot find library for xl c compiled binary but could for gcc compiled binary on AIX

I have compile on AIX two version of proftpd one with gcc and one with the xl c compiler from IBM. The command line to compile both version are almost the excat same, but when I do a ldd on the gcc ...
0
votes
1answer
140 views

Patching Process in AIX

I am new to the world of AIX and I am pretty unsure on how the patching process goes about. I just joined a new company and they are using AIX as their preferred OS (actually due to having all IBM ...
0
votes
1answer
4k views

How to create a volume group, logical volume and a file system on AIX?

I'm getting some difficulties to create a file system on an AIX server. In Linux the task is easy and takes four commands, but I cannot figure out how to do it in AIX. On Linux I'd do the following: ...
11
votes
1answer
2k views

Add a path in $PATH globally for every user

Do we have anyway to add a path globally so that each user gets it in $PATH. I want to add path of ANT so that each user doesn't need to add it in his $PATH variable.
2
votes
1answer
141 views

Why PowerVM LPAR CPU utilization is negative

For a specific case I compute an PowerVM LPAR CPU utilization to be a large number less than zero. I am fetching the lpar sample event using: lslparutil -r lpar -m P750 --filter "lpar_names=i5lp5" ...
1
vote
2answers
184 views

Find on AIX with output to file

find /apps/dynalife/clients/. ! -path "train" -type f -mtime +90 ! \( -name "*.p" -o -name "*.i" -o -name "*.w" -o -name "*.cls" -o -name "*.inf" -o -name "*.bat" \) -exec {} \; > ...
2
votes
1answer
690 views

How to get start time for a defunct process on AIX?

When I run the following commands on AIX: 22:root@SERVER:/root # ps -ef | head -1 UID PID PPID C STIME TTY TIME CMD 22:root@SERVER:/root # ps -ef | grep defunct | head -1 ...
2
votes
4answers
341 views

AIX 'rm' command has no '-v' parameter for verbose output

AIX 'rm' command has no '-v' parameter for verbose output as stated by IBM's documentation. Normally I would run (in linux) rm -rfv <myfile> to (r)ecursively and (f)orcably delete files and ...
0
votes
1answer
481 views

Occasional error from bash on AIX: Interrupted system call

I am experiencing problems with process substitution in bash on AIX It happens very rarely, apparently only when the server is loaded. An example error message is: line 9: /tmp//sh-np-7841523: ...
0
votes
1answer
268 views

sar -P ALL command AIX 6.1

What is the meaning of - in the cpu column below? Is it average of all CPU cores? bash-3.00$ sar -P ALL 2 2 AIX tinapp1 1 6 00F6F78B4C00 11/27/13 System configuration: lcpu=4 mode=Capped 19:02:54 ...
2
votes
1answer
865 views

Facility on AIX to ZIP a list of files

I'm working with an external company who is using AIX (version unknown) as their platform. They are required to FTP me a ZIP file containing multiple files. Does the UNIX utility zip exist on a ...
8
votes
2answers
397 views

Merge three file in to a single master file by excluding the header in 2nd and 3rd files

I have three file with n number of lines as given below sample1.txt ------------------------------ Date Time Name ------------------------------ 2013/10/12 12:09:09 Krish ...
1
vote
0answers
297 views

IBM AIX: How do I set up SSH X forwarding on an unprivileged user with no home?

Long story short: I have an AIX server where my user is unprivileged and has no home directory, and it is not easy to fix this because OS-level management of this server is outside of my jurisdiction. ...
4
votes
5answers
4k views

Next day of the user entered date - date +1 day

I am new to scripting I needed a script in the AIX environment to get the next days date based on the date entered by the user of the script. After hard time browsing for this I got a piece of code ...
1
vote
1answer
529 views

0403-053 Expression is not complete; more tokens expected

I have this piece of code given below as a part of my main script if [ -e /tmp/rsm/Logs/filename_$$.txt ]; then { total=0 for files in $(<filename_$$.txt); do #cd /tmp/rsm/Logs docs=`grep -i ...
3
votes
1answer
3k views

Extract single file from tar to other folder

I've searched for multiple forums for this questions and have seen different answers but so far, nothing have worked yet even from the ones I've seen here. I want to extract a single file from a tar ...
4
votes
3answers
2k views

Need to get the difference between two time in seconds

The following two variables contain the start time and the end time , need to get the difference between these two time in seconds start_time=06:07:25 end_time=07:02:08 Desired Output diff_time= ...
0
votes
1answer
402 views

Vi editor behaving randomly while editing

When I open a PuTTY session in full screen I can't scroll down and up properly with the down arrow key. It seem to move down the screen and gets stuck somewhere in the middle. When I open PuTTY in ...
2
votes
3answers
6k views

Multiple pattern match and print in single line

I need to match two patterns in a log file and need to get the next line of the one of the pattern (out of two patterns) that is matched, finally need to print these three values in a single line. ...
4
votes
1answer
64 views

Extract data from two files

I have two files as given below Output1.csv 201319107648361,12:27:04,12:27:14,0:0:10 secs 201319109089878,12:27:04,12:27:15,0:0:11 secs 201319108968961,12:27:15,12:27:54,0:0:9 secs ...
4
votes
4answers
3k views

Convert Unix timestamp into human-readable format on AIX

I need to convert unix timestamp (number of seconds since 1970, e.g. 1381260225 is Tue Oct 8 19:23:45 GMT 2013) into a standard human-readable format. I could get some answers by googling but those ...
3
votes
2answers
1k views

How to load .profile without relogin in AIX?

How can I load my .profile file without a relogin in AIX Server?
0
votes
2answers
793 views

Why alias does not work in AIX (korn shell, .profile)?

I have these files in my home directory: drwxr-xr-x 3 meuser staff 256 Oct 12 13:11 . drwxr-xr-x 102 bin bin 4096 Sep 30 12:28 .. -rw------- 1 meuser staff ...
0
votes
2answers
8k views

CPU usage monitoring in AIX servers

In order to monitor the CPU usage in an AIX server I'm using the following script that is executed every 10 mins. lparstat 2 10 > cpu usage=$(tail -10 cpu | awk 'BEGIN {sum=0;} {sum+=$4} END{print ...
1
vote
2answers
449 views

Which programme calls csh.cshrc?

I understand that when a user logs into unix remotely, first a getty process is started. If authentication is successful, then etc/environement is called. However, I do not understand when is ...
3
votes
3answers
4k views

Subtracting dates in unix

Is there a way in unix to subtract a month or at least 30 days from a specific date? The date is to be inputted by the user. Example: 2012-11-19 - 1 month = 2013-10-19 This one doesn't work: date ...
1
vote
0answers
179 views

How different is I/O handling of hard disk in AIX and Redhat Linux?

I am running a hadoop I/O workload in redhat linux and have ran that in IBM AIX as well with same underlying hardware, disk and disk configuration. With the default settings on the os redhat linux is ...
2
votes
2answers
5k views

How to change file owner in AIX?

How can I change a owner of a file in AIX? I created a file using my personal account and then I tried to change user for this file: chown rootuser myfile.csv chown: myfile.csv: Operation not ...
5
votes
0answers
58 views

What is the cheapest way to run AIX 6-7 at home? [duplicate]

What is the cheapest way to run AIX 6-7 at home? Using an emulator or is there any low-cost hardware that can run AIX6 or AIX7? Purpose: practicing VIO/LPAR/HMC/etc..
2
votes
1answer
679 views

AIX 6.1 — Without root can I get the last failed login for a user i have access to?

I know the information is in the security files but I don't have access and it's more work then I want to do to go to our Unix admins to get the information (everytime the account gets locked which is ...