AIX Common Command Summary

  
 

When you encounter problems with AIX® and System p™ servers, do you want to be able to find the answer yourself? Do you want to save time by not always turning to professional support staff? Well, the author of this article will discuss some AIX commands that answer these questions and tell you how to find further answers to other questions. Introduction

As you know, AIX® has countless commands that allow you to perform a large number of tasks. Depending on the tasks you need to complete, you may only use a subset of these commands. These subsets vary with different users and different needs. However, there are some core commands that you usually want to use. You will need these commands to answer your own questions or provide answers to your support staff's enquiries.

In this article, I will discuss some of these core commands. Its purpose is to provide you with a list that can be used as a convenient reference. Although the behavior of these commands should be the same in all AIX versions, they were tested only under AIX 5.3.

Note: The bootinfo discussed in the following paragraphs is not a user-level command and is not supported in AIX 4.2 or later.

Command------------------------------------------- ----------------------

Core Commands

How do I know if I am running a 32-bit kernel or a 64-bit kernel?

To show whether the kernel is 32-bit or 64-bit enabled, enter the following command:

bootinfo -K

How do I know if I am running a single processor or a multiprocessor? Kernel?

/unix is ​​a symbolic link to the launched kernel. To find out what kernel mode is running, type ls -l /unix and see what files /unix links to. The following are the three possible outputs of the ls -l /unix command and their corresponding kernels:

/unix -> /usr/lib/boot/unix_up # 32 bit uniprocessor kernel /unix -> /usr /lib/boot/unix_mp # 32 bit multiprocessor kernel/unix -> /usr/lib/boot/unix_64 # 64 bit multiprocessor kernel

Note: AIX 5L Version 5.3 does not support single processor cores.

How do I change from one kernel mode to another?

A kernel suitable for the hardware in this AIX version and operation is enabled by default during the installation process. Let's use the method from the previous question and assume that the 32-bit kernel is enabled. We also assume that you want to start in 64-bit kernel mode. This can be done by executing the following commands in order:

ln -sf /usr/lib/boot/unix_64 /unixln -sf /usr/lib/boot/unix_64 /usr/lib/boot/unix

bosboot -ad /dev/hdiskxxshutdown The -r/dev/hdiskxx directory is where the logical volume /dev/hd5 is started. To find out which xx is in hdiskxx, run the following command:

lslv -m hd5 Note: In AIX 5.2, the 32-bit kernel is installed by default. In AIX 5.3, a 64-bit kernel is installed by default on 64-bit hardware and a 32-bit kernel is installed on 32-bit hardware.

Hardware

How do I know if my computer can run AIX 5L Version 5.3?

AIX 5L Version 5.3 runs on all supported POWER hardware based on the Common Hardware Reference Platform (CHRP).

How do I know if my computer is based on CHRP?

Run the prtconf command. If it is a CHRP computer, the string chrp will appear on the Model Architecture line.

How do I know if my System p computer (hardware) is 32-bit or 64-bit?

To display hardware 32-bit or 64-bit, enter the following command:

bootinfo -y

How much real memory does my computer have?

To display the actual memory in kilobytes, enter one of the following commands:

bootinfo -r


lsattr -El sys0 -a Realmem

Can my computer run a 64-bit kernel?

Requires 64-bit hardware to run a 64-bit kernel.

What are the device attribute values ​​in my system?

To list the current attribute values ​​of the tape device rmt0, enter the following command:

lsatr -l rmt0 -E

To list the default attributes of the tape device rmt0 Value, you can enter the following command:

lsattr -l rmt0 -D

To list the possible login attribute values ​​for TTY device tty0, enter the following command:

lsattr - l tty0 -a login -R

To display system level properties, enter the following command:

lstr -E -l sys0

How many processes does my system have? What?

To display the number of processors on your system, enter the following command:

lscfg

Copyright © Windows knowledge All Rights Reserved