Operating System - HP-UX
1825899 Members
3180 Online
109689 Solutions
New Discussion

Re: Command for RAM & HDD

 
SOLVED
Go to solution
Robert DJ
Frequent Advisor

Command for RAM & HDD

Hi,

This question might be silly. I need to know what is the command used to check the RAM & HDD capacity is the machine.

Thanx & Regards,

Roby
Robert DJ
10 REPLIES 10
RAC_1
Honored Contributor

Re: Command for RAM & HDD

Memory--

grep -i physical /var/adm/syslog/syslog.log

glance -m

echo "memory_installed_in_machine/D" | adb -k /stand/vmunix /dev/kmem

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

The Hdds

ioscan -fnCdisk.

Check all disks listed and diskinfo for each disk.

diskinfo /dev/rdsk/cxtxdx
There is no substitute to HARDWORK
G. Vrijhoeven
Honored Contributor

Re: Command for RAM & HDD

Hi,

for ram check
# dmesg
for diskspace do an
# cd /dev/rdsk
# for i in ls
do
diskinfo $PWD/$i
done | more

Gideon
blal
Frequent Advisor

Re: Command for RAM & HDD

Hi

For checking RAM use

#dmesg |grep -i physical

For seeing HDD capacity
1)ioscan -fnC disk
this will list all HDDs .
notdown device file name

2)diskinfo /dev/rdsk/c?t?d?

Substitute the values for c?t?d? from the ioscan o/p

bye
baiju
Live and let live.
Sritharan
Valued Contributor

Re: Command for RAM & HDD

Hi,
Don't really with the question but if you want to check the
1. Total capacity of Memory
- dmesg
- SAM -> Performance Monitor ->System Properties

2. Total H/Disk and Capacity
- ioscan -funC disk
- SAM -> Disk And File System

Let us know if you need other info

Thanks & Regards
Sri
Known is a drop...unknown is an ocean -> quote from a movie
john korterman
Honored Contributor

Re: Command for RAM & HDD

Hi,
if you have ignite installed, they try executing:
# /opt/ignite/bin/print_manifest

and redirect the output to a file. This shows the most important system information.

regards,
John K.
it would be nice if you always got a second chance
Adisuria Wangsadinata_1
Honored Contributor

Re: Command for RAM & HDD

Hi Roby,

I. You can use SAM for these purposes.

1. login as root
2. goto SAM
# sam

For disk :
goto 'Disk and File Systems'
goto 'Disk Devices'


For memory :
goto 'Performance Monitor'
goto 'System Properties'

II. You can also can use command line :

For disk :
# ioscan -nfCdisk
get the harddisk device file (eg. /dev/dsk/cxtydz)
# diskinfo -v /dev/dsk/cxtydz

For memory
# dmesg | grep Physical

III. You can use 'mstm' command if the OnlineDiag software already installed on your system.

# mstm

Select the device > 'Tools' > 'Information' > 'Run'

Hope this information can help you.

Best Regards,
AW
now working, next not working ... that's unix
Adisuria Wangsadinata_1
Honored Contributor

Re: Command for RAM & HDD

rectification :

# diskinfo -v /dev/rdsk/cxtydz

Best Regards,
AW
now working, next not working ... that's unix
Fabio Ettore
Honored Contributor
Solution

Re: Command for RAM & HDD

Hi Robert,

the following commands should satisfy your request:


FOR RAM:
1. by Support Tools Manager:

# mstm
and then select memory; from menu Tools ---> Information ---> Run

2. by dmesg

dmesg | grep -i physical

3. also:
for 10.20 OS version:
REAL_MEM=`echo 'physmem/D '| adb -k /stand/vmunix /dev/kmem | tail -1 | awk '{ print $2/256}'`
echo $REAL_MEM

for 11.00 version :
REAL_MEM=`echo 'phys_mem_pages/D '| adb -k /stand/vmunix /dev/kmem | tail -1 | awk '{ print $2/256}'`
echo $REAL_MEM
both values will be in MBs


FOR HDD:
# ioscan -fnC disk
# diskinfo /dev/rdsk/cXtXdX
where cXtXdX are controller, target, lun that result by ioscan.
In size line of diskinfo output you will get the size of HDD.

I hope this helps you.

Bets regards,
Ettore
WISH? IMPROVEMENT!
Robert DJ
Frequent Advisor

Re: Command for RAM & HDD

Thank you ALL for your responses.

Thanx & Regards,

Roby
Robert DJ
Lee Huei
Regular Advisor

Re: Command for RAM & HDD

alternative

# sam --> "performance Monitor" --> "system properties"
--> here you can information of physical memory & swap device