First knowledge AIX5.2 II

xiaoxiao2021-03-06  64

Connect an article :)

1. Use Telnet to log in with the root user in AIX, but in Linux, you must first log in to a user, then you can be available in SU to Root.

2. You can get the commands executed by the up and down, and AIX is not available. If you need to re-enter, this is more troublesome, default Bash under Linux, and KSH in AIX, now there may be BASH For AIX version, just I don't know now.

3. For commands to view system resources, there is no SAR command in Linux under Linux, and the system is automatically installed in AIX, the latest installation package under Linux can go to this place to download:

http://freshmeat.net/redir/sysstat/10184/url_rpm/sysstat-5.1.2-1.src.rpm, you can install it directly with RPM -I. First introduce this sysstat under Linux, this is an open source, including SAR, MPSTAT, and IOSTAT commands, you can view the resources of the system, SAR can view most of the system, and MPSTAT can view the system's CPU situation IOSTAT can view the IO situation of the system. Most of the features include CPU situations, IO cases, memory conditions, etc. can be used by SAR, and SAR commands are very powerful. I put the SAR command under AIX and linux, I found a lot of places, but some parameters are different, column some of their own usual commands:

a), the method of using the command: Enter SAR [-x xx] yz, where -X is parameter, XX is the specified range of the current parameters, such as time range, etc., the Y parameter is every time you run once, Z Refers to how much this command is running. This command can be interpreted to run a SAR command every second to obtain the XX range specified by the -X parameter, running Z times, such as SAR -P 0 2 2 means the use of the 0th CPU every 2 seconds. The situation is always executed twice.

b), view the CPU situation, you can use SAR YZ directly under AIX and Linux, you can view the information of the CPU, and the statistics are the cumulative usage rate of all CPUs (such as 4 CPUs) Then he counted the current total usage rate of 4 CPUs). SAR -P All Yz can also be used under AIX to see the usage of each CPU in the current system. Finally, give a summary, you can use SAR -P N YZ to see the use of the nth CPU, the CPU's The number is the 0th beginning; in Linux, MPSTAT or SAR can be used to obtain the usage of the CPU. The method used by the method and the AIX are just the same, just under Linux, use SAR -U YZ to view the current server. The total usage rate of all CPUs can be used by MPSTAT -P ALL to view the current situation of each CPU. The use of the nth CPU is viewed by MPSTAT -P N YZ. The number of CPUs is also started using the 0th. LSDEV-CC Processor can be used under AIX to check the status of the system CPU, displayed as avaliable means that normal or abnormal, as follows:

PROC0 Available 00-00 Processor

Proc1 Available 00-01 Processor

c), check the memory situation, use SAR -R YZ to get memory in Linux, in AIX, use VMSTAT to view the view, this command is also under Linux, the format Vmstat y indicates that the content is checked once every second. Use. Check the system memory status with LSDEV-CC Memory, displayed as avaliable means normal or abnormal (as follows), with LSATTR -EL MEM0 to check the size of the system memory. # lsdev -cc memory

L2Cache0 Available L2 Cache

MEM0 Available Memory

# lsattr --el MEM0

Goodsize 4096 Amount of USABLE Physical Memory in Mbytes False

Size 4096 Total Amount of Physical Memory In MBYTES FALSE

d) View IO: You can get through Iostat under Linux and AIX.

(to be continued...)

Related Links:

Use the last command to quickly operate the AIX command

转载请注明原文地址:https://www.9cbs.com/read-89519.html

New Post(0)