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

0
votes
2answers
1k 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 ...
3
votes
4answers
1k 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 ...
1
vote
1answer
840 views

General problem solving steps when print jobs hang in AIX?

What should I do if jobs are getting stuck in the print queue even after restarting spooling? $ stopsrc -g spooler $ startsrc -g spooler $ lpstat -oQUEUENAME | wc -l; sleep 30; lpstat -oQUEUENAME | ...
2
votes
1answer
53 views

How to resolve ssh connection refused on AIX?

I am no longer successfully able to connect to my AIX LPAR. ssh -v user@<ip> OpenSSH_6.2p2, OpenSSL 1.0.1c 10 May 2012 debug1: Reading configuration data /etc/ssh_config debug1: Connecting to ...
0
votes
1answer
22 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, ...
5
votes
2answers
707 views

How to mass change password attributes in AIX uname -rv=3 5 for all users but root

I want to do a mass change on all users but root in AIX for the following "password attributes": Weeks before password reuse: 15 Password min length: 6 Can it be done, or do I need to do them one ...
2
votes
2answers
174 views

AIX apache rpm dependencies

I am evaluating the Crowd SSO by Atlassian. Now to get apache to use CROWD for authentication, there is a connector available by the vendor. Problem Unfortunately they do not provide anything for ...
0
votes
1answer
206 views

AIX UNIX 64 bit connecting to Microsoft SQL server 2008R2 Server

I am having AIX 64 bit Unix machine and I need to connect to Microsoft SQL SERVER 2008 R2 database. I dont have any Drivers and TDS installed in my machine. What all tools I need to install including ...
2
votes
3answers
115 views

How to Use Encrypted password in shell script AIX

I had written a shell script that will connect with the Database to perform some operations This is my sample code #!/usr/bin/ksh . /home/ram/.profile sqlplus username/pwd@TNS<<EOF select ...
0
votes
0answers
29 views

AiX topas snapshot to web

My script for taking snapshot from TOPAS looks like this: #!/usr/bin/bash whoami export TERM="xterm" (sleep 3; echo q)| topas -Emi 2 | \ tr -d '\r' | \ ...
2
votes
4answers
1k 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 ...
0
votes
1answer
262 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 ...
1
vote
1answer
30 views

Filesystem unmounted after weekend

I have a problem with an AIX server what I manage. I had some filesystem created to store the structure of an Oracle instance. But after the weekend scheduled reboot the filesystems are unmounted when ...
6
votes
4answers
245 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
44 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 ...
1
vote
1answer
72 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
32 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 ...
2
votes
2answers
780 views

Del key in AIX ksh over PuTTY telnet

At the place where I work we're developing under AIX with ksh and connecting to it via telnet. Most people use ArcTel to connect, while I prefer PuTTY. The only problem I have with PuTTY is that the ...
2
votes
2answers
147 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
24 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
25 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 ...
2
votes
1answer
67 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 ...
0
votes
0answers
24 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
47 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
35 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
0answers
30 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 ...
2
votes
0answers
29 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
104 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.
0
votes
1answer
115 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 ...
2
votes
2answers
134 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 ...
5
votes
3answers
237 views

Perl alternative for screen/tmux for the UNIX world?

What happens when a screen/tmux-like solution is needed (to leave a process running for a long time, but not with nohup because interaction could be needed) - but screen/tmux is not available on the ...
1
vote
1answer
51 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): ...
1
vote
1answer
130 views

AIX why does ps display the process name between square brackets? [duplicate]

On AIX 7 I have a process whose name appears between square brackets in the ps output: PID TTY TIME CMD 7798784 pts/2 0:00 [myproc] 9044154 pts/2 0:00 ps 10485770 pts/2 0:00 ...
0
votes
1answer
33 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
2answers
265 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
69 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
3answers
3k views

Human-readable ls output under AIX?

How can I get human-readable ls output under AIX? There is no -h parameter
2
votes
2answers
568 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 ...
0
votes
1answer
146 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
245 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.
1
vote
0answers
46 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
73 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
0answers
108 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 ...
1
vote
3answers
106 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
98 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 ...
0
votes
1answer
127 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: ...
2
votes
1answer
139 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 ...
3
votes
2answers
3k views

Qemu & AIX 6.1 - what am i missing?

I have a Fedora 14 i386 / T7100 C2D HP notebook. I need to run e.g.: AIX 6.1 on it for testing purposes. I installed a VirtualBox on this Fedora machine. I installed a guest os in the VirtualBox. ...
2
votes
1answer
423 views

sudo hangs when run on remote host over ssh in a script without tty (-t)

I have an AIX 6.1 server where I need to run a remote sudo command in a bash script. Here is my bash script simplified: testSudo.sh #!/usr/bin/bash set -x sudo env I can run the sudo command ...