Operating System - HP-UX
1828682 Members
2362 Online
109984 Solutions
New Discussion

command to check machines bit numbers on HPUX

 
SOLVED
Go to solution
shivakumara
Occasional Advisor

command to check machines bit numbers on HPUX

Hi
I wanted to know is my machine is 32 bit or 64 bit machine. Please get me any if there are any command which gives this information.
5 REPLIES 5
RAC_1
Honored Contributor
Solution

Re: command to check machines bit numbers on HPUX

getconf KERNEL_BITS
file /stand/vmunix
There is no substitute to HARDWORK
Mel Burslan
Honored Contributor

Re: command to check machines bit numbers on HPUX

getconf KERNEL_BITS
gives this information.

also you can see a 32 or 64 indicating your OS' bit width on the output of this command:
file /stand/vmunix

first method is my preferred way, personally.
________________________________
UNIX because I majored in cryptology...
Arunvijai_4
Honored Contributor

Re: command to check machines bit numbers on HPUX

Generic ways are,

# getconf KERNEL_BITS
64

# file /stand/vmunix
/stand/vmunix: ELF-64 executable object file - PA-RISC 2.0 (LP64)

# getconf HW_32_64_CAPABLE
1

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: command to check machines bit numbers on HPUX

I hope you have to use HW_CPU_SUPP_BITS to know specifically. HW_CPU_SUPP_BITS and KERNEL_BITS is related.

HW_32_64_CAPABLE decides whether platform is 32 or 64 bit.

# getconf HW_CPU_SUPP_BITS
64
#
# getconf HW_32_64_CAPABLE
1

hth.
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: command to check machines bit numbers on HPUX

From SAM
========
1) Goto Performance Monitors -> System Properties -> Operating System
2) check OS Kernel Width: value

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"