包含linux质控命令的词条( 七 )


rbswpdfreebuffcachesisobiboincs us sy id wa st
201788 202508 135064 18359200032269627612 9510
[root@dbhost01 ~]#
[root@dbhost01 ~]# vmstat 2 5
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
rbswpdfreebuffcachesisobiboincs us sy id wa st
001788 202336 135068 18360000032269727612 9510
001788 202624 135068 1836000002529 4012 668201 9810
001788 202624 135072 1836004005787 4003 668501 9810
101788 202508 135072 1836004005733 4402 735311 9800
001788 202540 135076 1836004003347 4002 667401 9810
4. lsof(list open files)
[root@dbhost01 ~]# lsof | grep 1521
certmonge2348root16rFIFO0,80t015212 pipe
certmonge2348root18rFIFO0,80t015218 pipe
gipcd.bin2754grid109uunix 0xffff8801391521800t036936 socket
5. tcpdump
tcpdump -i eth1
15:24:28.777779 IP dbhost01.ssh192.168.2.82.50990: Flags [P.], seq 393080:393596, ack 105, win 148, options [nop,nop,TS val 22996360 ecr 2443327], length 516
15:24:28.777809 IP dbhost01.ssh192.168.2.82.50990: Flags [P.], seq 393080:393596, ack 105, win 148, options [nop,nop,TS val 22996360 ecr 2443327], length 516
15:24:28.778976 IP dbhost01.ssh192.168.2.82.50990: Flags [P.], seq 393596:393968, ack 105, win 148, options [nop,nop,TS val 22996361 ecr 2443327], length 372
15:24:28.779011 IP dbhost01.ssh192.168.2.82.50990: Flags [P.], seq 393596:393968, ack 105, win 148, options [nop,nop,TS val 22996361 ecr 2443327], length 372
15:24:28.779013 IP 192.168.2.82.50990dbhost01.ssh: Flags [.], ack 393968, win 16652, options [nop,nop,TS val 2443327 ecr 22996360], length 0
15:24:28.779481 IP dbhost02-priv.23602dbhost01-priv.24271: UDP, length 556
15:24:28.779585 IP dbhost01-priv.24271dbhost02-priv.23602: UDP, length 80
15:24:28.779909 IP dbhost01-priv.24271dbhost02-priv.23602: UDP, length 80
15:24:28.780584 IP dbhost01.ssh192.168.2.82.50990: Flags [P.], seq 393968:394724, ack 105, win 148, options [nop,nop,TS val 22996362 ecr 2443327], length 756
15:24:28.780590 IP dbhost01.ssh192.168.2.82.50990: Flags [P.], seq 393968:394724, ack 105, win 148, options [nop,nop,TS val 22996362 ecr 2443327], length 756
15:24:28.780820 IP dbhost01-priv.24271dbhost02-priv.23602: UDP, length 556
15:24:28.782232 IP dbhost01.ssh192.168.2.82.50990: Flags [P.], seq 394724:395176, ack 105, win 148, options [nop,nop,TS val 22996364 ecr 2443327], length 452
15:24:28.782235 IP dbhost01.ssh192.168.2.82.50990: Flags [P.], seq 394724:395176, ack 105, win 148, options [nop,nop,TS val 22996364 ecr 2443327], length 452
6.netstat
[root@dbhost01 ~]# netstat -a | grep oracle
unix2[ ACC ]STREAMLISTENING31861/var/tmp/.oracle/ora_gipc_sdbhost01gridmyracdb-clusterCRFM_SIPC
unix2[ ACC ]STREAMLISTENING33820/var/tmp/.oracle/sdbhost01DBG_LOGD
unix2[ ACC ]STREAMLISTENING41177/var/tmp/.oracle/sdbhost01DBG_EVMD
unix2[ ACC ]STREAMLISTENING65106/var/tmp/.oracle/sAevm
unix2[ ACC ]STREAMLISTENING65108/var/tmp/.oracle/sSYSTEM.evm.acceptor.auth
7. htop
需要安装
8. iostat
Total DISK READ: 91.48 K/s | Total DISK WRITE: 45.27 K/s
TIDPRIOUSERDISK READDISK WRITESWAPINIOCOMMAND
4071 be/4 oracle30.18 K/s0.00 B/s0.00 %4.69 % ora_lmon_orcl1
4117 be/4 oracle60.36 K/s15.09 K/s0.00 %3.69 % ora_ckpt_orcl1
2989 rt/4 grid965.71 B/s0.00 B/s0.00 %2.13 % ocssd.bin
4099 be/4 oracle0.00 B/s30.18 K/s0.00 %0.07 % ora_ckpt_test
2987 rt/4 grid0.00 B/s482.86 B/s0.00 %0.03 % ocssd.bin
2979 rt/3 root0.00 B/s3.77 K/s0.00 %0.00 % ologgerd -M -d /g01/grid/app/11.2.0/grid/crf/db/dbhost01
2980 rt/3 root0.00 B/s15.09 K/s0.00 %0.00 % ologgerd -M -d /g01/grid/app/11.2.0/grid/crf/db/dbhost01
9. iftop(流量监控工具)
linux必学的60个命令Linux常用的命令可以分为以下几类:安装和登录命令、文件处理命令、系统管理相关命令、网络操作命令、系统安全相关命令、其它命令 。

推荐阅读