Operating System - HP-UX
1833750 Members
2700 Online
110063 Solutions
New Discussion

Re: Disk space, Memory, Processor....etc

 
SOLVED
Go to solution
Kevin T. Nguyen
Occasional Contributor

Disk space, Memory, Processor....etc


What command will show me how check how much disk space are there on the system?

What command will show how much memory does the machine have on the system?

What command will tell how many processors are there on the system?

Could you tell me the command to find out what the serial lines is as well as teh internet hardware address.

Thank you.

Will find one
11 REPLIES 11
Eileen Millen
Trusted Contributor

Re: Disk space, Memory, Processor....etc

bdf for disk space
dmesg for memory
top shows the processors and the top processes
You can get information about the system from
SAM the System Administration Tool.
Pramod_4
Trusted Contributor

Re: Disk space, Memory, Processor....etc

Hi

"iskinfo /dev/rdsk/c?d?t?" shows the disk sie.

"emsg" shows the memory information

"top"can give you the number of active CPU's.
"netstat -in" can display the IP address.

Regards,

Pramod
Pramod_4
Trusted Contributor

Re: Disk space, Memory, Processor....etc

Hi

"dskinfo /dev/rdsk/c?d?t?" shows the disk sie.

"demsg" shows the memory information

"top"can give you the number of active CPU's.
"netstat -in" can display the IP address.

Regards,

Pramod
Kofi ARTHIABAH
Honored Contributor
Solution

Re: Disk space, Memory, Processor....etc

Kevin:

all of these questions have been answered in earlier posts. You might want to do a search for disk space or memory or processor for more information.. to start you off:

bdf (to give you usage of filesystems in volume groups)
vgdisplay | grep Free (for information on how much of disks are not allocated in logical volumes)
ioscan -fnC disk (to show all disks)

grep Physical /var/adm/syslog/syslog.log ( for amount of ram)

grep -c processor /var/adm/syslog/syslog.log (for number of processors)

there are others...

you might want to look into installing stm if you do not already have it installed.
nothing wrong with me that a few lines of code cannot fix!
federico_3
Honored Contributor

Re: Disk space, Memory, Processor....etc


In additio to all indicated by the other replies you can use this:

About memory dimension you could use these commands that change with the OS version:
10.20 -> #REAL_MEM=`echo 'physmem/D'| adb -k /stand/vmunix /dev/kmem | tail -1 | awk '{print $2/256 }'

11.00) -> #REAL_MEM=`echo 'phys_mem_pages/D'| adb -k /stand/vmunix /dev/kmem | tail -1 | awk '{print $2/256 }'

#echo $REAL_MEM (to visualize the value)

About the CPU numbers:
#ioscan -fC processor | grep processor | wc -l

About the IP address:
# lanscan ( to know the interface name -> for example lanx )
# ifconfig lanx


regards,

federico


CHRIS_ANORUO
Honored Contributor

Re: Disk space, Memory, Processor....etc

Do check the online manual for the following as well
dmesg
bdf (filesystem size)
vgdisplay -v |grep Free
ioscan -fnC
grep Physical /var/adm/syslog/syslog.log ( dmesg will give same information)
grep -c processor /var/adm/syslog/syslog.log
Also check /var/tombstones/ts** for the firmware and models of your processors.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.

Re: Disk space, Memory, Processor....etc

Hi,

You can use the following commands.
1. # bdf
2. # /usr/sam/lbin/getmem
3. #top
4. You can't check serial # from command line.

Thanks

jherring
Regular Advisor

Re: Disk space, Memory, Processor....etc

there are some great commands that are command line using the adb command that will get this. the docs that show the command are on the Knowledge Base here in the ITRC. I suggest searhing for memory and processor you will find them.

Jon
Bryan Payne
Occasional Advisor

Re: Disk space, Memory, Processor....etc

Good answers... I would add:
"/usr/sam/lbin/laninfo" for lancard information.
Garmatsch Thomas
Occasional Contributor

Re: Disk space, Memory, Processor....etc

The best way to catch all the needed information ist to get the free tool cfg2html
get it http://rose_swe.tripod.com/cfg/cfg.html
Carlos Fernandez Riera
Honored Contributor

Re: Disk space, Memory, Processor....etc

Or nickel.

I am very bad recalling URLs. Sure that next post will say you where you can find it.



unsupported