免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 8966 | 回复: 13
打印 上一主题 下一主题

[其他] IBM技术支持库资料收集 [复制链接]

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-03-21 10:24 |只看该作者 |倒序浏览
第一部分
---------------------
1---如何记录下远程主机对本机文件所做的ftp操作?
如何记录下远程主机对本机文件所做的ftp操作?
a. 编辑/etc/syslog.conf文件,增加如下行:
daemon.info /tmp/daemon.log
b. 使用下面命令在/tmp目录下创建文件daemon.log:
# touch /tmp/daemon.log
c. 刷新syslogd daemon:
# refresh -s syslogd
d. 检查/etc/inetd.conf文件中对应ftpd的行,对ftpd的调用应带有"-l"参数。
进行完以上设置后,其它主机对本机进行的ftp操作就会被记录在/tmp/daemon.log文件中了。

2---如何检查操作系统安装的补丁程序
a. 检查操作系统版本:
oslevel
如: hostname >; oslevel
4.3.0.0
b.检查维护补丁安装情况
如:
# instfix -i |grep AIX_ML.
下面是此命令的输出的一个例子:
# instfix -i | grep AIX_ML
All filesets for 4.3.1.0_AIX_ML were found.
All filesets for 4.3.2.0_AIX_ML were found.
All filesets for 4.3.1.0_AIX_ML were found.
All filesets for 4.3.2.0_AIX_ML were found.
All filesets for 4.3.3.0_AIX_ML were found.
All filesets for 4330-02_AIX_ML were found.
All filesets for 4320-02_AIX_ML were found.
All filesets for 4330-03_AIX_ML were found.
All filesets for 4330-04_AIX_ML were found.
All filesets for 4330-05_AIX_ML were found.
All filesets for 4330-01_AIX_ML were found.
All filesets for 4330-06_AIX_ML were found.
Not all filesets for 4330-07_AIX_ML were found.
All filesets for 4330-08_AIX_ML were found
那麽, 操作系统打的最新的补丁是aix 4330 ML 08
c.检查某一个补丁包(APAR) 安装情况
如:要检查 IY22308
hostname >; instfix -ivk IY22308
IY22308 Abstract: Memory leak in fclose() subroutine
Fileset bos.adt.prof:4.3.3.77 is applied on the system.
Fileset bos.rte.libc:4.3.3.77 is applied on the system.
All filesets for IY22308 were found.

3---AIX如何与Windows 2000, Windows XP或Windows NT共享文件或打印机
a.通过使用Samba,一个第三方提供的免费软件实现。该产品可以从网站:www.samba.org获得;
b.通过使用IBM提供的付费软件Fast Connect for AIX V3.1实现。该产品的使用指南可以从IBM的红皮书网站www.redbooks.ibm.com下载获得,书名为:AIX Fast Connect for AIX Version 3.1 Guide

4---如何确定文件的类型及解gzip文件
可使用下面的命令确认文件的类型:
# file <filename>;
如果文件是gzip类型的文件,则可以用下面的命令解开:
# gzip -d <filename>;

5---.profile文件不生效
用户登录进CDE后,发现该用户主目录下的.profile文件未生效,而.dtprofile文件中DTSOURCEPROFILE=true的注释已经被去掉了,而且该用户telnet到该系统时.profile文件是生效的。
解答 可以在该用户的主目录下额外建一个名为 .kshrc的文件,并将.profile文件中对变量的设置放在该.kshrc文件中,之后在该用户主目录下的.profile文件中加入如下行:
export ENV=$HOME/.kshrc

6---pTools -- 进程监控的一组工具
pTools是AIX 5.2中引进的System V UNIX 提供的一组极有用的工具,用于查看进程相关的信息。包括命令:
procwdx, procfiles, procflags, proccred, procmap, procldd,
procsig, procstack, procstop, procrun, procwait, proctree
其中:
procwdx -- 显示进程的当前工作目录。如:
# procwdx 4448
4448: /var/spool/mqueue/
procfiles -- 显示该进程打开的所有文件描述字的信息。如:
# procfiles -n 4448
4448 : sendmail: accepting connections
Current rlimit: 2000 file descriptors
5: S_IFCHR mode:00 dev:10,4 ino:4237 uid:0 gid:0 rdev:2,1
procfiles : 4448 : 5 : Unable to retrieve fstat/fcntl information
4448 : sendmail: accepting connections
Current rlimit: 2000 file descriptors
7: S_IFREG mode:0444 dev:10,5 ino:80754 uid:0 gid:0 rdev:2,5020
procfiles : 4448 : 7 : Unable to retrieve fstat/fcntl information
procflags -- 显示/proc跟踪标记,包括等待和处理的信号量。如:
# procflags 4448
4448 : sendmail: accepting connections
data model = _ILP32 flags = PR_FORK
/12913: flags = PR_ASLEEP | PR_NOREGS
proccred -- 显示拥有该进程的有效及实际用户 ID,及保留的用户和组ID(setuid及setgid)。如:
# proccred 4448
4448: e/r/suid=0 e/r/sgid=0
procmap -- 显示进程地址空间。如:
# procmap 4448
4448 : sendmail: accepting connections
10000000 1005K read/exec sendmail
200003f0 241K read/write sendmail
d007f100 79K read/exec /usr/lib/libiconv.a
20252bf0 41K read/write /usr/lib/libiconv.a
d0076100 33K read/exec /usr/lib/libi18n.a
20250190 4K read/write /usr/lib/libi18n.a
d0073000 11K read/exec /usr/lib/nls/loc/en_US
2024d130 8K read/write /usr/lib/nls/loc/en_US
d0093100 71K read/exec /usr/lib/libodm.a
f0139220 21K read/write /usr/lib/libodm.a
d00be100 67K read/exec /usr/lib/libsrc.a
d01cdbe0 1941K read/exec /usr/lib/libc.a
Total 5507K
procldd -- 显示加载的动态进程列表。如:
# procldd 4448
4448 : sendmail: accepting connections
/usr/lib/libiconv.a
/usr/lib/libi18n.a
/usr/lib/nls/loc/en_US
/usr/lib/libodm.a
/usr/lib/libsrc.a
/usr/lib/libc.a
procsig -- 显示进程对各种信号量的处理。如:
# procsig 4448
4448 : sendmail: accepting connections
HUP caught RESTART | SIGINFO
INT caught RESTART | SIGINFO
QUIT default RESTART
ILL default RESTART
TRAP default RESTART
ABRT default RESTART
EMT default RESTART
FPE default RESTART
KILL default
BUS default RESTART
SEGV default RESTART
SYS default RESTART
PIPE ignored RESTART | SIGINFO
ALRM caught RESTART | SIGINFO
TERM caught RESTART | SIGINFO
UVTALRM default
MIGRATE default
PRE default RESTART
VIRT default
ALRM1 default
WAITING default RESTART
CPUFAIL default
KAP default
RETRACT default
SOUND default
SAK default
procstack -- 显示进程中当前线程的堆栈中的符号名和十六进制地址。如:
# procstack 4448
4448 : sendmail: accepting connections
d024fdf0 select (?, ?, ?, ?, ?) + 90
1000ec24 getrequests (?) + 714
1000051c main (?, ?, ?) + 29a8
10000100 __start () + 8c
procstop -- 将进程暂停。如:
procstop 51202
procrun -- 启动用procstop停止的进程。如:
procrun 51202
procwait -- 等待所指定的进程结束。如:
procwait 51202
proctree -- 显示进程调用的树型结构。如:
# proctree 4448
11452 /usr/sbin/srcmstr
4448 sendmail: accepting connections

7---异步I/O (aio)
如果是同步I/O,当一个I/O操作执行时,应用程序必须等待,直到此I/O执行完.相反,异步I/O操作在后台运行,I/O操作和应用程序可以同时运行,提高了系统性能.使用异步I/O会提高I/O流量,如果应用是对裸设备进行操作,这种优势更加明显.因此象数据库,文件服务器等应用往往会利用异步I/O,使得多个I/O操作同时执行.
1. 如何知道是否需要异步I/O?
* 执行命令:"vmstat # #" 如果"wa"值超过25%.
* 执行命令:"iostat # #" 如果"%tm_act"值超过35%.
2. 查询有几个AIO服务器: pstat -a | grep aios | wc -l
3. 应该设几个AIO服务器?
一般为硬盘数的10倍,但不要超过80.
4. AIO驱动程序: bos.rte.aio
5. 配置AIO为可用: # smit chgaio ->;
       STATE to be configured at system restart   [available]

