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

by Sasikala on January 12, 2011

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

Linux Sysadmin Course Linux provides several powerful administrative tools and utilities which will help you to manage your systems effectively. If you don’t know what these tools are and how to use them, you could be spending lot of time trying to perform even the basic administrative tasks. The focus of this course is to help you understand system administration tools, which will help you to become an effective Linux system administrator.
Get the Linux Sysadmin Course Now!

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

{ 5 comments… read them below or add one }

1 thameera January 12, 2011 at 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”

2 Carl January 12, 2011 at 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?

3 Justin Germino January 21, 2011 at 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.

4 Roshan Munavar February 3, 2011 at 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 ……
RMS

5 Prashanth January 27, 2014 at 1:38 am

Thanks this was useful for me

Leave a Comment

Previous post:

Next post: