Questions tagged [aix]

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.

Filter by
Sorted by
Tagged with
0 votes
2 answers
38 views

Sort absolute directory path alphabetically and numerically

I am having difficulty finding solutions online to sort an absolute directory path using letters and numbers. Example is the below in a file called test.txt /opt/informix/data/dcdwhdev/rootdbs.2 /...
user avatar
1 vote
0 answers
230 views

Installing AIX 7.2 from two iso files, using QEMU under CentOS 8

I'm trying to install AIX 7.2 having it on two iso files, virtualizing with QEMU version 4.2.0. I've created a disk file using the following command: qemu-img create -f qcow2 hdisk0.qcow2 20G Then I ...
user avatar
  • 105
1 vote
1 answer
78 views

Display branch name in $PS1 on ksh88

I want to display my current git branch in the prompt in ksh88. I'm working on a legacy project, when the backend run on IBM's AIX, with a mandatory ksh88 shell. I can switch to say, bash, for some ...
user avatar
  • 111
2 votes
1 answer
206 views

Dnf/Yum repository install on AIX 7.1 ImportError: 0509-022/0509-150 libcrypto

I am trying to create a Yum/Dnf Repository for an offline AIX 7.1 and I've downloaded all the repos by using the reposync on a linux machine that was connected to the internet. I've installed the Dnf ...
user avatar
3 votes
1 answer
26 views

Crontab scheduling for specific option

