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

Previous month in AIX [duplicate]

I would like to get previous month in my AIX env. date +%B-\%Y -> gives me February-2023 I need to get January-2023 Any idea which command? Thanks in advance
  • 1
0 votes
1 answer
41 views

Configuring AIX auditing for rmdir and syslog collection

How can the auditing feature in an AIX Unix system be configured to collect information about the removal of a directory (though rmdir) and send it to syslog?
1 vote
0 answers
21 views

Mediawiki on AIX, PHP-component missing

My OS-Version is AIX 7.2.5.3 (oslevel -s shows "7200-05-03-2148") and i try to install a Mediawiki (1.39.1). I used the RPM-packages from the "AIX Toolbox for Open Source Software" ...
  • 153
5 votes
4 answers
317 views

Sort by 3 different columns with numbers and text aix

I am trying to perform a sort by 3 different columns in the correct order on an AIX system. The below is an extract of a larger file that displays the longest running runtimes between the open ...
0 votes
3 answers
181 views

How to convert seconds to hh:mm:ss.ms when getting difference between 2 times

I performed a calculation that converts current timestamp giving milliseconds as well using perl command such as below: perl -MTime::HiRes=time -MPOSIX=strftime -e ' $now = int(time() * 1000); printf &...
0 votes
2 answers
109 views

Update /etc/group in AIX with sed

I need to add Centrify/AD accounts to local root groups, which is why I need to manually edit /etc/group as the AD accounts are not recognized via adding the "proper" way, across all of our ...
  • 1
0 votes
1 answer
15 views

List of sessions for ncftpd per user

I am dealing with an AIX 7.1 server running ncftpd 2.8.6. I can count the sessions of established connections counting the number of ncftpd processes. However, how can I list which ncftpd users are ...
-1 votes
1 answer
68 views

IBM AIX - Method to identify Cluster or HA services

I am keen to learn if existing IBM AIX servers from different location have Clustering/HA features. Kindly let me know the steps to check. Thanks.
0 votes
2 answers
60 views

korn shell Store for loop output "values" in array and pass to another loop

Need help with array in korn shell. I need to pass the values from first for loop to 2nd loop. The first loop returns /opt/IBM/db2/V11.5 /opt/IBM/db2/V11.5.8 /opt/IBM/db2/V11.5.8 Then I am greap &...
2 votes
1 answer
44 views

Blocking a specific port

I need to block specific ports temporarily on AIX 7.2 to simulate an application using this port. I am developing a workaround for an application ignoring the entries in /etc/services and using ...
  • 153
0 votes
1 answer
74 views

Switch user using EOF does not work su - ${instance} <<'EOF'

I am running a ksh script from root where I switch (su) to different users and execute the commands. But, some reason EOF does not. Here is part of my code. This part of the code does not work su - $...
0 votes
1 answer
71 views

Find if network interface is a virtual device in AIX

In Linux we can use /sys/devices/virtual/net/<if_name> if the if_name is present under the directory, the device is virtual. In AIX do we have any way to check if an interface say en0 or lo0 is ...
  • 131
0 votes
2 answers
171 views

How to use asterisks in awk if statment

I have a scenario where I need to print a line, but using an awk if to search for a number the is appened with a double colon with more numbers: See below example: test1 test2 37:375003 test3 test4 ...
0 votes
1 answer
211 views

How to check if the disk is shared in Linux and AIX? [closed]

How to check if the disk is shared in Linux and AIX? For example, let's say we have the /dev/sdd in srv1 and srv2 hosts and the disk must be shared across the two servers (the same disk). How can we ...
  • 383
0 votes
1 answer
349 views

Getting a permission denied while invoking remote server script and command in if loop is not working properly

We have two servers, one is aix and other is linux, so from our linux server, i am trying to invoked script that is located on aix to minimise script execution time. code: On linux machine ssh user@$...
  • 11
0 votes
1 answer
34 views

How to get CPU statistics PER PROCESSOR on AIX without requiring root privileges?

I want to get the per processor statistics for my AIX machines. I can use the ‘sar -P ALL 1 1’ (Documentation) command but it requires root privileges. Is there a command that can give me PER ...
2 votes
4 answers
101 views

Exclude last N lines that has been last modified from list and with file extension ending in .gz

I want to use the find command on AIX to exclude files ending in .gz, and it must also exclude the last 2 lines from the list. For example, inside the directory, I have: shop14_0_Log0002019754.gz ...
0 votes
2 answers
136 views

In AIX, how to avoid overwrite a file with cp?

We need to periodically archive some big files older than 2 days to a NAS while keeping their directory tree structure. Those files are kept for 7 days in the source directory. At first we used find ...
  • 163
0 votes
2 answers
109 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 /...
1 vote
0 answers
2k 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 ...
  • 109
1 vote
1 answer
236 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 ...
  • 111
2 votes
1 answer
1k 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 ...
3 votes
1 answer
105 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 * [...
0 votes
2 answers
249 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 ...
3 votes
1 answer
447 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 ...
1 vote
1 answer
137 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 ...
  • 15
1 vote
1 answer
85 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 ...
  • 35
0 votes
1 answer
526 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?
2 votes
1 answer
273 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 ...
-3 votes
3 answers
258 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:'...
0 votes
1 answer
2k 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, ...
  • 1,071
0 votes
1 answer
59 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 ...
  • 11.7k
0 votes
1 answer
83 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. &...
  • 11.7k
1 vote
2 answers
1k 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 ...
  • 1,071
0 votes
1 answer
168 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 ...
  • 281
2 votes
2 answers
1k 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 ...
  • 97
1 vote
1 answer
154 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 ...
  • 11.7k
0 votes
0 answers
61 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 ...
  • 11.7k
2 votes
1 answer
180 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 ...
  • 97
1 vote
1 answer
87 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 ...
  • 19
1 vote
1 answer
643 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 ...
  • 11.7k
0 votes
1 answer
127 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 ...
  • 1,071
0 votes
2 answers
387 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 | ...
  • 11.7k
0 votes
1 answer
1k views

AIX and rpm problem

Today on Aix 7.1 with yum yum -y update Dependencies Resolved ====================================================================================================================================== ...
  • 11.7k
2 votes
1 answer
356 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 ...
  • 97
0 votes
1 answer
203 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? ...
  • 1
-1 votes
3 answers
120 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 ...
2 votes
2 answers
1k 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 ...
  • 97
0 votes
1 answer
26 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 ...
  • 1,129
1 vote
1 answer
445 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/...
  • 13

1
2 3 4 5
14