Solaris 5.x系统日常巡检.doc

上传人:11****ws 文档编号:2993849 上传时间:2019-05-16 格式:DOC 页数:11 大小:83.50KB
下载 相关 举报
Solaris 5.x系统日常巡检.doc_第1页
第1页 / 共11页
Solaris 5.x系统日常巡检.doc_第2页
第2页 / 共11页
Solaris 5.x系统日常巡检.doc_第3页
第3页 / 共11页
Solaris 5.x系统日常巡检.doc_第4页
第4页 / 共11页
Solaris 5.x系统日常巡检.doc_第5页
第5页 / 共11页
点击查看更多>>
资源描述

1、Solaris 5.X 系统日常管理CPU 占用情况和 IO 等待情况1、命令:sar -u 1 5 (所有 CPU 均值)结果:11:32:17 %usr %sys %wio %idle11:32:18 0 1 0 9911:32:19 1 2 0 9711:32:20 0 1 0 9911:32:21 1 1 0 9811:32:22 1 1 0 98Average 1 1 0 98说明:Average 为平均值,%idle 为 CPU 空闲百分比,一般小于 25%则可判断为 CPU 占用过高;%wio 为 IO 等待百分比,大于 30%就说明 IO比较高了2、命令:mpstat (每个

2、CPU 占用情况)结果:CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl0 978 45 0 373 300 2383 76 0 17 1 6506 10 48 0 42说明:CPU 为 cpu 号,是单 cpu 就为 0,idl 为 CPU 空闲百分比,一般该值小于 30 左右及说明 CPU 负荷过高;wt 为 IO 等待数,正常情况都为 0,有数代表较繁忙;sys 为系统时间使用率;usr 为用户时间使用率;查看僵死进程命令:ps -elf -o s -o args结果:S COMMANDT sc

3、hedS /sbin/initS pageoutS fsflushS /usr/lib/sysevent/syseventd说明:Z 为僵死进程,如果没有为 Z 的就说明目前没有将死进程内存占用情况命令:/usr/sbin/prtconf | grep “Memory size:“ & vmstat 或 vmstat结果:$ /usr/sbin/prtconf | grep “Memory size:“ & vmstatMemory size: 512 Megabyteskthr memory page disk faults cpur b w swap free re mf pi po fr

4、 de sr cd cd f0 s0 in sy cs us sy id0 0 0 878456 412472 28 108 55 0 0 0 20 9 0 0 0 321 736 315 1 6 93$ vmstatkthr memory page disk faults cpur b w swap free re mf pi po fr de sr cd cd f0 s0 in sy cs us sy id0 0 0 878728 412352 27 104 53 0 0 0 19 8 0 0 0 321 706 305 1 5 94说明:free 的值为当前物理内存空闲值,与物理内存总数

5、比,如小于 20%就说明内存占用过高内存配置命令:/usr/sbin/prtdiag v结果:System clock frequency: 1012 MHzMemory size: 131072 Megabytes= CPUs =CPU CPU Run L2$ CPU CPU LSB Chip ID MHz MB Impl. Mask- - - - - - -00 0 0, 1, 2, 3, 4, 5, 6, 7 2400 5.0 7 14500 1 8, 9, 10, 11, 12, 13, 14, 15 2400 5.0 7 14500 2 16, 17, 18, 19, 20, 21,

6、 22, 23 2400 5.0 7 14500 3 24, 25, 26, 27, 28, 29, 30, 31 2400 5.0 7 14501 0 32, 33, 34, 35, 36, 37, 38, 39 2400 5.0 7 14501 1 40, 41, 42, 43, 44, 45, 46, 47 2400 5.0 7 14501 2 48, 49, 50, 51, 52, 53, 54, 55 2400 5.0 7 14501 3 56, 57, 58, 59, 60, 61, 62, 63 2400 5.0 7 145= Memory Configuration =Memo

7、ry Available Memory DIMM # of Mirror InterleaveLSB Group Size Status Size DIMMs Mode Factor - - - - - - - -00 A 32768MB okay 2048MB 16 no 8-way00 B 32768MB okay 2048MB 16 no 8-way01 A 32768MB okay 2048MB 16 no 8-way01 B 32768MB okay 2048MB 16 no 8-way= IO Devices =IO Lane/Frq LSB Type LPID RvID,DvID

8、,VnID BDF State Act, Max Name Model - - - - - - - - -Logical Path-00 UNKN 0 bc, 8532, 10b5 2, 0, 0 okay - , - pci-pciex10b5,8532 N/A /pci0,600000/pci0 00 UNKN 0 bc, 8532, 10b5 3, 8, 0 okay - , - pci-pciex10b5,8532 N/A /pci0,600000/pci0/pci8 00 UNKN 0 bc, 8532, 10b5 3, 9, 0 okay - , - pci-pciex10b5,8

