1846264 Members
6084 Online
110256 Solutions
New Discussion

Re: command -

 
Scott McDade
Frequent Advisor

command -

I am looking for a command that will give me information (model, clock speed) about the uprocessor that is in my 11i workstation. I know uname -a but that doesn't tell me what I need.

-Scott
Keep it Simple!~
4 REPLIES 4
Michael Tully
Honored Contributor

Re: command -

Hi Scott,

Try

# model (for the model)

# echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem

You can also get this information in the 'print_manifest' output

Cheers
Michael
Anyone for a Mutiny ?
Jeff Schussele
Honored Contributor

Re: command -

Hi Scott,

The best thing to use would be the STM (Support Tools Mgr) suite of commands - cstm (command-line) xstm (X-window) mstm (menu-based).
These are installed from the OnlineDiag bundle.
Run swlist & look for that bundle.
If you don't have it you can load it off the CD.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Oleg Zieaev_1
Regular Advisor

Re: command -

Hello Scott.

You can get this information using getconf(1m).
getconf CLK_TCK
getconf MACHINE_MODEL

Model can be queried by simply typing
model

Have a look on getconf man page. It provides some other usefull information.

Hope this helps.
0leg
Professionals will prevail ...
Niraj Kumar Verma
Trusted Contributor

Re: command -

Hi,

I have got an script just try it out

================ Cut here ==========================
#!/bin/sh

#########################################################################
#########################################################################
#
# script is HP-UX specific; check OK to run & determine release level
#
#########################################################################
#########################################################################

if [ `uname -s` != "HP-UX" ]; then
echo "Incompatible kernel, script is HP-UX specific; exiting"
exit 1
fi


VER=`uname -r | cut -c3-4`
case $VER in
"09") KERNEL="/hp-ux"
;;
"10"| "11") KERNEL="/stand/vmunix"
;;
*) echo "HP-UX version $VER not supported"
exit 2
;;
esac


# Check that /dev/mem is readable
if [ ! -r /dev/mem ]; then
echo "/dev/mem read access denied"
exit 3
fi


# determine page size
eval $(grep "define *PAGESIZE" /usr/include/limits.h | sed 's/# *define *//;s/ /=/;s/ *//g')
if [ "$PAGESIZE" = "" ]; then
echo "PAGESIZE not explicitly defined; assuming 4096"
PAGESIZE=4096
fi
# echo $PAGESIZE


# start adb
adb -k $KERNEL /dev/mem |&


# get kernel data
alias setvar='read -p title ; read -p resp ; eval $(echo $resp | sed "s/: */=/")'


print -p hostname/s ; setvar
print -p pdc_model_string/s ; setvar
print -p processor_count/D ; setvar
print -p cpu_arch_is_2_0/D ; setvar
print -p cpu_arch_is_1_1/D ; setvar
print -p cpu_arch_is_1_0/D ; setvar
print -p hz/D ; setvar
print -p itick_per_tick/D ; setvar
if [ "$VER" -eq "11" ]; then
print -p phys_mem_pages/D ; setvar
((mem = phys_mem_pages / 1024))
else
print -p physmem/D ; setvar
((mem = physmem / 1024))
fi


((clock = itick_per_tick * hz / 1000000 ))
((mem = mem * PAGESIZE))
((mem = mem / 1024))


# display results
if [ "$cpu_arch_is_2_0" = "1" ]; then
cpu_arch="PA20"
elif [ "$cpu_arch_is_1_1" = "1" ]; then
cpu_arch="PA11"
elif [ "$cpu_arch_is_1_0" = "1" ]; then
cpu_arch="PA10"
else
cpu_arch="PAXX"
fi
echo "hostname\t= $hostname"
echo "model\t\t= $pdc_model_string"
echo "OS release level= `uname -r`"
echo "processor count\t= $processor_count"
echo "CPU type\t= $cpu_arch"
echo "clock speed\t= ${clock} MHz"
echo "memory\t\t= ${mem} Mb"


# kill off adb & exit
print -p '$q'
exit 0

================ END ==========================

Regards
-Niraj
Niraj.Verma@philips.com