Thursday, September 21, 2006

To find the processor architecture on HP/UX


  • To find the processor architecture on UX
    print 'selclass qualifier cpu;info;wait;infolog' | /usr/sbin/cstm | grep 'CPU Module'

  • Processor speed
    print itick_per_usec/D | adb -k /stand/vmunix /dev/kmem

  • How much memory is in my system?
    grep Physical /var/adm/syslog/syslog.log
    or
    print 'memory_installed_in_machine/D' | adb -k /stand/vmunix /dev/kmem | perl -nle '/(\d+)/&print$1*4,"k"'
    or
    print memory_installed_in_machine/D  | adb -k /stand/vmunix /dev/kmem
    or
    print 'selclass qualifier memory;info;wait;infolog' | /usr/sbin/cstm | grep 'Total Configured'

  • What's my system's serial number?
    print 'selclass qualifier system;info;wait;infolog' | /usr/sbin/cstm | grep 'System Serial Number'

No comments: