SUN主机巡检模板v1.0
SUN系统健康检查报告
SUN小型机系统健康检查报告
地址:上海市田林路398号3楼B座电话:021-54278888起草日期:201*年09月
上海天玑科技有限责任公司
Page1of6
SUN系统健康检查报告
服务介绍
系统健康检查服务是系统预防性维护服务的重要组成部分,是现场预防维护服务的升级服务。
帮助客户检查系统目前的状态并分析其潜在的问题,最大限度地减少由于系统维护不当所带来的危害,并对将来日常维护系统提出建议,避免产生新的系统问题。从手段上,组织系统维护工程师,通过现场对客户系统进行全面检查,及早发现潜在问题,提交详细检查报告及问题的针对性建议,提高用户业务的可用性。
本服务的初衷、目标是:通过天玑公司系统健康检查服务,利用天玑公司系统专家及天玑公司多年在系统维护方面的经验,
系统健康检查概要
客户名称客户参与人员天玑工程师(实施)开始日期/时间完成日期/时间联系电话天玑工程师(审阅)客户传真电子邮件天玑传真021-54279888产品号/型号序列号服务单号系统名称承担业务系统状态正常问题描述程度系统健康检查结果概要及建议1.2.
客户签字:天玑工程师签字:
签字日期:签字日期:
Page2of6
SUN系统健康检查报告
SUN系统健康检查详表
[检查对象以被查服务器为单位,下列表格应包含此次健康检查服务中所涉及的所有服务器,每一台服务器一张表格。下表为SUN系列产品系统健康检查专用表]产品号:序列号:系统名称:检查开始时间:检查结束时间:天玑工程师:主机硬件检查检查内容指示灯状态分区配置状态处理器内存磁盘参考命令#format>disk_id_num,p,p#prtdiagv注:对于已停机设备可以进OBP检测#prtdiagv注:对于已停机设备可以进OBP检测#diskinfo#format正常正常正常正常正常检查结果□异常说明:□异常说明:□异常说明:日志正常□异常说明:日志正常□异常说明:日志正常I/O#prtdiagv注:正常1.对于已停机设备可以进OBP检测2.E6800以上设备在platformshell下使用showboardse及showplatform#prtdiagv注:对于已停机设备可以进OBP检测正常正常正常正常□异常说明:日志正常□异常说明:日志正常□异常说明:日志正常□异常说明:日志正常□异常说明:日志正常网络#ifconfig-a#netstat-inDVD,CD-ROM#prtdiag-v测试能否正常mountOBP下使用probe-scsi-all检测系统日志检查检查内容参考命令#cat/var/adm/message#more/var/log/syslog*#psef|grepsyslogd进程是否正常检查结果系统日志正常□异常说明:
Page3of6
SUN系统健康检查报告
dmesg输出主机登录是否正常文件系统查看卷组信息(如果有):系统CoreDump是否打开查看nfs共享dmesg检查有否scsireset,file正常systemfull等信息#who#last#df-kl(已使用空间不超过90%)#swap-l#vxprint-ht#dumpadm#dfshares正常正常正常无无□异常说明:□异常说明:日志正常□异常说明:日志正常□异常说明:□有说明:□有说明:集群检查检查内容集群的运行状态参考命令#scstatp正常检查结果□异常说明:集群的日志SC3.0版本日志在/var/adm/messages。SC(suncluster)fororacle在/var正常/opt/SUNWscor。SCforsybaseASE在/opt/SUNWscsyb/log正常□异常说明:日志文件路径可以指定SUNCluster版本信息scinstallpv查找/etc/hosts.equiv和.rhosts,看是否合#ls/etc/hosts.equiv法。#find/-name.rhosts-print集群配置文件检查集群相关Patch是否安装检查群集互连状态#scconfp#scrgadm-pScinstall-pvScstat-W□异常说明:正常□异常说明:正常正常正常□异常说明:□异常说明:□异常说明:(存储外设检查(SunStorEdgeA1000/D1000,SunStorEdge3000系列,带库…)检查内容A1000/D1000StorEdge存储参考命令检查结果3000StorEdge一系列存储#/usr/sbin/osa/rm6启动RaidManager管理正常#检查指示灯检查指示灯#format查看存储硬盘是否可识别使用SUNStorEdgeCLI和Sunstoredgeconfigurationservice软件管理正常Mainmenuviewandediteventlogs□异常说明:□异常说明:
Page4of6
SUN系统健康检查报告
系统配置检查SystemFirmware版本:prtconf-vPoint补丁程序:ls/var/sadm/patchCluster补丁程序:#uname-a#showrevp#patchadd-p#metadbi#metastat#vxprint-ht#eeprom修改后需重启系统生效#prtdiag-vsolaris操作系统版本:□未安装说明:基本工具软件已安装安装查看镜像状态正常□异常说明:日志正常系统参数设置系统微码级别(Microcode)正常□异常说明:日志正常□异常说明:超过90%使用率的,建议用户改善□异常说明:□异常说明:数量文件系统使用率是否正常#df-k#swaps#df-k#dumpadm设备类型CPU正常内存交换区的使用率是否超过70%系统DUMP设置是否正常正常正常规格记录主要部件的相关信息内存内置硬盘系统性能表现检查内容整体性能CPU性能内存性能I/O性能参考命令#topas#sar#vmstat#iostat正常□较繁忙□紧张说明:正常□较繁忙□紧张说明:正常□较繁忙□紧张说明:正常□较繁忙□紧张说明:检查结果系统备份检查#ufsdump0cuf/dev/rmt/unit完成/dev/rdsk/cntndns0文件系统备份
□失败说明:
Page5of6
SUN系统健康检查报告
查看crontab,看是否有可疑进程#crontab-l验证备份是否成功#mt-f/dev/rmt/0rewind倒带#ufsrestoretvf/dev/rmt/0cn查看数据正常□异常说明:正常□异常说明:系统资源使用情况#sar#vmstat#iostatCPUusr%:0CPUsys%:0CPUwio%:0CPU/Memory/IO资源使用情况建议:交换区使用情况#swapl#swap-sPctUsed(dev):PctUsed(total):建议:
Page6of6
扩展阅读:主机巡检_v0.1
主机巡检
(V0.1.0)
201*年10月
主机巡检
修改记录
日期作者版本修改记录分发记录拷贝No.姓名单位123参考文档No.文档名称作者123
-1-
主机巡检
目录
1巡检概述.....................................................................................................................-7-1.1系统基本信息........................................................................................................-7-
1.1.1AIX...............................................................................................................-8-1.1.2HP................................................................................................................-9-1.1.3Solaris........................................................................................................-10-1.1.4Linux...........................................................................................................-10-
1.2系统详细信息......................................................................................................-11-
1.2.1AIX.............................................................................................................-11-1.2.2HP..............................................................................................................-13-1.2.3Solaris........................................................................................................-17-1.2.4Linux...........................................................................................................-18-
2操作系统...................................................................................................................-21-2.1操作系统信息......................................................................................................-21-
2.1.1AIX.............................................................................................................-21-2.1.2HP..............................................................................................................-23-2.1.3Solaris........................................................................................................-24-2.1.4Linux...........................................................................................................-25-
2.2编译器信息..........................................................................................................-26-
2.2.1AIX.............................................................................................................-26-2.2.2HP..............................................................................................................-27-2.2.3Solaris........................................................................................................-28-2.2.4Linux...........................................................................................................-29-
2.3安装包/补丁信息..................................................................................................-30-
2.3.1AIX.............................................................................................................-30-2.3.2HP..............................................................................................................-31-2.3.3Solaris........................................................................................................-31-
-2-
主机巡检
2.3.4Linux...........................................................................................................-32-
2.4核心参数..............................................................................................................-32-
2.4.1AIX.............................................................................................................-32-2.4.2HP..............................................................................................................-33-2.4.3Solaris........................................................................................................-33-2.4.4Linux...........................................................................................................-34-
3CPU..........................................................................................................................-35-3.1CPU信息............................................................................................................-36-
3.1.1AIX.............................................................................................................-36-3.1.2HP..............................................................................................................-39-3.1.3Solaris........................................................................................................-40-3.1.4Linux...........................................................................................................-41-
3.2CPU监控............................................................................................................-42-
3.2.1AIX.............................................................................................................-42-3.2.2HP..............................................................................................................-44-3.2.3Solaris........................................................................................................-45-3.2.4Linux...........................................................................................................-46-
3.3CPU性能评估.....................................................................................................-48-4内存...........................................................................................................................-50-4.1内存.....................................................................................................................-50-
4.1.1AIX.............................................................................................................-50-4.1.2HP..............................................................................................................-50-4.1.3Solaris........................................................................................................-51-4.1.4Linux...........................................................................................................-51-
4.2虚拟内存..............................................................................................................-52-
4.2.1AIX.............................................................................................................-52-4.2.2HP..............................................................................................................-53-4.2.3Solaris........................................................................................................-54-
-3-
主机巡检
4.2.4Linux...........................................................................................................-54-
4.3内存、虚拟内存监控...........................................................................................-55-
4.3.1AIX.............................................................................................................-55-4.3.2HP..............................................................................................................-56-4.3.3Solaris........................................................................................................-57-4.3.4Linux...........................................................................................................-57-
4.4内存性能评估......................................................................................................-58-5磁盘...........................................................................................................................-60-5.1磁盘信息..............................................................................................................-61-
5.1.1AIX.............................................................................................................-61-5.1.2HP..............................................................................................................-63-5.1.3Solaris........................................................................................................-64-5.1.4Linux...........................................................................................................-66-
5.2磁盘空间信息......................................................................................................-68-
5.2.1AIX.............................................................................................................-68-5.2.2HP..............................................................................................................-70-5.2.3Solaris........................................................................................................-71-5.2.4Linux...........................................................................................................-71-
5.3卷管理.................................................................................................................-72-
5.3.1AIX.............................................................................................................-73-5.3.2HP..............................................................................................................-75-5.3.3Solaris(VxVM)...........................................................................................-75-5.3.4Linux...........................................................................................................-75-
5.4IO监控................................................................................................................-76-
5.4.1AIX.............................................................................................................-76-5.4.2HP..............................................................................................................-77-5.4.3Solaris........................................................................................................-78-5.4.4Linux...........................................................................................................-79-
5.5IO性能评估.........................................................................................................-80-
-4-
主机巡检
6网络...........................................................................................................................-82-6.1网络信息..............................................................................................................-82-
6.1.1AIX.............................................................................................................-82-6.1.2HP..............................................................................................................-83-6.1.3Solaris........................................................................................................-84-6.1.4Linux...........................................................................................................-85-
6.2网络监控..............................................................................................................-86-
6.2.1AIX.............................................................................................................-86-6.2.2HP..............................................................................................................-87-6.2.3Solaris........................................................................................................-87-6.2.4Linux...........................................................................................................-88-
6.3网络性能评估......................................................................................................-90-7日志...........................................................................................................................-91-7.1日志.....................................................................................................................-91-
7.1.1AIX.............................................................................................................-91-7.1.2HP..............................................................................................................-93-7.1.3Solaris........................................................................................................-93-7.1.4Linux...........................................................................................................-94-
7.2日志清理..............................................................................................................-94-8管理工具...................................................................................................................-95-8.1AIX......................................................................................................................-95-8.2HP.......................................................................................................................-95-8.3SOLARIS...............................................................................................................-95-8.4LINUX...................................................................................................................-95-9进程...........................................................................................................................-96-9.1进程信息..............................................................................................................-96-9.2进程监控..............................................................................................................-96-
-5-
主机巡检
9.3共享内存..............................................................................................................-96-9.4消息队列..............................................................................................................-97-9.5信号量.................................................................................................................-97-9.6CORE...................................................................................................................-98-10集群.......................................................................................................................-100-10.1AIX..................................................................................................................-100-10.2HP...................................................................................................................-100-10.3SOLARIS...........................................................................................................-100-10.4LINUX...............................................................................................................-101-
-6-
主机巡检
1巡检概述
1.1
系统基本信息
主机巡检,是数据库、中间件、应用系统巡检的基础。主机巡检,主要用于确认主机类型,硬件信息,操作系统信息,安装补丁以及软件信息。通过主机巡检,可以帮助客户检查系统目前的状态并分析其潜在的问题,最大限度地减少由于系统维护不当所带来的危害,并对将来日常维护系统提出建议,避免产生新的系统问题。
由于UNIX操作系统,在细节上存在较大差异,因此对主流UNIX操作系统,如AIX/HP/Solaris/Linux等命令进行分类整理。执行命令时,需要注意不同厂家的操作系统,以前不同版本操作系统之间的命令差异。
操作系统上,一般会有/bin,/usr/bin和/sbin,/usr/sbin目录。/bin,/usr/bin目录包含一些较为常用的系统命令,如ls,pwd,cd等命令。/sbin,/usr/sbin目录包含的命令为系统管理类命令,如果useradd,vgdisplay等管理类命令。
在SHELL模式下执行命令,系统按照PATH环境变量里面的顺序进行命令查找。PATH=/usr/vacpp/include:/usr/vacpp/bin:/usr/contrib/bin:/opt/java1.4/bin:/opt/java1.4/jre/bin:/usr/include:/usr/bin:/etc:/usr/sbin:/usr/ucb:/acct/acct/tibs_bill/bin:/usr/bin/X11:/sbin:/opt/aCC/bin:.:/opt/java1.4/bin:/acct/bea/tuxedo8.1/include:/usr/bin:/usr/sbin:/bin:
在执行命令时,如果在执行命令过程中出现commandnotfound的信息,注意检查环境变量设置是否正常。或者通过whereiscommand的方式,查找执行命令的所在目录。dlsdb@acct#[/acct/acct/tibs_bill]vgdisplaysh:vgdisplay:notfound.dlsdb@acct#[/acct/acct/tibs_bill]whereisvgdisplayvgdisplay:/usr/sbin/vgdisplay/sbin/vgdisplay/usr/share/man/man1m.Z/vgdisplay.1mdlsdb@acct#[/acct/acct/tibs_bill]/usr/sbin/vgdisplay-7-
主机巡检
---Volumegroups---VGName/dev/vg00VGWriteAccessread/writeVGStatusavailable
系统命令的参数和说明,可以通过man命令进行查看。因各类系统之间存在一定差异,在出现执行参数异常时,建议通过man看下该命令在当前平台的具体参数。manvgdisplayvgdisplay(1M)vgdisplay(1M)NAMEvgdisplay-displayinformationaboutLVMvolumegroups
1.1.1AIX
登录AIX系统的显示信息:
Lastunsuccessfullogin:ThuSep2915:27:30TAIST201*onsshfrom135.32.89.253Lastlogin:SatOct817:06:00TAIST201*onftpfrom::ffff:135.32.89.253************************************************************************************WelcometoAIXVersion5.3!******PleaseseetheREADMEfilein/usr/lpp/bosforinformationpertinentto**thisreleaseoftheAIXOperatingSystem.-8-
主机巡检
************************************************************************************
uname-a
AIXP690A_ACCOUNT35003FB71C4C001.1.2HP
登录HP系统的显示信息:
Lastsuccessfullogin:SatOct817:13:27201*172.19.252.9Lastauthenticationfailure:WedSep2100:23:33201*136.224.24.135Lastlogin:SatOct817:13:28201*from172.19.252.9(c)Copyright1983-201*Hewlett-PackardDevelopmentCompany,L.P.(c)Copyright1979,1980,1983,1985-1993TheRegentsoftheUniv.ofCalifornia(c)Copyright1980,1984,1986Novell,Inc.(c)Copyright1986-201*SunMicrosystems,Inc.(c)Copyright1985,1986,1988MassachusettsInstituteofTechnology(c)Copyright1989-1993TheOpenSoftwareFoundation,Inc.(c)Copyright1990Motorola,Inc.(c)Copyright1990,1991,1992CornellUniversity(c)Copyright1989-1991TheUniversityofMaryland(c)Copyright1988CarnegieMellonUniversity(c)Copyright1991-201*MentatInc.(c)Copyright1996MorningStarTechnologies,Inc.(c)Copyright1996ProgressiveSystems,Inc.Confidentialcomputersoftware.ValidlicensefromHPrequiredfor-9-
主机巡检
possession,useorcopying.ConsistentwithFAR12.211and12.212,CommercialComputerSoftware,ComputerSoftwareDocumentation,andTechnicalDataforCommercialItemsarelicensedtotheU.S.Governmentundervendor"sstandardcommerciallicense.
uname-a
HP-UXdlsdbB.11.31Uia642370680020unlimited-userlicense
1.1.3Solaris
登录Solaris系统的显示信息:
Lastlogin:SatOct817:30:22from135.125.127.227SunMicrosystemsInc.SunOS5.10GenericJanuary201*
uname-a
SunOShnjf65.10Generic_127111-11sun4usparcSUNW,Sun-Fire-V890
1.1.4Linux
登录Linux系统的显示信息:
Lastlogin:SatOct817:10:13201*from136.224.24.204注:由于Linux发现版本较多,因此显示存在较大差异。
uname-a
Linuxynbill-acct2.6.18-194.el5#1SMPTueMar1621:52:39EDT201*x86_64x86_64x86_64GNU/Linux
-10-
主机巡检
1.2系统详细信息
采用操作系统命令,获取系统详细的CPU、内存、网络、接口、主机序列号等重要信
息。系统的信息配置,是后续软件安装、应用部署的重要依据,因此建议对系统的详细配置进行跟踪记录,在系统出现异常时,能够根据配置的变化,确定是否出现较明显的硬件故障。
1.2.1AIX
prtconf
SystemModel:IBM,7040-681MachineSerialNumber:83FB71CProcessorType:PowerPC_POWER4ProcessorImplementationMode:POWER4ProcessorVersion:PV_4_2NumberOfProcessors:20ProcessorClockSpeed:1500MHzCPUType:64-bitKernelType:64-bitLPARInfo:3P690A_ACCOUNTMemorySize:81920MBGoodMemorySize:81920MBPlatformFirmwarelevel:3H070425FirmwareVersion:IBM,RG070425_d79e20_rConsoleLogin:enableAutoRestart:trueFullCore:falsePurpose:Displayssystemconfigurationinformation.lscfg
INSTALLEDRESOURCELIST-11-
主机巡检
Thefollowingresourcesareinstalledonthemachine.+/-=AddedordeletedfromResourceList.*=Diagnosticsupportnotavailable.ModelArchitecture:chrpModelImplementation:MultipleProcessor,PCIbusPurpose:Displaysconfiguration,diagnostic,andvitalproductdata(VPD)informationaboutthesystem.lvcfg-vlsdev
en0Available34-08StandardEthernetNetworkInterfaceen1Available3p-08StandardEthernetNetworkInterfaceent0Available34-08GigabitEthernet-SXPCI-XAdapter(14106802)ent1Available3p-08GigabitEthernet-SXPCI-XAdapter(14106802)Purpose:Displaysdevicesinthesystemandtheircharacteristics.
lsdev-Ccadapter|grepnet
ent0Available34-08GigabitEthernet-SXPCI-XAdapter(14106802)ent1Available3p-08GigabitEthernet-SXPCI-XAdapter(14106802)lsattr
Purpose:Displaysattributecharacteristicsandpossiblevaluesofattributesfordevicesinthesystem.
-12-
主机巡检
1.2.2HP
machinfoCPUinfo:
4Intel(R)Itanium29100seriesprocessors(1.6GHz,18MB)533MT/sbus,CPUversionA18logicalprocessors(2persocket)
Memory:32701MB(31.93GB)
Firmwareinfo:
Firmwarerevision:9.48FPSWAdriverrevision:1.18IPMIissupportedonthissystem.
Invalidcombinationofmanageabilityfirmwarehasbeeninstalledonthissystem.Unabletoprovideaccurateversioninformationaboutmanageabilityfirmware
Platforminfo:
Model:"ia64hpsuperdomeserverSD32B"MachineIDnumber:8d4db4d4-8064-11dd-b7da-a20373a01abbMachineserialnumber:SGH48320WLOSinfo:
Nodename:dlsdbRelease:HP-UXB.11.31
Version:U(unlimited-userlicense)Machine:ia64IDNumber:2370680020
vmunix_release_version:
-13-
主机巡检
@(#)$Revision:vmunix:B.11.31_LRFLAVOR=perfPurpose:printmachineinformation
/usr/sbin/ioscan-k
H/WPathClassDescription
====================================================================
root2cell
2/0ioaSystemBusAdapter(12eb)
2/0/0baLocalPCI-XBusAdapter(12ee)
2/0/0/1slotPCISlot2/0/0/1/0ext_busSCSIUltra320A6961-60111
2/0/0/1/0.0target
2/0/0/1/0.0.0diskCOMPAQBF146849702/0/0/1/0.15target
2/0/0/1/0.15.0ctlCOMPAQPROLIANT4L7E*DB
2/0/0/1/1ext_busSCSIUltra320A6961-60111
2/0/0/1/1.3target
2/0/0/1/1.3.0tapeHPC7438A2/0/1baLocalPCI-XBusAdapter(12ee)
2/0/1/1slotPCISlot2/0/1/1/0ext_busSCSIUltra320
-14-
主机巡检
A6961-60111Purpose:scantheI/Osystemcstm
seldevall>info>il
--Convertingmultiplerawlogfilestotext.--PreparingtheInformationToolLogforeachselecteddevice.......dlsdb:10.1.0.18....--InformationToolLogforsystemonpathsystem--Logcreationtime:ThuNov311:57:37201*Hardwarepath:systemProductID:ia64hpsuperdomeserverSD32BCurrentProductNumber:A9834AOriginalProductNumber:A9834ASystemFirmwareRevision:9.48BMCRevision:v7F.FFFFFF99SystemSerialNumber::SGH48320WLSystemSoftwareID:2370680020
需要root权限
/opt/ignite/bin/print_manifestSystemInformation-15-
主机巡检
YourHewlett-Packardcomputerhassoftwareinstalledandconfiguredasfollows.
ThesystemwascreatedOctober21,201*,22:06:17SST.ItwascreatedwithIgnite-UXrevisionC.7.3.144.
-------------------------------------------------------------
NOTE:Youshouldretainthisinformationforfuturereference.-------------------------------------------------------------Serialnumber:SGH47432A2
Ordernumber:F49956766~009~0200
SystemHardware
Model:9000/800/rp8440MainMemory:65501MBProcessors:16OSmode:64bit
LANhardwareID:0x001B78D29675LANhardwareID:0x001B78D29657LANhardwareID:0x0018FE2D6DC2LANhardwareID:0x0018FE2D6F43LANhardwareID:0x0018FE2D6F66LANhardwareID:0x0018FE2D6FECLANhardwareID:0x0018FE2D6DECSoftwareID:Z3e12d675bc2c6704PartitionID:Z3e12d675bc2c6704_P0
-16-
主机巡检
KeyboardLanguage:Not_ApplicablePurpose:printasystemmanifest
1.2.3Solaris
prtdiag
SystemConfiguration:SunMicrosystemssun4uSunFireE4900Systemclockfrequency:150MHzMemorysize:65536Megabytes=========================CPUs===============================================CPURunE$CPUCPUFRUNameIDMHzMBImpl.Mask------------------------------------/N0/SB2/P08,520195032.0US-IV+2.4/N0/SB2/P19,521195032.0US-IV+2.4/N0/SB2/P210,522195032.0US-IV+2.4/N0/SB2/P311,523195032.0US-IV+2.4/N0/SB4/P016,528195032.0US-IV+2.2/N0/SB4/P117,529195032.0US-IV+2.2/N0/SB4/P218,530195032.0US-IV+2.2/N0/SB4/P319,531195032.0US-IV+2.2Purpose:displaysystemdiagnosticinformationprtconf
SystemConfiguration:SunMicrosystemssun4uMemorysize:65536Megabytes-17-
主机巡检
SystemPeripherals(SoftwareNodes):SUNW,Sun-Firescsi_vhci,instance#0ssd,instance#36ssd,instance#43ssd,instance#1ssd,instance#8ssd,instance#15ssd,instance#271Purpose:printsystemconfiguration
1.2.4Linux
dmidecode#dmidecode2.10SMBIOS2.6present.308structuresoccupying8332bytes.Tableat0xBF7FD000.Handle0x0000,DMItype0,24bytesBIOSInformationVendor:Hewlett-PackardVersion:P65ReleaseDate:08/28/201*Address:0xF0000RuntimeSize:64kBROMSize:8192kBCharacteristics:-18-
主机巡检
PCIissupportedPNPissupportedBIOSisupgradeableBIOSshadowingisallowedESCDsupportisavailableBootfromCDissupportedSelectablebootissupportedEDDissupportedPurpose:DMItabledecoderdmesg
Linuxversion2.6.18-194.el5(mockbuild@x86-005.build.bos.redhat.com)(gccversion4.1.2201*0704(RedHat4.1.2-48))#1SMPTueMar1621:52:39EDT201*Commandline:roroot=LABEL=/rhgbquietBIOS-providedphysicalRAMmap:BIOS-e820:0000000000010000-000000000009dc00(usable)BIOS-e820:000000000009dc00-00000000000a0000(reserved)BIOS-e820:00000000000f0000-0000000000100000(reserved)BIOS-e820:0000000000100000-00000000bf6201*0(usable)BIOS-e820:00000000bf6201*0-00000000bf63c000(ACPIdata)BIOS-e820:00000000bf63c000-00000000bf63d000(usable)BIOS-e820:00000000bf63d000-00000000d0000000(reserved)BIOS-e820:00000000fec00000-00000000fee10000(reserved)BIOS-e820:00000000ff800000-0000000100000000(reserved)BIOS-e820:0000000100000000-000000083ffff000(usable)DMI2.6present.ACPI:RSDP(v002HP)@0x00000000000f4f00ACPI:XSDT(v001HPProLiant0x000000020x0000162e)@-19-
主机巡检
0x00000000bf6217c0ACPI:FADT(v003HPProLiant0x000000020x0000162e)@0x00000000bf6218c0ACPI:SPCR(v001HPSPCRRBSU0x000000010x0000162e)@0x00000000bf6201*0Purpose:printorcontrolthekernelringbuffer
-20-
主机巡检
2操作系统
2.1
操作系统信息
2.1.1AIX
AIX(AdvancedInteractiveeXecutive)是IBM开发的一套UNIX操作系统。它符合Opengroup的UNIX98行业标准(TheOpenGroupUNIX98BaseBrand),通过全面集成对32-位和64-位应用的并行运行支持,为这些应用提供了全面的可扩展性。它可以在所有的IBM~p系列和IBMRS/6000工作站、服务器和大型并行超级计算机上运行。
instfix-i|grepML
Allfilesetsfor5.3.0.0_AIX_MLwerefound.Allfilesetsfor5300-01_AIX_MLwerefound.Allfilesetsfor5300-02_AIX_MLwerefound.Allfilesetsfor5300-03_AIX_MLwerefound.Allfilesetsfor5300-04_AIX_MLwerefound.Allfilesetsfor5300-05_AIX_MLwerefound.Notallfilesetsfor5300-06_AIX_MLwerefound.Notallfilesetsfor5300-07_AIX_MLwerefound.Notallfilesetsfor5300-08_AIX_MLwerefound.Purpose:Installsfilesetsassociatedwithkeywordsorfixes.
oslevel-r5300-05Purpose:Reportsthelatestinstalledmaintenanceandtechnologylevelofthesystem.
ls-l/unix
lrwxrwxrwx1rootsystem21Dec10201*/unix->-21-
主机巡检
/usr/lib/boot/unix_64/unix->/usr/lib/boot/unix_up#32bituniprocessorkernel/unix->/usr/lib/boot/unix_mp#32bitmultiprocessorkernel/unix->/usr/lib/boot/unix_64#64bitmultiprocessorkernellssrca
SubsystemGroupPIDStatussyslogdras94468activeportmapportmap57796activeinetdtcpip98762activesddsrv49574activectrmcrsct17036activeIBM.CSMAgentRMrsct_rm50098activeIBM.ServiceRMrsct_rm41932activeclcomdESclcomdES62158activeclstrmgrEScluster33466activexntpdtcpip3752166activesshdssh2433378activePurpose:Getsthestatusofasubsystem,agroupofsubsystems,orasubserver.
fingeracct28(登陆主机用户信息)Loginname:acct28Directory:/invoice/acct28Shell:/usr/bin/kshOnsinceNov1508:55:59onpts/1from137.32.44.143NoPlan.w
03:00PMup142days,20:11,1user,loadaverage:9.98,10.15,8.94-22-
主机巡检
Userttylogin@idleJCPUPCPUwhatacct28pts/108:55AM0220-kshwhowhoami
uname-a
需要root权限bootinfo
2.1.2HP
HP-UX,全称为HewlettPackardUniX,是惠普9000系列服务器的操作系统,可以在HP的HP-UX11iv3第三次升级PA-RISC处理器、Intel的Itanium处理器的电脑上运行。它基于SystemV,是Unix的一个变种。getconfKERNEL_BITS64Purpose:Writessystemconfigurationvariablevaluestostandardoutput.
getconfMACHINE_MODELia64hpsuperdomeserverSD32B
uname-amachinfo
-23-
主机巡检
2.1.3Solaris
Solaris是SunMicrosystems研发的计算机操作系统。它被认为是UNIX操作系统的衍生版本之一。
more/etc/release
Solaris108/07s10s_u4wos_12bSPARCCopyright201*SunMicrosystems,Inc.AllRightsReserved.Useissubjecttolicenseterms.Assembled16August201*
uname-XSystem=SunOSNode=hnjf18Release=5.10KernelID=Generic_1201*1-14Machine=sun4uBusType=Serial=Users=OEM#=0Origin#=1NumCPU=16
showrevHostname:hnjf18Hostid:84ab63acRelease:5.10Kernelarchitecture:sun4u-24-
主机巡检
Applicationarchitecture:sparcHardwareprovider:Sun_MicrosystemsDomain:Kernelversion:SunOS5.10Generic_1201*1-14
isainfo-v
64-bitsparcv9applicationsvis2vispopc32-bitsparcapplicationsvis2vispopcv8plusdiv32mul32
2.1.4Linux
Linux是一种自由和开放源代码的类Unix计算机操作系统。目前存在着许多不同的Linux,但它们全都使用了Linux内核。Linux可安装在各种各样的计算机硬件设备,从手机、平板电脑、路由器和视频游戏控制台,到台式计算机,大型机和超级计算机。
cat/proc/version
Linuxversion2.6.18-128.el5(mockbuild@hs20-bc1-7.build.redhat.com)(gccversion4.1.2201*0704(RedHat4.1.2-44))#1SMPWedDec1711:41:38EST201*
/usr/bin/lsb_release-aLSBVersion::core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarchDistributorID:RedHatEnterpriseServerDescription:RedHatEnterpriseLinuxServerrelease5.3(Tikanga)Release:5.3Codename:Tikanga-25-
主机巡检
cat/etc/*release*
RedHatEnterpriseLinuxServerrelease5.3(Tikanga)
/sbin/service--status-allacpid(pid3334)isrunning...anacronisstoppedatd(pid4164)isrunning...auditd(pid3032)isrunning...automount(pid3314)isrunning...AvahidaemonisrunningAvahiDNSdaemonisnotrunninghcidisstoppedsdpdisstopped
getconf
2.2编译器信息
2.2.1AIX
xlC-qversion
Version:09.00.0000.0000
lslpp-l|grep-ixlc
xlC.adt.include9.0.0.0COMMITTEDCSet++ApplicationxlC.aix50.rte10.1.0.3COMMITTEDXLC/C++RuntimeforAIX5.3xlC.msg.ZH_CN.rte6.0.0.0COMMITTEDCSet++RuntimexlC.msg.en_US.rte9.0.0.0COMMITTEDXLC/C++Runtime-26-
主机巡检
xlC.msg.zh_CN.rte6.0.0.0COMMITTEDCSet++RuntimexlC.rte10.1.0.3COMMITTEDXLC/C++Runtime
gdb--versionGNUgdb6.0Copyright201*FreeSoftwareFoundation,Inc.GDBisfreesoftware,coveredbytheGNUGeneralPublicLicense,andyouarewelcometochangeitand/ordistributecopiesofitundercertainconditions.Type"showcopying"toseetheconditions.ThereisabsolutelynowarrantyforGDB.Type"showwarranty"fordetails.ThisGDBwasconfiguredas"powerpc-ibm-aix5.1.0.0".
/usr/java14/bin/java-versionjavaversion"1.4.2"Java(TM)2RuntimeEnvironment,StandardEdition(build1.4.2)ClassicVM(build1.4.2,J2RE1.4.2IBMAIXbuildca142-201*0122(SR10)(JITenabled:jitc))
lslpp-l|grep-ijava
2.2.2HP
aCC--version
aCC:HPC/aC++B3910BA.06.15[May16201*]
swlist|grep-iac++
B9007AAC.11.31.03HPC/aC++Developer"sBundle
gdb--version
-27-
主机巡检
HPgdb5.7forHPItanium(32or64bit)andtargetHP-UX11.2x.Copyright1986-201*FreeSoftwareFoundation,Inc.Hewlett-PackardWildebeest5.7(basedonGDB)iscoveredbytheGNUGeneralPublicLicense.Type"showcopying"toseetheconditionstochangeitand/ordistributecopies.Type"showwarranty"forwarranty/support.
/opt/java1.4/bin/java-versionjavaversion"1.4.2.17"Java(TM)2RuntimeEnvironment,StandardEdition(build1.4.2.17-071106-02:40)JavaHotSpot(TM)ServerVM(build1.4.21.4.2.17-071106-08:12-IA64NIA64,mixedmode)
swlist|grep-ijava
2.2.3Solaris
CC-V
CC:SunC++5.9SunOS_sparcPatch124863-01201*/07/25
pkginfo|grepC++
applicationSPROcmplSunStudio12C++ComplexLibraryapplicationSPROcplSunStudio12C++CompilerapplicationSPROcplxSunStudio12C++64-bitLibrariesdbx-V
SunDbxDebugger7.6SunOS_sparcPatch124872-02201*/08/16Forinformationaboutnewfeaturessee`helpchanges"Toremovethismessage,put`dbxenvsuppress_startup_message7.6"inyour.dbxrc(dbx)quit
-28-
主机巡检
/usr/jdk/j2sdk1.4.2_13/bin/java-versionjavaversion"1.4.2_13"Java(TM)2RuntimeEnvironment,StandardEdition(build1.4.2_13-b06)JavaHotSpot(TM)ClientVM(build1.4.2_13-b06,mixedmode)
pkginfo|grep-ijdk
2.2.4Linux
gcc--versiongcc(GCC)3.2.3Copyright(C)201*FreeSoftwareFoundation,Inc.Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNOwarranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.
rpm-qa|grep^gccgcc43-4.3.2-7.el5gcc43-gfortran-4.3.2-7.el5gcc-4.1.2-44.el5gcc43-c++-4.3.2-7.el5gcc-gnat-4.1.2-44.el5gcc-gfortran-4.1.2-44.el5gcc-java-4.1.2-44.el5gcc-objc-4.1.2-44.el5gcc-c++-4.1.2-44.el5
gdb--version
GNUgdb(GDB)RedHatEnterpriseLinux(7.0.1-23.el5)-29-
wenku_31({"font":{"f38e3c3f580216fc700afd10001001f":"Arial","f38e3c3f580216fc700afd1000201*f":"ArialBold","f38e3c3f580216fc700afd10005001f":"宋体","f38e3c3f580216fc700afd10006001f":"宋体"},"style":[{"t":"style","c":[1,0],"s":{"font-size":"13.5"}},{"t":"style","c":[1],"s":{"font-family":"f38e3c3f580216fc700afd10001001f"}},{"t":"style","c":[1,5,6,9,10,11,13,27,28,29,2],"s":{"font-family":"f38e3c3f580216fc700afd10001001f"}},{"t":"style","c":[0,1,2,4,5,6,9,10,11,13,18,19,20,21,22,23,24,25,26,27,28,29,3],"s":{"color":"#000000"}},{"t":"style","c":[25,4],"s":{"font-family":"f38e3c3f580216fc700afd10005001f"}},{"t":"style","c":[6,9,10,11,13,27,28,29,5],"s":{"font-size":"15.84"}},{"t":"style","c":[6],"s":{"letter-spacing":"-0.038"}},{"t":"style","c":[6,14,7],"s":{"letter-spacing":"-0.038"}},{"t":"style","c":[5,6,7,9,10,11,12,13,14,17,27,28,29,8],"s":{"font-size":"15.84"}},{"t":"style","c":[9],"s":{"letter-spacing":"-0.039"}},{"t":"style","c":[10],"s":{"letter-spacing":"-0.015"}},{"t":"style","c":[11],"s":{"letter-spacing":"-0.04"}},{"t":"style","c":[11,12],"s":{"letter-spacing":"-0.04"}},{"t":"style","c":[13],"s":{"letter-spacing":"-0.037"}},{"t":"style","c":[14],"s":{"letter-spacing":"-0.038"}},{"t":"style","c":[14,16,17,18,19,20,21,23,24,25,26,15],"s":{"bold":"true"}},{"t":"style","c":[14,17,23,24,16],"s":{"font-family":"f38e3c3f580216fc700afd1000201*f"}},{"t":"style","c":[14,17],"s":{"color":"#0000ff","font主机巡检
instfix-i|grepAIX_ML
2.3.2HP
swlist|more#Initializing...#Contactingtarget"dlsdb"...##Target:dlsdb:/###Bundle(s):#B2491BAB.11.31MirrorDisk/UX(Server)B3701AAC.04.70.000HPGlancePlus/UXPakfor11.31B3835DAC.03.03.01HPProcessResourceManagerB3929EAB.11.31HPOnLineJFS(Server)B5736DAA.04.20.31HAMonitors
swlist-lpatch
2.3.3Solaris
pkginfo|more
systemFJSVheaFujitsuSunOSHeaderFilessystemFJSVmdbFujitsuPlatformModularDebuggersystemFJSVmdbrFujitsuPlatformModularDebugger-31-
主机巡检
(Root)systemFJSVvplrFujitsuplatformlinkssystemFJSVvpluFujitsuusr/platformlinks
2.3.4Linux
rpm-qa|moretzdata-201*e-1.el5xkeyboard-config-0.8-9.el5man-pages-2.39-15.el5mktemp-1.5-23.2.2libusb-0.1.12-5.1ncurses-5.5-24.201*0715freetype-2.2.1-21.el5_3
2.4核心参数
2.4.1AIX
lsattr-Elsys0
maxbuf20MaximumnumberofpagesinblockI/OBUFFERCACHETrueulimit-a
time(seconds)unlimitedfile(blocks)unlimiteddata(kbytes)unlimitedstack(kbytes)4194304memory(kbytes)unlimited-32-
主机巡检
coredump(blocks)2097151nofiles(descriptors)201*
需要root权限
vmo#管理虚拟内存管理器可优化参数。
schedo#管理CPU调度程序可优化参数。
ioo#管理输入/输出可优化参数。
no#管理网络优化参数。
nfso#管理网络文件系统(NFS)优化参数。
raso#管理可靠性、可用性和服务能力参数。
2.4.2HP
kctune(早期版本可以使用kmtune)
TunableValueExpressionChangesNSTREVENT50DefaultNSTRPUSH16DefaultNSTRSCHED0Defaultsysdef
2.4.3Solaris
more/etc/system
-33-
主机巡检
setshmsys:shminfo_shmmin=1setshmsys:shminfo_shmmni=896setshmsys:shminfo_shmseg=640setsemsys:seminfo_semmns=640setsemsys:seminfo_semmni=740setsemsys:seminfo_semmsl=896ndd
2.4.4Linux
sysctl-a
setshmsys:shminfo_shmmin=1setshmsys:shminfo_shmmni=896setshmsys:shminfo_shmseg=640setsemsys:seminfo_semmns=640setsemsys:seminfo_semmni=740setsemsys:seminfo_semmsl=896
-34-
主机巡检
3CPU
CPU(CentralProcessingUnit中央处理器)是一台计算机的运算核心和控制核心。CPU由运算器、控制器和寄存器及实现它们之间联系的数据、控制及状态的总线构成。差不多所有的CPU的运作原理可分为四个阶段:提取(Fetch)、解码(Decode)、执行(Execute)和写回(Writeback)。CPU从存储器或高速缓冲存储器中取出指令,放入指令寄存器,并对指令译码,并执行指令。CPU的数量和频率,对服务器的运算性能有较大的影响。
目前,服务器的CPU仍按CPU的指令系统来区分,通常分为CISC型CPU和RISC型CPU两类。
CISC是英文"ComplexInstructionSetComputer"的缩写,中文意思是“复杂指令集”,它是指英特尔生产的x86(intelCPU的一种命名规范)系列CPU及其兼容CPU(其他厂商如AMD,VIA等生产的CPU),它基于PC机(个人电脑)体系结构。这种CPU一般都是32位的结构,所以我们也把它成为IA-32CPU。(IA:IntelArchitecture,Intel架构)。CISC型CPU目前主要有intel的服务器CPU和AMD的服务器CPU两类。
Intel的服务器CPUAMD的服务器CPU
RISC是英文"ReducedInstructionSetComputing"的缩写,中文意思是“精简指令集”。相对于CISC型CPU,RISC型CPU不仅精简了指令系统,还采用了一种叫做“超标量和超流水线结构”,大大增加了并行处理能力(并行处理并行处理是指一台服务器有多个CPU同时处理。并行处理能够大大提升服务器的数据处理能力。部门级、企业级的服务器应支持CPU并行处理技术)。目前在中高档服务器中普遍采用这一指令系统的CPU,特别是高档服务器全都采用RISC指令系统的CPU。
目前,在中高档服务器中采用RISC指令的CPU主要有以下几类:
PowerPC处理器,用于IBM主机SPARC处理器,用于SUN主机PA-RISC处理器,用于HP主机
-35-
主机巡检
MIPS处理器Alpha处理器
3.1
CPU信息
CPU信息包括主机的CPU数量,以及CPU的频率等信息。
需要注意的几个概念是:物理CPU,逻辑CPU,CORE。物理CPU(即板子上插了多少个宏观的CPU芯片)、CORE(CPU中包含的物理内核个数),逻辑CPU(用SMT技术将物理核虚拟而成的逻辑处理单元)。
3.1.1AIX
bindprocessor-q
Theavailableprocessorsare:012345678910111213141516171819Purpose:Bindsorunbindsthekernelthreadsofaprocesstoaprocessor.
lscfg|grepproc
+proc1U1.18-P1-C1Processor+proc2U1.18-P1-C1Processor+proc3U1.18-P1-C1Processor+proc4U1.18-P1-C1Processor+proc5U1.18-P1-C1Processor+proc6U1.18-P1-C1-36-
主机巡检
Processor+proc7U1.18-P1-C1Processor+proc8U1.18-P1-C3Processor+proc9U1.18-P1-C3ProcessorPurpose:Displaysconfiguration,diagnostic,andvitalproductdata(VPD)informationaboutthesystem.
pmcycles-m
CPU0runsat1500MHzCPU1runsat1500MHzCPU2runsat1500MHzCPU3runsat1500MHzCPU4runsat1500MHzCPU5runsat1500MHzPurpose:Measuresprocessorclockspeed.
lsattr-Elproc1
frequency1499977344ProcessorSpeedFalsesmt_enabledfalseProcessorSMTenabledFalsesmt_threads1ProcessorSMTthreadsFalsestateenableProcessorstateFalsetypePowerPC_POWER4ProcessortypeFalsePurpose:Displaysattributecharacteristicsandpossiblevaluesofattributesfordevicesinthesystem.
prtconf|grepProcessor
-37-
主机巡检
ProcessorType:PowerPC_POWER4ProcessorImplementationMode:POWER4ProcessorVersion:PV_4_2NumberOfProcessors:20ProcessorClockSpeed:1500MHzModelImplementation:MultipleProcessor,PCIbus+proc1U1.18-P1-C1ProcessorPurpose:Displayssystemconfigurationinformation.
lsdev-Ccprocessor
proc1Available00-01Processorproc2Available00-02Processorproc3Available00-03Processorproc4Available00-04Processorproc5Available00-05Processorproc6Available00-06ProcessorPurpose:Displaysdevicesinthesystemandtheircharacteristics.vmstat
SystemConfiguration:lcpu=20mem=81920MBkthrmemorypagefaultscpu---------------------------------------------------------------rbavmfrerepipofrsrcyinsycsussyidwa211313729927330070007824555082616258683663883注:只有AIX系统才有该信息展现
-38-
主机巡检
3.1.2HP
/usr/sbin/ioscan-k|grep-iprocessor
2/120processorProcessor2/121processorProcessor2/122processorProcessor2/123processorProcessor2/124processorProcessor2/125processorProcessor2/126processorProcessor2/127processorProcessor
machinfoCPUinfo:4Intel(R)Itanium29100seriesprocessors(1.6GHz,18MB)533MT/sbus,CPUversionA18logicalprocessors(2persocket)Purpose:printmachineinformationtopCpustates:CPULOADUSERNICESYSIDLEBLOCKSWAITINTRSSYS00.3515.6%1.0%8.7%74.7%0.0%0.0%0.0%0.0%10.2616.4%0.4%11.7%71.5%0.0%0.0%0.0%0.0%20.3215.0%1.4%8.1%75.4%0.0%0.0%0.0%0.0%30.3037.6%1.0%2.6%58.8%0.0%0.0%0.0%0.0%40.2722.8%0.6%5.7%70.9%0.0%0.0%0.0%0.0%50.3019.6%0.6%4.4%75.4%0.0%0.0%0.0%0.0%60.4217.4%0.8%4.0%77.8%0.0%0.0%0.0%0.0%-39-
主机巡检
70.2516.8%0.6%8.1%74.5%0.0%0.0%0.0%0.0%-----------------------------------------------avg0.3120.2%0.8%6.7%72.3%0.0%0.0%0.0%0.0%如CPU信息较多,无法全部展现,可以通过top-w进行汇总展现Cpustates:8processorsLOADUSERNICESYSIDLEBLOCKSWAITINTRSSYS0.3120.8%1.0%6.9%71.3%0.0%0.0%0.0%0.0%
glance(c选项)
3.1.3Solaris
prtdiag-v
=========================CPUs===============================================CPURunE$CPUCPUFRUNameIDMHzMBImpl.Mask------------------------------------/N0/SB2/P08,520195032.0US-IV+2.4/N0/SB2/P19,521195032.0US-IV+2.4/N0/SB2/P210,522195032.0US-IV+2.4/N0/SB2/P311,523195032.0US-IV+2.4/N0/SB4/P016,528195032.0US-IV+2.2/N0/SB4/P117,529195032.0US-IV+2.2/N0/SB4/P218,530195032.0US-IV+2.2/N0/SB4/P319,531195032.0US-IV+2.2Purpose:displaysystemdiagnosticinformation
-40-
主机巡检
psrinfo-v
Statusofvirtualprocessor8asof:10/09/201*09:54:51on-linesince11/05/201*16:18:59.Thesparcv9processoroperatesat1950MHz,andhasasparcv9floatingpointprocessor.Statusofvirtualprocessor9asof:10/09/201*09:54:51on-linesince11/05/201*16:19:00.Thesparcv9processoroperatesat1950MHz,andhasasparcv9floatingpointprocessor.Purpose:displaysinformationaboutprocessors
3.1.4Linux
cat/proc/cpuinfo|grepname|cut-f2-d:|uniq-c32Intel(R)Xeon(R)CPUE7520@1.87GHz
more/proc/cpuinfoprocessor:0vendor_id:GenuineIntelcpufamily:6model:46modelname:Intel(R)Xeon(R)CPUE7520@1.87GHzstepping:6cpuMHz:1864.692cachesize:18432KBphysicalid:0siblings:8coreid:1cpucores:4-41-
主机巡检
apicid:2fpu:yesfpu_exception:yescpuidlevel:11wp:yesflags:fpuvmedepsetscmsrpaemcecx8apicsepmtrrpgemcacmovpatpse36clflushdtsacpimmxfxsrssesse2sshttmsyscallnxrdtscplmconstant_tscnonstop_tscpnimonitords_cplvmxesttm2ssse3cx16xtprsse4_1sse4_2popcntlahf_lmbogomips:3729.38clflushsize:64cache_alignment:64addresssizes:44bitsphysical,48bitsvirtualpowermanagement:[8]
cat/proc/cpuinfo|grepflags|grep"lm"|wc-l
3.2CPU监控
CPU监控是用于监控当前系统的运行状况,判断系统存在性能问题的重要手段。采用如OSW、OEM等监控工具,对系统运行时的CPU使用率,消耗CPU资源较大的进程进行记录,对后续的问题分析有较好的帮助。
3.2.1AIX
topas
TopasMonitorforhost:P690A_ACCOUNTEVENTS/QUEUESFILE/TTYSunOct910:18:27201*Interval:2Cswitch3065Readch-42-
主机巡检
316.5KSyscall25772Writech1165.4KKernel3.4|##|Reads80Rawin0User4.3|##|Writes308Ttyout439Wait4.0|##|Forks1Igets0Idle88.4|#########################|Execs2Namei93Runqueue1.5Dirblk0
vmstat15
SystemConfiguration:lcpu=20mem=81920MBkthrmemorypagefaultscpu---------------------------------------------------------------rbavmfrerepipofrsrcyinsycsussyidwa2112776059332118201*0003928437570908684130127760683320931000000148117136657192880201*77607833206440000008511946265678289130127765703319624000000187763077360818832112776597331905900000025891333781781847iostatsar
-43-
主机巡检
mpstat
Purpose:CollectsanddisplaysperformancestatisticsforalllogicalCPUsinthesystem.lparstat
Purpose:Reportslogicalpartition(LPAR)relatedinformationandstatistics.
3.2.2HP
glance
GlanceC.04.70.00010:22:13dlsdbia64CurrentAvgHigh------------------------------------------------------------------------------------------------------------CPUUtilSSNNAUU|22%22%25%DiskUtilFF|3%2%3%MemUtilSSUU|97%97%97%SwapUtilUURR|47%47%47%-------------------------------------------------------------------------------------------------------------sar55
HP-UXdlsdbB.11.31Uia6410/09/1110:20:18%usr%sys%wio%idle10:20:239608510:20:289508510:20:339508610:20:389508510:20:4395086Average95086
-44-
主机巡检
top
Loadaverages:0.21,0.20,0.20676processes:621sleeping,55runningCpustates:CPULOADUSERNICESYSIDLEBLOCKSWAITINTRSSYS00.228.9%0.8%6.1%84.2%0.0%0.0%0.0%0.0%10.229.3%0.4%3.6%86.8%0.0%0.0%0.0%0.0%20.205.7%0.8%9.3%84.2%0.0%0.0%0.0%0.0%30.248.3%2.2%5.1%84.4%0.0%0.0%0.0%0.0%40.219.1%1.0%6.7%83.2%0.0%0.0%0.0%0.0%50.216.3%3.8%6.7%83.2%0.0%0.0%0.0%0.0%60.207.9%1.0%6.1%85.0%0.0%0.0%0.0%0.0%70.227.5%1.6%5.9%85.0%0.0%0.0%0.0%0.0%-----------------------------------------------avg0.217.9%1.4%6.1%84.6%0.0%0.0%0.0%0.0%
3.2.3Solaris
mpstat
CPUminfmjfxcalintrithrcswicswmigrsmtxsrwsysclusrsyswtidl827201*1231120852431144606081760789344021821920282710010947740191039301325156380363201*331170821136907092782533483581308871160831616039196748950310841015-45-
主机巡检
171480123116615052812047643205518002186647750378930071991702674281437683615017892715058prstat
PIDUSERNAMESIZERSSSTATEPRINICETIMECPUPROCESS/NLWP5177acct510M414Mcpu19010553:04:546.2%java/6615465oracle1015G15Gcpu17100184:37:086.2%oracle/16741oracle1015G15Gcpu528201*72:51:376.2%oracle/115467oracle1015G15Gcpu523100182:17:546.1%oracle/115463acct268M53Msleep4744:49:140.1%OWE_SWITCH_PARA/16742acct246M30Msleep4744:53:010.1%OWE_SWITCH_PART/113695oracle1042M20Msleep43017:29:040.1%tnslsnr/326223oracle1015G15Gsleep2300:00:000.1%oracle/1Total:632processes,2946lwps,loadaverages:5.29,5.28,5.28
3.2.4Linux
top
top-10:22:42up112days,23:49,1user,loadaverage:0.03,0.01,0.00Tasks:527total,1running,526sleeping,0stopped,0zombieCpu(s):0.0%us,0.0%sy,0.0%ni,100.0%id,0.0%wa,0.0%hi,0.0%si,0.0%stMem:32947080ktotal,31092200kused,1854880kfree,1032488kbuffersSwap:62918564ktotal,4kused,62918560kfree,28102256kcached
-46-
主机巡检
nmon
---------------------------+-------------------------------------------------+xCPUUser%Sys%Wait%Idle|0|25|50|75100|x10.00.00.0100.0|>|x20.00.00.0100.0|>|x30.00.00.0100.0|>|x40.00.00.0100.0|>|x50.00.00.0100.0|>|x60.00.00.0100.0|>|x70.00.00.0100.0|>|x80.00.00.0100.0|>|x90.00.00.0100.0|>|
ps-auxf|sort-nr-k3|head-10(使用CPU最多的前10名进程)
acct1252201*00.9546288225008?SlNov221441:32/bea/jdk142_11/bin/java-Xverify:none-client-Xms32m-Xmx200m-XX:MaxPermSize=128m-Dweblogic.Name=ctserver-Dweblogic.ProductionModeEnabled=-Djava.security.policy=/bea/weblogic81/server/lib/weblogic.policyweblogic.Serveroracle2848028.32.62247656653016?Ss10:063:09oracleacct(LOCAL=NO)oracle286210.10.1224764031180?Ss10:160:00oracleacct(LOCAL=NO)oracle273710.10.2225072860056?Ss09:280:04oracleacct(LOCAL=NO)xfs41430.00.0214842288?SsOct220:00xfs-droppriv-daemonUSERPID%CPU%MEMVSZRSSTTYSTATSTARTTIMECOMMAND-47-
主机巡检
smmsp40630.00.0576801744?SsOct220:00sendmail:Queuerunner@01:00:00for/var/spool/clientmqueuerpc30750.00.08048580?SsOct220:00portmaproot9080.00.0130201*96?S主机巡检
通过top等监控命令,可以获取CPU消耗较高的进程。
7?22151oracle241201*044M6656Krun2075:0685.9285.77oraclenmjftest
CPU压力较大时,可以采用:减少正在运行的应用程序的数量,优化应用程序的执行,调整应用程序的优先级,增加CPU数量等方法进行优化。
性能指标:系统在峰值时,r队列
-49-
友情提示:本文中关于《SUN主机巡检模板v1.0》给出的范例仅供您参考拓展思维使用,SUN主机巡检模板v1.0:该篇文章建议您自主创作。
来源:网络整理 免责声明:本文仅限学习分享,如产生版权问题,请联系我们及时删除。
《SUN主机巡检模板v1.0》
由互联网用户整理提供,转载分享请保留原作者信息,谢谢!
http://m.bsmz.net/gongwen/665780.html
- 上一篇:北方工业基地工作总结