1832891 Members
2219 Online
110048 Solutions
New Discussion

Re: Please help me

 
nandam
Frequent Advisor

Please help me

Could you Please give me a command's to see

Manufacturer
Model No.
Application
Type of Servers
H/W Platform
CPU Speed/No
Hard Disk No.
Memory
Mirror
OS version
Kernel Version
Interface1
Interface1 ip
Netmask
Default Gtwy.

Thanks
7 REPLIES 7
Ramaprasad N
Honored Contributor

Re: Please help me

Try these commands. They will give some info.

uname -a (OS version, name, host name, etc).
model (Model #)
lanscan (number of interfaces)
ifconfig lan0/lan1/,,, (to get IP details of intefaces)
getconf KERNEL_BITS (to get kernel bits 32/64)
ioscan(to get the hardware details).
ioscan -fnC disk (to get disk devices)
dmesg|grep Physical (to get memory)
top (to get CPU details).

-Ram
Victor Fridyev
Honored Contributor

Re: Please help me

Hi,

Manufacturer HPUX
Model No. #> model
Application
Type of Servers #> model or uname -a
H/W Platform #> uname -a
CPU Speed/No #>echo itick_per_tick/D | adb -k /stand/vmunix /dev/kmem |
grep "000" | awk '{print $2/10000 " MHz" }'
Hard Disk No. #> ioscan -kfnCdisk and diskinfo /dev/rdsk/XXXXX
Memory #>echo phys_mem_pages/D |adb /stand/vmunix /dev/kmem |
awk '/^phys_mem_pages/&&NF>1 { print $2 }'
Mirror #>lvdisplay lolname
OS version #>uname -a
Kernel Version #> uname -a
Interface1 #>ifconfig Interface1
Interface1 ip #>ifconfig Interface1

Netmask #>ifconfig Interface1

Default Gtwy.#> netstat -rn
Entities are not to be multiplied beyond necessity - RTFM
dictum9
Super Advisor

Re: Please help me

just a comment, you get more replies with descriptive subjects.

has anybody mentioned the machinfo command?

It will give you some of what you need, like how much memory.
Pete Randall
Outstanding Contributor

Re: Please help me

If you have Ignite installed, you can use the print_manifest command.

You can also use SAM to display system properties (Sam -> Performance
Monitors -> System Properties).

There are also utilities like "cfg2html" ( http://come.to/cfg2html ),
"nickel" ( ftp://ftp.hp.com/pub/catia/Utils/nickel.shar ) and "sysinfo"
( http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/ ).

Finally, you can also obtain this information from the command line with a
series of little scripts like these:

CPU

HPUX=/stand/vmunix

MODEL=$(grep -i $(model | tr "/" " " \
| awk '{print $NF}') \
/usr/sam/lib/mo/sched.models \
| awk '{print $NF}')

#Note: for 11.23 RISC, use
MHZ=$(echo itick_per_tick/D \ # echo "itick_per_usec/d" \
| adb -k $HPUX /dev/kmem \ # | adb $HPUX /dev/kmem
| tail -1 \ #For Itanium, use machinfo
| awk '{print $2/10000}')
echo `hostname` has `ioscan -k |grep -n processor \
|wc -l` $MODEL $MHZ "Mhz processor(s)"


Number of CPUs

ioscan -k |grep -n processor |wc -l




RAM

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



And, even more finally, you can obtain CPU speed and RAM without CSTM or root ac
cess as described by Tom Ferony (under Nancy Rippey's login) here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889


Pete

Pete
dictum9
Super Advisor

Re: Please help me

another thought, there is a script laying around which does all of it without much typing. And puts it all on the web.
inventsekar_1
Respected Contributor

Re: Please help me

OS version:
this is one of my favorite response in ITRC.
man man
man page for man.

after every page, u will fine like
" Hewlett-Packard Company - 1 - HP-UX 11i Version 2: August 2003"


and two suggestions:
1. assign points to those spend their time to answer u.
2. Write the questions clearly.

Those two suggestions will give you GOOD responses.


Be Tomorrow, Today.
nandam
Frequent Advisor

Re: Please help me

Thanks for all. i got and i am very happy.