≡ Menu

HP-UX HowTo: 3 Methods to Check Your HP Unix is 32-Bit or 64-Bit

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

# getconf KERNEL_BITS

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
Add your comment

If you enjoyed this article, you might also like..

  1. 50 Linux Sysadmin Tutorials
  2. 50 Most Frequently Used Linux Commands (With Examples)
  3. Top 25 Best Linux Performance Monitoring and Debugging Tools
  4. Mommy, I found it! – 15 Practical Linux Find Command Examples
  5. Linux 101 Hacks 2nd Edition eBook Linux 101 Hacks Book

Bash 101 Hacks Book Sed and Awk 101 Hacks Book Nagios Core 3 Book Vim 101 Hacks Book

Comments on this entry are closed.

  • thameera January 12, 2011, 1:12 am

    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”

  • Carl January 12, 2011, 3:21 pm

    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?

  • Justin Germino January 21, 2011, 1:16 pm

    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.

  • Roshan Munavar February 3, 2011, 8:28 pm

    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 ……

  • Prashanth January 27, 2014, 1:38 am

    Thanks this was useful for me