nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

RedHat Hardware Info

This is a discussion on RedHat Hardware Info within the Linux hardware forums, part of the Linux Getting Started category; Hi All I am looking for the following info for my redhat 4 and solaris servers. Please help me in ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux hardware

Linux answers from nixCraft.


Linux hardware Discussion about Linux hardware related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-05-2009, 12:25 AM
Junior Member
User
 
Join Date: May 2009
OS: Debian
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
unixadmin007 is on a distinguished road
Default RedHat Hardware Info

Hi All
I am looking for the following info for my redhat 4 and solaris servers. Please help me in finding a command to list all these Info. later on I will write a script to get the info from all the machines in 1 go.

Cpu count & hdd type,
Memory – 6, 8, 16, 32, 64gb

Hdd type – 36gb scsi, 72gb scsi, 120gb sata etc

Thanks
Reply With Quote
  #2 (permalink)  
Old 08-05-2009, 05:26 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,706
Thanks: 11
Thanked 243 Times in 183 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Use the following command in a shell script to get the information about RHEL hardware.

CPU Info:
Code:
cat /proc/cpuinfo
mpstat -P ALL
"Total CPUS: $(grep processor /proc/cpuinfo  | wc -l)"
Memory:
Code:
free -m
free -g
cat /proc/meminfo
echo "Total Memory:  $(grep 'MemTotal' /proc/meminfo | cut -d: -f2)"
Hdd info:
Code:
fdisk -l | grep Disk
dmesg  | egrep 'sd|hd' | grep disk
sdparm /dev/sda
See:
  1. Linux Find SCSI Hard Disk Model, Serial Number, Size, and Total Sectors Information
  2. Linux display information about installed hardware
  3. http://www.cyberciti.biz/tips/querying-dumping-bios-from-linux-command-prompt.htm

For solaris UNIX try:
mem info:
Code:
  prtconf | grep Mem
pagesize -a
Show system info
Code:
/usr/sbin/prtconf -vp
See BigAdmin Shell Commands
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help

Last edited by nixcraft; 08-05-2009 at 05:29 PM.
Reply With Quote
Reply

Tags
fdisk , free , prtconf , rhel hardware , solaris hardware information , unix hardware info


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Linux Wireless Internet Hardware bharathi Linux software 7 02-04-2009 05:21 PM
sparc hardware price pansarevai Solaris/OpenSolaris 3 18-02-2008 09:56 PM
Does Redhat have "what" utility which can be used to display identification Info? DCAO Linux software 2 30-10-2007 07:23 PM
Problem in Hardware? aaru Getting started tutorials 1 08-10-2007 01:00 AM
hardware hcl redhat.com sheeba Linux software 1 30-01-2006 04:01 PM


All times are GMT +5.5. The time now is 03:04 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38