9、532 N/A /pci0,600000/pci0/pci9 00 UNKN 0 8, 125, 1033 4, 0, 0 okay - , - pci-pciexclass,060400 N/A /pci0,600000/pci0/pci8/pci0 00 UNKN 0 8, 125, 1033 4, 0, 1 okay - , - pci-pciexclass,060400 N/A /pci0,600000/pci0/pci8/pci0,1 00 UNKN 0 2, 50, 1000 5, 1, 0 okay - , - scsi-pci1000,50 LSI,1064 /pci0,600

10、000/pci0/pci8/pci0/scsi1 00 UNKN 0 10, 1648, 14e4 5, 2, 0 okay - , - network-pci14e4,1648 N/A /pci0,600000/pci0/pci8/pci0/network2 00 UNKN 0 10, 1648, 14e4 5, 2, 1 okay - , - network-pci14e4,1648 N/A /pci0,600000/pci0/pci8/pci0/network2,1 00 UNKN 0 3, 2432, 1077 119, 0, 0 okay - , - QLGC,qlc-pciex10

11、77,2432 QLE2462 /pci0,600000/pci0/pci9/QLGC,qlc0 00 UNKN 0 3, 2432, 1077 119, 0, 1 okay - , - QLGC,qlc-pciex1077,2432 QLE2462 /pci0,600000/pci0/pci9/QLGC,qlc0,1 00 UNKN 2 b5, 103, 1166 2, 0, 0 okay - , - pci-pciex1166,103 N/A /pci2,600000/pci0 00 UNKN 2 a3, 1678, 14e4 3, 4, 0 okay - , - FJSV,e2ta-fj

12、gi Broadcom,BCM5715C /pci2,600000/pci0/FJSV,e2ta4 00 UNKN 2 a3, 1678, 14e4 3, 4, 1 okay - , - FJSV,e2ta-fjgi Broadcom,BCM5715C /pci2,600000/pci0/FJSV,e2ta4,1 00 UNKN 3 b5, 103, 1166 2, 0, 0 okay - , - pci-pciex1166,103 N/A /pci3,700000/pci0 00 UNKN 3 a3, 1679, 14e4 3, 4, 0 okay - , - FJSV,e2sa-fjgi

13、Broadcom,BCM5715S /pci3,700000/pci0/FJSV,e2sa4 00 UNKN 3 a3, 1679, 14e4 3, 4, 1 okay - , - FJSV,e2sa-fjgi Broadcom,BCM5715S /pci3,700000/pci0/FJSV,e2sa4,1 01 UNKN 16 bc, 8532, 10b5 2, 0, 0 okay - , - pci-pciex10b5,8532 N/A /pci10,600000/pci0 01 UNKN 16 bc, 8532, 10b5 3, 8, 0 okay - , - pci-pciex10b5

14、,8532 N/A /pci10,600000/pci0/pci8 01 UNKN 16 bc, 8532, 10b5 3, 9, 0 okay - , - pci-pciex10b5,8532 N/A /pci10,600000/pci0/pci9 01 UNKN 16 8, 125, 1033 4, 0, 0 okay - , - pci-pciexclass,060400 N/A /pci10,600000/pci0/pci8/pci0 01 UNKN 16 8, 125, 1033 4, 0, 1 okay - , - pci-pciexclass,060400 N/A /pci10,

15、600000/pci0/pci8/pci0,1 01 UNKN 16 2, 50, 1000 5, 1, 0 okay - , - scsi-pci1000,50 LSI,1064 /pci10,600000/pci0/pci8/pci0/scsi1 01 UNKN 16 10, 1648, 14e4 5, 2, 0 okay - , - network-pci14e4,1648 N/A /pci10,600000/pci0/pci8/pci0/network2 01 UNKN 16 10, 1648, 14e4 5, 2, 1 okay - , - network-pci14e4,1648

16、N/A /pci10,600000/pci0/pci8/pci0/network2,1 01 UNKN 16 3, 2432, 1077 119, 0, 0 okay - , - QLGC,qlc-pciex1077,2432 QLE2462 /pci10,600000/pci0/pci9/QLGC,qlc0 01 UNKN 16 3, 2432, 1077 119, 0, 1 okay - , - QLGC,qlc-pciex1077,2432 QLE2462 /pci10,600000/pci0/pci9/QLGC,qlc0,1 01 UNKN 18 b5, 103, 1166 2, 0,

17、 0 okay - , - pci-pciex1166,103 N/A /pci12,600000/pci0 01 UNKN 18 a3, 1678, 14e4 3, 4, 0 okay - , - FJSV,e2ta-fjgi Broadcom,BCM5715C /pci12,600000/pci0/FJSV,e2ta4 01 UNKN 18 a3, 1678, 14e4 3, 4, 1 okay - , - FJSV,e2ta-fjgi Broadcom,BCM5715C /pci12,600000/pci0/FJSV,e2ta4,1 01 UNKN 19 b5, 103, 1166 2,

18、 0, 0 okay - , - pci-pciex1166,103 N/A /pci13,700000/pci0 01 UNKN 19 a3, 1679, 14e4 3, 4, 0 okay - , - FJSV,e2sa-fjgi Broadcom,BCM5715S /pci13,700000/pci0/FJSV,e2sa4 01 UNKN 19 a3, 1679, 14e4 3, 4, 1 okay - , - FJSV,e2sa-fjgi Broadcom,BCM5715S /pci13,700000/pci0/FJSV,e2sa4,1 = Hardware Revisions =Sy

