aix

Preventing symbols from being stripped in IBM Visual Age C/C++ for AIX

I'm building a shared library which I dynamically load (using dlopen) into my AIX application using IBM's VisualAge C/C++ compiler. Unfortunately, it appears to be stripping out necessary symbols: rtld: 0712-002 fatal error: exiting. rtld: 0712-001 Symbol setVersion__Q2_3CIF17VersionReporterFRCQ2_3std12basic_stringXTcTQ2_3std11char_tr...

AIX: lsdev vs lspv

Hi guys, I'm using AIX and today I had a problem with one IBM server, I found that one of my hdisks was damaged. But I found a curisoity: $lspv hdisk0 000d891c32aae9b6 active hdisk1 000d891cb504fd70 active hdisk2 000d891cb532544d active hdisk4 000d891cb532544d active $lsdev -Cc disk hdisk0 Availabl...

PHP 5.2.13 thowing errors on AIX

Hi All, On AIX 5.3 (TL 5 to 11) in my application I have updated PHP version from 5.2.6 to 5.2.13. Since then, executing php.bin throwing the following errors: =================================================================== PHP Warning: PHP Startup: Unable to load dynamic library '/opt/pdag/lib/extensions/curl.so' - rtld: 0712-00...

AIX specific socket programming query

Hi All, Question 1 From SUSE man pages, I get the below details for socket connect options If the initiating socket is connection-mode, then connect() shall attempt to establish a connection to the address specified by the address argument. If the connection cannot be established immediately and O_NONBLOCK is not set for the fil...

Compiling netcat on AIX

I have been trying to compile netcat.c on AIX for some time (using the command make aix), but the compiler gives me some weird feedback such as : "netcat.c", line 117.12: 1506-275 (S) Unexpected text 'int' encountered. when checked the file netcat.c at line 117, I would find the line (second line in code below): #ifdef HAVE_BIND exter...

How to set a static system date for one user or application--"Groundhog Day"

I have a vendor application on AIX which requires the system date to be set to an arbitrary value for QA testing purposes. The application gets its date from the system, and there is no possibility of changing it to get the date from a parameter. The application runs under a specific userid. I'd like to find a way to set the date for ...

Delphi user authentication on AIX

I am writing a Delphi application that allows a user to connect to an AIX system to perform various tasks. I need to allow a user to sign on to the AIX system before they are allowed to do anything, so I need a method by which their username/password can be authenticated. I had initially thought that I could display a sign on screen wh...

how to low-level format a hard disk using AIX?

Hi guys, I have a server with AIX 6.1 , I formated some hdisks using diag tool, but in some way some of its VGDA survived. how may I low-level format a hard disk using AIX? or how may I clear the VGDA of a specific hdisk? thanks ...

AIX 0403-006 Execute permission denied.

Hi, I am using a shell script on AIX. I have given the execution permission using chmod Still,I am getting the following error: ksh: ./getcwd.exe: 0403-006 Execute permission denied. Any Idea? ...

ORA-00060: deadlock detected while waiting for resource

Hi, I have a series of scripts running in parallel as a nohup on an AIX server hosting oracle 10g. These scripts are written by somebody else and are meant to be executed concurrently. All the scripts are performing updates on a table. I am getting the error, ORA-00060: deadlock detected while waiting for resource As I g...

sequentially executing background processes unix

Hi, I have two scripts say 'S1' and 'S2'. I execute these scripts as, nohup S1 & nohup S2 & But I would like them to execute sequentially. ie., S2 should execute only on successful completion of S1. How should I go about doing this?. How can I know when S1 finishes execution?. Any examples would be much appreciated. T...

rpath not working on aix

When I am trying to build a library using -R option for dynamically search path for my shared library, it is not working on AIX. If I add -L and -brtl and -libpath option during build everything is working. Why -R is not working for aix ...

AIX 6.1 linker error

I'm trying to compile my application on AIX. It builds fine on Linux, Solaris x86 and Windows but this is the first time we've tried to build on AIX. I've managed to get to the point of linking all of the libraries together and I get the error message: Linking... ld: 0711-101 FATAL ERROR: Allocation of 96864 bytes failed in rout...

PS command to get memory, user, process info on IBM AIX and SunOS Solaris

I am looking for best PS command to get as much info as possible, mainly memory info like SZ, RSS with userid, pid, complete command/process. I have two servers IBM AIX and SunOS solaris. I am OK to have two different commands for two servers. I have tried "ps v", "ps al", "ps aux" on AIX, but looking for command that gives more info...

opening a file in aix

(AIX/ksh) i have a chinese file ...i cant able to open it in aix using cat fully...if i give cat then some contents are missing...and if i give cat -v it is giving wierd code....even i tried with while loop to read contents,but not working...with more command i can but i cant use more in shell scripting...so please shed some idea here......

setting CPU entitlement for AIX 6.1

Hi I would like to understand LPAR entitlement's better. If I have a system that is running AIX 6.1 with an uncapped LPAR, what do I lose by setting the entitlement low? Meaning theoretically if I need more CPU power and more CPU's are available then I should see additional Lpars unfold and get more power, does this unfolding cause a s...

Undefined symbol building WWW::Curl::Easy Perl module on AIX 5.3

I'm trying to get the WWW::Curl::Easy Perl module installed on AIX 5.3. I have curl installed (from source) in /usr/local. When trying to build the Perl module, I get this: $ perl Makefile.PL Found curl.h in /usr/local/include/curl/curl.h Building curlopt-constants.c for your libcurl version Building Easy.pm constants for your libcurl ...

Creating and LPAR using VIOS and Assigning IP address to it.

Hi All, I have created an LPAR through VIOS command line interface .Now i need to assign IP address to it so that the LPAR can communicate to extenal network.Can any0ne plz guide me the process to assign IP address to newly created LPAR. Thanks, Sanket ...

Increasing number of BPF devices on AIX

Hi, Anyone know how to increase the number of BPF devices in AIX 5.2/5.3 above the supposed system default of four? i.e. running more than four tcpdump processes concurrently? ...

AIX pthread_create failure with EAGAIN. WLM class limits on threads?

The AIX man page for pthread_create documents the following reasons for an EAGAIN pthread_create failure: EAGAIN If WLM is running, the limit on the number of threads in the class is reached. EAGAIN The limit on the number of threads per process has been reached. I'm seeing this in test code that...