Peeter Joot's (OLD) Blog.

Math, physics, perl, and programming obscurity.

some cpu info collection methods for HPUX.

Posted by peeterjoot on June 7, 2011

This link shows lots of ways to collect cpu info on hpux, but some of them appear to require root. Here’s a couple that work for me as a non-root user

$ grep processor /var/adm/syslog/syslog.log
Apr 17 00:44:17 mesh vmunix: 120 processor
Apr 17 00:44:17 mesh vmunix: 121 processor
Apr 17 00:44:17 mesh vmunix: 122 processor
Apr 17 00:44:17 mesh vmunix: 123 processor
$  ioscan -fnkC processor
Class       I  H/W Path  Driver    S/W State H/W Type  Description
===================================================================
processor   0  120       processor CLAIMED   PROCESSOR Processor
processor   1  121       processor CLAIMED   PROCESSOR Processor
processor   2  122       processor CLAIMED   PROCESSOR Processor
processor   3  123       processor CLAIMED   PROCESSOR Processor

This one appears to be the best way, since we get the CPU type too (1005 is what I believe to be a really old cpu version)

$ echo "map selall info;wait infolog" | /usr/sbin/cstm | grep -i cpu
   28  120                  CPU (1005)
   29  121                  CPU (1005)
   30  122                  CPU (1005)
   31  123                  CPU (1005)
Advertisements

One Response to “some cpu info collection methods for HPUX.”

  1. Gennady Yakub said

    You can add “machinfo” command to the list. It doesn’t required root as well.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: