Operating System - HP-UX
1752322 Members
5586 Online
108786 Solutions
New Discussion юеВ

Re: ia64 hp-ux 11.31 need system config

 
SOLVED
Go to solution
chisle
Advisor

ia64 hp-ux 11.31 need system config

we have been running:

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

to obtain the cpu clock speed on our PA-RISK systems. However, that won't work with this version of adb on 11.31, and probably not with this architecture.

i realize that 'machinfo' provides this information, but it is heavily formatted.

How can I find just the values of the following on an ia64 system running 11.31?

memory (amount)
cpu quantity
cpu speed
serial number

Like I said, you can get it human-readable from 'machinfo,' but to program around that output could be a little too much fun, so if you have a quick peek/poke that works, that would be good.
4 REPLIES 4
Bill Hassell
Honored Contributor
Solution

Re: ia64 hp-ux 11.31 need system config

Two commands will get you the info:

# print_manifest | grep -e Memory -e Processor
Main Memory: 8171 MB
Proccesor(0) Speed: 399 MHz
Proccesor(1) Speed: 399 MHz

# getconf MACHINE_SERIAL
USE0808AEN

print_manifest is part of the Ignite-UX package. If it isn't on all your HP-UX systems, download it immediately from:

http://h71028.www7.hp.com/enterprise/w1/en/os/hpux11i-system-management-ignite-ux.html?jumpid=ex_r1533_us/en/large/tsg/go_ignite-ux


Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: ia64 hp-ux 11.31 need system config

>but to program around that output could be a little too much fun

It's pretty simple with awk. You select some keyword on the line the print the field number:
awk '/keyword/ {print "field 5", $5 }'
muruganantham raju
Valued Contributor

Re: ia64 hp-ux 11.31 need system config

Hi Erik,
Its pretty easy to get only the required information from machinfo. The following grep would do.

machinfo | egrep "Memory: | Machine serial number: | processors "

HTH
Muru

chisle
Advisor

Re: ia64 hp-ux 11.31 need system config

yep, got it, folks. I was hoping to get something a little more peek/pokey, and the closest response was the first one. The others work well too.

In either case, I've got what I need, now. thank you all so much!