AIX命令速记

在AIX上装RAC,顺便学习下上面的命令。之前仅接触过HP-UX和SUN Solaris。

-bash-3.00$ uname -a
AIX aix 3 5 00C97AC04C00powerpc unknown AIX

Purpose:Displays the name of the current operating system.

Description
The uname command writes to standard output the name of the operating system that you are using.
The machin ID number contains 12 characters in the following digit format: xxyyyyyymmss. The xx positions indicate the system and is always 00. The yyyyyy positions contain the unique ID number for the entire system. The mm position represents the model ID. The ss position is the submodel number and is always 00. The model ID describes the ID of the CPU Planar, not the model of the System as a whole.

Machine        Machine      Machine
Type          Model           ID

7043           140             4C
7043           240             4C

7248           43P             4C

-bash-3.00$ prtconf
System Model: IBM,9110-51A
Machine Serial Number: 0697AC0
Processor Type: PowerPC_POWER5
Number Of Processors: 2
Processor Clock Speed: 2097 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 1 06-97AC0
Memory Size: 1904 MB
Good Memory Size: 1904 MB
Platform Firmware level: Not Available
Firmware Version: IBM,SF240_332
Console Login: enable
Auto Restart: true
Full Core: false

Network Information
 Host Name: aix
 IP Address: 192.168.1.18
 Sub Netmask: 255.255.255.0
 Gateway: 192.168.1.1
 Name Server: 211.151.88.20
 Domain Name: 

Paging Space Information
 Total Paging Space: 512MB
 Percent Used: 43%

Purpose :Displays system configuration information.

Description
If you run the prtconf command without any flags, it displays the system model, machine serial, processor type, number of processors, processor clock speed, cpu type, total memory size, network information, filesystem information, paging space information, and devices information.

-bash-3.00$ oslevel -s
5300-07-10-0943

Purpose:Reports the latest installed maintenance and technology level of the system.

Description
The oslevel command reports the maintenance and technology levels of the operating system using a subset of all filesets installed on your system. These filesets include the Base Operating System (BOS), base devices, base printers, and X11 2d.
The oslevel command also prints information about maintenance and technology levels, including which filesets are not at a specified maintenance and technology level.

-bash-3.00$ df -m
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/hd4                  5248       264      4985   6% /
/dev/hd2                  5632      1457      4176  26% /usr
/dev/hd9var                640       578        63  91% /var
/dev/hd3                   128        94        35  73% /tmp
/dev/fwdump                128         1       128   1% /var/adm/ras/platform
/dev/hd1                   640       558        83  88% /home0
/proc                        -         -         0   -  /proc
/dev/hd10opt              2304       496      1808  22% /opt
192.168.2.5:/store/home 2344703    529677   1815027  23% /home

Purpose:Reports information about space on file systems.

Description
The df command displays information about total space and available space on a file system. The FileSystem parameter
specifies the name of the device on which the file system resides,the directory on which the file system is mounted, or the relative path name of a file system. The File parameter specifies a file or a directory that is not a mount point. If the File parameter is specified, the df command displays information for the file system on which the file or directory resides. If you do not specify the FileSystem or File parameter, the df command displays information for all currently mounted file systems. File system statistics are displayed in units of 512-byte blocks by default.

-bash-3.00$ lsdev -Cc disk
hdisk0 Available 0G-08-01-8,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 0G-08-01-5,0 16 Bit LVD SCSI Disk Drive

Purpose:Displays devices in the system and their characteristics.

普人特福的博客cnzz&51la for wordpress,cnzz for wordpress,51la for wordpress