|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
初学阶段只要把上课时候学习过的命令练熟就可以了.单靠学习各种命令而成为高手是不可能的。
列出各个SCSI设备的一切相干信息:如逻辑单位号,硬件地点及设备文件名等。
#ps-ef
列出正在运转的一切历程的各类信息:如历程号及历程名等。
#netstat-rn
列出网卡形态及路由信息等。
#netstat-in
列出网卡形态及收集设置信息。
#df-k
列出已加载的逻辑卷及其巨细信息。
#mount
列出已加载的逻辑卷及其加载地位。
#uname-a
列出体系ID号,体系称号,OS版本等信息。
#hostname
列出体系收集称号。
#lsvgClrootvg,lsvgCprootvg
显现逻辑卷组信息,如包括哪些物理盘及逻辑卷等。
#lslvCldatalv,lslvCpdatalv
显现逻辑卷各类信息,如包括哪些盘,是不是有镜像等。
八收集妨碍定位办法
收集欠亨的诊断历程:
ifconfig检察网卡是不是启动(up)
netstatCi检察网卡形态
Ierrs/Ipkts和Oerrs/Opkts是不是>1%
ping本人网卡地点(ip地点)
ping别的呆板地点,如欠亨,在其呆板上用diag检测网卡是不是有成绩。
在统一网中,subnetmask应分歧。
收集设置的基础办法:
(1)如需修正收集地点、主机名等,必定要用chdev命令
#chdevClinet0Cahostname=myhost
#chdev-len0-anetaddr=9.3.240.58-anetmask=255.255.255.0’
(2)检察网卡形态:#lsdevCCcif
(3)确认收集地点:#ifconfigen0
(4)启动网卡:#ifconfigen0up
(5)设置路由
有两种体例到场路由:
永世路由
#chdev-linet0-aroute=’10.47.0.0’,’9.3.240.59’
一时路由
#routeadd10.47.1.29.3.240.59
用命令netstat-rn检察路由表
附:经常使用命令列表:- AnyXXXX,####,****,orXistobesubstitutedbyaname,resourcenameor#,
- fn=filename
- DIR=Directory
- |=pipesymbol
-
- bosboot-a-d/dev/hdiskx-rebuildsbootrecord/imageonbootdevice(hdiskx)
- cat-viewcontentsofafile
- cat/tmp/****.1-viewafile,lookatoutput
- catfnfn>newfile-combinestwofilestoasinglefile
- cd-willreturnyoutodefaultDIR
- cd/-willputinrootDIR
- cd/xxxx-changeyoutoaDIRanywhereissystem
- cd..-willdropyououtof1DIRatatime
- cdxxxxx-willchangeyoutoaDIRincurrentdir
- cfgmgr-willautoconfigdevices
- cfgmgr-v&-(-v)showsprocesses(&)putsinbackground
- chps-sxxhd#-increasepagingspace(xx=#ofaddtlPPs)
- cpoldfnnewfn-copyafile
- cpoldfnDirn-copyafiletoanotherdirectory
- crontab-l-listcrontabentriesforthecurrentuser
- ctrl+v-willpagedown1page
- ctrl+6-willpageup1page
- delfn-sameasrm-i,promtstoremovefn
- df-I-showsstatusoffilesystems(noinodes)
- df-Ik-(k)showstatusin1024bites(1mb)(onlyAIX4
- diag-a-updateschangesinhardwareconfiguration
- diag*****-****=adevicetype(astape,disk....Fastpath)
- diag-cdrmtX-resetstapedrive
- dosformat-formatsadiskettetoDOS
- dosdir-listfilesondosformateddiskette
- dosreadXXYY-copiesdosfileXXtoaixfileYY
- doswriteYYXX-copiesaixfileYYtodosfileXX
- errpt-generatesaonelinesynopsisofloggederrors
- errpt|pg-listerrorlog1page@atime(1stcolumnisID)
- errpt-a-displaysdetailedinformationofloggederrors
- errpt-sMmddhhmmyy-selectentriespostedlaterthandate
- errpt-ajXXXXXXX-listdetailerrorbyIDnumber.(XXX=1stcolumn)
- errpt-dS-listsoftwareerrors
- errpt-jXXXXXXX-listsummaryreportbyIDnumber.
- errpt-aNXXXXXX-listdetailedreportbyresourcenamecolumn
- errpt-NXXXXXXX-listsummaryreportbyresourcenamecolumn
- errclear0-clearserrorlog
- errclear-NXXXXX0-clearserrorlogbyresourcename,0=allenter
- errclear-jXXXXX0-clearserrorlogbyIDnumber.
- finger-sameaswhobutwithmoredetails
- flcopy-copiesadiskettetoanotherdiskette
- format-formatsadisketteindefaultdiskettedrive
- format-l-formatsinlowerdenity:1.44on2.44/720on1.44
- hostname-respondswithhostsystemname
- host(hostname)-respondswithinternetaddress
- instfix-ikIPAR#-listsiparfixwascompletelyinstalled
- lppchk-v-checksinstallstatusofLPPs
- lppchk-v2>/dev/lpX-sendsoutputoflppchktoprinterlpx
- lpstat-aall-viewallprinterqueues
- lptest805>/dev/lp0-sendtestpatterntolp0
- ls-listnamesoffiles&directoriesincurrentdir
- ls-lia-listdetailsoffiles,currentdir&subdir
- ls-al-listdetailsoffilesordirincurrentdir
- lsattr-Elxxxxxx-listspecificsettingsonadevice
- lsdev-C|sort-d-f-listsystemhardware(devices)
- lsdev-C|grep00-0X-listresoursesforaadapter
- lsdev-Ccxxxxx-H-listdevices(xxx=tty,printer,disk,memory,adpt
- lsdev-CSScsi-listscsidevices(notserialorraid)
- lsdev-Cctape-listtapedevices
- lsdev-Cspci-listpcidevices
- lsdev-Csisa-listisadevices
- lscons-liststheassignedconsole
- lscfg-listhardwarelist(sameasdiagslist)
- lscfg-rlmem*|pg-liststhememoryonPCIbusmachines
- lscfg-vlXXXXX-listconfiginfofromadevice.(rmt0,hdisk,etc)
- lscfg-vlsysplanar0-liststhemachinetype,model,s/nonSMP
- lsfs-listallfilesystems+datafrom"df"cmd
- lslpp-l|grepBROKEN-listsincompleteptfs
- lslv-mhd5-findsbootdriveunderpv1column
- lsps-a-checksavailablepagingspace
- lsps-s-checksavailablepagingspace
- lspv-listsinformationaboutthephysicalvolumes
- lspvhdisk#-listdriveinfo
- lspv-lhdisk#-listslogicalvolumegroupdiskin
- lsuser-fALL-listsallattributesforallusers
- lsvg-listsvolumegroups
- lsvg-pXXXXXX-listsdisksinvolumegroup(xxxxx=volumename)
- more-readsfilesanddisplaysthetextonescreenatatime.
- mpcfg-df-listallsettingthemachineissetto(smp)
- mpcfg-cf111-changestofastIPLonSMPmachines(smp)
- mvfn(pathfn)-moveandrenameafile
- oslevel-showsAIXversion(3.2.4andabove)
- pg-readsanddisplaystextonescreenatatime.
- pdisable-makesunavailableorshowsalldisabledttys
- pdisabletty#-disablesatty
- penable-makesavailableorshowsallenabledttys
- penabletty#-enablesatty
- ps-el|pg-lookatprocessrunningonsystem
- pwd-listwhatDIRyouarecurrentlyin
- r-repeatslastcommand
- rm-i*******-removeafile&willpromptyouifyouaresure
- rmdev-lXXXXX-removesadeviceanddefinesittodatabase
- rmdev-lXXXXX-d-removesadeviceanddeletesitfromdatabase
- set-ovi-setsuptoveiwcammandsthathavebeenrun
- :wq-write(save)andquitfile
- Esc+k-usedwithSETcommandtolistlastcommand
- k,l-k=listnextcommandran,l=stepsyouthrucommand
- I-usewithSETcommandinsertscharacters
- j-stepsyoubackwards
- cw-cw=removesaword,justtypeinnewword
- (usewithEsc)
- a,x,r-a=addedtext,x=deletetext,r=replacetext(r+letter)
- R-letsyoutypeoverlettersorwords
- smit*****-(*****=tape,disk,tty,etc.fastpath)
- su-standsforswitchuser,(NOTsuperuser)
- su-switchestorootidorpromptsyouforpassword
- suXXXXXX-switchestoXXXXXXsid
- tar-cvf/dev/rmtX/etc-willcopy/etctoatapedrive
- tar-tvf/dev/rmtX-willreadatapedrive
- tctl-f/dev/rmtXrewoffl-rewind&ejecttape
- tctl-f/dev/rmtX.1fsf3-forwardadvancesatapetobereadbyTAR
- tctl-F-listavailcommands(-Fflagisnotcorrect)
- tctlretension-retensionstapeintapedrive
- &-putanycommandinbackgroundwithprocessID
复制代码 </p>
安装和登录命令:login、shutdown、halt、reboot、mount、umount、chsh |
|