You are on page 1of 8

C AIX USEFULL COMMANDS

Under MTM window:

If not already connected:


Login:root
Password: cal

AIX-/>

TO GET THE STATE OF THE DEVICES:

AIX-/>lsdev C
Gives all the connected devices

sys0 Available 00-00 System Object


sysplanar0 Available 00-00 System Planar
pci0 Available 00-fe0f0020 PCI Bus
pci1 Available 00-fe0f0090 PCI Bus
isa0 Available 10-08 ISA Bus
sa0 Available 01-S1 Standard I/O Serial Port
sa1 Available 01-S2 Standard I/O Serial Port
sa2 Available 01-S3 Standard I/O Serial Port
ppa0 Available 01-R1 Standard I/O Parallel Port Adapter
fda0 Available 01-D1 Standard I/O Diskette Adapter
siokma0 Available 01-K1 Keyboard/Mouse Adapter
scsi0 Available 10-10 Wide/Ultra-2 SCSI I/O Controller
scsi1 Available 10-18 Wide/Fast-20 SCSI I/O Controller
pci2 Available 10-28 PCI Bus
scsi2 Available 15-10 Wide/Fast-20 SCSI I/O Controller
cvga0 Available 10-30 Standard Graphics Adapter
pci3 Available 10-38 PCI Bus
pci4 Available 17-00 PCI Bus
ent0 Available 20-40 DEC 21143 PCI Fast Ethernet Controller (9f110208)
scsi3 Available 20-48 Wide/Fast-20 SCSI I/O Controller
pci5 Available 20-60 PCI Bus
pci6 Available 2C-00 PCI Bus
fd0 Available 01-D1-00-00 Diskette Drive
sioka0 Available 01-K1-00 Keyboard Adapter
sioma0 Available 01-K1-01 Mouse Adapter
hdisk0 Available 10-10-00-0,0 Bull 9.1 GB 16 Bit SCSI Disk Drive.
rmt0 Available 10-18-00-5,0 Bull 12/24 GB 4mm Tape Drive
cd0 Available 10-18-00-6,0 Bull Multimedia CD-ROM Drive
lvdd Available LVM Device Driver
mem0 Available 00-00 Memory
proc1 Available 00-01 Processor
L2cache0 Available 00-00 L2 Cache
lft0 Available Low Function Terminal Subsystem
tty0 Available 01-S1-00-00 Asynchronous Terminal
rootvg Defined Volume group
hd5 Defined Logical volume
hd6 Defined Logical volume
hd8 Defined Logical volume
hd4 Defined Logical volume
hd2 Defined Logical volume
hd9var Defined Logical volume
hd3 Defined Logical volume
hd1 Defined Logical volume
en0 Available Standard Ethernet Network Interface
et0 Defined IEEE 802.3 Ethernet Network Interface
dlc8023 Available IEEE Ethernet (802.3) Data Link Control
rmt1 Available 15-10-00-2,0 Other SCSI Tape Drive
rmt2 Available 20-48-00-2,0 Other SCSI Tape Drive
rmt3 Available 20-48-00-2,1 Other SCSI Tape Drive
rmt4 Available 15-10-00-2,1 Other SCSI Tape Drive

AIX-/>lsdev -Cc tape


Gives the state of rmt that is links state

rmt0 Available 10-18-00-5,0 Bull 12/24 GB 4mm Tape Drive


rmt1 Available 15-10-00-2,0 Other SCSI Tape Drive
rmt2 Available 20-48-00-2,0 Other SCSI Tape Drive
rmt3 Available 20-48-00-2,1 Other SCSI Tape Drive
rmt4 Available 15-10-00-2,1 Other SCSI Tape Drive

AIX-/>lsdev -C | grep scsi


Gives the state of the scsi adapters

scsi0 Available 10-10 Wide/Ultra-2 SCSI I/O Controller


scsi1 Available 10-18 Wide/Fast-20 SCSI I/O Controller
scsi2 Available 15-10 Wide/Fast-20 SCSI I/O Controller
scsi3 Available 20-48 Wide/Fast-20 SCSI I/O Controller

AIX-/>lsdev -C | grep ric


Gives the state of the ARTIC960 PCI Adapter

riciop0 Available 2C-08 IBM ARTIC960 PCI Adapter


ddriciop0 Available 2C-08-00 IBM ARTIC960 PCI Device Driver
TO REPORT INFORMATION ABOUT SPACE ON FILE SYSTEM

AIX-/>df

for example:

Filesystem 512-blocks Free %Used Iused %Iused Mounted on


/dev/hd4 1015808 916320 10% 2750 2% /
/dev/hd2 5013504 3104352 39% 39555 7% /usr
/dev/hd9var 1409024 1354872 4% 861 1% /var
/dev/hd3 65536 57864 12% 118 2% /tmp
/dev/hd1 32768 31528 4% 41 2% /home

or

AIX-/>df -k

Filesystem 1024-blocks Free %Used Iused %Iused Mounted on


/dev/hd4 507904 458144 10% 2751 2% /
/dev/hd2 2506752 1552176 39% 39555 7% /usr
/dev/hd9var 704512 677436 4% 861 1% /var
/dev/hd3 32768 28932 12% 118 2% /tmp
/dev/hd1 16384 15764 4% 41 2% /home
ERRLOG FILE

Errlog file is in directory : /var/adm/ras

