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
Get the Linux Sysadmin Course Now!