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

1
vote
2answers
31 views

rsync on AIX gives popt The module has an invalid magic number error

[SERVER:root:/home/user:] rsync -avz --delete ... Could not load program rsync: Dependent module /opt/freeware/lib/libpopt.a(libpopt.so.0) could not be loaded. The module has an invalid magic ...
0
votes
1answer
22 views

How to extract db version from oratab

I have a requirement to extract the database version in order to fulfil a script requirement. I need to fetch the db details from oratab and its version. Suppose my entry in oratab as below : ...
0
votes
2answers
47 views

Can't send mails with BCC using mailx “illegal option — b”

I'm trying to BCC e-mails through unix using the following command. echo "E-mail message" | mailx -r Senders@Address.com -s "E-mails Subject" ~b BCC_Receiver@Address.com But I get the error ~b... ...
3
votes
3answers
17k 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 ...
1
vote
0answers
25 views

AIX: network and route problem

I changed my router some days ago. ping, internet, and network are working on AIX, but SSH is terribly slow. For connecting to other hosts on the same network it takes... two minutes! This is my ...
-8
votes
0answers
11 views

Running command as another user in AIX [closed]

I want to run a script on boot from another user in AIX. Please provide the solution.
2
votes
1answer
1k 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 | ...
4
votes
2answers
174 views

Display file text one page at a time, wait 20 seconds, then auto-advance

This question is for AIX 7 I have been working on a monitor which will display several pages of text. Initially the end user wanted a scrolling list for which I constructed this: IFS=''; cat plfeed ...
0
votes
2answers
25 views

How to get the opened pty for a given background process (without login) in AIX

Using this answer http://unix.stackexchange.com/a/283521/114939 which allow us to find processes that keep an given pty opened without login (who command cannot show them), caused me to ask the ...
1
vote
4answers
39 views

rename the 10 most-recently modified files on AIX

I have some .xls files in a defined directory (say in /A/B). I want to rename top 10 latest files and append "-bkp" in their names. I tried, not working ls -lt *.xls | head -1 | awk '{print "mv " $9 ...
2
votes
1answer
37 views

Why are some pts in AIX never reused?

In an AIX system (AIX p740 1 7) that is running for about several months, some pts aren't reused anymore. This was noticed using the "who" command, with the following "awk" expression, running it ...
-1
votes
1answer
43 views

AIX: How to find sftp file limit?

Can anybody please help to find sftp file limit on following version on AIX (7.1.2.3). I have following values set I am not able sftp a 110 KB file. ulimit -a time(seconds) unlimited ...
0
votes
2answers
34 views

pausing a loop in AIX to wait for user input

I'm searching for a scripting mechanism that can realize the following idea. Loop over a list and stop/wait on "read x" until the next input from a user. I know the following script is not working! As ...
0
votes
4answers
77 views

Is there a way to show the permissions for a file without using `ls`

That's all - just wondering if there's other way to find out the permissions for a file without doing a ls -l to see the string of values there. As far as I know, there's no show option in chmod.
1
vote
0answers
107 views

How to investigate TCP, domain socket and similar activity of a process in AIX [closed]

I have to collect as much information as possible about a running production system under AIX 5.3. This must not cause any downtime and I may not install any additional software. The final goal is to ...
-1
votes
1answer
37 views

AIX : /etc/security/limits file Parameters [closed]

Can anybody please explain about following parameters found /etc/security/limits file default: fsize = 2097151 core = 2097151 cpu = -1 data = 262144 rss = 65536 stack = 65536 ...
0
votes
1answer
260 views

AIX ssh issue unable to login

I am unable to do ssh as normal users except root. I tried with password as well. It logs in successfully and throws me out . Here is the error message I got. ...
0
votes
1answer
60 views

sed use to replace string 2 lines after matching pattern in AIX 6.1

I try to replace a character, 2 lines after matching pattern. For this, I'm using this code: sed '/some_pattern/{N;N;s/word1/word2/}' /etc/filesystems > /etc/filesystems.tmp && mv -f ...
0
votes
1answer
1k 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
2answers
65 views

linux on aix dont work pgrep -lf ora_pmon

pgrep -lf ora_pmon ksh: pgrep: not found. somebody know who to change the code without pgrep this is the result on another Os pgrep -lf ora_pmon 4104 ora_pmon_dbpicsr 5092 ora_pmon_dbpiss2r 14393 ...
4
votes
4answers
215 views

printing a block of text that matches a pattern

Using just shell script, how to search a text file and list all whole blocks of lines that has inside some text (simple grep criteria). The text file has blocks of lines separated by ...
0
votes
2answers
44 views

Can someone please explain the relation of CPU bottleneck on AIX regarding lcpu and r?

# vmstat 60 2 System configuration: lcpu=12 mem=46080MB ent=1.10 kthr memory page faults cpu ----- ----------- ------------------------ ...
1
vote
2answers
51 views

I want search for a string and to pull all the lines between two patterns [duplicate]

I want search for a string and to pull all the lines between two patterns(including the pattern). START#1 Name S 101 Frankfurt_1_1 19 A+ Street END START#2 Name B 104 Berlin 20 A+ ...
3
votes
2answers
88 views

Search, insert, move and insert

I want to search each record (records are defined by blank lines) in a file for the pattern NAME#AAAA. If it matches, then insert an # in front of the record's AGE line and move that line to the top ...
3
votes
1answer
41 views

ACL not working on directories

For some reason when I create new file from Windows I can change the permissions just fine but when I create a folder it won't let me change the permissions, I get this error: A device attached to ...
0
votes
0answers
21 views