I need to add a crontab entry which runs every quarter ,on second sunday ,at 02 am. Which of the below one is correct? the OS is AIX. 00 02 8-14 */3 0 && /myscript.sh or 00 02 8-14 */3 * [...
user avatar
0 votes
2 answers
59 views

ksh on AIX - pwd in prompt does not update when changing folders

I'm very new to AIX as well as ksh, but I currently have some downtime at work and am trying to configure my prompt to be both colored and show my current location. At the moment, I get the correct ...
user avatar
3 votes
1 answer
93 views

How do I disable mount on AIX?

I want to disable mount mentioned in /etc/filesystems. (By disabling I mean set the mount option to false). I heard, that the /etc/filesystems file, should not be edited directly, so I don't want to ...
user avatar
1 vote
1 answer
68 views

Script to monitor and alert for new orphaned pids

How would you go about detecting and alerting about newly orphaned pids? I would like to cron a script that checks once a day for any orphaned pids (PPID = 1) for a specific user and only alert if a ...
user avatar
  • 15
1 vote
1 answer
59 views

AIX ACLs difference "permit" versus "specify"

What's the difference in AIX ACLs with permit versus specify: This is what the documentation says: "The permit, deny, and specify keywords are defined as follows: permit Grants the user or ...
user avatar
  • 25
0 votes
1 answer
203 views

How do you install NodeJS on AIX?

I am currently running a server running AIX 7.1 and was wondering how I install NodeJS. I cannot seem to find the apt-get package manager, nor the yum package manager? How do I go about doing this?
user avatar
2 votes
1 answer
168 views

Install oracle on an AIX VM virtualizing with QEMU

I installed a Linux VM in the virtual box, and inside it I installed the QEMU package and virtualized an AIX 7.2 image. The entire installation went correctly. But when I try to install an Oracle ...
user avatar
-3 votes
3 answers
103 views

How to grep below match criteria

I have a task that requires some logic in order to grep for lines between a section: I have in a file the below contents: 1856 /dev/informix/chunkbig10_1039 eppix:'informix'.lsc_ix1 212995 eppix:'...
user avatar
0 votes
1 answer
926 views

aix grep lines before and after match [duplicate]

I am trying to grep for 5 lines before and after a match. Since I am using AIX I do not have the GNU feature of : grep -B 5 -A 5 pattern file Is there a way to do this with grep, awk, perl, sed, ...
user avatar
  • 981
0 votes
1 answer
28 views

How can AIX jfs2 snapshot size be less than size of the data on the fs?

On every OS I ever create the snapshots of size bigger than the occupied fs space. For example: if I had a fs called /try of 250GB but the space used is 100GB I will create a snapshot of 100GB or a ...
user avatar
  • 10.9k
0 votes
1 answer
50 views

Aix: why program mail ignore the mbox setting?

On AIX, I want the mail program to use /root/.mbox instead of default /root/mbox. I edit mailrc vim .mailrc set MBOX=/root/.mbox the result is not good mail Mail [5.2 UCB] [AIX 5.X] Type ? for help. &...
user avatar
  • 10.9k
1 vote
2 answers
330 views

search multiple files for a string on AIX

I was trying to search multiple files for a string like this. Using AIX if this matters. grep -r "gap" /u/user/.History/ /u/user/.History/server/user: /u/user/.History/server/user: This ...
user avatar
  • 981
0 votes
1 answer
101 views

ftp fails in AIX startup

I have a script in AIX that runs a ftp to make a FTPS connection to another host running vsftpd server. /usr/bin/ftp -snv host 8081 <<END_SCRIPT debug user anonymous pass passive binary debug ...
user avatar
  • 281
2 votes
2 answers
313 views

AIX 7 - Command To Check If Never Used User Accounts Are Locked

On AIX 7, I am trying to craft a command that would check the user accounts on my system that have never logged in and to check if they are locked. If a user account that has never logged in exists ...
user avatar
  • 77
1 vote
1 answer
84 views

SNMPv3 on AIX from Linux shows authentication failure

I want to use snmpv3 on AIX, the client is Linux which use snmpwalk command On AIX side I first create the hash of the password pwtokey -p HMAC-SHA -u auth mypass 192.178.0.37 the command return this ...
user avatar
  • 10.9k
0 votes
0 answers
39 views

AIX: Is safe to delete those files?

On my AIX Workstation I see a lot of tmp files in etc find /etc/snmpdv3.director.tmp*|wc -l 203 Is safe to delete those files? Some of them are from 2017, other 2020, other from last month. The ...
user avatar
  • 10.9k
2 votes
1 answer
82 views

Command To Check If Users In /etc/passwd Exist In A Different File

Is it possible to query the /etc/passwd file to view all user UIDS less than 200 and to check if those users are within a file such as /etc/ftpusers? So far, I have managed to craft the command below ...
user avatar
  • 77
1 vote
1 answer
60 views

How do I resize image jpg/png files in AIX based systems through linux commands (Not UNIX)

How do I resize image jpg/png files in AIX based systems through linux commands (Not UNIX). I have already seen ImageMagick tool in many forums but it's only for unix based systems like ubuntu but it ...
user avatar
  • 19
1 vote
1 answer
192 views

AIX: how to see the contents of a service?

On Linux when I want to see contents of systemd service I run: systemctl status myservice I see the XML, I do cat and I see which command, script and vars use this service. On Solaris I use: svcs -xv ...
user avatar
  • 10.9k
0 votes
1 answer
68 views

AIX create directory when copying

What is the best way to create a directory that does not exist when copying files in AIX? Something like this: ssh server1 'cp -R ~user1/bin/log ~user2/bin/log' cp: /u/user2/bin/log: No such file or ...
user avatar
  • 981
0 votes
2 answers
104 views

How are vcpus distributed in AIX LPARs?

I'm reading some docs about LPAR on AIX/IBM server I have this schema: +---------------+------------------------------------------------------------------------+ |LPARS |Virtual cpus | ...
user avatar
  • 10.9k
0 votes
1 answer
610 views

AIX and rpm problem

Today on Aix 7.1 with yum yum -y update Dependencies Resolved ====================================================================================================================================== ...
user avatar
  • 10.9k
2 votes
1 answer
173 views

AIX 7 - Command To Check Histsize Is Set Correctly For All Users

I am checking to see if the minimum password history setting is set to 6. Using the command below, I am able to check the default stanza: lssec -f /etc/security/user -s default -a histsize Can this ...
user avatar
  • 77
0 votes
1 answer
113 views

Run x86 Virtual Machine in a AIX Standalone Host

I need to run a Linux Debian x86_64 system/guest in a IBM POWER7 (big-endian) AIX 7.2 standalone (no HMC) host. Is there another solution besides try to experimently install QEMU from source code? ...
user avatar
  • 1
-1 votes
3 answers
64 views

Find command question - how to list subdirectories and files under a directory without listing the base directory

Find command - how to list only subdirectories and files under a directory without listing the base directory, which is passed as a parameter. Example: find /abc/def/ghi -mtime +10 Above command ...
user avatar
1 vote
1 answer
238 views

AIX - Using Sed To Replace A String In A File

On RHEL, I am able to utilize the sed -i command to replace a string within a file, however, on AIX, it seems like the same -i parameter cannot be used. I have a file called abc.xml that contains the ...
user avatar
  • 77
0 votes
1 answer
19 views

Increasing the width of messages listing in mail prompt

How to increase the width of listings in mail command prompt? Especially the message listing with the command h. The current listing is truncated at 80 characters as showing below: $ mail Mail [5.2 ...
user avatar
  • 1,099
1 vote
1 answer
220 views

Shell Parameter expansion not working in AIX

I'm trying to substitute a specific string that isn't working in AIX but when I run it on RHEL I'm able to get the expected output. Here's the command: filename=25_032021_abcdefghijklmn.txt; mv /u/foo/...
user avatar
  • 13
1 vote
1 answer
34 views

NMON analyze cpu and mem 1 day

I tried to analyze one day's worth of CPU and memory using nmon on AIX, but I have an error -- why? I also want to run it in background. user@host(/home/user)$ nmon -s 900 -c 96 -m 96 -r "nmon ...
user avatar
1 vote
2 answers
80 views

ksh88 AIX merge two files based on partial string match in one column

Using ksh88 on AIX machine, I've tried a whole slew of things that are ultimately not working. File_A has 2 columns without headers: the user group that created the directory in column 1, and the full ...
user avatar
  • 15
0 votes
1 answer
128 views

Want to execute a shell script present on remote linux server while passing 2 arguments from local AIX server

I am trying to execute a local test.sh script and connect to a remote Linux box using ssh, passing 2 arguments. Once connected to a remote server I want to execute test1.sh which internally calls my ...
user avatar
  • 1
1 vote
0 answers
40 views

Is this a viable way to perform a VIOS update and prepare for a quick back out at the same time?

Is the procedure below viable for performing a VIOS update and, at the same time, preparing for a quick back out if necessary? Assume that the existing VIOS is mirrored on hdisk0 and hdisk1. Therefore,...
user avatar
  • 11
1 vote
2 answers
246 views

What is the equivalent /proc/process_pid/environ file in AIX?

Usually I look this file in Linux using string -a command to see this file. Has AIX something like that? I didn't find anything in /proc/pid_process I use this file to know what environment variables ...
user avatar
  • 317
1 vote
1 answer
184 views

Club the two commands i.e output of first as input to the second command

I wish to club the below two Steps whereby the output of Step 1 i.e the PORTS should go as input to Step 2. Step 1: The below command gets me the port numbers from a file. genpwdfile dec -in test/test....
user avatar
  • 297
1 vote
1 answer
745 views

add characters at end of each record in a csv file that contains return characters in fields

I have a csv file with 5 columns in it of varying length. The delimiter between columns is "," and the last column ends with ". The row delimiter is a newline. The latest file has ...
user avatar
0 votes
1 answer
87 views

Is there a way to copy the command history files written & copied simultaneously twice?

This is regarding the ksh shell running on both Linux and AIX machines. Is there a way to copy the command history files written & copied simultaneously twice (shell doesn't allow HISTSIZE to be ...
user avatar
1 vote
1 answer
165 views

script hangs due to `exec` on AiX servers with ksh shell

Below script runs fine on all Servers in my infrastructure. However, I recently discovered that it fails to complete execution and simply hangs on Aix servers with ksh shell. cat myscript.sh export ...
user avatar
  • 297
0 votes
1 answer
192 views

Sendmail Service Issue: "rejecting new messages: min free: 100"

For a test email with the following command (echo "Hi") | mailx -v -r from@something.com -s "Subject Test" -c cc@something.com to@something.com I get the following output in a ...
user avatar
  • 145
1 vote
1 answer
130 views

From awk print a Specific coulumn's Value - passed to awk in a remote SSH - NOT WORKING. Attempted already "\$1"

$ /usr/bin/ssh user@server "sudo sysdumpdev -e |awk '{print \$7}' |awk '{size=\$1/1024/1024; printf("%d\n", size);}'" Syntax Error The source line is 1. The error context is ...
user avatar
0 votes
0 answers
58 views

Get the last modified file's epoch time in current directory

I need to get the epoch time which belongs last modified file in current directory. I have some limitations: must be compatible with RHEL and AIX systems AIX does not allow -printf option with find ...
user avatar
0 votes
1 answer
58 views

grep for one pattern but not for another pattern

A purely grep question. A file contains commented out strings. For example: abc abc1 # def3 ghi5 qwe I want to get all strings with a number in it, but not if this string prepended with "#"....
user avatar
  • 1,138
0 votes
0 answers
29 views

Equivalent file -s in AIX

I need to know the file system type in /dev/device.. in an AIX 7.I environment. What is the equivalent file -s from Linux in AIX?
user avatar
  • 317
2 votes
1 answer
109 views

AIX command to kick out warning light

I am using very old HMC V7; I cannot upgrade this HMC and I have a problem. I just cannot remove the warning light of my server vio via HMC after a hardware replacement. I heard that there's a ...
user avatar
  • 57
1 vote
0 answers
41 views

Resources to compare AIX compiler to Linux compiler for C++

I have been looking at this site https://www.ibm.com/support/knowledgecenter/SSGH2K_12.1.0/com.ibm.xlc121.aix.doc/compiler_ref/rucmpopt.html to check AIX compiler reference since I will transfer c++ ...
user avatar
  • 11
-2 votes
1 answer
121 views

Need solution to archive a folder excluding all .log and .err files using wildcards

I wish to archive all files and folders under /app/jboss while excluding all .log and .err files. The directory structure under /app/jboss is too vast and complex. Thus a few sample files below should ...
user avatar
  • 297
1 vote
1 answer
129 views

How to join results of two commands in IBM AIX ksh

I would like to perform script below but without creation of intermediate files (lsfs.out, df.out) on IBM AIX with ksh lsfs_out=`lsfs | sed -n '1d;p' | sort -b -k 3` df_out=`df -k | sed -n '1d;p' | ...
user avatar

1
2 3 4 5
14