SUN主機巡檢模板v1.0
SUN系統(tǒng)健康檢查報告
SUN小型機系統(tǒng)健康檢查報告
地址:上海市田林路398號3樓B座電話:021-54278888起草日期:201*年09月
上海天璣科技有限責(zé)任公司
Page1of6
SUN系統(tǒng)健康檢查報告
服務(wù)介紹
系統(tǒng)健康檢查服務(wù)是系統(tǒng)預(yù)防性維護服務(wù)的重要組成部分,是現(xiàn)場預(yù)防維護服務(wù)的升級服務(wù)。
幫助客戶檢查系統(tǒng)目前的狀態(tài)并分析其潛在的問題,最大限度地減少由于系統(tǒng)維護不當(dāng)所帶來的危害,并對將來日常維護系統(tǒng)提出建議,避免產(chǎn)生新的系統(tǒng)問題。從手段上,組織系統(tǒng)維護工程師,通過現(xiàn)場對客戶系統(tǒng)進行全面檢查,及早發(fā)現(xiàn)潛在問題,提交詳細(xì)檢查報告及問題的針對性建議,提高用戶業(yè)務(wù)的可用性。
本服務(wù)的初衷、目標(biāo)是:通過天璣公司系統(tǒng)健康檢查服務(wù),利用天璣公司系統(tǒng)專家及天璣公司多年在系統(tǒng)維護方面的經(jīng)驗,
系統(tǒng)健康檢查概要
客戶名稱客戶參與人員天璣工程師(實施)開始日期/時間完成日期/時間聯(lián)系電話天璣工程師(審閱)客戶傳真電子郵件天璣傳真021-54279888產(chǎn)品號/型號序列號服務(wù)單號系統(tǒng)名稱承擔(dān)業(yè)務(wù)系統(tǒng)狀態(tài)正常問題描述程度系統(tǒng)健康檢查結(jié)果概要及建議1.2.
客戶簽字:天璣工程師簽字:
簽字日期:簽字日期:
Page2of6
SUN系統(tǒng)健康檢查報告
SUN系統(tǒng)健康檢查詳表
[檢查對象以被查服務(wù)器為單位,下列表格應(yīng)包含此次健康檢查服務(wù)中所涉及的所有服務(wù)器,每一臺服務(wù)器一張表格。下表為SUN系列產(chǎn)品系統(tǒng)健康檢查專用表]產(chǎn)品號:序列號:系統(tǒng)名稱:檢查開始時間:檢查結(jié)束時間:天璣工程師:主機硬件檢查檢查內(nèi)容指示燈狀態(tài)分區(qū)配置狀態(tài)處理器內(nèi)存磁盤參考命令#format>disk_id_num,p,p#prtdiagv注:對于已停機設(shè)備可以進OBP檢測#prtdiagv注:對于已停機設(shè)備可以進OBP檢測#diskinfo#format正常正常正常正常正常檢查結(jié)果□異常說明:□異常說明:□異常說明:日志正常□異常說明:日志正!醍惓Uf明:日志正常I/O#prtdiagv注:正常1.對于已停機設(shè)備可以進OBP檢測2.E6800以上設(shè)備在platformshell下使用showboardse及showplatform#prtdiagv注:對于已停機設(shè)備可以進OBP檢測正常正常正常正常□異常說明:日志正!醍惓Uf明:日志正!醍惓Uf明:日志正!醍惓Uf明:日志正!醍惓Uf明:日志正常網(wǎng)絡(luò)#ifconfig-a#netstat-inDVD,CD-ROM#prtdiag-v測試能否正常mountOBP下使用probe-scsi-all檢測系統(tǒng)日志檢查檢查內(nèi)容參考命令#cat/var/adm/message#more/var/log/syslog*#psef|grepsyslogd進程是否正常檢查結(jié)果系統(tǒng)日志正!醍惓Uf明:
Page3of6
SUN系統(tǒng)健康檢查報告
dmesg輸出主機登錄是否正常文件系統(tǒng)查看卷組信息(如果有):系統(tǒng)CoreDump是否打開查看nfs共享dmesg檢查有否scsireset,file正常systemfull等信息#who#last#df-kl(已使用空間不超過90%)#swap-l#vxprint-ht#dumpadm#dfshares正常正常正常無無□異常說明:□異常說明:日志正!醍惓Uf明:日志正常□異常說明:□有說明:□有說明:集群檢查檢查內(nèi)容集群的運行狀態(tài)參考命令#scstatp正常檢查結(jié)果□異常說明:集群的日志SC3.0版本日志在/var/adm/messages。SC(suncluster)fororacle在/var正常/opt/SUNWscor。SCforsybaseASE在/opt/SUNWscsyb/log正!醍惓Uf明:日志文件路徑可以指定SUNCluster版本信息scinstallpv查找/etc/hosts.equiv和.rhosts,看是否合#ls/etc/hosts.equiv法。#find/-name.rhosts-print集群配置文件檢查集群相關(guān)Patch是否安裝檢查群集互連狀態(tài)#scconfp#scrgadm-pScinstall-pvScstat-W□異常說明:正!醍惓Uf明:正常正常正常□異常說明:□異常說明:□異常說明:(存儲外設(shè)檢查(SunStorEdgeA1000/D1000,SunStorEdge3000系列,帶庫…)檢查內(nèi)容A1000/D1000StorEdge存儲參考命令檢查結(jié)果3000StorEdge一系列存儲#/usr/sbin/osa/rm6啟動RaidManager管理正常#檢查指示燈檢查指示燈#format查看存儲硬盤是否可識別使用SUNStorEdgeCLI和Sunstoredgeconfigurationservice軟件管理正常Mainmenuviewandediteventlogs□異常說明:□異常說明:
Page4of6
SUN系統(tǒng)健康檢查報告
系統(tǒng)配置檢查SystemFirmware版本:prtconf-vPoint補丁程序:ls/var/sadm/patchCluster補丁程序:#uname-a#showrevp#patchadd-p#metadbi#metastat#vxprint-ht#eeprom修改后需重啟系統(tǒng)生效#prtdiag-vsolaris操作系統(tǒng)版本:□未安裝說明:基本工具軟件已安裝安裝查看鏡像狀態(tài)正!醍惓Uf明:日志正常系統(tǒng)參數(shù)設(shè)置系統(tǒng)微碼級別(Microcode)正!醍惓Uf明:日志正!醍惓Uf明:超過90%使用率的,建議用戶改善□異常說明:□異常說明:數(shù)量文件系統(tǒng)使用率是否正常#df-k#swaps#df-k#dumpadm設(shè)備類型CPU正常內(nèi)存交換區(qū)的使用率是否超過70%系統(tǒng)DUMP設(shè)置是否正常正常正常規(guī)格記錄主要部件的相關(guān)信息內(nèi)存內(nèi)置硬盤系統(tǒng)性能表現(xiàn)檢查內(nèi)容整體性能CPU性能內(nèi)存性能I/O性能參考命令#topas#sar#vmstat#iostat正!踺^繁忙□緊張說明:正常□較繁忙□緊張說明:正!踺^繁忙□緊張說明:正!踺^繁忙□緊張說明:檢查結(jié)果系統(tǒng)備份檢查#ufsdump0cuf/dev/rmt/unit完成/dev/rdsk/cntndns0文件系統(tǒng)備份
□失敗說明:
Page5of6
SUN系統(tǒng)健康檢查報告
查看crontab,看是否有可疑進程#crontab-l驗證備份是否成功#mt-f/dev/rmt/0rewind倒帶#ufsrestoretvf/dev/rmt/0cn查看數(shù)據(jù)正常□異常說明:正!醍惓Uf明:系統(tǒng)資源使用情況#sar#vmstat#iostatCPUusr%:0CPUsys%:0CPUwio%:0CPU/Memory/IO資源使用情況建議:交換區(qū)使用情況#swapl#swap-sPctUsed(dev):PctUsed(total):建議:
Page6of6
擴展閱讀:主機巡檢_v0.1
主機巡檢
(V0.1.0)
201*年10月
主機巡檢
修改記錄
日期作者版本修改記錄分發(fā)記錄拷貝No.姓名單位123參考文檔No.文檔名稱作者123
-1-
主機巡檢
目錄
1巡檢概述.....................................................................................................................-7-1.1系統(tǒng)基本信息........................................................................................................-7-
1.1.1AIX...............................................................................................................-8-1.1.2HP................................................................................................................-9-1.1.3Solaris........................................................................................................-10-1.1.4Linux...........................................................................................................-10-
1.2系統(tǒng)詳細(xì)信息......................................................................................................-11-
1.2.1AIX.............................................................................................................-11-1.2.2HP..............................................................................................................-13-1.2.3Solaris........................................................................................................-17-1.2.4Linux...........................................................................................................-18-
2操作系統(tǒng)...................................................................................................................-21-2.1操作系統(tǒng)信息......................................................................................................-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核心參數(shù)..............................................................................................................-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監(jiān)控............................................................................................................-42-
3.2.1AIX.............................................................................................................-42-3.2.2HP..............................................................................................................-44-3.2.3Solaris........................................................................................................-45-3.2.4Linux...........................................................................................................-46-
3.3CPU性能評估.....................................................................................................-48-4內(nèi)存...........................................................................................................................-50-4.1內(nèi)存.....................................................................................................................-50-
4.1.1AIX.............................................................................................................-50-4.1.2HP..............................................................................................................-50-4.1.3Solaris........................................................................................................-51-4.1.4Linux...........................................................................................................-51-
4.2虛擬內(nèi)存..............................................................................................................-52-
4.2.1AIX.............................................................................................................-52-4.2.2HP..............................................................................................................-53-4.2.3Solaris........................................................................................................-54-
-3-
主機巡檢
4.2.4Linux...........................................................................................................-54-
4.3內(nèi)存、虛擬內(nèi)存監(jiān)控...........................................................................................-55-
4.3.1AIX.............................................................................................................-55-4.3.2HP..............................................................................................................-56-4.3.3Solaris........................................................................................................-57-4.3.4Linux...........................................................................................................-57-
4.4內(nèi)存性能評估......................................................................................................-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監(jiān)控................................................................................................................-76-
5.4.1AIX.............................................................................................................-76-5.4.2HP..............................................................................................................-77-5.4.3Solaris........................................................................................................-78-5.4.4Linux...........................................................................................................-79-
5.5IO性能評估.........................................................................................................-80-
-4-
主機巡檢
6網(wǎng)絡(luò)...........................................................................................................................-82-6.1網(wǎng)絡(luò)信息..............................................................................................................-82-
6.1.1AIX.............................................................................................................-82-6.1.2HP..............................................................................................................-83-6.1.3Solaris........................................................................................................-84-6.1.4Linux...........................................................................................................-85-
6.2網(wǎng)絡(luò)監(jiān)控..............................................................................................................-86-
6.2.1AIX.............................................................................................................-86-6.2.2HP..............................................................................................................-87-6.2.3Solaris........................................................................................................-87-6.2.4Linux...........................................................................................................-88-
6.3網(wǎng)絡(luò)性能評估......................................................................................................-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進程監(jiān)控..............................................................................................................-96-
-5-
主機巡檢
9.3共享內(nèi)存..............................................................................................................-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
系統(tǒng)基本信息
主機巡檢,是數(shù)據(jù)庫、中間件、應(yīng)用系統(tǒng)巡檢的基礎(chǔ)。主機巡檢,主要用于確認(rèn)主機類型,硬件信息,操作系統(tǒng)信息,安裝補丁以及軟件信息。通過主機巡檢,可以幫助客戶檢查系統(tǒng)目前的狀態(tài)并分析其潛在的問題,最大限度地減少由于系統(tǒng)維護不當(dāng)所帶來的危害,并對將來日常維護系統(tǒng)提出建議,避免產(chǎn)生新的系統(tǒng)問題。
由于UNIX操作系統(tǒng),在細(xì)節(jié)上存在較大差異,因此對主流UNIX操作系統(tǒng),如AIX/HP/Solaris/Linux等命令進行分類整理。執(zhí)行命令時,需要注意不同廠家的操作系統(tǒng),以前不同版本操作系統(tǒng)之間的命令差異。
操作系統(tǒng)上,一般會有/bin,/usr/bin和/sbin,/usr/sbin目錄。/bin,/usr/bin目錄包含一些較為常用的系統(tǒng)命令,如ls,pwd,cd等命令。/sbin,/usr/sbin目錄包含的命令為系統(tǒng)管理類命令,如果useradd,vgdisplay等管理類命令。
在SHELL模式下執(zhí)行命令,系統(tǒng)按照PATH環(huán)境變量里面的順序進行命令查找。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:
在執(zhí)行命令時,如果在執(zhí)行命令過程中出現(xiàn)commandnotfound的信息,注意檢查環(huán)境變量設(shè)置是否正常;蛘咄ㄟ^whereiscommand的方式,查找執(zhí)行命令的所在目錄。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
系統(tǒng)命令的參數(shù)和說明,可以通過man命令進行查看。因各類系統(tǒng)之間存在一定差異,在出現(xiàn)執(zhí)行參數(shù)異常時,建議通過man看下該命令在當(dāng)前平臺的具體參數(shù)。manvgdisplayvgdisplay(1M)vgdisplay(1M)NAMEvgdisplay-displayinformationaboutLVMvolumegroups
1.1.1AIX
登錄AIX系統(tǒng)的顯示信息:
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系統(tǒng)的顯示信息:
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系統(tǒng)的顯示信息:
Lastlogin:SatOct817:30:22from135.125.127.227SunMicrosystemsInc.SunOS5.10GenericJanuary201*
uname-a
SunOShnjf65.10Generic_127111-11sun4usparcSUNW,Sun-Fire-V890
1.1.4Linux
登錄Linux系統(tǒng)的顯示信息:
Lastlogin:SatOct817:10:13201*from136.224.24.204注:由于Linux發(fā)現(xiàn)版本較多,因此顯示存在較大差異。
uname-a
Linuxynbill-acct2.6.18-194.el5#1SMPTueMar1621:52:39EDT201*x86_64x86_64x86_64GNU/Linux
-10-
主機巡檢
1.2系統(tǒng)詳細(xì)信息
采用操作系統(tǒng)命令,獲取系統(tǒng)詳細(xì)的CPU、內(nèi)存、網(wǎng)絡(luò)、接口、主機序列號等重要信
息。系統(tǒng)的信息配置,是后續(xù)軟件安裝、應(yīng)用部署的重要依據(jù),因此建議對系統(tǒng)的詳細(xì)配置進行跟蹤記錄,在系統(tǒng)出現(xiàn)異常時,能夠根據(jù)配置的變化,確定是否出現(xiàn)較明顯的硬件故障。
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權(quán)限
/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操作系統(tǒng)
2.1
操作系統(tǒng)信息
2.1.1AIX
AIX(AdvancedInteractiveeXecutive)是IBM開發(fā)的一套UNIX操作系統(tǒng)。它符合Opengroup的UNIX98行業(yè)標(biāo)準(zhǔn)(TheOpenGroupUNIX98BaseBrand),通過全面集成對32-位和64-位應(yīng)用的并行運行支持,為這些應(yīng)用提供了全面的可擴展性。它可以在所有的IBM~p系列和IBMRS/6000工作站、服務(wù)器和大型并行超級計算機上運行。
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權(quán)限bootinfo
2.1.2HP
HP-UX,全稱為HewlettPackardUniX,是惠普9000系列服務(wù)器的操作系統(tǒng),可以在HP的HP-UX11iv3第三次升級PA-RISC處理器、Intel的Itanium處理器的電腦上運行。它基于SystemV,是Unix的一個變種。getconfKERNEL_BITS64Purpose:Writessystemconfigurationvariablevaluestostandardoutput.
getconfMACHINE_MODELia64hpsuperdomeserverSD32B
uname-amachinfo
-23-
主機巡檢
2.1.3Solaris
Solaris是SunMicrosystems研發(fā)的計算機操作系統(tǒng)。它被認(rèn)為是UNIX操作系統(tǒng)的衍生版本之一。
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計算機操作系統(tǒng)。目前存在著許多不同的Linux,但它們?nèi)际褂昧薒inux內(nèi)核。Linux可安裝在各種各樣的計算機硬件設(shè)備,從手機、平板電腦、路由器和視頻游戲控制臺,到臺式計算機,大型機和超級計算機。
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核心參數(shù)
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權(quán)限
vmo#管理虛擬內(nèi)存管理器可優(yōu)化參數(shù)。
schedo#管理CPU調(diào)度程序可優(yōu)化參數(shù)。
ioo#管理輸入/輸出可優(yōu)化參數(shù)。
no#管理網(wǎng)絡(luò)優(yōu)化參數(shù)。
nfso#管理網(wǎng)絡(luò)文件系統(tǒng)(NFS)優(yōu)化參數(shù)。
raso#管理可靠性、可用性和服務(wù)能力參數(shù)。
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由運算器、控制器和寄存器及實現(xiàn)它們之間聯(lián)系的數(shù)據(jù)、控制及狀態(tài)的總線構(gòu)成。差不多所有的CPU的運作原理可分為四個階段:提取(Fetch)、解碼(Decode)、執(zhí)行(Execute)和寫回(Writeback)。CPU從存儲器或高速緩沖存儲器中取出指令,放入指令寄存器,并對指令譯碼,并執(zhí)行指令。CPU的數(shù)量和頻率,對服務(wù)器的運算性能有較大的影響。
目前,服務(wù)器的CPU仍按CPU的指令系統(tǒng)來區(qū)分,通常分為CISC型CPU和RISC型CPU兩類。
CISC是英文"ComplexInstructionSetComputer"的縮寫,中文意思是“復(fù)雜指令集”,它是指英特爾生產(chǎn)的x86(intelCPU的一種命名規(guī)范)系列CPU及其兼容CPU(其他廠商如AMD,VIA等生產(chǎn)的CPU),它基于PC機(個人電腦)體系結(jié)構(gòu)。這種CPU一般都是32位的結(jié)構(gòu),所以我們也把它成為IA-32CPU。(IA:IntelArchitecture,Intel架構(gòu))。CISC型CPU目前主要有intel的服務(wù)器CPU和AMD的服務(wù)器CPU兩類。
Intel的服務(wù)器CPUAMD的服務(wù)器CPU
RISC是英文"ReducedInstructionSetComputing"的縮寫,中文意思是“精簡指令集”。相對于CISC型CPU,RISC型CPU不僅精簡了指令系統(tǒng),還采用了一種叫做“超標(biāo)量和超流水線結(jié)構(gòu)”,大大增加了并行處理能力(并行處理并行處理是指一臺服務(wù)器有多個CPU同時處理。并行處理能夠大大提升服務(wù)器的數(shù)據(jù)處理能力。部門級、企業(yè)級的服務(wù)器應(yīng)支持CPU并行處理技術(shù))。目前在中高檔服務(wù)器中普遍采用這一指令系統(tǒng)的CPU,特別是高檔服務(wù)器全都采用RISC指令系統(tǒng)的CPU。
目前,在中高檔服務(wù)器中采用RISC指令的CPU主要有以下幾類:
PowerPC處理器,用于IBM主機SPARC處理器,用于SUN主機PA-RISC處理器,用于HP主機
-35-
主機巡檢
MIPS處理器Alpha處理器
3.1
CPU信息
CPU信息包括主機的CPU數(shù)量,以及CPU的頻率等信息。
需要注意的幾個概念是:物理CPU,邏輯CPU,CORE。物理CPU(即板子上插了多少個宏觀的CPU芯片)、CORE(CPU中包含的物理內(nèi)核個數(shù)),邏輯CPU(用SMT技術(shù)將物理核虛擬而成的邏輯處理單元)。
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系統(tǒng)才有該信息展現(xiàn)
-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信息較多,無法全部展現(xiàn),可以通過top-w進行匯總展現(xiàn)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監(jiān)控
CPU監(jiān)控是用于監(jiān)控當(dāng)前系統(tǒng)的運行狀況,判斷系統(tǒng)存在性能問題的重要手段。采用如OSW、OEM等監(jiān)控工具,對系統(tǒng)運行時的CPU使用率,消耗CPU資源較大的進程進行記錄,對后續(xù)的問題分析有較好的幫助。
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等監(jiān)控命令,可以獲取CPU消耗較高的進程。
7?22151oracle241201*044M6656Krun2075:0685.9285.77oraclenmjftest
CPU壓力較大時,可以采用:減少正在運行的應(yīng)用程序的數(shù)量,優(yōu)化應(yīng)用程序的執(zhí)行,調(diào)整應(yīng)用程序的優(yōu)先級,增加CPU數(shù)量等方法進行優(yōu)化。
性能指標(biāo):系統(tǒng)在峰值時,r隊列
-49-
友情提示:本文中關(guān)于《SUN主機巡檢模板v1.0》給出的范例僅供您參考拓展思維使用,SUN主機巡檢模板v1.0:該篇文章建議您自主創(chuàng)作。
來源:網(wǎng)絡(luò)整理 免責(zé)聲明:本文僅限學(xué)習(xí)分享,如產(chǎn)生版權(quán)問題,請聯(lián)系我們及時刪除。