Operating System - HP-UX
1752821 Members
4022 Online
108789 Solutions
New Discussion юеВ

Re: How do I know progrmatically if my kernel is 32 or 64?

 
dev-s
Advisor

How do I know progrmatically if my kernel is 32 or 64?

hi all,
I need to know programtically if my kernel is 32 or 64.
something like getconf LONG_BIT on unix...
tx,
s
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: How do I know progrmatically if my kernel is 32 or 64?

Hi:

# getconf KERNEL_BITS

...will tell you the "bitness" of your kernel, e.g. "64"

# getconf HW_CPU_SUPP_BITS

...will tell you the "bitness" your hardware will support, e.g. "32/64"

Regards!

...JRF...
rick jones
Honored Contributor

Re: How do I know progrmatically if my kernel is 32 or 64?

The programatic suggestions are goodness, just so you know though...

Unless you are running on a PA-8200 processor or earlier, you are running a 64 bit kernel. All kernels running on PA-8500 or later, including Itanium, are 64-bit kernels.

I don't recall if 11.23 retained 32-bit kernel support for PA-8200 or not - the last OS rev to have the option for a 32-bit kernel was either 11.11 or perhaps 11.0 - that goes back far enough that there are more bit errors in the wetware DIMMs...
there is no rest for the wicked yet the virtuous have no pillows
Dennis Handly
Acclaimed Contributor

Re: How do I know progrmatically if my kernel is 32 or 64?

>rick: the last OS rev to have the option for a 32-bit kernel was either 11.11 or perhaps 11.0 - that goes back far enough that there are more bit errors in the wetware DIMMs...

Why use wetware? It's on the web, now only if you can find it in BSC. :-)

HP-UX 11i Version 1 Installation and Update Guide, June 2003:
http://h20000.www2.hp.com/bizsupport/TechSupport/CoreRedirect.jsp?redirectReason=DocIndexPDF&prodSeriesId=459574&targetPage=http%3A%2F%2Fbizsupport2.austin.hp.com%2Fbc%2Fdocs%2Fsupport%2FSupportManual%2Fc01913836%2Fc01913836.pdf
VidyaVI
Valued Contributor

Re: How do I know progrmatically if my kernel is 32 or 64?

Hi,

Please use the below link as the above mentioned link has been redirected

http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01913836/c01913836.pdf

Thanks,
Vidya.
Regards,
Vidya
Forums Moderator

Accept or Kudo

madhuchakkaravarthy
Trusted Contributor

Re: How do I know progrmatically if my kernel is 32 or 64?

hi


use man getconf

getconf KERNEL_BITS

most probably it will be 64 bits

regards

MC
Steven E. Protter
Exalted Contributor

Re: How do I know progrmatically if my kernel is 32 or 64?

Shalom,

Assuming the OS is actually HP-UX here and the hardware was made in the last 10 or so years, you can assume it is 64 bit.

I have two D class systems in my office at home running 11.11 32 bit. They were manufactured before 1998. The D320 can only run 32 bit OS, the D380 could run either.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com