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
0answers
22 views

How to extract a search string from a line in AIX? [on hold]

How can I extract a string from a line looking for a pattern? For example: [6/25/16 19:13:10:364 ART] 0000300d SystemOut O INFO [WebContainer : 190] trip.c2c2 (Custom1344449048133....
-1
votes
1answer
67 views

How to find a dynamic folders?

Hello StackExchangers, I created folder like this : $folder_name=`date "+%Y%m%d"` $mkdir -p ${DIR_LOG}/${folder_name} Example of folders name: [20160622], [20160621]...etc Now I need to find ...
1
vote
1answer
32 views

How to get file owner in AIX without munging ls output?

How might I reliably get the owner of a file in AIX? By reliable, I don't want to parse the output of ls. On Linux, I would just do a stat --printf=%U foo, but I'm working on AIX 6.1 and 7.1. I ...
2
votes
1answer
2k 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 | ...
3
votes
4answers
20k views

How to get free memory on AIX?

How can I see the free memory on an AIX? There is no free -m under it. AIX oslevel: 6100-03-03-0943
2
votes
2answers
18 views

AIX - redirect hostname in other subnet via route

I have two servers: one application and one database. They are both connected over two interfaces. One is frontend LAN with 100 Mbit and one is in the backbone LAN with 1 Gbit. Well, planned is that ...
0
votes
1answer
31 views

How can I set the MAILTO variable for an at job on AIX? [closed]

I'm calling at jobs on AIX servers using this method: /usr/bin/at now +1 minute << EOF chmod 700 /var/tmp/somescript.sh cd /var/tmp sh /var/tmp/somescript.sh > 2>&1 EOF If ever some ...
1
vote
1answer
25 views

On the fly compression of read- and writeable folder (like Windows EFS)?

Is there a possibility to compress the contents of a directory in Unix (especially AIX) on the fly, while still being able to read and write in the directory? Like the Windows EFS encryption does?
0
votes
1answer
22 views

AIX ksh script to define exported variables locally based on a remote file's definitions

I have to get "export" lines from a remote file on another server, then set the current sh session env dynamically. However, echo with export doesn't seem to work. echo `export CONFIGA=...
1
vote
2answers
42 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
27 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
67 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
18k 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
29 views

AIX: network and route problem [closed]

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 ...
4
votes
2answers
201 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
27 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
41 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
39 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
59 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 file(...
0
votes
2answers
40 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
81 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
114 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
46 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
299 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. unixadm@dmns03nim1:(/home/unixadm)>...
0
votes
1answer
75 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 /etc/...
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
77 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
226 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
50 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
52 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
92 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
46 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
52 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
10k 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
2k 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 blv=...
0
votes
1answer
40 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
88 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
89 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
102 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 ...
4
votes
0answers
78 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 14221428:...
1
vote
1answer
70 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
85 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
46 views

Is Ant made for AIX?

Is there an ant version for AIX?
0
votes
0answers
97 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
151 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
100 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 ...