Operating System - Linux
1827892 Members
1890 Online
109969 Solutions
New Discussion

Re: Linux configuration specific commands

 
SOLVED
Go to solution
GerGon
Regular Advisor

Linux configuration specific commands

Hi all,

I need to know following information by using commands via command line (text mode not graphical interface):

From question number 2 and up, assume red hat linux, please...

1. I need to know which linux flavor is running, I suppouse that it is red hat?
2. Which linux version?
3. How many cpu the server have?
4. Disk configuration, i.e. raid X?
5. Disk partitions and disk? (hp user it could by like bdf or vgdisplay)
6. How manu memory the server have?

I don't want to use dmseg; and only a specifics command line.., please!!

Thanks a lot..
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Linux configuration specific commands

Kind of a multi part question:

RAID
/bin/cat /proc/mdstat
mdadm -D /dev/md0
mdadm -D /dev/md1
mdadm -D /dev/md2
mdadm -D /dev/md3
mdadm -D /dev/md4

df -h

Are you using LVM, I know lots of LVM questions.

Varitions on the uname command such as uname -a will answer other questions


[root@shalom bin]# uname --help
Usage: uname [OPTION]...
Print certain system information. With no OPTION, same as -s.

-a, --all print all information, in the following order:
-s, --kernel-name print the kernel name
-n, --nodename print the network node hostname
-r, --kernel-release print the kernel release
-v, --kernel-version print the kernel version
-m, --machine print the machine hardware name
-p, --processor print the processor type
-i, --hardware-platform print the hardware platform
-o, --operating-system print the operating system
--help display this help and exit
--version output version information and exit


SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Ferreira
Honored Contributor

Re: Linux configuration specific commands

1. I need to know which linux flavor is running, I suppouse that it is red hat?
cat /etc/issue or /etc/issue.net

2. Which linux version?

cat /proc/version

3. How many cpu the server have?
cat /proc/cpuinfo

4. Disk configuration, i.e. raid X?
cat /proc/mdstat
mdadm â detail â scan

5. Disk partitions and disk? (hp user it could by like bdf or vgdisplay)
fdisk -l
parted
vgdisplay also exists
df


6. How manu memory the server have?
cat /proc/meminfo
free
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
GerGon
Regular Advisor

Re: Linux configuration specific commands

Thanks for your time, Excuseme, But I'm newbie in linux.

From the next information by executing your commands, I ssume that: the server have 8 cpu's; obviously Red Hat AS 3.

But How many memory, real RAM without swap? It appear have not array disk set???

cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 14538031104 928833536 13609197568 0 156495872 219987968
Swap: 8381517824 0 8381517824
MemTotal: 14197296 kB
MemFree: 13290232 kB
MemShared: 0 kB
Buffers: 152828 kB
Cached: 214832 kB
SwapCached: 0 kB
Active: 302760 kB
ActiveAnon: 33164 kB
ActiveCache: 269596 kB
Inact_dirty: 18112 kB
Inact_laundry: 66532 kB
Inact_clean: 13032 kB
Inact_target: 80084 kB
HighTotal: 13500380 kB
HighFree: 13273372 kB
LowTotal: 696916 kB
LowFree: 16860 kB
SwapTotal: 8185076 kB
SwapFree: 8185076 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 2048 kB

--------------+++++++++++++++++
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) MP CPU 2.80GHz
stepping : 5
cpu MHz : 2794.665
cache size : 512 KB
physical id : 0
siblings : 2
runqueue : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 5570.56

processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) MP CPU 2.80GHz
stepping : 5
cpu MHz : 2794.665
cache size : 512 KB
physical id : 1
siblings : 2
runqueue : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 5583.66

processor : 2
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) MP CPU 2.80GHz
stepping : 5
cpu MHz : 2794.665
cache size : 512 KB
physical id : 2
siblings : 2
runqueue : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 5583.66

processor : 3
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) MP CPU 2.80GHz
stepping : 5
cpu MHz : 2794.665
cache size : 512 KB
physical id : 3
siblings : 2
runqueue : 3
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 5583.66

processor : 4
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) MP CPU 2.80GHz
stepping : 5
cpu MHz : 2794.665
cache size : 512 KB
physical id : 0
siblings : 2
runqueue : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 5583.66

processor : 5
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) MP CPU 2.80GHz
stepping : 5
cpu MHz : 2794.665
cache size : 512 KB
physical id : 1
siblings : 2
runqueue : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 5583.66

processor : 6
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) MP CPU 2.80GHz
stepping : 5
cpu MHz : 2794.665
cache size : 512 KB
physical id : 2
siblings : 2
runqueue : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 5583.66

processor : 7
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) MP CPU 2.80GHz
stepping : 5
cpu MHz : 2794.665
cache size : 512 KB
physical id : 3
siblings : 2
runqueue : 3
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 5583.66
-----------+++++++++++++++++++
mdadm --detail /dev/cciss
mdadm: /dev/cciss does not appear to be an md device
[root@dmodp /]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p7 40313964 4381116 33884964 12% /
/dev/cciss/c0d0p6 50394964 38184760 9650248 80% /APP
/dev/cciss/c0d0p2 125988632 114292388 5296352 96% /APPDATA
/dev/cciss/c0d0p8 30233896 9022716 19675368 32% /ODP
/dev/cciss/c0d0p3 115907564 32828 109986916 1% /ODPDATA
/dev/cciss/c0d0p5 50394964 30448484 17386524 64% /STAGE
/dev/cciss/c0d0p1 101089 14944 80926 16% /boot
none 7098648 0 7098648 0% /dev/shm

*---------*-*--------------*-*-*

Please help me with these above..
It is array ?
RAM properly?
Really have 8 CPU's?

Thanks
Ivan Ferreira
Honored Contributor
Solution

Re: Linux configuration specific commands

You have 4 CPUs with hyperthreading.
You have a hardware raid and should download array configuration utility for linux (ACU).
you have 14 GB of RAM memory.

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Ferreira
Honored Contributor

Re: Linux configuration specific commands

You can see that you have 8 CPU but only 4 differents Physical ID's.

You have 14 GB of memory.

Mem: 14538031104

Mem: 14.538.031.104
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Gopi Sekar
Honored Contributor

Re: Linux configuration specific commands


you are having 4 physical cpus (each having HT enabled thus presenting it as 8 logical cpus). You can verify it by the physical_id column in /proc/cpuinfo. you will see that each physical id is mentioned twice.

you have 14 GB RAM memory.

You are having CCISS controller which means that you are having RAID controller. Information regarding type of RAID, version of RAID controller (5i/6i) can be found by /proc/cciss(i am not sure about this directory).


Regards,
Gopi
Never Never Never Giveup