8---如何下载RS/6000PTF(Fixes)及Firmware?
一、PTF的意思是rogram temporary fixes,用于软件升级.下载步骤如下:
     1.用浏览器打开:http://service.software.ibm.com/rs6k/fixdb.html   ( AIX Version 4 AIX Version 3
CATIA for AIX ).  
     2.选择使用的数据库
     3.选择检索选项, 并输入相应的字串:
  ( APAR Number ---- 如:IX85874,IY00411
Fileset Name --- 如:bos.net.tcp.server
PTF Number ---- 如:U464245
APAR Abstract -- 如:HACMP),  
     4.按Find Fix钮
     5.用鼠标左键选中所需Fix.(如果需要多个Fix,重复以下的步骤.)
     6.选择所用操作系统的版本(如:AIX 4.3.3, 用oslevel可以查出你的AIX版本)
     7.选择一个下载的服务器(Fix server)
     8.选择语言(Select languages)是指如果需要,下载何种语言包。
     9.按Get Fix Package钮, 将得到符合以上选项的Fix 列表。
     10.用鼠标右键依次点击所有的Fix,并选择"Save Link As..." 到本地硬盘相应目录。
     11.安装Fix: 可在Fix所在目录,用smitty install_all来安装。
二、下载 Firmware(用于硬件微码升级)
     1.用浏览器打开:http://www.rs6000.ibm.com/support/micro/download.html
     2.选择相应的RS硬件产品,下载DOS或AIX格式的微码(升级之前,请详细阅读相应说明)
     3.下载的微码含有密码,请访问http://www.rs6000.ibm.com/support/micro/ flicense.html获得密码。
  
