AIX(Advanced Interactive eXecutive)是 IBM 开发的一套 UNIX 操作系统。它符合 Open group 的 UNIX 98 行业标准(The Open Group UNIX 98 Base Brand),通过全面集成对 32 - 位和 64 - 位应用的并行运行支持,为这些应用提供了全面的可扩展性。它可以在所有的 IBM ~ p 系列和 IBM RS/6000 工作站、服务器和大型并行超级计算机上运行。
$ cd /u02/app/oracle/Middleware/user_projects/epmsystem1
$ ./bin/opmnctl status
$ ./bin/opmnctl stopall
$ ./bin/opmnctl startall
$ ./bin/configtool.sh -console
$ find /u02/app/oracle -name 'inventory.xml'
$ grep -nr 'EpmSystem_' /u02/app/oracle
$ find /u02/app/oracle -type d -name 'ContentsXML'
$ cd /u02/app/oracle/Middleware/ohs/inventory/ContentsXML
查看端口号对应的进程
$ netstat -Aan | grep 1423
f1000e00014503b8 tcp 0 0 *.1423 *.* LISTEN
$ rmsock f1000e00014503b8 tcpcb
The socket 0xf1000e0001450008 is being held by proccess 20578416 (ESSBASE).
$ ps -ef | grep 20578416
root 20578416 19267676 0 Oct 16 - 501:15 /u02/app/oracle/Middleware/EPMSystem11R1/products/Essbase/EssbaseServer/bin/ESSBASE ********** 1423 -agentsecureport 6423 -pingport 32772 -portRangeBegin 32768 -portRangeEnd 33768 -b
启动端口
$ grep 1423 /etc/services
essbase 1423/tcp # Essbase Arbor Software
essbase 1423/udp # Essbase Arbor Software
$ refresh -s inetd
Aix 系统没有防火墙的概念,但有 IPSEC
$ lslpp -l | grep -I ipsec
# 启动/关闭 ip security 服务
$ smit ipsec4
$ rmdev -dl ipsec_v4
查看系统版本
$ uname -a
AIX epm-sys-data 1 6 0005224C4C00
查看系统信息
# getconf BOOT_DEVICE
hdisk0
# getconf MODEL_CODE
134217804
# getconf MACHINE_ARCHITECTURE
chrp
# getconf KERNEL_BITMODE
64
# getconf REAL_MEMORY
20971520
查看内存
$ ipcs -am
$ vmstat -v
$ lsattr -El mem0
$ lparstat -i |egrep -i "Online|Maximum" |grep -i Memory
$ vi checkmem.sh
#!/usr/bin/ksh
#memory calculator
um=`svmon -G | head -2|tail -1| awk {'print $3'}`
um=`expr $um / 256`
tm=`lsattr -El sys0 -a realmem | awk {'print $2'}`
tm=`expr $tm / 1000`
fm=`expr $tm - $um`
echo "\n\n-----------------------";
echo "System : (`hostname`)";
echo "-----------------------\n\n";
echo "\n\n-----------------------";
echo " Users Login information \n";
for ENTRY in `finger | cut -d " " -f1 | grep -v Login | uniq`
do
echo "`finger -l $ENTRY | head -1 | cut -d \" \" -f14` ---> `finger -l $ENTRY |
awk '{ print $2 }' | tail -2 | head -1`";
#finger -l $ENTRY | awk '{ print $2 }' | tail -2 | head -1;
done
echo "-----------------------\n";
echo "\n----------------------";
echo "Memory Information\n\n";
echo "total memory = $tm MB"
echo "free memory = $fm MB"
echo "used memory = $um MB"
echo "\n\n-----------------------\n”;
$ chmod +x checkmem.sh
$ ./checkmem.sh
查看 cpu
$ lsattr -E -l proc0 | grep "Processor Speed"
frequency 1452000000 Processor Speed False
$ pmcycles
This machine runs at 1452 MHz
磁盘基本使用情况
$ df -g
$ df -ksg /tmp
$ df -vkg /tmp
参考
- How to get free memory on AIX?
- How do you check filesystem diskspace on AIX 5.2
- How to determine if AIX uses a 32-bit kernel or 64-bit kernel
- In Unix, how can I display information about the operating system?
- Howto find out AIX UNIX CPU information, clock speed
- 查找 AIX 系统开启端口号对应服务程序
- How do I determine if FIrewall is on in AIX
- IPsec 限制 某几个 IP 地址 访问 (AIX)
- Cannot start Essbase: warning: Invalid or Obsolete Configuration