19 Sep 2013

5 command yang wajib diketahui dalam menggunakan linux untuk monitoring server


Sebagai seorang sysadmin kita memiliki tanggung jawab untuk memonitoring server atau perangkat yang kita miliki. Tugas monitoring mungkin sederhana akan tetapi memiliki peranan yang sangat vital. Berikut dibawah ini adalah beberapa command line yang biasanya dipergunakan untuk memonitoring server atau perangkat.
df -h
command tersebut dipergunakan untuk memonitoring atau melihat kapasitas dari penggunaan hard disk
[server_1@localhost shell]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
2.8G 1.9G 794M 71% /
/dev/sda1 99M 12M 82M 13% /boot
tmpfs 252M 0 252M 0% /dev/shm

free -m
command tersebut dipergunakan untuk melihat penggunaan memori.
[server_1@localhost shell]$ free -m
total used free shared buffers cached
Mem: 503 487 16 0 32 302
-/+ buffers/cache: 151 351
Swap: 1023 0 1023
top
command untuk melihat penggunaan resource komputer.
Tasks: 119 total, 1 running, 118 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.4%us, 2.1%sy, 0.7%ni, 95.8%id, 0.5%wa, 0.0%hi, 0.6%si, 0.0%st
Mem: 515316k total, 498836k used, 16480k free, 33692k buffers
Swap: 1048568k total, 0k used, 1048568k free, 309876k cached

cat /etc/distro-release
command untuk mengetahui versi dari distro OS yang dipergunakan
[server_1@localhost shell]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)

cat /proc/cpuinfo
command untuk melihat informasi processor
[server_1@localhost shell]$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU T6500 @ 2.10GHz
stepping : 10
cpu MHz : 2010.308
cache size : 2048 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 constant_tsc up pni monitor ssse3
bogomips : 4020.61

Tidak ada komentar:

Posting Komentar