Using mptconfig for Online Configuration |
 |
The mptconfig command has options for changing each of the user-configurable SCSI parameters. By default, the SCSI ID of the A7173A adapter is “7,” the transfer rate is “ultra320” and the bus width is “wide.”
To see a help screen showing the mptconfig command syntax, enter mptconfig at the system prompt with no additional options:
# mptconfig
Usage: mptconfig [options] <dev_file>
<dev_file> = /dev/mptX
Options:
-i initiator_id = 0 to 15
-t target_id = 0 to 15
-r rate = ultra|ultra2|ultra160|ultra320
-w width = narrow|wide
-d set default values for scsi bus
default values are:
initiator_id = 7
rate = ultra320
width = wide
Note:
- You must be a privileged user to execute this command. See privileges(5)
for more information on privileged users.
- See mptconfig(1M) for tool details. |
To use the mptconfig command you will need to know the device file name for each A7173A adapter you want to configure. Use the ioscan -kfn command to determine the device file name for each A7173A adapter installed in your system. Example 3-11 shows a portion of ioscan -kfn output that includes an A7173A adapter and a disk array that are on the same SCSI bus:
Example 3-11 Typical ioscan -kfn Command Output
 |
# ioscan -kfn
Class I H/W Path Driver S/W State H/W Type Description
==============================================================================
ext_bus 10 1/0/14/0/0 1 mpt CLAIMED INTERFACE SCSI Ultra320 A6961-60011
/dev/mpt14 2
target 7 1/0/14/0/0/1.0 tgt CLAIMED DEVICE
disk 12 1/0/14/0/0/1.0.0 sdisk CLAIMED DEVICE COMPAQ BF1468A4B3
/dev/dsk/c7t0d0 /dev/rdsk/c7t0d0
target 4 1/0/14/0/0/1.1 tgt CLAIMED DEVICE
disk 4 1/0/14/0/0/1.1.0 sdisk CLAIMED DEVICE COMPAQ BD1468A4C5
/dev/dsk/c7t1d0 /dev/rdsk/c7t1d0
target 5 1/0/14/0/0/1.3 tgt CLAIMED DEVICE
disk 5 1/0/14/0/0/1.3.0 sdisk CLAIMED DEVICE COMPAQ BD1468A4C5
/dev/dsk/c7t3d0 /dev/rdsk/c7t3d0
target 2 1/0/14/0/0/1.4 tgt CLAIMED DEVICE
disk 2 1/0/14/0/0/1.4.0 sdisk CLAIMED DEVICE COMPAQ BF1468A4B3
/dev/dsk/c7t4d0 /dev/rdsk/c7t4d0
target 8 1/0/14/0/0/1.5 tgt CLAIMED DEVICE
disk 13 1/0/14/0/0/1.5.0 sdisk CLAIMED DEVICE COMPAQ BF1468A4B3
/dev/dsk/c7t5d0 /dev/rdsk/c7t5d0
target 3 1/0/14/0/0/1.8 tgt CLAIMED DEVICE
disk 3 1/0/14/0/0/1.8.0 sdisk CLAIMED DEVICE COMPAQ BF1468A4B3
/dev/dsk/c7t8d0 /dev/rdsk/c7t8d0
target 6 1/0/14/0/0/1.15 tgt CLAIMED DEVICE
ctl 0 1/0/14/0/0/1.15.0 sctl CLAIMED DEVICE COMPAQ PROLIANT 4L7E*DB
/dev/rscsi/c7t15d0
ext_bus 11 1/0/14/0/1 3 mpt CLAIMED INTERFACE SCSI Ultra320 A6961-60011
/dev/mpt15 4
processor 0 0/120 processor CLAIMED PROCESSOR Processor
processor 1 0/121 processor CLAIMED PROCESSOR Processor
processor 2 1/120 processor CLAIMED PROCESSOR Processor
processor 3 1/121 processor CLAIMED PROCESSOR Processor |
 |
| 1 | Hardware path to /dev/mpt14. |
| 2 | Device file for hardware path 1/0/14/0/0. |
| 3 | Hardware path to /dev/mpt15. |
| 4 | Device file for hardware path 1/0/14/0/1. |
The device files for both channels of an A7173A adapter are listed in Example 3-11. Both channels of the A7173A adapter share the same PCI slot. Their hardware paths are the same except for the last digit. In the example, the SCSI channel associated with device file /dev/mpt14 is in use and is connected to target devices on a SCSI bus. The SCSI channel associated with device file /dev/mpt15 is not connected to a SCSI bus or to any target devices.
To view a summary of the SCSI parameter settings for a channel on an A7173A adapter, enter the mptconfig <device_file> command, where <device_file> is the device file name of an A7173A adapter channel. For example:
 |
# mptconfig /dev/mpt14
Scan For Devices ...
---- ADAPTER INFORMATION -----------------------------------------------------
Device File : /dev/mpt14
Hardware Path : 1/0/14/0/0
---- BUS PARAMETERS ----------------------------------------------------------
Initiator SCSI ID : 7
SCSI Bus Rate : Ultra320
SCSI Bus Width : Wide
---- CHANNEL CAPABILITIES ----------------------------------------------------
Req/Ack Offset : 127
Bus Mode : LVD
Quick Arbitration Selection : Disabled
DT Clocking : Enabled
Packetized : Enabled
---- TARGET PARAMETERS -------------------------------------------------------
Target Description Firmware In Use In Use In Use
Id Version Rate Width Device
------------------------------------------------------------------------------
0 BF1468A4B3 HPB5 Ultra320 Wide Disk
1 BD1468A4C5 HPB4 Ultra320 Wide Disk
3 BD1468A4C5 HPB4 Ultra320 Wide Disk
4 BF1468A4B3 HPB5 Ultra320 Wide Disk
5 BF1468A4B3 HPB5 Ultra320 Wide Disk
8 BF1468A4B3 HPB5 Ultra320 Wide Disk
- PROLIANT 4L7E*DB 2.30 - - Enclosure
------------------------------------------------------------------------------ |
 |
 |
 |  |
 |
 | NOTE: The In Use Device column is only displayed on systems running HP-UX 11i v3. |
 |
 |  |
 |
Using Common mptconfig Command Line Options
This section lists the mptconfig command line options to change common A7173A SCSI settings online:
Use the -r option on the mptconfigcommand to change the transfer rate for the A7173A adapter. For example:
# mptconfig -r ultra160 /dev/mpt14
Confirm: Do you want to change scsi parameters (y/[n]): y
Status .................................. [Successful]
# |
Use the -w option on the mptconfig command to change the SCSI bus width. For example:
# mptconfig -w narrow /dev/mpt14
Confirm: Do you want to change scsi parameters (y/[n]): y
Status .................................. [Successful]
# |
Use the -d option on the mptconfig command to set the SCSI parameters on the A7173A adapter to the default values. For example:
# mptconfig -d /dev/mpt14
Confirm: Do you want to change scsi parameters (y/[n]): y
Scan For Devices to avoid id conflict ... [Passed]
Changing SCSI Bus Parameters ............ [Passed]
Status .................................. [Successful]
# |