9---在AIX4.3.3系统中,为什么oslevel命令的输出不是4.3.3.0?
从AIX4.3.3产品介质安装或升级后,oslevel命令不正确显示操作系统的版本(4.3.3.0), 这可能是以下原因造成的:
1. AIX4.3.3产品介质中的 ifor_ls.compat.cli 文件集为4.3.2.0版本。这个问题可以通过安装ifor_ls.compat.cli 4.3.3.0(PTF U466561 可以从http://techsupport.services.ibm.com/rs6k/fixes.html得到)来解决。当从4.3.3.0 Maintenance Level 维护包升级时,不会出现这个问题。
2. 从AIX4.3.3产品介质中升级的 bos.perf.pmr 文件集版本不是4.3.3.0。这个问题只会在从安装了bos.perf.pmr 的AIX 4.3.0 和 4.3.1向 AIX 4.3.3升级时才会出现。bos.perf.pmr 文件集在AIX 4.3.3中已经不再使用,所以卸载该文件集可以解决这个问题。
3. 在4.3.3.0 Maintenance Level中不包含 bos.crypto* 和sysmgt.security* 文件集,因为它们包含了受出口管制的加密代码。 只能通过与AIX4.3.3一同发行的AIX 4.3.3 Bonus Pack来升级这些文件集。

10---查看进程占用CPU和内存的命令
ps aux  ;ps ug   ps –auxwww|head –n 10(查找占用CPU 和内存最多的10个进程)
进程kproc代表系统的空闲时间

11---管理Paging Space
* Paging Space 的大小应符合应用的需要.太大会浪费硬盘空间,太小会影响系统的运行.Paging Space的确定原则: 1. 系统实际内存小于64MB, paging space= 2 * RAM
2. 系统实际内存在 64MB to 256MB 之间, Page Space = RAM size + 16MB
3. 系统实际内存大于 256MB , Page Space = 512 + ( RAM - 256 ) * 1.25
4. 对于AIX 4.3.3 当内存达到4GB 到8GB,因为AIX 4.3.3 使用延迟的(deferred )paging space.Paging Space主要根据应用的要求来定.
一般可初始3GB, 然后观察paging space的使用情况,如果使用率超过70%, 则需要增加paging space.
以上计算方法只是粗略地算法,用户可根据实际情况调整.
* 如果系统出现以下几种情况,则说明需要扩大paging Space: 1. 下列任意错误信息之一:
INIT: Paging space is low
ksh: cannot fork no swap space
Not enough memory
Fork function failed
fork () system call failed
Unable to fork, too many processes
Fork failure - not enough memory available
Fork function not allowed. Not enough memory available.
Cannot fork: Not enough space
2. 使用命令" lsps -a" ,其结果%USED 列的平均值大于80%.
3. 使用命令"lsps -s" 其结果%USED 列大于80%.
* 使用下列命令也可以检查paging space是否够用:
      iostat
      vmstat
      lsps

12----裸设备
裸设备是一个属性为raw的逻辑卷,它 不由AIX及文件系统控制和管理。数据库一般使用裸设备来提高性能。裸设备保留512字节用做LVCB,有的数据库会覆盖这些信息,只能使用"dd"命令备份裸设备, 在用"dd"备份时,一定注意数据库厂商是否覆盖了LVCB.

13---如何创建 /dev/null 文件
mknod /dev/null c 2 2
chmod 666 /dev/null
*****mknod  name b|c major minor
    b------block device;c-------character device;major and minor  are wrote to ODM*****

14---如何减小 /var/adm/wtmp 文件的大小?
文件 /var/adm/wtmp 的大小会在每次用户登录时增长, 但从不自动减小. wtmp 文件的内容会被命令 last 使用, 用于显示登录系统和重启机器的情况.该文件不能被删除, 但它的内容可用如下命令清除:
      # >; /var/adm/wtmp

15---如何查找系统中的某个文件存在于哪个文件集中?
当操作系统上由于未安装特定的文件集而无法执行某个命令时, 可以参考下面的方法确定所需的文件集.
首先确认系统中已安装了文件集 bos.content_list:
# lslpp -l bos.content_list
然后用下面的命令查找与指定文件相关的文件集:
# /usr/sbin/which_fileset <filename>;
如, # /usr/sbin/which_fileset iostat
    /usr/bin/iostat bos.acct
查找指定的文件集中包含哪些文件:
# lslpp -f <fileset>;
如, # lslpp -f bos.acct
   ....
   /usr/bin/iostat
   ....
<etc>;

16---Volume Group Locked" 恢复步骤
chvg -u [vgname]

17---在AIX中设置中文环境
在AIX中使用中文有两种途径:第一是在安装AIX时选择中文语言,装好的系统自动显示中文(这种方法不推荐使用,它没有第二种方法使用起来灵活)。第二是安装AIX时选择英文,系统启动后手工设置中文环境,方法如下:
1. 将AIX系统盘的第一张光盘放入光驱;
2. 运行命令:
    smitty
        -->; System Environments
            -->; Manage Languange Environment
                -->; Change/Show Primary Language Environment
                    -->; Change/Show Cultural Convention, Language, or Keyboard
在随后显示的菜单中将光标分别移到以下字段:
  Primary CULTURAL Convention
Primary LANGUAGE translation
Primary KEYBOARD
    按下<F4>;,从弹出的菜单中选择“IBM-eucCN”将上述字段改为简体中文,按下回车键后系统自动从光盘安装中文环境软件包。此操作完成后重新启动系统,操作界面即为简体中文。
    需要输入中文时使用下列功能键切换输入方法:
        AIX 4.3.3 以前的版本:   <Shift>; + F1 --- <Shift>; + F4 切换到各种中文输入方法;
右<Alt>; --- 切换到英文输入;
        AIX 4.3.3:   CTRL + [F2] : 智能 ABC ;
CTRL + [F4] : 拼音输入;
CTRL + [F5] : 五笔输入;
CTRL + [F6] : 郑码输入 ;
CTRL + [F7] : 表形码输入;
CTRL + [F9] : 内码输入;
CTRL + [F10] :英文半角;
此外,AIX还包含另外两种中文环境,即“UTF8”和“GBK”,它们与“IBM-eucCN”之区别在于包含了繁体汉字的使用。上述三种中文环境的设置方法均相同。

18---不能增加新用户,错误信息 3004-687
1. 检查root文件系统是否已满?
2. 检查:
  - /etc/passwd 文件中是否有空行
  - /etc/passwd 文件中是否部分行语法不正确
  - nobody 用户是否丢失或其group为-2. 该行应该如下:
     nobody4294967294:4294967294::/:
3. 如果以上均正确,检查/etc/security目录中的以下文件的权限许可:
文件 权限
------------------------
.ids     -rw-------
environ  -rw-r-----
limits   -rw-r-----
passwd   -rw-------
user     -rw-r-----
4. 以下的命令对排错也很有帮助(查MAN来获得详细的帮助)
  usrck -t ALL
  pwdck -t ALL
  grpck -t ALL
5. 在mkuser.default 文件中的umask属性是八进制,但不需要有前置0,所以:
  umask=77 正确,转成八进制 077.
  umask=077 错误,转成八进制 063.
6. 如果以上都正确,关机并重启,对root 和 user文件系统做fsck。

19---libc.a 文件恢复
在解答用户的问题时, 经常会遇到系统无法启动,报错:can't find file or damaged file libc.a.当遇到这种情况时, 我们可以按以下步骤恢复:
1. 从CDROM 启动系统, 进入维护模式, 然后执行下列命令:
  # mount /dev/hd4 /mnt
  # mount /dev/hd2 /mnt/usr
  # export PATH=/mnt/usr/sbin:/mnt/usr/bin
  # cd /mnt
  # restore -xvqf /../SPOT/usr/sys/inst.images/bos
  ./usr/ccs/lib/libc.a
  LIBPATH=/usr/ccs/lib:/usr/lib
  export LIBPATH
  ln -s /usr/ccs/lib/libc.a /mnt/usr/lib/libc.a
2. 检查文件系统:
  fsck /dev/hd1
  fsck /dev/hd2
  fsck /dev/hd3
  fsck /dev/hd4
  fsck /dev/hd9var
3.重新启动系统:
  reboot

20---安装MAN
AIX上的帮助MAN需从文档盘上安装,所需要安装的文件集为:
bos.html.en_US.cmds.cmds1 4.3.0.1 AIX Commands Reference 1 - U.
bos.html.en_US.cmds.cmds2 4.3.0.1 AIX Commands Reference 2 -
bos.html.en_US.cmds.cmds3 4.3.0.1 AIX Commands Reference 3 -
bos.html.en_US.cmds.cmds4 4.3.0.1 AIX Commands Reference 4 -
bos.html.en_US.cmds.cmds5 4.3.0.1 AIX Commands Reference 5 - U.S
bos.html.en_US.cmds.cmds6 4.3.0.1 AIX Commands Reference 6 -
bos.html.en_US.nav 4.3.0.1 Online Navigation - U. S.
bos.html.en_US.topnav.navigate

21---telnet提示"所有的网络端口已用"
.检查pty0是否可用:lsdev -Cl pty0
2.检查telnet守护进程是否启动:lssrc -t telnet
3.检查/etc/security/login.cfg中maxlogins是否不够大
4.smitty pty检查最大可用终端是否够用
5.no -a|grep thewall检查网络缓冲是否够用

22---怎样使用CDE环境?
CDE全称”Common Desktop Environment",即“公共桌面环境”,是一个图形界面管理程序。使用CDE的前提条件是RS/6000 连有图形显示器。使用之前要先安装软件包 X11.Dt.rte 和 X11.Dt.helpinfo。安装过程中,系统将CDE 设置为默认的用户界面, 这样AIX 启动后将直接显示CDE 注册界面,输入用户注册名和口令后即进入CDE操作环境。

打开 "Style Manager" 中的 "Startup" 图标,选中“Resume Current Session”,然后使用面板中的 “EXIT”按钮退出系统以使保存的桌面设置生效。

在用户的.profile文件中设置的环境变量通过CDE界面注册后并未生效。如何使之生效?
打开文件.dtprofile,将注释行“# DTSOURCEPROFILE=true”还原,即将此行前面的“#”删除即可

23---如何监控AIX的单个file/lv/pv的繁忙程度?
使用filemon命令产生file/lv/pv的I/O活动报告。
如:
#filemon -o report_file -O all;sleep 60;trcstop <----/

24---检查AIX上的病毒
#virscan directory
例如: virscan /usr

25---查看操作系统中是否安装了某个补丁程序的简便方法
使用命令:
lslpp -Bl Uxxxxxx
Uxxxxxx 是补丁程序的ID.
例: lslpp -Bl U465241 命令可用于查看系统中是否安装了ID为U4652241的补丁程序

26---.sh_history文件被破坏了怎么办
在这种情况下, 可用命令 mv .sh_history .sh_history.old 将该文件更名, 之后, 由相应用户退出登录后再重新登录操作系统, 则 .sh_history 文件又会自动生成并可正确记录用户输入的命令

27---在HACMP双机系统中,如何实现完全无单点(Disk/Adapter/Node)故障?


28---拨号访问RS/6000的快速配置方法
AIX/RS6000 支持多种拨号访问的方法.如PPP/SLIP等,但其配置较为复杂.现介绍一种使用WIN95的超级终端Hyper Terminal访问RS/6000的方法
RS/6000 端:
1. 定义tty, 并设置enable login , flow control=rts
2. 编辑/etc/uucp/Devices, 加入一行irect tty# - 9600 direct
3. 连接Modem到tty# port
4. #pdisable tty#
5. #cu -ml tty#
6. at<---/
7. ats0=1
8. ~.<----/
9. penable tty#
WIN95/98 端:
拨号方问RS/6000

29---如何自动启动和关闭软件的运行
1. 自动启动定制的软件
在系统引导时, init进程顺序检测/etc/inittab文件, 决定在引导过程中进行什么样的操作.如果应用, 进程或其它的用户操作需要在系统引导过程中进行, 则要在/etc/inittab文件中加入相应的条目.通常的做法是创建一个名为rc.local的脚本文件, 将所有要在系统引导过程中启动的用户应用写入该脚本文件中. 该脚本文件可以在/etc/inittab文件中被调用, 通常是在所有系统应用和服务启动后, 在用户登录被允许之前被调用. 位置通常是在主控登录的条目前.
下面是一个例子:
  rc.local:2:wait:/etc/rc.local >; /dev/console 2>;&amp;1
在上面的条目中, init将在执行余下的条目之前等待该脚本程序的完成.如果进程, 应用或命令需要通过特定的用户运行, 则可在运行的命令中加入su命令.
如: su myuser "-c /usr/bin/myapp"
建议在脚本程序中加入应用开始启动和完成启动的输出提示.
如:
  #!/bin/ksh
  echo "Starting User Applications...."
  echo "Starting Application XYZ"
  su myuser "-c /usr/bin/myapp"
  echo "Startup of User Applications completed"
2. 自动停止定制的软件
shutdown命令用于关闭AIX系统. 在此操作中会关闭所有AIX子系统及文件系统.如果名为/etc/rc.shutdown的脚本程序存在, 系统会首先执行该脚本程序中的命令. 在该脚本程序中可以加入关闭用户应用的命令. 建议在脚本程序中加入应用停止运行和完成停止运行的输出提示.
如:
  #!/bin/ksh
  echo "Stopping User Applications...."
  echo "Stopping Application XYZ"
  [ commands to stop application ]
  echo "Shutdown of User Applications completed"

30---如何限制用户改变密码
可以用命令pwdadm -f ADMIN username来实现,如果想让用户恢复更改密码的权利,运行pwdadm -f ADMCHG username 来重置

31---杀进程的shell程序
用来杀掉由用户"user1"产生的进程的shell命令。
  # kill -9 `ps -ef|grep user1|grep -v grep|awk '{print $2}'`

32---无法删除文件系统
可以mount或unmount一个文件系统,但却无法删除该文件系统,在删除时,系统报错:0516-306:get lvodm: unable to find <lvname>; in the device confgiguration data.
发生此错误的原因可能是ODM数据库中的定义与实际不一致。可以用命令 lsvg -l rootvg 检查该文件系统的类型,若类型显示为???,则用命令 synclvodm -P rootvg 和 syncvg -v rootvg 进行同步,之后再用命令 lsvg -l rootvg 显示出正确的文件类型。此时可以成功删除该文件系统。

33---查看SSA磁盘中pdisk与hdisk的对应关系
ssaxlate命令显示pdisk与hdisk的对应关系.
#ssaxlate -l LogicalDiskName
#ssaxlate -l PhysicalDiskName

34---AIX V4.3支持超过2GB大文件
. 编辑文件/etc/security/limits,设置参数fsize = -1
. 创建大文件系统:
  smit fs -->;Add a Journaled File System -->; Add a Large File Enabled Journaled File System
. 用户logout ,然后login

35---在根目录(/)下执行了rm *,如何恢复系统
. 从引导介质(bootable CD-ROM or bootable tape)起动系统。
.选择 Start Maintenance Mode for System Recovery (Option 3),进入维护菜单.然后依次再选择如下:
a.Access a Root Volume Group (Option 1).  
b.0 continue and Select Volume Group by number.
c.Access this volume group and start a shell before mounting the file systems (Option 2).  
.检查并mount根文件系统
# fsck -y /dev/hd4
#mount /dev/hd4 /mnt
.重建删除的文件和目录
#cd /mnt
#ln -s /usr/bin bin
#ln -s /usr/lib/boot/unix_up unix 或 #ln -s /usr/lib/boot/unix_mp unix
#ln -s /usr/lib lib
#ln -s /home u  
.重起系统
#cd /  
#umount /dev/hd4  
#exit  
#sync;sync;sync
#shutdown -Fr

36---怎样创建固定大小的临时大文
  #/usr/sbin/lmktemp filename filesize

37---如何使用dd命令备份裸设备
可使用dd命令通过以下步骤进行:
. 确定磁带设备的block size(块大小):
  使用命令 tctl -f /dev/rmt0 status 查看;
  推荐的值为 9track/ 1/4in = 512
    8mm/4mm/dlt = 1024
  可使用命令 chdev -l rmt0 -a block_size=<bs>; 修改
. 若进行无软件压缩的备份,使用如下命令:
  dd if=<lv>; of=/dev/rmt0 ibs=512 obs=<bs>; conv=sync
  若进行有软件压缩的备份,使用如下命令:
  dd if=<lv>; bs=512 | compress | dd of=/dev/rmt0 ibs=512 obs=<bs>; conv=sync  
. 可使用下面的命令恢复所做的裸设备的备份:
  i) 恢复没有进行软件压缩的备份,使用如下命令:
    dd if=/dev/rmt0 ibs=<bs>; obs=512 | dd of=/dev/<lv>; bs=512 skip=1 seek=1
  ii)  恢复进行了软件压缩的备份,使用如下命令:
    dd if=/dev/rmt0 ibs=<bs>; obs=512 | uncompress | dd of=/dev/<lv>; bs=512 skip=1 seek=1  