19、stem PROM revisions:-OBP 4.24.11 2009/04/21 14:53= Environmental Status =Mode switch is in LOCK mode = System Processor Mode =SPARC64-VII mode说明:Memory size 总的物理内存大小; Memory Configuration 内存信息;分钟负载命令:uptime结果:3:30pm up 160 day(s), 15 min(s), 2 users, load average: 3.56, 4.46, 4.71说明:load average 为平均

20、负荷,分别是 1 分钟内的、5 分钟内的、15 分钟内的主机网卡状态命令:netstat m结果:streams allocation:cumulative allocationcurrent maximum total failuresstreams 7982 152802 78922531 0queues 9745 152768 128745332 0mblk 16082 103509 74434010 0dblk 16082 110273 2882107925 0linkblk 25 460 4189 0syncq 23 600 16788 0qband 2 78 2 033897 Kb

21、ytes allocated for streams data说明:failures 值其中一个大于 0 及说明网卡状态异常主机 CPU 状态命令:/usr/sbin/psrinfo结果:0 on-line since 02/07/2012 15:15:331 on-line since 02/07/2012 15:15:342 on-line since 02/07/2012 15:15:343 on-line since 02/07/2012 15:15:344 on-line since 02/07/2012 15:15:345 on-line since 02/07/2012 15:1

22、5:346 on-line since 02/07/2012 15:15:347 on-line since 02/07/2012 15:15:348 on-line since 02/07/2012 15:15:349 on-line since 02/07/2012 15:15:34说明:三列分别为 cpu 号(单 cpu 该值为 0) 、状态、开始运行时间,状态为 on-line 则表示正常CPU 个数命令:mpstat|grep -c .*0-9.*CPU 主频命令:psrinfo -v (需要 root 权限)主机温度命令:prtdiag -v (需要 root 权限)内核 ID命令

23、:uname -v硬件平台命令:uname m主机 ID命令:hostid主机名命令:hostname磁盘大小命令:iostat -E|grep -v st结果:sd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: SEAGATE Product: ST914602SSUN146G Revision: 0603 Serial No: 09249957K6 Size: 146.80GB Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 sd1 Soft

24、 Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: SEAGATE Product: ST914602SSUN146G Revision: 0603 Serial No: 0923997BZ7 Size: 146.80GB Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 sd2 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: SEAGATE Product: ST914602SSUN146G R

25、evision: 0603 Serial No: 0924993KKK Size: 146.80GB Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0说明:Size:表示单块硬盘大小磁盘等待命令:iostat -x|grep -v st|grep -v md结果:device r/s w/s kr/s kw/s wait actv svc_t %w %b sd0 0.0 4.7 0.0 35.2 0.0 0.0 7.3 0 2 sd1 0.1 83.5 0.4 1216.5 9.8 22.6 388.1 6 20 sd

26、2 0.0 4.7 0.0 35.2 0.0 0.0 8.2 0 3 sd3 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 sd4 0.1 83.5 0.4 1216.5 7.9 20.5 339.7 5 19 ssd8 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 ssd9 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 ssd10 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 ssd11 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 ssd12 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0

27、 0 ssd13 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 ssd14 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 ssd15 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 nfs1 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 说明:%w 为磁盘等待率、wait 为磁盘等待数、 %b 为磁盘烦忙比率、r/s 为每秒读请求量、w/s 为每秒写请求量、actv 为平均活动操作数、svc_t 为平均响应时间交换区查看命令:/usr/sbin/swap -s结果:total: 79067568k bytes allocat

28、ed + 40341760k reserved = 119409328k used, 4534184k available说明:used 为已使用量、available 为当前可用量网卡接口查看命令:netstat i结果:Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue lo0 8232 loopback localhost 3724025038 0 3724025038 0 0 0 bge0 1500 ultrdb2 ultrdb2 3279519301 0 3239109282 0 0 0 sppp0 1500

29、192.168.254.1 192.168.254.2 2782674 0 2782674 0 0 0 说明:Oerrs 为接口输出错包总数、 Opkts 为接口输出总量、Ierrs 接口输入错包总数、Ipkts 接口输入总量进程查看命令:ps -eo pcpu,pmem,vsz,s,time,comm.结果:0.0 8.2 10812960 S 17-06:32:32 /opt/zhjkdir/UltraIDCP/jdk64/jdk1.6.0_30/bin/sparcv9/ZHJK_PmStatistic0.1 1.8 2278464 S 09:50:33 /opt/zhjkdir/UltraIDCP/jdk64/jdk1.6.0_30/bin/sparcv9/IDCPProbe30.0 0.1 113592 S 11:01:12 /opt/zhjkdir/UltraIDCP/jdk64/jdk1.6.0_30/bin/java0.1 0.4 476800 S 3-03:13:14 /opt/oss/jdk1.6.0/bin/zh

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 实用文档资料库 > 策划方案

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。