aix常见问题整理
正文 我们知道在AIX操作系统中,gated 进程可以支持RIP, RIPng, EGP, BGP, OSPF等协议,甚至还支持SNMP协议。通常来讲,gated进程不能和routed进程同时使用,否则会导致不可预见的错误。
1. 如何启动和停止gated
gated进程是AIX中系统资源控制系统(SRC)的一个子系统,因此,我们可以用以下命令来启动和停止gated: startsrc -s gated -- 启动 stopsrc -s gated -- 停止
top
2. gated进程的工作模式 当gated启动时,gated进程会自动查找 /etc/gated.conf 文件,根据 /etc/gated.conf 的配置启动相应的服务。因此,正确地配置 /etc/gated.conf 文件对于gated进程能否正常地启动和工作是至关重要的。
以下就本人的经验对如何配置 /etc/gated.conf 文件,从而启动最经常使用的 RIP 协议和 OSPF 协议,进行介绍:
top
1) 配置 /etc/gated.conf 支持 RIP 协议
# 该 gated.conf 文件将RIP信息的更新通知系统的所有网络接口。同时,当gated进程没有启动或路由信息没有更新时,保留路由表中的静态路由信息。
# /etc/gated.conf
traceoptions "/tmp/gated.trace" all ;
redirect yes ;
rip yes { interface all ripin ripout; };
static { default gw 172.16.1.1 retain ; };
top
2)配置 /etc/gated.conf 支持 OSPF 协议
# 该 gated.conf 文件使 gated 进程在ent0端口使用OSPF 协议。并从9.185.40.1(路由器端口)接收更新的路由信息。如果要侦听多个路由器端口,就把这些端口的地址放入 eligible 项中。
################# gated configuration for CLIENT ############
traceoptions "/var/tmp/gated.log" all ; routerid 1 rip no ; ripng no; hello no;
ospf yes { traceoptions state detail packets ; area 0.0.0.1 { interface ent0 nonbroadcast cost 1 { pollinterval 10 ; routers { 9.185.40.1 eligible; } ;
retransmitinterval 5; hellointerval 10; priority 50; routerdeadinterval 40; }; }; }; export proto ospfase { proto static; proto kernel; proto direct; } ;
如何拒绝某些用户的ftp访问?
环境 产品: AIX 平台: RS 软件版本: AIX V4 问题 出于安全考虑,需要拒绝某些用户的ftp访问? 解答 请编辑 /etc/ftpusers 添加需要拒绝的用户,每用户一行 For example: #more /etc/ftpusers ql 当尝试 ftp 登录时,系统报错: Name (localhost:root): ql 530 User ql access denied. Login failed
如何查看某用户共启动了多少进程?
环境 产品: AIX 平台: RS 软件版本: AIX V4 问题 用户需要查看某个用户是否启动了过多的进程,影响了系统性能 解答 请用 #ps -ef|grep username|wc -l
备注: 这是利用wc -l统计行数的功能来对用户进程数的一个估计,并不是非常准确的值。 但完全可用于参考。
如何在清理/tmp文件系统时找到过大的文件?
环境 产品: AIX 平台: RS 软件版本: AIX V4 问题 /tmp文件系统已满,如何找到哪些文件过大,并释放空间。 解答 请用 For Example, 哪些文件大于5M字节. #cd /tmp #find . -size +10000 -exec ls -l {} \; 备注: 删除这些过大文件时,请确认其无用
如何限制某用户在特定 pty 的访问。
环境 产品: AIX 平台: RS 软件版本: AIX V4 问题 用户想限制某些端口的访问。 解答 用户可以编辑/etc/security/user. For example:
test: admin = false admgroups = system ttys = !/dev/pts/0,ALL
结果是用户test可以在除了pts/0以外的所有端口登录,当test在pts/0登录时, 系统报错You are not allowed to access the system via this terminal.
IBM pSeries和 RS/6000 哪些型号可以安装SuSE linux?
环境 平台:RS |