注意:使用dd命令进行备份时不能跨多盘磁带,用户必须确认要备份的裸设备可在一盘磁带上完整备份。

38---Virtual IP Address (VIPA)虚拟IP地址
在AIX以前的版本中,应用程序需要与实际的网络接口对应,当网卡失效时,应用程序将无法进行通信。从AIX 5L v5.1开始AIX支持Virtual IP Address (VIPA)虚拟IP地址,这样应用程序与虚拟的IP地址对应,当一块网卡失效时,可以通过更改路由表的方式使用另一块网卡,使应用程序继续运行

39---CDE 不能启动解疑
在CDE界面登录后,系统挂起或极慢,怎么解决?
可尝试用以下的方法去解决:
首先重启机器,并用命令行方式进入。
1. 用df命令检查是否有文件系统满,特别是/及/var文件系统,如是,请清理或扩大之。
2. 用如下命令
  hostname
uname -n
cat /etc/hosts  
  检查是否在机器名的设置上有冲突
3. 用 smitty mktcpip 命令检查TCP/IP的设置是否正确,如设置了DNS 域名解析,要保证DNS服务器能被访问到。
如是新装机,网络配置不完善时,建议先不使用DNS。
4. 如果以上方法还不成功,可以重安装 X11.base.rte, X11.Dt.rte 和 X11.Dt.helpinfo 一试

