1,826 questions
1
vote
1
answer
72
views
AIX 5.3 system returning ? for special characters in filenames
I am trying to get filenames containing special characters on an AIX 5.3 system using a Java program but its replacing the special characters with a question mark. This is in client environment. But ...
6
votes
4
answers
152
views
How to cut ranges from end to start?
I need to change the order of a string in AIX, but with the command cut I can't do it
Ex:
echo FT0215202301.xml | cut -b 7-10,5-6,3-4
Result:
02152023
Expected:
20230215
-1
votes
1
answer
37
views
Shell sort command with multiple priority but without "-k"
I'm on a very old AIX 6.1 system and I need to understand a "sort" command.
Due to the age of the system, I can't find any documentation. And the '-h' option is not very helpfull.
Usage: ...
0
votes
1
answer
64
views
AIX: C++ application with shared Qt5Core lib dependency has thread-local-storage runtime issue
I am on IBM AIX-7.2 and have this sample C++ code:
#include <QtCore/QCoreApplication>
#include <QtCore/QDebug>
#include <QtCore/QDateTime>
#include <cstring>
int main(int argc,...
1
vote
2
answers
113
views
Flock calls in perl module on AIX systems
I'm trying to make the following project work on AIX systems. I have almost finished, the end is near but I srill have an issue at tha execution of the agent.
My AIX Systems do not have flock ...
0
votes
0
answers
103
views
Running gtest on AIX
I am trying to run some simple gtest tests on an AIX machine:
#include <gtest/gtest.h>
int add(int a, int b) {
return a + b;
}
// Test case to check addition function
TEST(AdditionTest, ...
0
votes
0
answers
68
views
Can't cross-compile simple code with boost/asio/ssl.hpp for AIX
When I cross compile a simple program including boost/asio/ssl.hpp, the linker gives a lot of undefined reference errors
#include <boost/asio/ssl.hpp>
int main()
{
return 0;
}
/opt/...
1
vote
0
answers
72
views
Memory usage continuously increases during socket communication with pollset() on AIX
I am managing a server process in an AIX 7.1 environment that performs socket communication using pollset(). We have observed that memory usage(vsz) intermittently increases and fails to decrease, ...
1
vote
0
answers
64
views
In AIX (korn Shell) script I am executing in nohup getting failed with an error "Not a terminal" while on screen same script is working fine
In AIX script I am executing in nohup getting failed with an error "Not a terminal" while on screen same script is working fine..
I saved a script say it b.ksh, when I run it on screen
ksh -...
0
votes
1
answer
76
views
How to define AIX(alternate index) in CICS FCT entry?
What should the fct entry defining aix in vsam look like?
I searched online but couldn't find any explanation.
2
votes
4
answers
69
views
print lines with blank spaces or white spaces
I am having dificulty trying to print lines with white space only and excluding the rest like below.
Inside test.txt
francoiv|538|
gerardl|520|
icell|548|
icell |787|
ieppcnf|791|
ieppix |788|
...
1
vote
1
answer
553
views
I want to zgrep from .debug.gz and get lines before and after the string
I'm logging in to my company's IBM AIX system and the grep there isn't GNU and it's the default one and it doesn't support the options -B, -A, -C. I found this workaround for normal grep:
grep -n '...
0
votes
0
answers
63
views
Error on AIX 7.3: Relocation entry 0 (at address 0x4BD43) has an invalid l_rsecnm field
We get below error with few executables compiled on AIX 7.3 using gcc/g++
root@bp2-aixlpar-om-aix73 # bin/pdconfig
Could not load program bin/pdconfig:
Relocation failed for /test/rahul/otos/lib/...
1
vote
0
answers
72
views
IAM Roles Anywhere - rolesanywhere-credential-helper on IBM AIX
I'm encountering a compile error while attempting to build the AWS RolesAnywhere Credential Helper for AIX on macOS. I'm hoping someone here might have some insights or suggestions on how to resolve ...
0
votes
0
answers
121
views
Problems installing NGINX 1.24 on AIX 7.1
I am trying to download NGINX 1.24 on AIX 7.1. I configured pcre-master and then configured NGINX with the same pcre-master. It seemed going well, but upon trying to "make" command, I get ...
-1
votes
1
answer
269
views
Single complex command to find, tar, and zip files on AIX
I have a long Linux csh command that finds/tars/and zips all files in all subdirectories of a directory. It looks like this:
find /dir1/dir2/* -mtime -1 -type -f -print0 | xargs -0 tar -zcf /dir1/dir3/...
-2
votes
1
answer
604
views
SSL handshake failure while connecting to Database
I am getting SSK handshake failure error when connecting Database using certificates from java jdbc programme.
I have the correct client certificates and all getting matched with server .
I am also ...
0
votes
0
answers
386
views
How to resolve a JDBC Connection authorization failure. Reason: User ID revoked
Using the simplest possible Java program to connect to a remote DB2 database, I get the following error, connecting from client 9.245.63.34 to server 9.244.43.32:
[email protected] # java -classpath /...
1
vote
1
answer
84
views
SQLSTATE=42829 while compiling a pro*c code with DB2 database
I am trying to compile a .sqc file on AIX using DB2
getting sql error SQL0511N "The FOR UPDATE clause is not allowed because the table specified by the cursor cannot be modified.SQLSTATE=42829&...
0
votes
1
answer
34
views
Find files younger than a file and print them without their paths
I am on AIX and I am trying to create a shell that checks all files inside a directory that are created/modified after a particular file and print the result on a txt file without paths, I just need ...
0
votes
1
answer
82
views
Exe file compiled by pyinstaller can't execute on AIX 7.1
I'm trying to compile exe file with pyinstaller on AIX 7.1, but the exe file can't execute, below is my screenshot of error message.
The python3 version is 3.9.6, Aix is 7.1 64-bits, pyinstaller is 6....
1
vote
0
answers
41
views
Generate Java heap dump programmatically on AIX [duplicate]
I'm trying to find the source of a memory leak in a Java application running in Java 8 on AIX. I want to programmatically generate a heap dump from within the Java app, when a certain condition occurs....
0
votes
1
answer
337
views
Real-time Data Replication between Geographically Separated IBM MQ Queue Managers on AIX Power Platform
I am facing a data synchronization challenge involving two geographically separated IBM MQ queue managers located in different data centers. I need to achieve real-time data replication and ...
3
votes
0
answers
109
views
Why does the xlc switch -qhaltonmsg not work?
I am usng AIX xlc and attempting to use the -qhaltonmsg=... switch to make certain detected messages fatal. It's not working and I can't figure out why. Here is a sample program:
int main()
{
foo()...
-3
votes
2
answers
114
views
Can we save a value in a config file in unix, which would display as XXXX when opened with vi or more/ cat. But still has a different actual value
I want to store a password in a config file, something as below. I want my scripts to use it. But
when The config file is opened using vi or more or cat, it should display as 'XXXXX' but not its ...
-1
votes
1
answer
103
views
AIX Version 6.1 tar script
I need to create a script in AIX Version 6.1 that create a zip file containing a txt and several pdf. I am not used to scripting in this environment except for some basic so I am sure I am missing ...
0
votes
0
answers
66
views
How to make an API call for IBM Power instance to stop and start
I am working on using IBM Power Cloud Service for creating AIX instance. Most of the APIs work like Get instance, delete instance but the API to modify action fails.
Here is the API Doc :
https://...
-2
votes
1
answer
699
views
Error - JDBC Connection issue - unable to acquire
11-08-2023 06:10:03.380 [ERROR] [biller-connect] com.billdesk.service.BillerConnectCRRMServiceImpl | traceId=PP012308110440256981807957132230440_fetch, bbpsTxnId=null, requestType=FETCH, billerId=...
0
votes
0
answers
34
views
AIX build getting symbol from wrong .a library but works well on legacy HP-UX
On a large legacy build on HP-UX with many static libraries. Two of which have the same function, call it "dupxyz". All works fine as dupxyz is pulled out of the desired module.
On the AIX ...
0
votes
0
answers
41
views
How to extract part of a log file using an initial pattern then search upward and downward with another pattern [duplicate]
From a log file on an AIX server, i need to get an extract as per below
File:
bla
bla
************
bla
UniqIdentifier
bla
UniqIdentifier
bla
************
bla
bla
bla
I need to retrieve
************
...
0
votes
2
answers
92
views
How to get a matched pattern including the previous letters and front side letters until it reaches a specific letter in BASH (AIX)
For example:
You have this string: opp\car\G-lion-8648\bro
I want G-lion-8648 part from this string but G and 8648 are changeable from valuable side or counting side what I mean is that G might be GJ ...
0
votes
1
answer
29
views
How to calculate the difference between two file lists
On AIX i am using ksh.
I have two file lists created with find . -newer file1 > list1 and find . -newer file2 > list2.
How can I now get a difference of those two lists?
list1:
.
./iosrv_0.in....
1
vote
0
answers
162
views
NPM v8.17.0 and upper version is known not to run on Node.js v18.16.0 in AIX 7.2 TL5
I am facing the Issue that when we trigger the "npm stop" from Script file it getting an error
node --expose_gc ./lib/stop.js: --: not found
The Node version I am using is v18.16.0, NPM ...
0
votes
0
answers
131
views
Azure Devops ssh task on remote machine fails on Aix server
We are creating the azure Devops pipeline and wants to execute some command on remote server using SSH task on remote machine.We are able to connect to the server but if I try to do any command ls or ...
0
votes
2
answers
227
views
Linking with xlC on AIX: Choose a specific library version
I'm trying to dynamically link a C++ application with libssl (and libcrypto) on an AIX development machine using the xlC compiler. The problem is, that the SSL version installed on the development ...
2
votes
1
answer
40
views
Implementing target-specific variable assignment in AIX's native make
I have a main makefile (common for all platforms on which my software is deployed on) and a platform specific makefile containing AIX specific settings. The platform makefile is included at the end of ...
1
vote
2
answers
310
views
Disabling AIX /usr/bin/sh clearing of LIBPATH, NLSPATH, and LD_LIBRARY_PATH
I expect a shell not to modify LIBPATH and most other environment variables.
On some but not all AIX systems, /usr/bin/sh (notable for being the shell
behind system(3)) clears variables LIBPATH, ...
0
votes
0
answers
429
views
How to handle error SQL0443N when using 'SYSPROC.ADMIN_GET_MSGS' in DB2?
I am trying to perform DB2 import/export by using JDBC.
As the offical document suggests, I have to execute
call sysproc.admin_cmd(import...messages on server...)
first, then retrieve the messages ...
2
votes
0
answers
272
views
How can I compile and generate libraries of boost version 1.82.0 in Aix?
Compiling the boost C++ library 1.82.0 on AIX 7.2 using xlclang++
I am trying to build the b2 binary using xlclang++ but getting std errors
class.cpp:
warning: unknown warning option '-WL' [-Wunknown-...
3
votes
3
answers
144
views
if else command in IBM AIX OS
I would check in the /etc/security/passwd file if a password is assigned to root user.
We have to types of results:
root:
password = *
or
root:
password = {ssha512}***********
i wrote ...
0
votes
0
answers
148
views
Setting up GitHub runner on AIX server with IBM Power hardware (PowerPC)
I'm trying to set up a GitHub runner on an AIX server that's running on IBM Power hardware (PowerPC). I've been following the steps for setting up the runner on Linux, but I'm not sure if it's ...
1
vote
3
answers
908
views
AIX list out all account password last update date until today
I would like to know how to generate the list of all account's password last update ages on an AIX server.
I am so confused about finding the user account as the server does not have an /etc/shadow ...
0
votes
1
answer
96
views
Error b'' trying to install psycopg2 on AIX 7.2
I am trying to install psycopg2==2.9.6 on AIX 7.2. The first thing I did was install postgresql 13.10 from source in order to get pg_config.
Now when I try to run setup.py build I get this blank ...
0
votes
1
answer
219
views
Compilation error with xlc++ and aix (The #include file <initializer_list> is not found)
I can't find the reason for this compilation error:
The #include file <initializer_list> is not found
I'm compiling with c++11 flag: qlanglvl=extended0x
The version of xlc++ is 16.1 in aix 7.2
...
-1
votes
5
answers
591
views
AIX grep regular expression [closed]
I need to extract information from a file that contains datetime stamp as below
[01/Sep/2023:08:10:45 +0200]
I want to match all lines for year 2023 using grep on AIX
I tried grep -E "\[.*(\/2023)...
0
votes
0
answers
90
views
./Configure is not able to pic xlC_r compiler in AIX 7.1 while compiling Openssl 3.0.7
I am trying to compile OpenSSL 3.0.7 using AIX 7.1 with xlc_r compiler(13.1.3) using below command
CC="/usr/vac/bin/xlc_r -q64" ./Configure --prefix=/pathtodir --enable-fips
When the above ...
1
vote
2
answers
83
views
Replace a string within a line, by the content of a file
I have a file "tmp.txt":
Hi@@xml-record@@Bye
And I want to replace the '@@xml-record@@' by all the content of the file f1.txt:
file1
The result that I want is:
Hifile1Bye
I have try this ...
0
votes
0
answers
141
views
About error lun new not found of server IBM AIX version 7.2
Have error when addtion lun new from disk cabinet Hitachi mapping to server IBM AIX version 7.2 is not found in list of lun with show is "lspv" and scan lun is "cfgmgr". So i sure ...
0
votes
1
answer
563
views
AIX user password reset
I'm able to reset password of a user in Linux using the below task. In Aix also it is executing successfully but password not getting changed and getting access denied.
- name: reset pw
user:
...
0
votes
1
answer
349
views
AIX - collect network traffic with process ID-s
I am into analyzing network communication directions of an appserver machine. I collected a lot of TCP SYN packages, so I can list network communication directions inward and outward.
The inward ...