Verify Hardware installed HP-UX11


 
Thread Tools Search this Thread
Operating Systems HP-UX Verify Hardware installed HP-UX11
# 1  
Old 11-12-2007
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  
Old 11-12-2007
A combination of dmesg and sam (sys admin tool) should provide you with what you need.
# 3  
Old 11-12-2007
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. Smilie

Cheers,
Cameron
# 4  
Old 11-12-2007
If you search the HP-UX forum you will find dozens of threads. Here is one:
List Hardware components in HP UX
# 5  
Old 11-12-2007
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  
Old 11-12-2007
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  
Old 11-12-2007
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"
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How-to verify if my package installed successfully

Can you please let me know how can i verify /check inside the script if the below to package installation commands are successful or if they failed for any reasons? 1. pkgadd -a $INSTP/install/dadmin -d $INSTP/install/apachesrv.pkg 2. pkgadd -a $INSTP/install/dadmin -d... (6 Replies)
Discussion started by: mohtashims
6 Replies

2. Red Hat

How to verify the current NIC driver version installed in RHEL5.3??

Guys, Can you help me how to verify the current installed NIC driver version in RHEL5.3? Thanks.:D (1 Reply)
Discussion started by: shtobias
1 Replies

3. News, Links, Events and Announcements

Hp-ux11.11_openmotif

Hello every one, i am attempting to install motif on HP-UX 11.11 ,which motif version i have to use for installation &where can i get that motif versin. pls provide the information like websites which are containing open motif to install it on HP-UX 11.11. IT'S VERY URGENT. any help... (3 Replies)
Discussion started by: mannam srinivas
3 Replies

4. Shell Programming and Scripting

how to verify sqlplus not installed on solaris

i want to write shell script that exit by displaying error if sqlplus is not installed. The platform is oracle10g on solaris sparc. I tried the which sqlplus command, but it returns errorcode 0 even sqlplus is not installed. Kindly help? (3 Replies)
Discussion started by: mmunir
3 Replies

5. HP-UX

RPM on hp-ux11.11 PARISC

Hi Im trying to build and install rpm on our hp-ux server, can you please tell me how this is achived....I have tried several ways its failing I have downloaded berkeley db and build on my system, when i have seen rpm source file i found berkelydb in that folder..Do i kneed to build again ... (2 Replies)
Discussion started by: vasanthan
2 Replies

6. HP-UX

rpm on HP-UX11

How to install rpm on HP-UX 11i best regards vasanth (3 Replies)
Discussion started by: vasanthan
3 Replies

7. HP-UX

flex++ parser for HP-UX11

Hi, can anyone tell me were to download flex++ parser for HP-UX11 BR vasanth (1 Reply)
Discussion started by: vasanthan
1 Replies

8. UNIX for Dummies Questions & Answers

Verify Hardware installed on HP-UX 11

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 (1 Reply)
Discussion started by: hoffies
1 Replies

9. Shell Programming and Scripting

migration from hp-ux11.11 to hp-ux 11.23

Hi all Can any one guide me what changes may occur with this OS version migration. If you could give some links, that would be helpful too. Regards, Ranj (2 Replies)
Discussion started by: ranj@chn
2 Replies

10. HP-UX

rsync for HP-UX11.0

Was using rsync for Hp-UX 10.20, would like to find out is it available for HP-UX 11. If not is that anything equivalent for HP-UX11.0. I am trying to sync the content of 2 folders. Thanks alot for any help! (2 Replies)
Discussion started by: gelbvonn
2 Replies
Login or Register to Ask a Question