Operating System - HP-UX
1834465 Members
2905 Online
110067 Solutions
New Discussion

How to determine hardware info HP735

 
SOLVED
Go to solution
Michael Meeks
Occasional Contributor

How to determine hardware info HP735

I have an old 735 and need to find out the hardware info on it. How do you find out how much memory it has? CPU speed?, etc....
Does HP have a command similar to Solaris's prtdiag?

Thanks for your help.....
3 REPLIES 3
Sridhar Bhaskarla
Honored Contributor

Re: How to determine hardware info HP735

Hi,

There isn't a single command that gives you all the information. There are contributed scripts/tools that you can use.

Try "SysInfo" or "cfg2html". Both should print this information. Search the forums and you will find posts and attachments with those tools.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Pete Randall
Outstanding Contributor
Solution

Re: How to determine hardware info HP735

Michael,

I use these little scripts:


Memory -

HPUX=/stand/vmunix
MAJORREV=$(uname -r | cut -f2 -d .)
if [ $MAJORREV -ge "11.0" ]
then
MYSYMBOL="phys_mem_pages"
else
MYSYMBOL="physmem"
fi

MYMEM=$(echo "${MYSYMBOL}/D" \
| adb $HPUX /dev/kmem \
| grep "${MYSYMBOL}: *." \
| awk '{printf "%.0f MB\n",$2/256}')
echo $MYMEM



CPU Speed -

HPUX=/stand/vmunix

MHZ=$(echo itick_per_tick/D \
| adb -k $HPUX /dev/kmem \
| tail -1 \
| awk '{print $2/10000}')
echo $MHZ


You can also use "Ioscan -k |grep -n processor |wc -l" for the number of processors (though I'm sure you only have one) and a combination of ioscan -kfnCdisk and diskmap to discover the sizes of your disk drives.


Pete

Pete
Jeff_Traigle
Honored Contributor

Re: How to determine hardware info HP735

I'm sure someone will mention the manifest if the OS is new enough to have used Ignite(if they haven't already by the time I get this typed and submitted).

Just in case your running an ancient OS like I was on the 735s at myprevious job or just as an alternative, here's a script that I wrote to give me a report of several different hardware and software items (basically an overall system profile, hence why I named it sysprof). I grabbed the code to get the CPU frequency and similar from somewhere online. The CPU type portion doesn't work for very many CPU types. Overall, it gives quite a bit of useful information, though not exhaustive. It was written to work with 9.X, 10.20, and 11.X. It would probably work fine on 10.X below 10.20 if conditionals were changed, but I had no reason to go there or any way to test it so I didn't bother.
--
Jeff Traigle