Question: How do I check whether my HP Unix operating system HP-UX is running on 32-bit or 64-bit?
Answer: If you’ve installed it, you should know, as the installation CD (or ISO image) for a 32-bit HP-UX and 64-bit HP-UX are different. Let us assume that your sysadmin installed the OS, and you didn’t know whether he used a 32-bit or 64-bit HP-UX.
Method 1: Use getconf KERNEL_BITS
getconf KERNEL_BITS will return whether it is a 32 bit HP Unix or 64 bit HP Unix as shown below.
# getconf KERNEL_BITS 32 # getconf KERNEL_BITS 64
Method 2: Use file /stand/vmunix
By Checking the vmunix’s filetype you can tell whether the kernel bits in HP-UX operating system is a 32 or 64 bit.
For 32bit HP-UX kernel:
# file /stand/vmunix /stand/vmunix: PA-RISC1.1 executable
For 64bit HP-UX kernel:
# file /stand/vmunix /stand/vmunix: ELF-64 executable
Method 3: Use print_manifest OS mode
In HP Unix HP-UX, the print_manifest provides manifest information such as hardwares connected to the system, storage devices, softwares installed, disk layout, file system layout, swap configuration, kernel fonfiguration s, etc.,
The following example is used to find out only the operating system mode from the manifest details of the system.
# print_manifest | grep "OS mode" OS mode: 64 bit
Comments on this entry are closed.
The first one didn’t work for me; gave an unrecognized variable error. And I’m sure I typed it correct. :S
I usually check this using “uname -a”
I’m with thameera
uname -a works on hpux and all linux distros that i’ve encountered. It also gives a lot of other useful info that you often need when checking what distro like OS version (or at least the kernel) ect…. Also the number one reason why I would rather uname -a or uname -m it’s a lot less typing than the options you posted.
Is there a good reason why uname was not listed?
I don’t know if HP UX is like Linux Distro where many applications are still 32bit running on a 64bit OS that can run 32bit mode, often when I work with applications the OS doesn’t matter if 64bit I have to find out if Apache or whatever app server is running in 32bit or 64bit version on the OS.
hai again RMS[Roshan Munavar Syed]
HP-UX For you people telling like above command’s but for linux
i can tell “# getconf LONG_BIT” its shows but you try also uname -a its all given you but
only the thing is understanding ok guys any other cmd/; please share with us
Thanking you ……
RMS
Thanks this was useful for me