Friday, December 10, 2010

Linux system info commands

Getting system info
========================
to get info of RAM of servers-
-----------------------------
cat /proc/meminfo

to get info on CPU of servers
-------------------------------
cat /proc/cpuinfo

find Operation System Version of Solaris
-------------------------------------------
uname -a

You will see output like
For Solaris SunOS servername 5.8 Generic_117350-23 sun4u sparc SUNW,Sun-Fire-V240
Which means solaris 5.8

find Operation System Version of Linux
------------------------------------------
cat /etc/*release*
You will see output like
Red Hat Enterprise Linux AS release 3 (Taroon Update 6)

lsb_release -d

To check if the OS is 32 bit or 64 bit on Solaris?
-------------------------------------------------------
isainfo -v
If you see out put like
32-bit sparc applications
That means your O.S. is only 32 bit but if you see output like

The below o/p means your o.s. is 64 bit & can support both 32 & 64 bit applications
64-bit sparcv9 applications
32-bit sparc applications

find RAM size in kb’s
------------------------
root@erptest01:/$ bootinfo -r
8388608

Swap space available:
---------------------
root@erptest01:/$ swap -l
device maj,min total free
/dev/paging00 10, 15 4096MB 2328MB
/dev/hd6 10, 2 4096MB 2327MB
root@erptest01:/$

Find if Kernel is 32 or 64 bit
----------------------------------
bootinfo –K

file descriptors available for user applmgr
rptest01:/dsslti/product# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 4194304
memory(kbytes) unlimited
coredump(blocks) unlimited
nofiles(descriptors) 1024
erptest01:/dsslti/product#
erptest01:/dsslti/product#
erptest01:/dsslti/product# ulimit -n
1024
erptest01:/dsslti/product#


all the devices connectd to aix server
----------------------------------------
lsdev -C

in AIX, you use the lsattr command to view settings for kernel parameters. For example:
>lsattr -El sys0
maxbuf 20 Maximum number of pages in block...
maxmbuf 0 Maximum Kbytes of real memory al...
maxuproc 200 Maximum number of PROCESSES allo...
iostat true Continuously maintain DISK I/O h...
realmem 3137536 Amount of usable physical mem...
modelname IBM,9076-WCN Machine name


display RAM size in AIX
-------------------------
lsdev -C|grep mem
u will gte o/p like
mem0 Available Memory

now run the command
lsattr -El mem0
size 3064 Total amount of physical memory in Mbytes
goodsize 3064 Amount of usable physical memory in Mbytes

to get number of cps's on server
-----------------------------------
lsdev -C|grep Process|wc -l

utility to change kernel parameters:
-----------------------------------
SMIT

to get info on performance of each disk
---------------------------------------
iostat

No comments:

Post a Comment