The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-12-2007
hoffies hoffies is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 9
Question Verify Hardware installed HP-UX11

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
  #2 (permalink)  
Old 11-12-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
A combination of dmesg and sam (sys admin tool) should provide you with what you need.
  #3 (permalink)  
Old 11-12-2007
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 499
You might like to try the following:
Code:
#!/usr/bin/ksh
. $HOME/.profile
/opt/ignite/bin/print_manifest > $RECOVERYDIR/`hostname`/manifest.txt
echo >> $RECOVERYDIR/`hostname`/manifest.txt
echo "Non Default Kernel Parameters" >> $RECOVERYDIR/`hostname`/manifest.txt
echo >> $RECOVERYDIR/`hostname`/manifest.txt
/usr/sbin/kctune -Sd >> $RECOVERYDIR/`hostname`/manifest.txt
mailx -s "Manifest for `hostname`" $Operations_reports <  $RECOVERYDIR/`hostname`/manifest.txt
Incidentals:
$Operations_reports - refers to an email distribution list.
$RECOVERYDIR - refers to a location on the file system.

Hope that helps some.

Cheers,
Cameron
  #4 (permalink)  
Old 11-12-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,100
If you search the HP-UX forum you will find dozens of threads. Here is one:
List Hardware components in HP UX
  #5 (permalink)  
Old 11-12-2007
411seeker's Avatar
411seeker 411seeker is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 18
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}'`
  #6 (permalink)  
Old 11-12-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,100
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.
  #7 (permalink)  
Old 11-12-2007
prowla prowla is offline
Read Only
  
 

Join Date: Nov 2007
Posts: 165
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0