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

5
votes
2answers
89 views

How to find one word and sequentially replace it?

I am running AIX 5.3(not by choice, but I cannot change it), and I have a text file: servers.txt Here is an example of the file's contents: apple port1 username password IPAddress TCP banana port2 ...
4
votes
4answers
243 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
1answer
56 views

Format the output of awk command

I have to format the output of the awk command which gets the input from a file Sample Input File 123 ABC 12 23 34 45 56 67 78 13 234 DEF 23 34 45 56 67 78 89 345 GHI 34 45 56 67 78 90 10 01 99 456 ...
0
votes
1answer
54 views

Power 7/8 - LPAR has null desired_proc and desired_mem

I am querying the HMC via commands to get the memory and cpu of the logical partitions. I am using the command lssyscfg. For many lpars which are in Running or Not Activated status, the command ...
1
vote
3answers
84 views

Remove first and last character if present

I need to remove the first two characters of every line in a file ( always the same ) and the last "/" if it is present. Input is, in the file F1 : ^./inst/oracle/ ^./tmp/ ^./inst/maj/ ^./mkcd ^./...
3
votes
2answers
125 views

need to replace a file contents

I am stuck in a situation. I have a file script.txt with contents $cat script.txt SET TABLESPACE CONTAINERS FOR 3 -- IGNORE ROLLFORWARD CONTAINER OPERATIONS USING ( FILE '/db2data2/dbs/rahtest/...
0
votes
1answer
56 views

Where is my .sh script syntax error(s)?

Trying to run a small simple script to pull the java -version information from an AIX system's several java64 folders piped into an output/log file using the system's hostname but can't seem to get it ...
1
vote
1answer
154 views

Fast question about NIMOL(nim on linux)

I want to install aix71 client using nimol,i read somewhere only 5.3 clients were supported But i found this on aix71 cd,is possible to install aix 7.1 with nimol?
0
votes
1answer
52 views

How to schedule gap between shutdown and bringing up a AIX 6.1 host ?

I wan to shutdown an AIX 6.1 server immediately and then bring it up after 4 hours automatically ? Is that possible with shutdown command ?
0
votes
0answers
67 views

“Cannot reallocate” when create file?

Am trying to create excel sheet base on multifiles on a root, I read files line by line append in the final excel sheet. Am trying this shell script on small files and it worked 100% bu when I try it ...
0
votes
1answer
51 views

filename.gz installation on AIX

I use sudo tar xvzf forwarder.tar -C /opt/ on Linux and this works perfectly then I proceed with a . /splunk start to install a forwarder file. While in AIX, its forwarder is in .gz format and ...
0
votes
0answers
188 views

How to do data transfer speed test between two AIX LPARs

I have four LPARs connected via High speed inter-connect called Infiniband. It uses RDMA protocol for data transfer from one LPAR to another. I need a method to test the transfer speed. One solution ...
1
vote
1answer
180 views

set -A command not running in Linux

if [ $UNITS = day ]; then while ((OFFSET > 0)); do if (( OFFSET >= day )) ;then month=$((month - 1)) if (( month == 0 )) ;then year=$((year - 1)) ...
1
vote
3answers
94 views

Audit simultaneous logins in AIX

We are in a banking enviornment and our core system is based on AIX. Multiple users are logging in with the same userID at the same time using SSH. I know I can see who SSHed into the system from ...
1
vote
0answers
189 views

ftp: connect: The file access permissions do not allow the specified action

cannot ftp through port 21 Get below error when trying to ftp ftp: connect: The file access permissions do not allow the specified action. Has any one came across above error and having any ...
0
votes
2answers
46 views

De-install NFS Client in AIX6

De-install NFS Client is not happening . I am using below command : # installp -u bos.net.nfs.client and getting error as below : ======================================= << End of Failure ...
0
votes
0answers
69 views

ksh script to ftp file to remote directory script

hello I have this script, basically I need to ftp to remote server only the new files for example that will be generated today or by date, so it does not import the old files, just the new ones I have ...
0
votes
2answers
97 views

mv files older than 8 days in ksh script [closed]

need help to create script in KSH to mv files to other directory in same server older than 8 days they all .CSV
1
vote
1answer
46 views

AIX show package content

I have those filesets, they are not installed. memdbg.adt memdbg.msg.Ja_JP xlC.msg.en_US xlCcmp.13.1.2.lib xlsmp.msg.EN_US.rte xlsmp.msg.Zh_CN.rte memdbg.aix53 memdbg.msg.JA_JP ...
0
votes
0answers
209 views

aix: large files

/opt/freeware/bin/ls //media/nfs/slack64/pubblica /opt/freeware/bin/ls: cannot open directory //media/nfs/slack64/pubblica: Value too large to be stored in data type This happen with coreutils-8.23 ...
1
vote
1answer
270 views

ps aux on aix,how to get PPID?

I know is possible with ps -ef But i want to get it with ps aux How to do it on aix? Thanks
1
vote
1answer
413 views

AIX and oracle: aioserver process won't die

When shutdown an oracle server I see this error message at exit umount /oracle/ umount: error unmounting /dev/oracle: Device busy lsof and fuser report nothing but ps aux|grep oracle report this ...
0
votes
1answer
1k views

What is Iused in df -kg on UNIX?

What is Iused column when running df -kg command on AIX server? @:/logs #df -kg Filesystem GB blocks Free %Used Iused %Iused Mounted on /dev/hd4 1.00 0.61 39% 6103 ...
0
votes
2answers
56 views

find /mydir/tmp/*20151014* -print | xargs grep -l 'filesTransmitted=1' throws error

The command throws error: $ find /mydir/tmp/*20151014* -print | xargs grep -l 'filesTransmitted=1' bash: /usr/bin/find: The parameter or environment lists are too long. Is there any optimal command ...
4
votes
2answers
119 views

Can an AIX user that appears in etc/group but not etc/passwd still log into a server?

Looking at etc/group and etc/passwd files, I see accounts listed in various groups in the etc/group file that do not appear in the etc/passwd files. Can these accounts still log in to the AIX server?
1
vote
1answer
240 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> ...
2
votes
2answers
534 views

linux equivalent to AIX proctree command to show all child and parent processes of a given PID

Sometimes I'm looking for an equivalent for the AIX proctree command which displays all children and all ancestors of a specified PID and can be sometimes quite useful for troubleshooting purposes. As ...
2
votes
1answer
65 views

Shell Script - Redirected output to a file and results are not as expected in first run

I have redirected the output of the command which returns some times 2 rows, 5 rows.. 100 rows etc in the file.. and i will use this file in if condition later to check some other conditions.. ...
0
votes
3answers
117 views

Avoid pgrep in sh

#!/bin/sh ALTER="$1" NAME="$2" for pr in $(pgrep $NAME); do elapse=$(ps -o etime= -p $pr) [ "${elapse%-*}" -gt "$ALTER" ] && echo $pr done I am running this on AIX which doesn't ...
2
votes
1answer
222 views

How to get list of files with not having search string [duplicate]

I have a requirement to display all files in a directory which doesn't have CountOfFilesTransmitted=0 string in them. If I give below command it gives only those files which has ...
0
votes
1answer
348 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
0answers
53 views

Mail from another server

On my development UNIX server mail server is not installed. I want to mail a file everyday which I create on development server. Now I am doing it manually by copying file to another UNIX server ...
0
votes
0answers
35 views

Encrypt traffic between enduser and application on AIX server

I have end users with Windows 7 workstations and they are using some special application (based on WS client - Oracle Tuxedo product) to connect Tuxedo server WSL service which listen on port 1419. I ...
1
vote
1answer
105 views

Replace or modify file contents at one shot

I have file where I need to modify some lines for every account. The line which I need to modify looks like as below: PstlInfo <some content> NNYYYN (Every account will have this line) the ...
2
votes
1answer
51 views

How to have a process queue in AIX like xargs with “--max-procs”?

Consider a simple processing queue like: cat list.txt | xargs -n1 -P20 process.sh (-P or --max-procs) How to have something like that in AIX ?
1
vote
2answers
204 views

Comparing directories using diff

I'm trying to compare two directories that contain binary files, on AIX 6. I'm using diff in preference to dircmp, as I'm trying to maintain a consistent output format between this and my Linux ...
0
votes
1answer
93 views

Compare size of file system

How to compare size of file system on 2 different servers Eg: Server1 Filesystem GB blocks Free %Used Iused %Iused Mounted on /dev/prddatalv 40.00 18.32 55% 65 1% /u01/...
2
votes
1answer
68 views

How to find out what floods the terminal?

When logged in via SSH to an AIX 6.1: 0:root@SERVER:/root # Message from root on SERVER (UNKNOWN) [Fri Sep 18 08:00:17 2015] ... Message from qdaemon: : (WARNING) Connection to server failed. ...
4
votes
3answers
80 views

Open a file with line numbers in more (AIX)

How do I open a file in more mode with line numbers. I am using ksh on AIX for less I use -N but for more it is not working. less -N filename
0
votes
2answers
142 views

motd - UNIX - AIX - different welcome screens for diff users

is it possible to segregate different motd files for different users ? So Admin gets a different message and others diff one....
0
votes
2answers
760 views

Database: 0403-009 The specified number is not valid for this command

getting the error as Database: 0403-009 The specified number is not valid for this command. Code:: #!/usr/bin/ksh #set -x WORKFILE="/tmp/oatest.out" DDLFILE="/tmp/oatest.ddl" TODOFILE="/tmp/...
0
votes
0answers
682 views

Cpu and memory utilization is high in Aix

Hello everyone, I have problem with my CPU utilization I am using sar command to know my cpu idle % in that idle percentage is null and %sys %usr utilizing more, I am trying to check with topas,...
0
votes
1answer
96 views

Need to capture part of file name into variable

I have bunch of CSV files named like so in a directory: s_m_u_supplemental_fields_account_9_4_2015_11_26_Error.csv s_m_u_supplemental_fields_account_9_4_2015_12_3_Error.csv ...
4
votes
5answers
1k views

delete folders older than 1 day

I want to delete all the folders that are older than 1 day with following command: find /test -mmin +1440 | xargs rm -rf But the output of find lists /test (and would remove it accordingly). How ...
1
vote
2answers
130 views

find path directory in sub directory

I want to find the path for directory name bbb where the parent directory called aaa For example /aaa/bbb /tmp/aaa/bbb /usr/bin/aaa/bbb /home/aaa/bbb /home/aaa/xxx/bbb So i wrote something like ...
2
votes
1answer
62 views

Can a process bring itself back to the foreground on completion? (AIX/ksh)

I have a while loop to count to 5 and echo "Done" when finished. I want to be able to execute the script in the background with "&" and continuing issuing commands while it runs. But when it's ...
2
votes
1answer
287 views

Encoding problem on aix system when logging using log4j2

I am using log4j2 to log message on aix system. In log when I use command less I can see: ...|LU?N ...|NOV�K ...|ZEM�NEK when I copy same file on my ubunty system and use same program I can see: ....
1
vote
3answers
839 views

I want to try out AIX in my pc, can i emulate it or get it to run for a very affordable price?

sorry, i'm to new to AIX. i love unix and i try different kinds. so can it be emulated with QEMU or can i buy an old IBM processor to use it? or some other easy way? thanks
1
vote
3answers
843 views

IPCS command for Shared memory and semaphore in Solaris, HP-UX and AIX

I know ipcs command for linux system, but now I'm looking for ipcs command for solaris, hp-ux and aix system, I have searched lot in websites, almost everyone suggest ipcs -am, ipcs -as or ipcs -a. ...
0
votes
1answer
29 views

How to show AIX bridge settings

While Linux has "brctl show" command, I cannot find any similar for AIX. Question: How can we show AIX bridge settings?