search insert and replace [duplicate]

I want to search each record (records are defined by blank lines) in a file for the pattern NAME#AAAA. If it matches, then insert an # in front of the record's AGE line and move that line to the top ...
1
vote
3answers
50 views

How to grep “block” strings out of a weird file

Command on AIX is: [root@hx042:/home/user1]$ lqueryvg -Atp hdiskpower13 0516-1396 lqueryvg: The physical volume hdiskpower13, was not found in the system database. Max LVs: 256 PP Size: ...
6
votes
6answers
9k views

Does AIX really beat Red Hat Enterprise Linux? [closed]

Our company plan to upgrade our servers, and at the same, we would use AIX over Red Hat Enterprise Linux. I asked my boss the reason of choosing AIX, he said it is because AIX is more powerful. I ...
1
vote
1answer
1k views

What to check in AIX bootlist?

It's OK that we can list the bootlist with: 2:root@server:/tmp/foo # bootlist -m normal -o hdisk0 blv=hd5 pathid=0 hdisk4 blv=hd5 pathid=1 hdisk0 blv=hd5 pathid=1 hdisk4 blv=hd5 pathid=2 hdisk0 ...
0
votes
1answer
33 views

Any concerns with mounting a JFS2 filesystem under an NFS mount?

We have many instances where we mount JFS2 filesystems underneath other JFS2 filesystems (eg. /fs1, /fs1/fs2, etc...) but we've never done it with NFS. Is there anything to be aware of when doing ...
1
vote
1answer
39 views

Only output value if x > y in awk

INPUT: 0:root@server:/root # vmstat 60 2 System configuration: lcpu=52 mem=131072MB ent=10.00 kthr memory page faults cpu ----- ----------- ...
4
votes
2answers
2k 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 ...
0
votes
3answers
67 views

Time in seconds since boot on AIX [duplicate]

I need to get the number of seconds since the last reboot, using ksh. What is the command or function to achieve this?
0
votes
2answers
74 views

command to list logical volume I/O statistics on AIX

I am looking for a command which displays the I/O statistics of logical volumes (like reads/sec , writes/sec, io utilization %, read kb per second, written kb per second) . I tried iostat, but its ...
1
vote
2answers
80 views

Can't get user $HOME over su on Solaris and AIX

I'm trying to get user $HOME variable over su. Solaris # su oracle $ echo $HOME /root AIX # su oracle $ echo $HOME / Linux # su oracle $ echo $HOME /home/oracle Can someone explain why on ...
3
votes
0answers
66 views

How to create large size encrypted file using openssl command

During the creation of an encrypted file in AIX, I received this error: $ openssl enc -aes-256-cbc -salt -in test.img -out test.img.enc test.img: Value too large to be stored in data type ...
1
vote
1answer
62 views

Allocating VLAN to partition

Forgive me if my terminology if off, here -- I'm fairly new to AIX. I have an AIX server (6.1) running VIO, with two client partitions (e.g. CLIENTA and CLIENTB). The two partitions are running on ...
0
votes
1answer
64 views

aix: how to sort ps by stime?

On AIX, for the top 10 cpu processes, I use ps aux | head -1; ps aux | sort -rn +2 | head -10 for the top 10 mem processes ps aux | head -1; ps aux | sort -rn +3 | head -10 How can I sort the ...
0
votes
1answer
42 views

Is Ant made for AIX?

Is there an ant version for AIX?
0
votes
0answers
80 views

SSH connection failed with publickey authentication

I have set up SSH connect between two AIX servers. But It failed when I try to ssh to the server side, sending publickey packet and no reply return. Both client and server users are passwordless, ...
0
votes
1answer
126 views

ssh publickey anthentication failed

I have set up SSH connect between two AIX servers. But It failed when I try to ssh to the server side, sending publickey packet and no reply return. Both client and server users are passwordless, ...
2
votes
3answers
2k views

AIX's sed - in place editing

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

Script to send email alert only when process change state

Below script checks whether MStrsvr process is running or not . The issue I'm facing is if i schedule a cron tab to run this script for every 1 hour it will throw email alert every 1hr that "MSTRSvr ...
1
vote
1answer
302 views

Date “1 month ago” not working in AIX

In machine A (running Oracle Linux Server release 6.4), I am able to get the date of 1 month ago intelligently by using the following command: $(date -d"1 month ago" '+%Y0%m') But it is not working ...
11
votes
2answers
9k 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
69 views

How to find the word before a match

I have the following log file. I need to know if there are any fault / suspect condition using a shell script. I need to find fault and check the previous word, if it is greater than 0 then there is ...
3
votes
2answers
67 views

Ways to optimize performance in pipelines over network (RSH and SSH)

Consider a data transfer over a pipeline network in legacy systems with remote shell (RSH), like: rsh host -l user tar -cf - /home/dir \| compress | uncompress | tar -xvf - and this one in 'modern' ...
1
vote
1answer
215 views

How can I see history of the “at” command in AIX?

I'm experiencing a strange problem where occasionally the at command appears to not be running the command I've configured it to run. For example: at -t 201510071042 runsomescript <Ctrl-D> ...
1
vote
2answers
123 views

Grep line after/before -A/-B substitution in AIX

I'm using AIX 6.1 which isn't supporting in -B and -A flags: grep: Not a recognized flag: B Lets say I want to run: cat file | grep -E -B4 'Directory entry type.*Indirect' | grep "Database name" | ...
2
votes
1answer
631 views

Tutorial about key mapping in KSH in EMACS mode

Are there any good tutorials to learn about key-mapping in Korn Shell (AIX) in EMACS mode ?