AIX常用命令知识 下载本文

AIX 常用命令知识(自整理)

lsvg –o rootvg

# lspv hdisk0

$ lspv hdisk0

PHYSICAL VOLUME: hdisk0 VOLUME GROUP: rootvg PV IDENTIFIER: 007857f365c430ec VG IDENTIFIER 007857f3a79852ee PV STATE: active

STALE PARTITIONS: 0 ALLOCATABLE: yes PP SIZE: 8 megabyte(s) LOGICAL VOLUMES: 8 TOTAL PPs: 516 (4128 megabytes) VG DESCRIPTORS: 2 FREE PPs: 90 (720 megabytes) USED PPs: 426 (3408 megabytes) FREE DISTRIBUTION: 23..38..00..00..29 USED DISTRIBUTION: 81..65..103..103..74

# oslevel

$ oslevel 4.3.2.0

# oslevel –r

ssaxlate –l hdisk3 lsattr –El hdisk0

lsattr -El proc0 lscfg –vl fsc0

lscfg –vl pdisk*

errpt –aj 粘贴错误码

errclear 0 (记得备份)

cp /var/adm/errlog /home/ww/err/errlog errclear 0

lsdev -Cc adapter

prtconf

bosboot –ad /dev/hdisk0

bootlist –m normal –o

bootlist -m normal hdisk0 hdisk1 rmt0 fd

查看安装媒体内容: installp -q -d /dev/cdrom –l du

errpt |more

find / -name core –print

cp file1 file1.030807

ps aux |head

pmcycles -m

sync Command

Updates the i-node table and writes buffered files to the hard disk

#sync;sync;sync

crontab –l 查看 crontab –e 修改 (vi) crontab –r 删除

有系统的,也可以编辑自己需要的 有时系统也自动生成,如电源故障报警系统生成的, 改正错误后应该删掉。

minute hour day_of_month month weekday command

These fields accept the following values: minute 0 through 59 hour 0 through 23

day_of_month 1 through 31 month 1 through 12

weekday 0 through 6 for Sunday through Saturday command a shell command

mount –rv cdrfs /dev/cd0 /mnt

lslpp –l /unix

ifconfig –a

netstat –in

fget_config -l dar0

chmod 755 lee

#ls –lu 查看某一文件最后一次被访问的时间

#bootinfo –b 查看上次引导设备

vmstat svmon ps tprof iostat netpmon filemon

检查物理内存:(RAM >= 512 MB) # lsattr -El sys0 -a realmem

用instfix 命令查看当前的ML: $ instfix -i | grep ML

# svmon -Pau 10 | more

查看某个patch是否安装了: # instfix -i | grep IY24568

All filesets for IY25282 were found 表示已经有这个patch了

可使用下述命令使系统自动分配PVID: # chdev -l hdisk# -a pv=yes

用#lsfs -q FSNAME看bf项为true则该FS为large型。

syncvg -v rootvg

ps aux |head -10