Operating System - HP-UX
1838490 Members
2881 Online
110126 Solutions
New Discussion

How to tell if booted 32 bit/64 bit?

 
SOLVED
Go to solution
Bill Menton
New Member

How to tell if booted 32 bit/64 bit?

We have an hp 9000/800 with hpux 11.00 set up for dual boot (32 bit/64 bit). I would like to include whether it's booted in 32 bit or 64 bit in the motd so that people logging in can tell right away which it is. Any suggestion?
2 REPLIES 2
Vincenzo Restuccia
Honored Contributor

Re: How to tell if booted 32 bit/64 bit?

Your model? (k-class,V,N,L???)
James R. Ferguson
Acclaimed Contributor
Solution

Re: How to tell if booted 32 bit/64 bit?

Hi Bill:

You could build a startup script (in /sbin/rc3.d for instance) that pushes the value returned by 'getconf KERNEL_BITS' into /etc/motd.

getconf KERNEL_BITS will return "32" or "64" depending on the kernel you are running.

...JRF...