安装或升级AIX 后,服务器成功启动,但控制台是黑屏。有时,可以看到Welcome窗口,但必须退出这个窗口,login提示才能显示。或者是,你可以telnet进来,用kill杀掉并重启dtlogin进程,login提示才能显示。总之,你可以telnet到这台服务器, 但进不了CDE。
从主控台或telnet以root用户登录到服务器,用编辑器(如vi)编辑 /etc/inittab , 用冒号(注释掉以下行:
welcome:2:wait:/usr/lib/assist/welcome.launch
用shutdown -Fr 重启机器。
注意:这个问题常因为你没安装Netscape 浏览器,或该浏览器安装得有问题而出现。

40---可以很方便地知道备份带的块大小(Block Size)和类型(Type) 的脚本
#!/bin/ksh
tctl rewind
chdev -l rmt0 -a block_size=0
dd if=/dev/rmt0 bs=128k of=blksz_file count=1
echo Tape Block Size = $(ls -l ./blksz_file | awk '{print $5}')
echo Tape Format = $(file ./blksz_file | while read a b;do echo $b;done)

41---AIX 5L 5.1中进行64位和32位内核的切换
首先用如下命令确定当前的所使用的内核:
# ls -l /unix
lrwxrwxrwx 1 root system 21 May 06 2001 /unix ->; /usr/lib/boot/unix_mp
为32位内核。
# ls -l /unix
lrwxrwxrwx 1 root system 21 May 06 2001 /unix ->; /usr/lib/boot/unix_64
为64位内核。
查看是否安装了64位内核(bos.mp64)或32位内核(bos.mp)的软件包。
如果没有安装,可从AIX 5L操作系统光盘中安装。
将32位内核转变为64位内核。
ln -sf /usr/lib/boot/unix_64 /unix
ln -sf /usr/lib/boot/unix_64 /usr/lib/boot/unix
bosboot -ad /dev/ipldevice
shutdown -Fr
将64位内核转变为32位内核。
ln -sf /usr/lib/boot/unix_mp /unix
ln -sf /usr/lib/boot/unix_mp /usr/lib/boot/unix
bosboot -ad /dev/ipldevice
shutdown -Fr
注意:对32位的系统不能使用64位的内核,对64位的系统可以使用32位的内核

42---为什么用CD-ROM有时不能引导AIX 5L
AIX5L 的第一张光盘是可引导盘.应当能引导系统.当AIX5L 不能从CD-ROM引导时,请检查CD-ROM属性,若同时满足下列条件,则需将 CDROM 的 firmware 升级.
检查步骤是:
1.在命令行提示符下键入:
  # lscfg -vl cd0
2. 检查返回的数据, 如果
   a. Partnumber 是 04N2964, 且
   b. ROS Level and ID 小于 1.04 (例如,是 1.02,1.01, 1.00等)
可从 http://www.rs6000.ibm.com/support/micro 站点下载CDROM firmware和升级步骤

43---用户需要生成新的文件时,系统报告空间不够,但df -k输出显示空间使用为43%
问题产生原因是由于客户有很多几百k的小文件,将所有的文件系统inode用尽。
解决方案
find / -size 0 -print 删除不必要的0字节文件
增加文件系统大小(鉴于客户的%used是43%,这样会浪费很多空间,不建议使用)
备份文件,重建文件系统,其中参数NBPI(number of bytes per inode)要尽量
小,这样就能在同样大小的文件系统中获得更多的inode
备注:
文件系统中inode的多少由文件系统大小和NBPI(number of bytes per inode)决定
文件系统越大,NBPI越小,那么inode越多,意味能产生的文件和目录越多。

44---启动sendmail
如果用startsrc -s sendmail 启动,sendmail不会做为守护进程被启动,必须用startsrc -s sendmail -a "-bd"来启动

45---如何判断引起core文件的应用程序
core文件是在应用崩溃时记录的内存影象,可以用命令lquerypv -h core 6b0 64可以看出是哪个应用引起了core文件的产生

46---将man命令查看的内容转换成普通文本文件
可使用下面的命令将用man查看的ls命令的内容转换为文本文件man.txt:
# man ls | col -b >; man.txt

47---支持Xwindows最少需要安装那些文件集(Fileset)?
支持Xwindows需要以下文件集:
X11.apps.*
X11.base.*
X11.compat.*
X11.fnt.*
X11.motif.*
运行CDE, 需要安装
X11.Dt.*
如果希望远程使用CDE仿真,需要安装
X11.fnt.fontServer

48---inetd.conf 文件的恢复
有时由于某种原因, /ETC/INETD。CONF文件损坏。会对机器带来TCP/IP方面问题: 如 FTP可用以下步骤来恢复INETD。CONF 文件。
# vi /etc/inetd.conf
# stopsrc -s inetd
#mv /etc/inetd.conf /etc/inetd.conf.old
#cd /usr/lpp/bos.net/inst_root/etc
#cp inetd.conf /etc/inetd.conf
#startsrc -s inetd

49---监控裸设备I/O?
sar命令中的“-b”选项可以用于监控裸设备I/O。裸设备一般用于存放数据库数据。
# sar -b 1 3
其中bread/s 和bwrit/s显示了块裸设备(block raw device)I/O操作的数目。pread/s 和pwrit/s显示了字符裸设备(character raw device)I/O操作的数目

第二部分
------------------------
1---升级系统微码
系统固件升级,可从网站http://techsupport.services.ibm.com/server/mdownload/download.html下载该机型微码,遵循README中提供的升级方法即可。 10后,当前序列值置为10。

2---smit菜单的快捷键
Application --------------------------------------------Fast Path
-------------------------------------------------------------------------
Software Installation and Maintenance -------------------install
Software License Management -----------------------------licenses
Devices -------------------------------------------------dev
System Storage Management (Physical &amp; Logical Storage) --storage
Security and Users --------------------------------------security
Communications Applications and Services ----------------commo
Print Spooling ------------------------------------------spooler
Problem Determination -----------------------------------problem
Performance and Resource Scheduling----------------------performance
System Environments -------------------------------------system
Processes and Subsystems --------------------------------src

Software Installation and Maintenance
-------------------------------------
Fast path to menu: install

Task -------------------------------------------------Fast Path
-------------------------------------------------------------------------
Install and Update Software ---------------------------install_update
Install Software --------------------------------------install_latest
Update Installed Software to Latest Level (Update All) update_all

Install Software Bundle -------------------------------install_bundle
Update Software by Fix (APAR) -------------------------update_by_fix
Install and Update from ALL Available Software --------install_all

List Software and Related Information -----------------list_software
List Installed Software and Related Information -------list_installed
List Installed Software -------------------------------list_installed_sw
List Applied but Not Committed Software Updates -------list_applied_sw
Show Software Installation History --------------------show_history
Show Fix (APAR) Installation Status -------------------show_apar_stat
List Fileset Requisites -------------------------------list_requisites
List Fileset Dependents -------------------------------list_dependents
List Files Included in a Fileset ----------------------list_files
List Fileset Containing File --------------------------what_fileset
Show Installed License Agreements ---------------------installed_license

List Software on Media and Related Information --------list_media
List Filesets in a Bundle -----------------------------list_bundle
List Software on Installation Media -------------------list_media_sw
List Software Fixes (APARs) on Installation Media -----list_media_fixes
List Supplemental Fileset Information on Installation Media ------------------------------------------------------------------list_media_info
Show License Agreements on Installation Media -------- license_on_media

Software Maintenance and Utilities ----- ----- ----- --maintain_software
Commit Applied Software Updates(Remove Saved Files) - -commit
Reject Applied Software Updates(Use Previous Version) -reject
Remove Installed Software ----- ----- ----- ----- ---- remove
Copy Software to Hard Disk for Future Installation --- bffcreate
Check Software File Sizes After Installation ----- ----check_files
Verify Software Installation and Requisites ----- -----verify_install

System Backup Manager ----- ----- ----- ----- ----- ---backsys
Back Up the System ----- ----- ----- ----- ----- ----- sysbackup
Back Up This System to Tape/File ----- ----- ----- ----mksysb
Create a Generic Backup CD ----- ----- ----- ----- --- mkcdgeneric
List Files in a System Image ----- ----- ----- ----- - lsmksysb
Restore Files in a System Image ----- ----- ----- -----restmksysb

Software License Management
---------------------------
Fast path to menu: licenses

Task ----- ----- ----- ----- ----- ----- --- Fast Path
-------------------------------------------------------------------------
Manage Nodelocked Licenses ----- ----- --- -- --manage_nodelocked
Add Nodelocked License from a File ----- - -- - add_nodelocked_from_file
Add Nodelocked License from the Keyboard - - add_nodelocked_from_keyboard
Delete a Nodelocked License ----- ----- - --- --delete_nodelocked

Manage License Servers and License Databases -- manage_servers
Show Server Characteristics ----- ----- ----- show_server_characteristics
Manage Concurrent Use and Use Once Licenses ----manage_prod_licenses
Manage Vendor Information in License Databases -manage_vendors

Show License Usage on Servers -- -- -- -- -- -- show_server_status
Show License Usage Summary -- -- -- -- -- -- -- show_total_license_usage
Show Licenses Currently Being Used -- -- -- -- show_current_license_usage
Show License Information by Server -- -- -- -- -show_installed_licenses
Show Licenses Held by a Specific User -- -- -- -show_user_license_held

Show License Agreements -- -- -- -- -- -- -- -- show_license_agree
Show Installed License Agreements -- -- -- -- - installed_license
Show License Agreements on Installation Media - license_on_media

Devices
-------
Fast path to menu: dev

Task-- -- -- -- -- -- -- -- -- -- -- -- -- -- Fast Path
-------------------------------------------------------------------------Install/Configure Devices Added After IPL -- -cfgmgr
Printer/Plotter -- -- -- -- -- -- -- -- -- -- printer
TTY -- -- -- -- -- -- -- -- -- -- -- -- -- -- tty
PTY -- -- -- -- -- -- -- -- -- -- -- -- -- -- pty
Console -- -- -- -- -- -- -- -- -- -- -- -- --console
Fixed Disk -- -- -- -- -- -- -- -- -- -- -- --disk
CD ROM Drive -- -- -- -- -- -- -- -- -- -- -- cdrom
Read/Write Optical Drive -- -- -- -- -- -- -- rwopt
Diskette Drive -- -- -- -- -- -- -- -- -- -- -diskette
Tape Drive -- -- -- -- -- -- -- -- -- -- -- --tape
Communication -- -- -- -- -- -- -- -- -- -- --commodev
Graphic Displays -- -- -- -- -- -- -- -- -- --g_display
Graphic Input Devices -- -- -- -- -- -- -- -- input
Low Function Terminal (LFT) -- -- -- -- -- -- lft
SCSI Initiator Device -- -- -- -- -- -- -- -- scsiid
SCSI Adapter -- -- -- -- -- -- -- -- -- -- -- scsia
Asynchronous I/O -- -- -- -- -- -- -- -- -- --aio
Multimedia -- -- -- -- -- -- -- -- -- -- -- --mm
List Devices -- -- -- -- -- -- -- -- -- -- -- lsattr
Configure/Unconfigure Devices -- -- -- -- -- -devcfg
Unconfigure a Device -- -- -- -- -- -- -- -- -devcfg_ucfg
Configure a Defined Device -- -- -- -- -- -- -devcfg_cfg
Install Additional Device Software -- -- -- --devinst
PCI Hot Plug Manager -- -- -- -- -- -- -- -- -devdrpci
Unconfigure a Device -- -- -- -- -- -- -- -- -rmdev
Configure a Defined Device -- -- -- -- -- -- -mkdev
Install/Configure Devices Added After IPL -- -cfgmgr
ISA Adapters devisa

System Storage Management
-------------------------
Fast path to menu: storage

Task -- -- -- -- -- -- -- -- -- -- -- -- -- Fast Path
-------------------------------------------------------------------------
Logical Volume Manager -- -- -- -- -- -- -- lvm
Volume Groups -- -- -- -- -- -- -- -- -- -- vg
List All Volume Groups -- -- -- -- -- -- -- lsvg2
Add a Volume Groups -- -- -- -- -- -- -- -- mkvg
Set Characteristics of a Volume Group -- -- vgsc
List Contents of a Volume Group -- -- -- -- lsvg1
Remove a Volume Group -- -- -- -- -- -- -- -reducevg2
Activate a Volume Group -- -- -- -- -- -- --varyonvg
Deactivate a Volume Group -- -- -- -- -- -- varyoffvg
Import a Volume Group -- -- -- -- -- -- -- -importvg
Export a Volume Group -- -- -- -- -- -- -- -exportvg
Mirror a Volume Group -- -- -- - -- -- -- - mirrorvg
Unmirror a Volume Group -- -- -- - -- -- -- unmirrorvg
Synchronize LVM Mirrors -- -- -- - -- -- -- syncvg
Back Up a Volume Group -- -- -- - -- -- -- -vgbackup
Remake a Volume Group -- -- -- - -- -- -- - restvg
List Files in a Volume Group Backup -- -- --lsbackvg
Restore Files in a Volume Group Backup -- --restsavevg

Logical Volumes -- -- -- - -- -- -- - -- -- lv
List All Logical Volumes by Volume Group -- lsvg
Add a Logical Volume -- -- -- - -- -- -- - -mklv
Set Characteristics of a Logical Volume -- -lvsc
Show Characteristics of a Logical Volume -- lslv
Remove a Logical Volume -- -- -- - -- -- -- rmlv
Copy a Logical Volume -- -- -- - -- -- -- - cplv

Physical Volumes -- -- -- - -- -- -- - -- -- -pv
Add a Disk -- -- -- - -- -- -- - -- -- -- - --makdsk
Change Characteristics of a Physical Volume --chpv
List Contents of a Physical Volume -- -- -- --lspv
Move Contents of a Physical Volume -- -- -- - migratepv

Paging Space pgsp
Add Another Paging Space -- -- -- - -- -- -- --mkps
Change/Show Characteristics of a Paging Space -chps
Remove a Paging Space -- -- -- - -- -- -- - -- rmps
Activate a Paging Space -- -- -- - -- -- -- - -swapon
Deactivate a Paging Space -- -- -- - -- -- -- -swapoff

File Systems -- -- -- - -- -- -- - -- -- -- -fs
List All File Systems -- -- -- - -- -- -- - -lsfs
List All Mounted File Systems -- -- -- - -- -mount
Add/Change/Show/Delete File Systems -- -- -- manfs
Mount a File System -- -- -- - -- -- -- - -- mountfs
Mount a Group of File Systems -- -- -- - -- -mountg
Unmount a File System -- -- -- - -- -- -- - -umountfs
Unmount a Group of File Systems -- -- -- - --umountg
Verify a File System -- -- -- - -- -- -- - - fsck
Backup a File System -- -- -- - -- -- -- - --backfilesys
Restore a File System -- -- -- - -- -- -- - -restfilesys
List Contents of a Backup -- -- -- - -- -- --listtoc

Files &amp; Directories -- -- -- - -- -- -- - -- filemgr
Backup a File or Directory -- -- -- - -- -- -backfile
Restore a File or Directory -- -- -- - -- -- restfile
List Contents of a Backup -- -- -- - -- -- --listtoc

Removable Disk Management -- -- -- - -- -- --rds
List All Mounted File Systems on a Disk -- --lsmntdsk
Unmount File Systems on a Disk -- -- -- - -- umntdsk
Remove a Disk from the Operating System -- --removedsk
Remove a Disk -- -- -- - -- -- -- - -- -- -- rmvdsk1
Open Door -- -- -- - -- -- -- - -- -- -- - --open_door

System Backup Manager -- -- -- - -- -- -- - -backsys
Back Up the System -- -- -- - -- -- -- - -- -sysbackup
List Files in a System Image -- -- -- - -- --lsmksysb
Restore Files in a System Image -- -- -- - --restmksysb

Security &amp; Users
----------------
Fast path to menu: security

Task -- -- -- - -- -- -- - -- -- -- - -- Fast Path
-------------------------------------------------------------------------
Users -- -- -- - -- -- -- - -- -- -- -- -users
Add a User -- -- -- - -- -- -- - -- - -- mkuser
Change a User-s Password -- -- -- - - -- passwd
Change/Show Characteristics of a User -- chuser
Lock/Unlock a User-s Account -- -- -- - -lockuser
Reset User-s Failed Login Count -- -- -- failed_logins
Remove a Use -- -- -- - -- -- -- - -- -- rrmuser
List All Users -- -- -- - -- -- -- - -- -lsuser

Groups -- -- -- - -- -- -- - -- -- -- - -groups
List All Groups -- -- -- - -- -- -- - -- lsgroup
Add a Group -- -- -- - -- -- -- - -- -- -mkgroup
Change/Show Characteristics of a Group --chgroup
Remove a Group -- -- -- - -- -- -- - -- -rmgroup

Passwords -- -- -- - -- -- -- - -- -- -- -- passwords
Change a User-s Password -- -- -- - -- -- --passwd
Change/Show Password Attributes for a User -passwdattrs

Login Controls -- -- -- - -- -- -- - -- - logins
Change/Show Login Attributes for a User --login_user
Change/Show Login Attributes for a Port --login_port

Roles -- -- -- - -- -- -- - -- -- -- - -- roles
Add a Role -- -- -- - -- -- -- - -- -- -- mkrole
Change/Show Characteristics of a Role -- -chrole
Remove a Role -- -- -- - -- -- -- - -- -- rmrole
List All Roles -- -- -- - -- -- -- - -- --lsrole

Communications Applications and Services
----------------------------------------
Fast path to menu: commo

Task -- -- -- - -- -- -- - -- -- -- - -- -- --Fast Path
-------------------------------------------------------------------------
TCP/IP -- -- -- - -- -- -- - -- -- -- -- -- ---tcpip
Minimum Configuration &amp; Startup -- -- -- -- ---mktcpip
Further Configuration -- -- -- - -- - -- -- ---configtcp
Hostname -- -- -- - -- -- -- - -- -- -- -- -- -hostname
Static Routes -- -- -- - -- -- -- - - -- -- ---route
Network Interfaces -- -- -- - -- -- - -- -- - -netinterface
Name Resolution -- -- -- - -- -- -- - -- -- ---namerslv
Client Network Services -- -- -- - -- -- -- ---clientnet
Server Network Services -- -- -- - -- -- -- -- ruser
Manage Print Server -- -- -- - -- -- -- -- -- -server
Select BSD style rc Configuration -- -- -- -- -setbootup_option
Authentication Configuration -- -- -- -- -- -- auth_config

Use DHCP for TCPIP Configuration &amp; Startup -- -usedhcp

IPV6 Configuration -- -- -- - -- -- -- - -- -- configtcp6
IPV6 Static Routes -- -- -- - -- -- -- - -- -- route6
IPV6 Network Interfaces -- -- -- - -- -- -- - -inet6
IPV6 Daemon/Process Configuration -- -- -- - --daemon6

Quality of Service Configuration &amp; Startup -- -configqos
Start Using the QoS Subsystem -- -- -- - -- -- startqos
Stop Using the QoS Subsystem -- -- -- - -- -- -stopqos

NFS -- -- -- - -- -- -- - -- -- -- - -- -- -- -nfs_menus
Configure TCP/IP (If Not Already Configured) --tcpip
Network File System (NFS) -- -- -- - -- -- -- -nfs
Configure NFS on This System -- -- -- - -- -- -nfsconfigure
Add a Directory to Exports List -- -- -- - -- -mknfsexp
Change/Show Attributes of an Exported Directory -- chnfsexp
Remove a Directory from Exports List -- -- -- -rmnfsexp
Add a File System for Mounting -- -- -- - -- --mknfsmnt
Change/Show Attributes of an NFS File System --chnfsmnt
Remove Remove an NFS File System -- -- -- - -- rmnfsmnt

Print Spooling
--------------
Fast path to menu: spooler

Task -- -- -- - -- -- -- - -- -- -- - -- -- --- - - - Fast Path
-------------------------------------------------------------------------
Start a Print Job -- -- -- - -- -- -- - -- ---- - - - qprt
Manage Print Jobs - -- - -- -- -- - -- -- - --- - - - jobs
Cancel a Print Job - -- - -- -- -- - -- -- - -- - - - qcan
Show the Status of Print Jobs - -- - -- -- - -- - - - qchk
Prioritize a Print Job - -- - -- -- -- - --- -- - - - qpri
Hold/Release a Print Job - -- - -- -- -- - ---- - - - qhld
Move a Job Between Print Queues - -- - -- -- -- - - - qmove

Manage Print Queues - -- - -- -- -- - -- -- --- - - - pqmanage
Show Status of Print Queues - -- - -- -- -- --- - - - qstatus
Stop a Print Queue - -- - -- -- -- - -- -- - -- - - - qstop
Start a Print Queue - -- - -- -- -- - -- -- --- - - - qstart
Set the System-s Default Print Queue - -- - --- - - - qdefault

Add a Print Queue - -- - -- -- -- - -- -- -- -- - - - mkpq
Add an Additional Printer to an Existing Print Queue -mkqprt
Change/Show Print Queue Characteristics -- - - - -- - chpq
Remove a Print Queue -- - - - -- - - - -- - - - -- - -rmpq
Manage Print Server server Programming Tools -- - - - pqtools

Problem Determination
---------------------
Fast path to menu: problem

Task -- - - - -- - - - -- - - - -- - - - -- - - - Fast Path
-------------------------------------------------------------------------
Error Log -- - - - -- - - - -- - - - -- - - - -- - -- - error
Generate Error Report -- - - - -- - - - -- - - - -- --- errpt
Change/Show Characteristics of the Error Log -- - - - --errdemon
Clean the Error Log -- - - - -- - - - -- - - - -- - - - errclear

System Dump -- - - - -- - - - -- - - - -- - - - -- - - -dump
Change the Primary Dump Device -- - - - -- - - - -- - - dumpchgp
Change the Secondary Dump Device -- - - - -- - - - -- - dumpchgs
Change the Directory to which Dump is Copied on Boot -- dumpchgd
Copy a System Dump from a Dump Device to a File -- - - -dump_copy_file
Copy a System Dump from a Dump Device to Diskette -- - -dump_copy_dskt
Always Allow System Dump -- - - - -- - - - -- - - - -- -dump_allow
System Dump Compression -- - - - -- - - - -- - - - -- - dump_comprs
Check Dump Resources Utility -- - - - -- - - - -- - - - dump_checkr

Alog -- - - - -- - - - -- - - - -- - - - -- - - - -- - -alog
Show an Alog file -- - - - -- - - - -- - - - -- - - - --alog_show
Change/Show Characteristics of an Alog File -- - - - -- alog_change

Hardware Diagnostics -- - - - -- - - - -- - - - -- - - -diag
Verify Software Installation and Requisites -- - - - -- verify_install

Performance &amp; Resource Scheduling
---------------------------------
Fast path to menu: performance

Task -- - - - -- - - - -- - - - -- - - - -- - Fast Path
-------------------------------------------------------------------------
Resource Status &amp; Monitors -- - - - -- - - - -monitors
Analysis Tools -- - - - -- - - - -- - - - -- -analysis
Resource Controls -- - - - -- - - - -- - - - -controls
Remove a Process kill
Set Initial Priority of a Process -- - - - -- nice
Change Initial Priority of a Process -- - - - renice
Set System Run Level -- - - - -- - - - -- - - telinit

Schedule Jobs -- - - - -- - - - -- - - - -- - at
Power Management -- - - - -- - - - -- - - - --pm
Configure/Unconfigure Power Management -- - - pmConfig
System State Transition from Enable State -- -pmState
Display Power Management -- - - - -- - - - -- pmDisplaySelect
Battery -- - - - -- - - - -- - - - -- - - - --pmBattery

Workload Management -- - - - -- - - - -- - - -wlm
Work on alternate configurations - - - - - - -wlmconfig
Copy a configuration - - - - - - - - - - - - -wlmconfig_copy
Create a configuration - - - - - - - - - - - -wlmconfig_create
Select a configuration - - - - - - - - - - - -wlmconfig_select
Enter configuration description - - - - - - - wlmconfig_enter
Remove a configuration - - - - - - - - - - - -wlmconfig_delete

Work on a set of Subclasses - - - - - - - - - wlmsubclass
Add a class - - - - - - - - - - - - - - - - - wlmaddclass
Change/Show Characteristics of a class - - - -wlmchclass
General characteristics of a class - - - - - -wlmclass_gal
CPU resource management - - - - - - - - - - - wlmclass_cpu
Memory resource management - - - - - - - - - -wlmclass_mem
diskIO resource management - - - - - - - - - -wlmclass_bio

Remove a class - - - - - - - - - - - - - - - -wlmrclass
Class assignment rules - - - - - - - - - - - -wlmrs
Create a new Rule - - - - - - - - - - - - - - crewlmrs
Change/Show Characteristics of a Rule - - - - chgwlmrs

Start/Stop/Update WLM - - - - - - - - - - - - wlmmanage
Start Workload Managementwlmmanage - - - - - -wlmstart
Update Workload Management - - - - - - - - - -wlmupdate
Stop Workload Management - - - - - - - - - - -wlmoff

Assign/Unassign processes to a class/subclass - - wlmassign

System Environments
-------------------
Fast path to menu: system

Task - - - - - - - - - - - - - - - - - - - - - - - -Fast Path
-------------------------------------------------------------------------
Stop the System - - - - - - - - - - - - - - - - - - system
Assign the Console - - - - - - - - - - - - - - - - -chcons
Change/Show Date and Time - - - - - - - - - - - - - chtz_date
Change/Show Date &amp; Time - - - - - - - - - - - - - - date
Change Time Zone Using System Defined Values - - - -chtz
Change Time Zone Using User Inputted Values - - - - chtz_user

Manage Language Environment - - - - - - - - - - - - mlang
Change/Show Primary Language Environment - - - - - -chlang
Add Additional Language Environments - - - - - - - -mle_add_lang
Remove Language Environments - - - - - - - - - - - -mle_rm_lang_hdr
Change/Show Language Hierarchy - - - - - - - - - - -mle_hier_cmd_hdr
Set User Languages - - - - - - - - - - - - - - - - -chlang_user
Change/Show Applications for a Language - - - - - - mle_chapp_menu
Convert System Messages and Flat Files - - - - - - -nu_iconv

Change/Show Characteristics of Operating System - - chgsys
Change/Show Number of Licensed Users - - - - - - - -chlicense
Manage AIX Floating User Licenses for this Server - netls_server
Broadcast Message to all Users - - - - - - - - - - -wall
Manage System Logs - - - - - - - - - - - - - - - - -logs
Change/Show Characteristics of System Dump - - - - -dump

Internet and Documentation Services - - - - - - -web_configure
Change/Show Default Browser - - - - - - - - - - -change_default_browser
Change Documentation and Search Server - - - - - change_doc_search_server
Change/Show Default Documentation Language - - - chdoclang
Web-based System Manager - - - - - - - - - - - - web_based_system_manager

Change System User Interface - - - - - - - - - - dt_config
Change/Show Default Documentation Language - - - chdoclang
Manage Remote Reboot Facility - - - - - - - - - -rrbtty
Manage System Hang Detection - - - - - - - - - - shd

Processes &amp; Subsystems
----------------------
Fast path to menu: src

Task - - - - - - - - - - - - - - - - -Fast Path
-------------------------------------------------------------------------
Processes - - - - - - - - - - - - - - -process
Remove a Process - - - - - - - - - - - kill
Bind a Process to a Processor - - - - -bindproc
Unbind a Process - - - - - - - - - - - unbindproc

Subsystems - - - - - - - - - - - - - - subsys
Query a Subsystem - - - - - - - - - - -qssys
Start a Subsystem - - - - - - - - - - -startssys
Stop a Subsystem - - - - - - - - - - - stopssys
Stop a Single Subsystem - - - - - - - -stopassys
Stop All Subsystems - - - - - - - - - -stopallssys
Refresh a Subsystem - - - - - - - - - -refresh
Trace Subsystem - - - - - - - - - - - -tracessys
Start Trace - - - - - - - - - - - - - -tracessyson
Stop Trace - - - - - - - - - - - - - - tracessysoff

Subservers - - - - - - - - - - - - - - subserver
Query a Subserver - - - - - - - - - - -qserver
Start a Subserver - - - - - - - - - - -startserver
Stop a Subserver - - - - - - - - - - - stopserver
Trace Subserver - - - - - - - - - - - -traceserver
Start Trace - - - - - - - - - - - - - -startserver.trace
Stop Trace - - - - - - - - - - - - - - stopserver.trace

3---如何在软盘上创建文件系统
在AIX中,软盘一般是当成裸设备来使用的,在标准的AIX文档中是不提供选项mount软盘上文件系统的。本文提供一种在软盘上创立有读写权限的jfs文件系统,但不对此提供技术支持和保障。
创立方法如下:
1,插入软盘
2,mkfs -V jfs /dev/fd0
         Device /dev/fd0:
         Standard empty filesystem
         Size:         2880 512-byte (UBSIZE) blocks
         Initial Inodes: 512
3) mount -o nointegrity /dev/fd0 /mnt
就可以将/mnt作为普通文件系统使用。

4---常用p系列服务器&amp;RS/6000服务器产品号码对照表
销售手册网址:http://www-900.ibm.com/cn/support/other/salesmanual.shtml

举例说明如何根据下表查询,如果需要查找F80的销售手册,可根据对照表得到F80的产品号码是“7025-F80”,在销售手册的查询页面查找“7025-F80”即可。如果想查询p670的销售手册,根据下表可得到p670的产品号码是“7040-671”,在销售手册的查询页面查找“7040-671”即可。

RS/6000服务器

产品型号         系列型号         产品号码
B50                 B50                 7046-B50
150                 43P 150                 7043-150
260                 43P 260                 7043-260
170                 44P 170                 7044-170
270                 44P 270          7044-270
F50                 F50                 7025-F50
H50                 H50                 7026-H50
H70                 H70                 7026-H70
F80                 F80                 7025-F80
H80                 H80                  7026-H80
M80                 M80                 7026-M80
S70                 S70                 7017-S70
S7A                 S7A                  7017-S7A
S80                 S80                  7017-S80

p系列服务器

产品型号         系列型号          产品号码
p610-6C1                         7028-6C1
p610-6E1                         7028-6E1
p620-6F1         F85                 7025-6F1
p630-6C4                         7028-6C4
p630-6E4                         7028-6E4
p640                 B80                  7026-B80
p660-6H1         H85                 7026-6H1
p660-6M1         M85                 7026-6M1
p670                                 7040-671
p680                 S85                  7017-S85
p690                 S90                 7040-681

5---几种千兆网卡在HA方案中的使用限制
我们知道,在HA(高可用性)方案中,每台参与HA的主机应该配置至少2块相同类型的网卡。为了提高系统性能,现在很多方案中都采用了千兆以太网卡,比如:
2969----Gigabit Ethernet - SX PCI Adapter
2975----10/100/1000 Base-T Ethernet PCI Adapter
5700----IBM Gigabit Ethernet-SX PCI-X Adapter
5701----IBM 10/100/1000 Base-TX Ethernet PCI-X Adapter
(1)在不同机型中的限制
一般常见的机型都支持2969与2975,如:7044-170,7044-270,p610,p620,p640,p630,p660,p670,p680,p690,7025-F50,7025-F80,7026-H70,7026-H80,7026-M80,7017-S70,7017-S7A,7017-S80。但p650与p655不支持这两种网卡。
5700与5701则只能被一些较新的机型支持,如: 7044-170,7044-270,p610,p620,p640,p630,p650,p655,p660,p670,p680,p690。
(2)HACMP与AIX的版本限制
2969需要AIX4.3.2以上,及HACMP4.2.2以上的软件环境;
2975需要AIX4.3.3以上,及HACMP4.3.1以上的软件环境;
5700或5701需要AIX5.1,及HACMP4.4.1以上的软件环境。