AIX-/>cd /var/adm/ras
AIX-/var/adm/ras>ls -lra
total 3585
-rw-rw-rw- 1 root system 929840 Aug 18 15:20 trcfile
-rw-r--r-- 1 root system 0 Sep 28 16:59 toto
-rw-r--r-- 1 root system 8192 Aug 01 14:14 nimlog
-rw-r--r-- 1 root system 5814 May 10 09:25 image.data
-r--r--r-- 1 bin bin 177408 Jun 27 09:14 errtmplt
-rw-r--r-- 1 root system 179131 Sep 28 15:02 errlog.sav
-rw-r--r-- 1 root system 179131 Sep 28 15:02 errlog
-rw-r--r-- 1 root system 41909 Sep 28 15:01 diag_log
-rw-r--r-- 1 root system 47271 Feb 25 2000 devinst.log
-rw--w--w- 1 root system 16384 Sep 28 16:09 conslog
-rw-r--r-- 1 bin bin 197206 Feb 25 2000 codepoint.cat
-rw-rw-r-- 1 root system 16384 May 10 09:25 bosinstlog
-rw-r--r-- 1 root system 8243 May 10 09:25 bosinst.data
-rw------- 1 root system 8192 Sep 28 15:00 bootlog
-rw-rw-r-- 1 root system 851 May 10 09:25 BosMenus.log
drwxr-sr-x 11 root system 512 Sep 19 11:31 ..
drwxrwxrwt 2 root system 512 Sep 28 16:59 .

AIX-/var/adm/ras>cd /
AIX-/>errpt -a

LABEL: SCSI_ERR10
IDENTIFIER: 0BA49C99

Date/Time: Mon Jul 17 11:32:05


Sequence Number: 236598
Machine Id: 00400541E800
Node Id: IOSP12_0
Class: H
Type: TEMP
Resource Name: scsi3
Resource Class: adapter
Resource Type: sym875
Location: 04-01

Description
SCSI BUS ERROR

Probable Causes
CABLE
CABLE TERMINATOR
DEVICE
ADAPTER
Failure Causes
CABLE LOOSE OR DEFECTIVE
DEVICE
ADAPTER

Recommended Actions
PERFORM PROBLEM DETERMINATION PROCEDURES
CHECK CABLE AND ITS CONNECTIONS

Detail Data
SENSE DATA
0001 0015 0000 0000 0000 00BE 0800 0098 2000 0000 0000 0000 0201 0205 0000 0000
0000 0000 0000 4302 0000 0000 0000 0000 0000 000A 0202 6740 870B 0000 F410 24B0
F410 23F0 000F 0200 0400 D800 0000 0008 829D 0720 0082 0200 0000 000A 02B5 6000
0008 0000 0311 9100 AF5E 0310

SNAP files

AIX-/>snap -a :

Sent with an AIX crash dump ; gives a report of all the AIX configuration and installation. The
associated files are in /tmp File system.
The size is about 20MB.

NETBIOS UNDER SMIT

This is useful if netBIOS/X daemons are not OK when running io_maint. In this case a failure
message is given on the screen but it is sometimes difficult to understand this message. In this
case the AIX administration tool smit helps you to see the failure:

AIX-/>smitty

Communications Applications and Services


NetBIOS/X
NetBIOS/X Management
Start NetBIOS/X
Stop NetBIOS/X

If you start an already started NetBIOS you get the message:

NetBIOS/X has already been started

If you start a stopped NetBIOS/X, you can succeed and have OK on this command else you have
clearly the reason of the failure.
SPECIAL FIBRE CHANNEL

Some errors I meet in my FC experiments:

At the end of SYC normally terminated and where the device boot is defined as an IOSP Fibre
Channel GCOS8 do not recognize its disks:

1) Under IOH:
sel IOSPxx
rdtrace
You obtain something like that:
hdisk-2
If there is a problem you can have hdisk-1 or hdisk-2 in place of the disk name for hdisk-2
one or several adapters. hdisk-2
hdisk-2
hdisk-2
hdisk-2
hdisk-2
hdisk-2
hdisk-2
hdisk-2
hdisk-2
hdisk-2
hdisk-2
hdisk-2
hdisk-2
hdisk-2
hdisk-2
hdisk-2
hdisk-1
hdisk-1
hdisk-1
hdisk-1
hdisk-1
hdisk-1
hdisk-1
hdisk-1
hdisk-1
hdisk-1
hdisk-1
hdisk-1
hdisk-1
hdisk-1
hdisk-1
hdisk-1
hdisk-1
hdisk-1

If you have hdisk-2 it is probably because there is a problem in the connection between FC adapter of
the IOSP and the disk subsystem ( no cable or bad cable for example)

If you have hdisk-1 there is at least 2 cases:

1- your iospcds.rhd file is not present in f:\cam\g8cm\config.


2- The iospcds.rhd file exists but not correspond to the GCOS configuration
3- Iospcds.rhd is correct but the disks are not present.

In cases 1 and 2, install the good file iospcds.rhd and re-run SYC.
In case 3 go to 2)

2) Open the MTM window of the IOSP concerned by boot and type :
lsdev -Cc disk
Verify that all the disk are present and declared available by AIX.
If not, you have to reconfigure AIX for FC. To do that first make a TERMINATE on SYC then on
MTM:
Then type:

AIX-/> rmdev -Rdl fchan0

AIX-/> rmdev -Rdl fchan1


AIX-/> rmdev -Rdl fchan2
AIX-/> rmdev -Rdl fchan3

It can take some minutes because at this step all the disks connected to the fchanx are deleted.
Then re-build the AIX configuration typing:

AIX-/> cfgmgr
Verify that it is OK. If yes re-run SYC.
If not, I think that there is a Problem on the AIX system or on the disk subsystem.
Then on MTM:

If the fcp is not created or is defined for one of the FC adapter, there is perhaps a driver or a FC
Firmware problem

You might also like