AIX --- 常用命令

# 类似于linux  top命令: 不太好用

nmon 
topas

# 查看内存   GB为单位

svmon -O unit=GB   
svmon -G -O unit=GB

# cpu查看命令:

AIX如何查看cpu个数_白及-CSDN博客_aix查看cpu个数

smtctl # 物理
bindprocessor -q # 逻辑核

# AIX常用命令

df -g #  等同于 linux的 df -h
netstat -Aan|grep 6666   # 等同于 linux -lntp
ifconfig -a # 查看ip

# 防火墙

smit

2.      选择以下子项开启或关闭防火墙

Communications Applications and Services->Tcp IP->Configure Ip Security(IPv4)->Start/Stop IP Security->Start IP Security

3.      也可以使用以下子项对防火墙进行配置

Communications Applications and Services->Tcp IP->Configure Ip Security(IPv4)->Start/Stop IP Security->Advantanced IP Security Configuration

-----------------------------------------------------------命令搜集

1、  uname –a

显示完整系统名和版本栏

AIX kjdb1 1 6 00C00CD32C00

操作系统名 节点名称 操作系统的发行版号 操作系统版本硬件运行系统的机器ID号

2、  lsdev -C | grep proc/lsdev –C –c processor

查看CPU数量

3、  bootinfo –r /lsattr -El sys0 -a realmem

显示物理内存大小

4、  ldev –Cc disk/lspv

查看硬盘信息

5、  lspv –l hdiskX/lscfg –vl hdiskX/lscfg –vp

查看磁盘详细信息

6、  lsdev –Cc adapter

查看系统中已安装的适配器信息

7、  netstat –ni

查看网络状态

8、  errpt

查看有无报错信息

9、  errpt –aj 状态码

查看详细报错信息

10、oslevel –r

查看操作系统版本

11、instfix –i | grep AIX_ML

查看操作系统文件集相关信息

12、lppchk -v

    验证所有的文件集已具备所有要求的必要条件并且已安装

13、lsvg/lsvg –l ***vg

显示卷组相关信息,显示相关卷组的详细信息

14、lsps –a

显示交换空间的大小及使用率

15、env | grep TZ

显示时区信息

16、lssrc –g cluster

显示HACMP状态

17、prtconf | grep Firmware

查看系统微码相关信息

18、df

查看磁盘利用率

19、sar 2 4

查看系统活动信息

20、vmstat

查看虚拟内存统计信息

21、bootinfo –y

    查看系统内核版本

22、cfgmgr -v

    在硬件丢失或需要添加新硬件时,可以通过此命令使AIX自动搜索新硬件的驱动程序

23、lsvg -l rootvg

    查看rootvg中的逻辑卷是否做了镜像,若逻辑卷中的PPs是LPs的两倍,同事PV数是2,则说明做了逻辑卷

24、smitty chinet

   修改对应网卡的信息

-----------------------------------------------------------------AIX挂载

1: first know the Storage server:

  NFS server: nfs_server01
  dev: /vol/123_VL
 
2: add the NFS server in client server:
  /etc/hosts
 
3: ping NFS server, if reply succcess, then can considered the NFS server can configure success.


4: show the NFS server exported filesystem:
  showmount -e NFS_server01
 
  The result will show:
  /vol/NFS_server01_data/test01        10.20.30.40/27

4: Add the NFS configuration in client: /etc/filesystems:
 
  /data/test01:
  dev        = /vol/NFS_server01_data/test01
  vfs        =    nfs
  nodename    = nfs_server01
  mount            = true
  options        = bg,hard,llock,intr,biods,rsize=65536,wsize=65536,vers=3,proto=tcp,sec=sys,maxgroups=32
  account        = false
 
5 c reate the folder in server:
  mkdir -p /data/test01
 
6: mount filesystem:
  mouunt -o bg,hard,llock,intr,biods,rsize=65536,wsize=65536,vers=3,proto=tcp,sec=sys,maxgroups=32, rw nfs_server01:/vol/NFS_server01_data/test01 /data/test01
 
7: checked the mount system:
  mount | grep test01
 
-------------


Below actical is for reference:

AIX 6.1   

--
In the NFS server:

1. start the NFS service:
# lssrc  -g  nfs
# startsrc  -g nfs
# lssrc  -g  nfs  
active is okay

2.configure the /etc/hosts file:
# vi  /etc/hosts
10.88.51.87    NFS_server_hostname 

3.configure
# vi  /etc/exports
/data02  -rw,access= NFS_server_name     

--
In the client server:

1. mkdir -p  /data/d3

2.check the client portmap service
# lssrc  -s  portmap  (active is ok)

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值