Friday, July 18, 2008

Find processor information from different UNIX flavor

Find processor information from different UNIX flavor

  • On HP-UX
  • You can use the info from the 'model' command to get the processor type (PA-RISC or Itanium) like so:

    Unix1$ grep -i $(model cut -d"/" -f3) /usr/sam/lib/mo/sched.models

    which tells us that the box has a PA8700 processor type (PA-RISC)

    To get the speed, you can do:
    Unix1$ echo 'itick_per_usec/D' adb /stand/vmunix /dev/kmem grep itick_per_usectail -1

    which tells us it's a 750MHz processor

    To get whether the kernel is running in 32 or 64bit mode you can do:
    (Unix1:oracle)# getconf KERNEL_BITS
    64
    which says 64bit mod

No comments: