![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hp-ux11.11_openmotif | mannam srinivas | News, Links, Events and Announcements | 3 | 04-09-2009 07:14 AM |
| RPM on hp-ux11.11 PARISC | vasanthan | HP-UX | 2 | 06-02-2008 11:15 AM |
| rpm on HP-UX11 | vasanthan | HP-UX | 3 | 05-15-2008 01:16 PM |
| Verify Hardware installed on HP-UX 11 | hoffies | UNIX for Dummies Questions & Answers | 1 | 11-12-2007 11:23 AM |
| migration from hp-ux11.11 to hp-ux 11.23 | ranj@chn | Shell Programming and Scripting | 2 | 04-15-2006 07:25 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi - Basic question from newbie
I need to find out how to verify hardware installed on HPUX server. Mid-range server - as in i need to prove to customer that a specific cpu is installed, so much memory is installed, etc. PLEASE HELP. TA |
|
|||||
|
If you search the HP-UX forum you will find dozens of threads. Here is one:
List Hardware components in HP UX |
|
|||||
|
ioscan -k -is the typical place to start, this provides list of all hardware
dmesg -is the easiest way to get physical memory SAM is also a great way to get the overview. Some typical programatic specifics are below. PROC_SPEED=`echo itick_per_usec/D | adb -k /stand/vmunix /dev/kmem |awk -F: 'NR>1 {print $2}'` NU_PROC=`echo "runningprocs/D" | adb -k /stand/vmunix /dev/kmem |awk -F: 'NR>1 {print $2}'` MODEL=`model|awk -F/ '{print $3}'` MEM=`echo "phys_mem_pages/D"| adb -k /stand/vmunix /dev/kmem |awk -F: 'NR>1 {print$2}'` |
|
|||||
|
The trouble with dmesg is that if the box has been up for a while the boot messages may no longer be available via dmesg. Also HP has the pstat system calls to obtain info from the kernel. A non-root user can use them and they are safer than running adb on the kernel. For an example of a perl script see: Obtain Memory on HP UNIX.
|
|
||||
|
Here's a script that will tell you the info:
: # Name: # cpumem # # Purpose: # List the CPU & memory particulars of a HP-UX 11i v1 server. # #@(#)cpumem.sh PR nodename=$(uname -n) model=$(model) ncpu=$(echo processor_count/D |adb /stand/vmunix /dev/kmem |tail -n 1 |awk '{print $2}') mhz=$(echo itick_per_tick/D |adb /stand/vmunix /dev/kmem |tail -n 1 |awk '{print $2/10000 " MHz"}') mb=$(echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem |tail -n 1 |awk '{print $2/256 " MB"}') echo "$nodename $model ${ncpu} $mhz $mb" |
| Sponsored Links | ||
|
|