r/aix • • 11d ago
Rational / Apex Ada binaries
A bit of a long shot, but does anyone have, or know where I can source Rational Ada / Apex Ada for AIX binaries?
r/aix • • 11d ago
A bit of a long shot, but does anyone have, or know where I can source Rational Ada / Apex Ada for AIX binaries?
r/aix • u/carlywog • 27d ago
r/aix • u/carlywog • Oct 28 '26
r/aix • u/carlywog • Oct 25 '26
Thanks to Antoni Sawicki aka Tenox, I expect to finally experience AIX 3 (I left IBM while AIX 3 was still in development).
r/aix • u/tseeling • Oct 06 '26
We have an ancient AIX 7.1 machine for some internal tests. Now there was an efix for the perl 5.28.1 on this machine, and that update broke perl:
u@ta71 ~/src $ perl -v
exec(): 0509-036 Cannot load program perl because of the following errors:
0509-130 Symbol resolution failed for /usr/opt/perl5/lib/5.28.1/aix-thread-multi/CORE/libperl.a(libperl.o) because:
0509-136 Symbol strerror_l (number 215) is not exported from
dependent module /usr/lib/libc.a(shr.o).
0509-026 System error: Error 0
0509-192 Examine .loader section symbols with the
'dump -Tv' command.After some research I found that AIX 7.1 does not offer the strerror_l function in libC, this was only introduced with AIX 7.2. The efix package is explicitly intended for 7.1 TL5.
u@ta71 ~ $ dump -Tv /usr/lib/libc.a | grep strerror_
[1462] 0x0007897c .data EXP DS SECdef [noIMid] __linux_strerror_r
[1463] 0x00078988 .data EXP DS SECdef [noIMid] strerror_r
u@ta72 ~ $ dump -Tv /usr/lib/libc.a | grep strerror_
[1489] 0x00077b50 .data EXP DS SECdef [noIMid] __linux_strerror_r
[1490] 0x00077b5c .data EXP DS SECdef [noIMid] strerror_r
[1491] 0x00077b68 .data EXP DS SECdef [noIMid] strerror_lI'm not sure how to continue now. Would I report this as a bug to IBM? Anyone else experienced this?
I could build my own 5.28.3 on this machine (did this and it works) which should be sufficient for continuing in the short term but I'd rather have the "official" perl in a working and usable state :-)
Update: this is an official IBM fix. They released perl 5.28.1.13 via this page.
Update 2: the security advisory only lists 7.2 and 7.3 as eligible for using the fix, not 7.1. This is kind of contradictory ...
r/aix • • Aug 08 '26
I have been exploring AIX and I thought I would write up how to write a simple Hello World program in assembly using the AIX toolchain and debuggers.
Some background about the toolchain : AIX has an `as` assembler as apart of the base image, and an `ld` linker, these are not the GNU as/ld , and have different options. Additionally, The outputs are XCOFF binary format, not ELFs. The AIX debugger is ` dbx`. All of these have man pages where some basic usage is called out.
AIX runs on POWER architecture machines, which are a RISC machine. The property of importance here is that the instructions are fixed width (4 bytes), and the word size/address space is 8 bytes wide. Obviously, you can't fit an entire address in an instruction, and so AIX (and Linux PPC), use complicated relocation and register relative addressing to enable loads and stores. This is enabled by the TOC, which is customarily place in register `r2` . Each function can be associated with its own TOC (or a shared module TOC), and function descriptors (DS) are used to associate a function with a TOC.
Behold, the assembly (which you can easily generate simiiar examples with gcc as apart of the AIXToolbox).
.extern .kwrite #external symbols for syscalls defined
.extern ._exit
.set STDOUT_FILENO,1
.globl __start[DS]
.csect __start[DS],3 # function descriptor for __start entry point
__start:
.llong .__start, TOC[tc0], 0
.csect .text[PR],5
.globl .__start
.__start: # actual code for entrypoint
mflr 0 #prologue, move LR to register r0
std 0, 16(1) #save r0 (IE. the LR) in sender link area
stdu 1, -128(1) #allocate our stack frame (Required by ABI) because we are non-leaf
li 3, STDOUT_FILENO # r3 is used as argument1 for syscall
ld 4, hello_world_desc(2) # load address of string into r4 relative to r2 (TOC)
li 5, hello_world_len # r5 (argument 3) set to length
bl .kwrite # do syscall via call (see notes below)
nop # ABI required by for linker to fixup r2
xor 3, 3, 3 # zero exit code stored in argument r3 for exit syscall
bl ._exit # invoke exit syscall
nop
addi 1, 1, 128 # dead code for epilogue
ld 0, 16(1)
mtlr 0
blr # this would otherwise be a ret instruction
.csect .data[RW], 4
hello_world_str:
.byte "Hello, World"
.byte 10
.set hello_world_len, $ - hello_world_str
.toc
hello_world_desc: .tc hello_world_str[TC],hello_world_str
A Note on Syscalls on AIX:
AIX uses a convention somewhat analogous to Windows NT, in that applications ordinarily do not make syscalls directly, and the syscall number isn't an ABI feature (a la Linux). Windows NT exposes its sycall layer through ntdll.dll as functions. This shared library is mapped in all processes loaded, requested or not. Similarly, AIX maps the kernel (/unix) unasked, at address 0x0000000000000000 . The kernel exposes a set of symbols to processes that the loader is capable of binding in processes. The kernel text actually contains the functions which wrap syscalls (a la ntdll.dll), and userspace programs call these entrypoints which preform a syscall instruction to cross the protection boundary.
This raises a small difficulty linking, these symbols must be bound by linking against the kernel import file. This is contained as apart of the the `bos.adt` packages. Alternatively, what I did was create my own import file (./kern.imp)
#!/unix
.kwrite
._exit
This can be assembled as follows:
`as -o hello_world_kernel.o -a64 -mPWR9 hello_world_kernel.S`
Note that the assembler defaults to the 32 bit unless '-a64' is provided.
I used to following command to link
`ld -b64 -o hello_world_kernel hello_world_kernel.o -bI:./kern.imp`
We can now observe the binary. The traditional UNIX equivalent of strace is `truss`.
truss ./hello_world_kernel
execve("./hello_world_kernel", 0x2FF22C54, 0x20016878) argc: 1
kusla(6, 0x09FFFFFFF0001170) = 0
Hello, World
kwrite(1, " H e l l o , W o r l d".., 13) = 13
_exit(0)
Additionally we can trace up to the syscall in dbx.
$ dbx ./hello_world_kernel
Type 'help' for help.
reading symbolic information ...warning: no source compiled with -g
(dbx) stop in __start
[1] stop in __start
(dbx) map
Entry 1:
Object name: hello_world_kernel
Text origin: 0x100000000
Text length: 0x3d3
Data origin: 0x110000290
Data length: 0x40
File descriptor: 0x4
Entry 2:
Object name: /usr/ccs/bin/usla64
Text origin: 0x9fffffff0000000
Text length: 0xf82e
Data origin: 0x9fffffff000f82e
Data length: 0x0
File descriptor: 0x5
(dbx) cont
[1] stopped in __start at 0x100000200
0x100000200 (__start) 7c0802a6 mflr r0
(dbx) listi
0x100000200 (__start) 7c0802a6 mflr r0
0x100000204 (__start+0x4) f8010010 std r0,0x10(r1)
0x100000208 (__start+0x8) f821ff81 stdu r1,-128(r1)
0x10000020c (__start+0xc) 38600001 li r3,0x1
0x100000210 (__start+0x10) e8820000 ld r4,0x0(r2)
0x100000214 (__start+0x14) 38a0000d li r5,0xd
0x100000218 (__start+0x18) 48000025 bl 0x10000023c (kwrite)
0x10000021c (__start+0x1c) e8410028 ld r2,0x28(r1)
0x100000220 (__start+0x20) 7c631a78 xor r3,r3,r3
0x100000224 (__start+0x24) 48000041 bl 0x100000264 (_exit)
(dbx) stepi
stopped in __start at 0x100000204
0x100000204 (__start+0x4) f8010010 std r0,0x10(r1)
...
0x100000218 (__start+0x18) 48000025 bl 0x10000023c (kwrite)
(dbx) stepi
stopped in kwrite at 0x10000023c
0x10000023c (kwrite) e9820008 ld r12,0x8(r2)
(dbx) stepi
stopped in kwrite at 0x100000240
0x100000240 (kwrite+0x4) f8410028 std r2,0x28(r1)
(dbx) stepi
stopped in kwrite at 0x100000244
0x100000244 (kwrite+0x8) e80c0000 ld r0,0x0(r12)
(dbx) stepi
stopped in kwrite at 0x100000248
0x100000248 (kwrite+0xc) e84c0008 ld r2,0x8(r12)
(dbx) stepi
stopped in kwrite at 0x10000024c
0x10000024c (kwrite+0x10) 7c0903a6 mtctr r0
(dbx) stepi
stopped in kwrite at 0x100000250
0x100000250 (kwrite+0x14) 4e800420 bctr
(dbx) p $r0
0x0000000000003700
(dbx) listi 0x3700
0x0000000000003700 4cc63342 crorc cr6,cr6,cr6
0x0000000000003704 44000002 sc 0x0
...
(dbx) nexti
Hello, World
stopped in __start at 0x10000021c
0x10000021c (__start+0x1c) e8410028 ld r2,0x28(r1)
(dbx) stepi
stopped in __start at 0x100000220
0x100000220 (__start+0x20) 7c631a78 xor r3,r3,r3
(dbx) stepi
stopped in __start at 0x100000224
0x100000224 (__start+0x24) 48000041 bl 0x100000264 (_exit)
(dbx) stepi
execution completed
(dbx) q
I am continuing to explore AIX, so some of this analysis may be incorrect , or change later. But, its been fun so far.
Post RISC assembly or other AIX secrets.
r/aix • u/No-Student8333 • Nov 28 '25
Hello, I am playing with `alt_disk_copy` on a PowerVS 7.3 AIX instance in IBM Cloud, I have two disks, `hdisk1` which contains the rootvg, and a blank `hdisk0`.
I am trying to run the `alt_disk_copy` command to simulate cloning over to a bigger disk. I realize that I can just resize the disk in the Storage features of the Virtual Server - I am trying to learn about `alt_disk_copy`.
On running the command `alt_disk_copy -V -d hdisk0` I get the following error:
alt_disk_copy -V -d hdisk0
Calling mkszfile to create new /image.data file.
Failed to match the inode of ipldevice to any device. Explicitly pass boot device using -d as a workaround
Failed to match the inode of ipldevice to any device. Explicitly pass boot device using -d as a workaround
0505-121 alt_disk_install: Error.
Cleaning up.
I suspect this has something to do with the Virtualized Environment. Any insight?
r/aix • u/TexasCowboy1964 • May 15 '25
Yesterday I downloaded the dnf install script and executed it on my NIM server.
I do a error warning that a port could not be reached. I understand that means that our companies firewall is blocking that port and I can look at firewall logs to confirm.
But before I send the networked team a ticket to open the port, I had a question.
Has anyone firgured out how to install and use dnf from the nim server for ALL nim clients
or
Should I just install dnf on all servers?
thanks
From the Heart of Texas
https://www.ibm.com/support/pages/aix-toolbox-open-source-software-downloads-alpha
r/aix • u/jtambor • Apr 01 '25
Folks,
I'm new to the IBM world. Purchased a S822 to learn. Been trying to get the VIOS install to boot from SAN without luck.
I have an ESOS storage system and the power8 is FC direct attached. I can run through the install successfully. The installer sees the LUN and does not error. I can see the ports logged in on the ESOS too.
When the installer performs the reboot, I get "no OS image detected". None of the ports will link. SMS bus scan shows nothing. If I restart the installer, then they link up again.
Is this even doable or am I wasting my time?
**edit**
Thank you all for taking the time to respond.
Since SMS does not show a link with my storage, everything else is bound to fail.
I'm leaning toward a different storage server.
Some notes/updates/results(no particular order):
8.. If all else fails, I will go to HMC/VIOSv3.
9. My storage is direct attached. Trying to avoid pulling out my FC switch from storage but I will if it is required.. It is rather power hungry.
10. During install, I can see the LUN status as bootable/rootvg
r/aix • u/tseeling • Mar 24 '25
[crossposted to r/perl because I have no clue what's causing this]
I was testing some older scripts on a newly installed AIX 7.3 machine with perl 5.38.1 and I noticed something strange.
When being in a directory with test data, and the test data happens to include a usr/lib directory with libraries the perl binary also uses them. ldd /usr/bin/perl suddenly shows that perl wants to use the libraries referenced with the relative paths! When perl is invoked it bails with lots of unresolvable symbols which means it really tries to load libraries from the relative usr/lib directory.
I have no idea how this works and why. In my (limited) tests I could not reproduce this on AIX 7.2 with perl 5.28.1.
Is this some behaviour introduced with a perl version > 5.28 or would it rather be AIX-specific? I have no clue how to further investigate.
$ ldd /usr/bin/perl
/usr/bin/perl needs:
...
usr/lib/libdl.a(shr.o)
usr/lib/libcrypt.a(shr.o)
...
usr/lib/libpthreads.a(shr_comm.o)Update: I can block this behaviour by explicitly setting the LIBPATH variable which controls the order of searching and loading dynamic libraries (this is like LD_LIBRARY_PATH on Linux). If set to a static default like LIBPATH=/usr/lib:/opt/freeware/lib the offending (and imho insecure!) relative paths are no longer shown and perl works correctly. So my conclusion is that this is intended AIX behaviour for 7.3 and I'll open a ticket with IBM support for this.
r/aix • u/krackout21 • Mar 24 '25
I've succefully install an AIX 7.2 vm on QEMU for some time. I recently started to experiment to make it a bit faster. Switching from qcow2 to raw, plus io_uring made a good difference.
I'm also trying to switch from spapr-vscsi & spapr-vlan devices to virtio. Virtio-scsi works fine, but I have issues with virtio-net.
While booting, I can see the virtio-net device on firmware:
Populating /pci@800000020000000
00 0000 (D) : 1234 1111 qemu vga
00 0800 (D) : 1033 0194 serial bus [ usb-xhci ]
00 1000 (D) : 1af4 1004 virtio [ scsi ]
Populating /pci@800000020000000/scsi@2
SCSI: Looking for devices
100000000000000 DISK : "QEMU QEMU HARDDISK 2.5+"
00 1800 (D) : 1af4 1000 virtio [ net ]
On AIX:
$ lsdev -Cc adapter
ent0 Defined Virtual I/O Ethernet Adapter (l-lan)
ent1 Defined Virtual I/O Ethernet Adapter (l-lan)
ent2 Available 00-18 Virtio NIC Client Adapter (f41a0100)
hdcrypt Available Data encryption
pkcs11 Available ACF/PKCS#11 Device
scsi0 Available 00-10 Virtio SCSI Client Adapter (f41a0800)
vsa0 Available LPAR Virtual Serial Adapter
vscsi0 Defined Virtual SCSI Client Adapter
(There's only one NIC on the vm, but have the same result with spapr-vlan enabled, in which case networking works fine)
$ prtconf
* ent2 qemu_virtio-net-pci:0000:00:03.0 Virtio NIC Client Adapter f41a0100)
But unfortunately ifconfig -a shows only loopback, lo0.
Any ideas how to enable NIC (en2 I suppose) to be listed in ifconfig and being able to configure?
r/aix • u/daygamer77 • Feb 20 '25
Hi,
So i noticed that on a vio server /var is more than 90% , then i found out that a file is consuming most of the space
its under /var/vio and it has the same name as the VMLibrary folder
-rw-r--r-- 1 root staff 3054501888 May 31 2024 VMLibrary
drwxr-xr-x 3 root system 4096 May 31 2024 VMLibrary
Now I am trying to delete it but im getting an error -
0653-603 Cannot remove directory VMLibrary
How do i remove it? i tried to open the file but it and it just blank>
Im not even sure where it came from, im guessing that it was a result of a wrong copy command as it has the same date. Maybe instead of copying a large files to VMLibrary it goes under /var/vio, but i dont know not sure.
Just want to know how do i delete it
r/aix • u/CuriosTiger • Dec 07 '24
I have gotten this far, but it doesn’t progress from there to a login prompt. Instead, the machine initiates a clean shutdown after 15-20 minutes of sitting on this screen.
The LCD display shows a progression of boot codes, but goes blank by the time this screen shows up.
AIX 4.1.4 on an Apple Network Server 700/200 — an oddball from Apple that is basically a cross between an RS/6000 and a PowerMac 9500 — but these machines shipped with AIX.
r/aix • u/TexasCowboy1964 • Aug 15 '24
I am going to be adding memory DIMMS to my 9009 and I have never rebooted it (hosts 2 VIOS and 17 LPARS). Does anyone know how long this machine will take to reboot.... the LPARS boot in like 2-3 minutes
r/aix • u/daygamer77 • Jul 11 '24
Hi,
I am wondering if which log file i cam find the backup comfirmation is successful on an aix machine? And what to look on the log file.?
r/aix • u/daygamer77 • Jul 05 '24
Hi Guys, just wanted to ask some guidance on where to look,
I have an exported filesystem and this nfs is mounted on several different VIOS
My problem is some of the server is getting permission denied accessing a specific folder.
Something like this -
nim2:/scripts /scripts
All the VIOS dont have issue accessing the /scripts folder and viewing all whats inside.
But inside /scripts there is a mksysb folder and 2 out of the 10 VIOS is getting permission denied when im trying to access the folder. I am using root by the way.
Can someone guide me on where or what to look?
Also, unrelated to my question above, if i ssh to HMC and use VTMENU and login to the server using it.
How do i go back to VTMENU once im done on the server that i just accessed?
Thank you in advance.
r/aix • u/daygamer77 • Jun 05 '24
Hi,
So i added a virtual adapter to for the new VLAN on our HMC. That virtual adapter, I attach it to both our VIOS on the HMC and its reflecting on each of the VIOS profile.
Now, inside the VIOS, i need to add additional route on that adapter. I have 4 network adapters on the VIOS,
Out of the 4, How do i find the exact adapter which i added on the VIOS on the HMC?
r/aix • u/sdf1977 • Apr 17 '24
Hi
We have an old AIX server that rarely gets used, but is kept around for "just in case" events.
I had a look at it the other day and it shows "No OS image was detected by the firmware"
I have found this link: https://www.ibm.com/support/pages/resolving-no-os-image-detected-boot-hang the problem is that when connecting using PuTTY over a serial connection, it wont recognize that I'm pressing Ctrl+C and then "1" (I've tried so much I could give a parent hitting F5 for Taylor Swift tickets a run for their money)
The server itself doesn't have a video port, so I can't go the traditional way and hook up a monitor.
Not sure how these things get installed in the first place, must be through sense of smell or something.
Can anyone advise a solution, please?
Many thanks!
r/aix • u/Select_Ad_3972 • Dec 21 '23
I am seeing a weird error and I'm not sure how to fix it. I'm using NagiosXI and pulling my systems in via the wizard. 100 of the server worked, 8 do not. And all 8 are getting this error.
File "/opt/freeware/lib/python2.7/site-packages/psutil/_psaix.py", line 186, in disk_partitionsOSError: [Errno 13] Permission denied
r/aix • u/daygamer77 • Dec 10 '23
Hi, quick question.When you take a mksysb of ServerA and you copy that mksysb to ServerB and put it on alt disk.When you boot it up, does the rootvg now will have the same IP as the ServerA?
r/aix • u/25cmshlong • Jun 13 '23