Operating System - HP-UX
1754325 Members
3565 Online
108813 Solutions
New Discussion юеВ

Quick Command to tell whether CPU is 64 or 32 bits?

 
SOLVED
Go to solution
Laurie A. Krumrey
Regular Advisor

Quick Command to tell whether CPU is 64 or 32 bits?

Hi All,

Is there a quick command to tell if my unix
box is at 64 or 32 bits?

I support a bunch of boxes, so just wanted
a real quick and easy way.

Thank You,
Laurie Brown
Happiness is a choice
6 REPLIES 6
Victor BERRIDGE
Honored Contributor
Solution

Re: Quick Command to tell whether CPU is 64 or 32 bits?

Hi,
What about:
getconf KERNEL_BITS

All the best

Victor
Michael Donovan
New Member

Re: Quick Command to tell whether CPU is 64 or 32 bits?

Laurie,
I don't have a quick command to do this and I believe "getconf KERNEL_BITS" will only get what the bit size the kernel was compiled with not the bit size of the CPU. Try this:
start SAM
go to Performance Monitors-> System Properties
->Processor
check "Kernel Width Support"
Also:
32Bit only: D, E, G, H, and I class, K (PA7 x00), T500, and T5
32/64 bit: K class (PA8x00), and T600
64 bit only: V2200, N class, L class

See DocID KBRC00002420 24May00
Steven Sim Kok Leong
Honored Contributor

Re: Quick Command to tell whether CPU is 64 or 32 bits?

Hi,

An alternative quick and easy command to extract the information you need based on your hardware model is:

# grep `model` /etc/.supported_bits

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Alexander Russell
Occasional Advisor

Re: Quick Command to tell whether CPU is 64 or 32 bits?

Of course you can also do this:
swlist -l bundle | grep "RT",
but this doesn't tell you whether you have a 32-bit
install on a machine that supports both 32 and 64-bit.
Probably isn't any better/preferred to earlier:
grep `model` /etc/.supported_bits
James R. Ferguson
Acclaimed Contributor

Re: Quick Command to tell whether CPU is 64 or 32 bits?

Hi Laurie:

To examine the current, running kernel, do:

# getconf KERNEL_BITS

This will return "32" or "64".

To find which kernel is supported by the hardware, regardless of what the kernel is running:

# getconf HW_CPU_SUPP_BITS

This will return "32", "32/64" or "64".

Also useful for interrogating what you can support:

# grep `model|awk -F/ '{print $3}` /usr/sam/lib/mo/sched.models

# grep `model|awk -F/ '{print $3}` /etc/.supported_bits

Patch PHCO_20894 provides the current .support_bits file for 11.0. Even on a 10.20 server, however, you can download it from the Patch database; unshar it; and manually extract the file from its .depot, thereby providing a ready-reference.

...JRF...
Vincenzo Restuccia
Honored Contributor

Re: Quick Command to tell whether CPU is 64 or 32 bits?

print_manifest