Here is a very complex program that will do the same thing:

#!/usr/bin/perl -w
use strict;
open SYSLOG,"/var/log/syslog" ||
    die "Cannot open syslog:$!";
while (<SYSLOG>) {
  if (/HZ/i) {
     print ;
     exit;
  }
}
And here is the result:

[EMAIL PROTECTED] tmp]# ./clock.pl
Oct  9 01:27:18 localhost kernel: Detected 2187.741 MHz processor.
[EMAIL PROTECTED] tmp]#

I believe that tells you all that you wanted to know.

On 10/16/2003 10:19:37 AM, "Daiminger, Helmut" wrote:
Hi!

I got the answer from an Unix Admin...

There are three ways:

1) If you can reboot the machine you can see it on startup.

2) If not, use SAM (type sam at # prompt) and go to performance
monitors,
system properties.

3) echo 'itick_per_usec/D' | adb /stand/vmunix /dev/mem

echo 'runningprocs/D' | adb /stand/vmunix /dev/mem

hth,
Helmut



-----Original Message-----
Sent: Thursday, October 16, 2003 9:04 AM
To: Multiple recipients of list ORACLE-L


Hi I am also not aware of HP but on solaris u can find using prtdiag command U can find this command in /usr/platform/sun4u/sbin


Regards Pawan Dalmia Database Administrator Orange-9820018753 Extn -5064

-----Original Message-----
Sent: Thursday, October 16, 2003 12:24 PM
To: Multiple recipients of list ORACLE-L

Hi!

I'm new to HP-UX and need to find out how many processors are in a
mchine
and at what clock speed they operate. I can get the number of CPUs
through
glance or top, but I have no idea about the clock speed. How would I
get
that information?

I would know how to do it on Solaris though... ;)

Thanks,
Helmut

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Daiminger, Helmut
  INET: [EMAIL PROTECTED]

Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the
message BODY, include a line containing: UNSUB ORACLE-L (or the name
of
mailing list you want to be removed from). You may also send the HELP
command for other information (like subscribing).


"The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee.  Access to this
message
by anyone else is unauthorized.  If you are not the intended
recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be
unlawful.
Please immediately contact the sender if you have received this
message in
error. Thank you."

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Pawan Dalmia
  INET: [EMAIL PROTECTED]

Fat City Network Services -- 858-538-5051 http://www.fatcity.com
San Diego, California -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the
message BODY, include a line containing: UNSUB ORACLE-L (or the name
of
mailing list you want to be removed from). You may also send the HELP
command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Daiminger, Helmut
INET: [EMAIL PROTECTED]


Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).


Mladen Gogala Oracle DBA



Note:
This message is for the named person's use only.  It may contain confidential, 
proprietary or legally privileged information.  No confidentiality or privilege is 
waived or lost by any mistransmission.  If you receive this message in error, please 
immediately delete it and all copies of it from your system, destroy any hard copies 
of it and notify the sender.  You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to 
monitor all e-mail communications through its networks.
Any views expressed in this message are those of the individual sender, except where 
the message states otherwise and the sender is authorized to state them to be the 
views of any such entity.

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Mladen Gogala
 INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to