Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What's the easiest way to display system cpu, memory, # drives/size ??

Status
Not open for further replies.

RobJordan

MIS
Apr 3, 2001
296
0
0
US
I am looking for the easiest and most generic way
to determine:

System model/class
Number of cpu's
Clock speed of cpu's (ie 550 MHz)
Total Physical Memory (not virtual)
Number of Drives/Drive Size

Thanks in advance,

Robert Robert G. Jordan

Robert@JORDAN2000.com
Unix Sys Admin
Chicago, Illinois U.S.A.
[lightsaber]
 
sysinfo looks good, but it's a commercial product and you have to buy it....

System model/class
[tab]check out the uname command
Number of Drives/Drive Size
[tab]Check out the df command

Don't know about the others, anyone else?

There's a couple of good threads in the HPUX forum that talk about how to find the amount of physical memory, but that would be just for HPUX.

It might be that you end up writing a script which knows about the major flavours of UNIX and the ways to extract information from each version. That's not such a daunting task as it might seem. Mike
"Experience is the comb that Nature gives us after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 
It also depends on the hardware platform and UNIX OS flavor.
 
On HP-UX you could run the following commands to get that answer :

System model/class : uname -a (should work on any flavour)
CPU information : top command
Number drives available + sizes : ioscan -fnC disk

 
df -k can tell you about the drives.
 
df -k will tell you about filesystems, not drives and drive sizes.

To get the information about total number of drives and their size, you would have to use different commands for different Unix platforms. which platform are you working with?
 
Some input,something I use within a script:

HOSTNAME=`hostname`
MEMORY=`bootinfo -r`
MODELNAME=`lsattr -El sys0 | grep modelname |awk '{ print $2 }'`
PAGINGSPACE=`lsps -a -s | grep MB |awk '{ print $1 }'`
DATE=`date`
NOOFPROCS=`lscfg | grep proc | wc -l|awk '{ print $1 }'`
"Long live king Moshiach !"
 
hi,
Try webmin program,
Follow link on GUI at samba.org and from there to webmin,
webbased admin proggie, very sweet & g ggg ggnuuu freeee!
Reports anything, from anywhere, via the browser of yoru choice.

L

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top