AIX command summary
The following is a summary of commands that may be useful when you configure devices. For examples of their usage, see the procedures in this chapter.
/usr/sbin/lsdev -C | grep I/O
Displays the adapters that are physically available on your server.
/usr/sbin/lsdev -C -s filetype
Displays the device files that have been created, where filetype defines the type of file displayed: scsi displays SCSI files and fcp displays Fibre Channel files.
mkdev -c tape -s scsi -t ost -p controller -w id,lun
Creates the device files for tapes.
controller is the logical identifier of the drive SCSI adapter (such as scsi0 or scsi1). id is the SCSI ID of the robotic connection. lun is the logical unit number of the robotic connection.
/usr/sbin/chdev -l dev -a block_size=0
Configures the drive with logical identifier specified by dev (for example: rmt0) to variable mode.
/usr/sbin/chdev -l dev -a extfm=yes
Configures the drive with logical identifier specified by dev (for example: rmt0) for extended file marks.
/etc/lsattr -l dev -E -H
Displays the device information, where dev is the name of the device (for example, rmt1).
/usr/sbin/cfgmgr -l device
Creates the device files on a Fibre Channel Protocol controller, where device is the controller number (for example, fscsi0).
/usr/bin/odmget -q "name=rmtX" CuAt
Displays the device attributes for the device (rmtX). This command can be used to determine SCSI target and LUN pairs when you configure Fibre Channel devices.
Where rmtX is the name of the tape device (for example: rmt0 or rmt1).