Quote:
Originally Posted by
tenderfoot
I am sorry that I didnt't tell that bootinfo was not working for me.[...]
Some commands are meant for root only. As normal user you need to use AIX's public APIs. The AIX default tool for extracting system information is
prtconf aka
lsconf since AIX 4.3.3. Among other information it returns the CPU Type i.e. whether the hardware is 32-Bit or 64-Bit and the Kernel Type i.e. what kernel you use.
In case you want to use this output in a script that runs with user privileges only you could also look into the lsconf script and you will find that it uses
getsystype under the hood. Getsystype is some sort of a sudo wrapper i.e. it allows users to retrieve information that otherwise could be retrieved by root only. E.g. with
getsystype -y you get what root gets with bootinfo -y i.e. what hardware you are using and with
getsystype -K you get what root gets with bootinfo -K i.e. which kernel you are using.
Looking at the links to /unix as some other poster sugested is useless though as this link can be changed and you might be using a 32-Bit kernel while the links point to the 64-Bit kernel which would be used after the next reboot only or vice versa.