6---几种RS6000机型集成串口用于心跳检测的限定
7044-170 , 集成2个串口,两个串口均可用于心跳检测;
7044-270, 集成2个串口,但不能用于心跳检测,必须另配串口卡;
P610, 集成3个串口,第3个串口可用于心跳检测;
P620-6F1, 集成4个串口,第3、4个串口可用于心跳检测;
P630, 集成3个串口,第3个串口可用于心跳检测;
P640, 集成3个串口,第2、3个串口可用于心跳检测;
P660-6H1, 集成4个串口(实际上集成在primary I/O Drawer中),第3、4个串口可用于心跳检测;
P660-6M1, 集成4个串口(实际上集成在primary I/O Drawer中),第3、4个串口可用于心跳检测;
P680, 集成2个串口,但不能用于心跳检测,必须另配串口卡;
P670, 集成2个串口,但不能用于心跳检测,必须另配串口卡;
P690, 集成2个串口,但不能用于心跳检测,必须另配串口卡;

7---用 VI 编辑大文件
客户有时要编辑大文件,发现运行后报错:Error 0602-101 out of memory when vi a file.
察看vi 命令说明文件 :
# man vi

o 128 characters in the previously inserted and deleted text
o 128 characters in a shell escape command
o 128 characters in a string-valued option
o 30 characters in a tag name
o 128 map macros with 2048 characters total
o 1,048,560 lines of {LINE_MAX} characters per line silently enforced

Note: Running the vi editor on a file larger than 64MB may cause the
following error message to display:
0602-103 file too large to place in /tmp

从上面vi命令的限制来看, 如果文件超过限制, 就会报错。
那末客户如果有大于64MB的文件要编辑,如何办?

下面有一个方法可以尝试一下:
1。统计文件行数 如: cat filename | wc -l =>; 733975
2。 在vi 时 用 -y 参数 如: vi -y (n * 733975) filename n=2
如果继续报错 , 就增加 n 的 大小, 直到不报错为止。

注 : 这里 n>;=2是因为 vi 要用多余的行数来做缓存(buffer )

8---解决在运行bosboot命令时出现0301-168的问题
Aix 4.3.3
问题 在用光盘启动到维护模式后运行bosboot -ad /dev/hdisk1,出现错误:
0301-168 bosboot the current hd5 doesn't exist on hdisk1
其中hdisk1是启动用的硬盘。
运行以下命令:
lslv -m hd5 -->; hdisk1
说明hd5已经存在于hdisk1上。
ls -l /dev/ipldevice, ls -l /dev/hdisk1,如果两个设备的Major/Minor number一样,则说明ipldevice没有问题。
lsdev -Cc disk,发现hdisk0在defined状态。
如果您遇到的问题符合上述条件,请试用以下解决方法。
解答 重新用光盘启动到维护模式,在选择访问rootvg时请注意列出的物理卷编号。记下您选择的物理卷编号,比如hdisk0。注意,这时列出的物理卷和lsdev列出的不同。进入命令行提示后,运行bosboot -ad /dev/hdisk0(记下的物理卷)即可。

9---如何读取拷贝到tape上的dump文件?
当服务器出现system dump后,由于/var/adm的空间不够,故系统会在重起时是否把
生成的dump文件考到external media, 一般是floppy或tape,当拷贝完成后,如何
使用呢?
解答 由于拷贝时生成的是pax格式,故使用tar工具时不能对dump文件读取。
#tar tvf /dev/rmt0
系统会显示只有一个Global文件。
正确的读取方法是
#pax -vf /dev/rmt0 (显示dump文件)
#pax -rf -xpax /dev/rmt0 (读取dump文件)

10---不能使用su
这个问题是典型的permission问题。
#ls -dl /
drwxr--r--
#ls -dl /home
drwxr--r--
#ls -dl /home/username
drwxr--r--
可以明显看出权限有问题,更改后问题排除
chmod 755 /; chmod 755 /home; chmod 755 /home/username
故障排除。

11---当用户logout时,系统报错3004-063 Error Getting SAK Manager Process ID
个问题是典型的permission问题。查看/usr/bin/logout
#ls -l /usr/bin/logout
-rwxrwxrwx
解决办法: #chmod 4555 /usr/bin/logout
#ls -l /usr/bin/logout
-r-sr-xr-x
问题排除。
如还不行,需要检查/usr/bin的permission
#ls -dl /usr/bin
drwxrwxrwx
#chmod 755 /usr/bin
#ls -dl /usr/bin
drwxr-xr-x

12---当用户一进入系统,马上退出并报错3004-009 Failed running login shell
这个问题是典型的permission问题。
#ls -dl /
drwx------
#ls -dl /usr
drwxr-----
#ls -dl /usr/bin
drwxr-----
可以明显看出权限有问题,更改后问题排除
chmod 755 /; chmod 755 /usr; chmod 755 /usr/bin

论坛徽章:
0
2 [报告]
发表于 2003-03-21 10:31 |只看该作者

IBM技术支持库资料收集

thanks

论坛徽章:
0
3 [报告]
发表于 2003-03-21 12:25 |只看该作者

IBM技术支持库资料收集

好!不错!

论坛徽章:
0
4 [报告]
发表于 2003-03-21 13:59 |只看该作者

IBM技术支持库资料收集

谢谢!谢谢~啊~!

论坛徽章:
0
5 [报告]
发表于 2003-03-21 14:25 |只看该作者

IBM技术支持库资料收集

谢谢

论坛徽章:
0
6 [报告]
发表于 2003-03-21 14:26 |只看该作者

IBM技术支持库资料收集

小美妹是个不错的美妹...........


酷!!!!!!!!!!!!

论坛徽章:
0
7 [报告]
发表于 2003-03-21 14:42 |只看该作者

IBM技术支持库资料收集

绝对是好东东啊!

论坛徽章:
0
8 [报告]
发表于 2003-03-21 16:18 |只看该作者

IBM技术支持库资料收集

万分感谢!!!

论坛徽章:
0
9 [报告]
发表于 2003-03-26 11:44 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
10 [报告]
发表于 2003-04-16 14:35 |只看该作者

IBM技术支持库资料收集

ok
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP