1833137 Members
3634 Online
110051 Solutions
New Discussion

server information

 
SOLVED
Go to solution
subodhbagade
Regular Advisor

server information

Hello Expert,

I have to find out following details of server please help me for following case.

(1)Cpu details---in MhZ and processor.
(2) Ram -------in Gb

i tried with #dmesg and #dmesg |grep -i physical but it not worked.

3)N/W ethernet----like single port, lancard

4)Disk drive--------like SAN ,internal disk

i also tried with Sam >performance monitor>sys property>mem
but it not help me much

Thanks in advance.

Regards,
subodh.
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: server information

Here's my standard cut and paste answer to system properties questions:

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/ ).

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


Support Tools Manager (STM) CPU info:

echo "selclass qualifier cpu;info;wait;infolog" | cstm




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


Support Tools Manager (STM) RAM info:

echo "selclass qualifier memory;info;wait;infolog" | cstm




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


Pete

Pete
rajv
Advisor

Re: server information

Hi Subo,

1)Cpu details---in MhZ and processor
and
2) Ram -------in Gb

# machinfo

if PARISC

# print_manifest
it will show all the details of your system.

3)N/W ethernet----like single port, lancard

#lanscan
or
#ioscan -fnC lan

it will show lancards

4)Disk drive--------like SAN ,internal disk
#ioscan -fnC disk
or

#ioscan -funC disk


Regards
-Rajesh-
Johnson Punniyalingam
Honored Contributor
Solution

Re: server information

Hi Subo,

Please try with cstm --> command for your detail Information, by selecting the desired devices , please see belwo example to check the tape drive information in details.
(here have selected dev 6 = refer to tape)

If you have installed Support Tools Manager than you can for DDS for DLT and other you must try.

1. login as root and start cstm
# cstm

2. at the cstm prompt enter map
cstm> map

# You will get somthing like this

Dev Last Last Op
Num Path Product Active Tool Status
=== ==================== ========================= =========== =============
1 system system () Information Successful
2 0 Bus Adapter (803)
3 0/0 PCI Bus Adapter (782)
4 0/0/0/0 Core PCI 100BT Interface
5 0/0/1/0 PCI SCSI Interface (10000
6 0/0/1/0.1.0 SCSI Tape (HPC1537A) Information Successful
7 0/0/1/1 PCI SCSI Interface (10000
8 0/0/1/1.2.0 SCSI Disk (HP36.4GMAN3367 Information Successful
9 0/0/2/0 PCI SCSI Interface (10000
10 0/0/2/0.2.0 SCSI Disk (HP36.4GMAN3367
11 0/0/2/1 PCI SCSI Interface (10000
12 0/0/2/1.2.0 SCSI Disk (HPDVD-ROM)
13 0/0/4/1 RS-232 Interface (103c104
14 0/1 PCI Bus Adapter (782)
15 0/2 PCI Bus Adapter (782)
16 0/3 PCI Bus Adapter (782)
17 0/4 PCI Bus Adapter (782)
18 0/5 PCI Bus Adapter (782)
19 0/8 PCI Bus Adapter (782)
20 0/8/0/0 PCI SCSI Interface (10000
21 0/8/0/0.0.0 SCSI Disk (HP73.4GST37340 Information Successful
22 0/8/0/0.1.0 SCSI Disk (HP73.4GST37340
23 0/8/0/0.2.0 SCSI Disk (HP73.4GST37340
.....

# You can see the number of the DevNum of the tape is 6

cstm> sel dev 6
cstm> info
cstm> il
Hardware path: 0/0/1/0.1.0


Device Qualifier: HPC1537A
Product ID: C1537A Hardware Path: 0/0/1/0.1.0
Device Type: SCSI Tape Logical Unit Number: 0
Vendor: HP Product Rev Level: L111
Firmware Revision: 4.123 Tape Load Count: 1
Correctable Errors: 0 Uncorrectable Errors: 0
Mfg Date Code: 9 Servo Revision: 14.2
Compression Status: Enabled Compression Ratio:
[instant] 3 : 1
[average] 1 : 1
Capacity [M Byte]: 3393220608
Drive Status: Good

# At last you can see the drive status
Problems are common to all, but attitude makes the difference