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

-2
votes
1answer
6 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
3answers
4k views

Skip first 3 byte of a file

I am using AIX 6.1 ksh shell I want to use one liner to do something like this cat A_FILE | skip-first-3-bytes-of-the-file I want to skip the first 3 bytes of the first line, is there a way to ...
2
votes
3answers
209 views

AIX tar error: There is not enough memory available now

I have an AIX P720 server running AIX 5.3. When running tar -xvf /dev/rmt0 extracting from tape (IBM TS3100 Tape Library), I get the following error: "There is not enough memory available now". It ...
-1
votes
0answers
32 views

HMC Network boot Lpar using BOOTP to prompt for TSM System backup and recovery

I have a Lpar which i have booted using sms mode and the ping is fine, I used Network method BOOTP Service using normal mode boot when the server boots it should prompt to select the terminal instead ...
3
votes
3answers
6k 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 ...
5
votes
2answers
61 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 ...
1
vote
3answers
3k views

Why doesn't alias 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 ...
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 | ...
1
vote
1answer
941 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 ...
3
votes
3answers
133 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
29 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
38 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
51 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
112 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 ...
0
votes
1answer
51 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
47 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?
1
vote
1answer
26 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 ?
22
votes
4answers
14k views

Getting size with du of files only

How can I get the size of all files and all files in its subdirectories using the du command. I am trying the following command to get the size of all files (and files in subdirectories) find . ...
5
votes
4answers
9k 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 ...
0
votes
1answer
37 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 ...
2
votes
2answers
2k 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
0answers
37 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 ...
1
vote
1answer
141 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
0answers
45 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
44 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
2answers
48 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
96 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
26 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
42 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
60 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
0
votes
2answers
14k 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: ...
1
vote
1answer
26 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
70 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 ...
0
votes
1answer
60 views

PS1 variable inheritance between scripts and programs using bash in AIX

How can I ensure that PS1 variable in AIX bash is inherited between cross calling of scripts and programs ? Suppose a program gives to the user a shell instance such as the shell command of vi. This ...
1
vote
1answer
72 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
0
votes
3answers
101 views

Best way to obfuscate AIX script

What is the best way to obfuscate a shell script in AIX? The problem is that as a shared user, I would like that others don't know the code.
2
votes
2answers
7k views

FTP over SSL in AIX (UNIX)

Folks over at SO couldn't answer this, so I am posting over here. I need to do an FTP over SSL to a FileZilla Server running on a Windows server from an AIX Unix clien. I have the Host name of the ...
0
votes
1answer
159 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
49 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
70 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
108 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
1answer
43 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.. ...
2
votes
2answers
161 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 ...
0
votes
3answers
69 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 ...
0
votes
1answer
1k views

Mounting LUN in AIX

I have LUN created and added to AIX, I know this because once I created the LUN and the name I gave in the IBM storage is displayed and also I used the following commands chdev -l hdisk7 -a pv=yes ...
2
votes
1answer
102 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
0answers
132 views

AIX ssh issue can't able to login

I cant able to do ssh as normal users except root . I tired with password as well . its logged in successfully and throw me out . Here is the error message i got. ...
0
votes
0answers
40 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 ...
1
vote
2answers
99 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
0answers
29 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 ...