PCI Hot Plug User's Guide 2.5.1
Contents PreviousNext

Chapter 4 PCI Hot Plug command line interface

4.1 cfgadm (cfgadm_pci(1M))

NAME

cfgadm - PCI Hot Plug operation

SYNOPSYS

/usr/sbin/cfgadm [-v] [ap_id | -s "select=class(pci)"]

/usr/sbin/cfgadm -c [disconnect | configure] ap_id [ap_id...]

/usr/sbin/cfgadm -x led[=fault,mode=[on | off | blink]] ap_id [ap_id*]

/usr/sbin/cfgadm -x [enable_autoconfig | disable_autoconfig] ap_id [ap_id...]

AVAILABILITY

DESCRIPTION

This command provides the PCI Hot Plug feature. The features include power on/off the PCI slots and configure/disconnect the PCI devices.
The command must be executed from the system partition where the PCI slots are located.

OPTIONS

The cfgadm command has the following options.

"ap_id" represents the PCI card's logical ID displayed by cfgadm.

No option
Lists information for all PCI slots.
Type, Receptacle, Occupant and Condition are displayed for each PCI slot.
Type
Shows types of PCI slots. PCI slots displayed as type "*/hp" are PCI Hot Plug supported PCI slots.
Receptacle
Shows connection status of PCI slots. There are three kinds of status, disconnected (power off), connected (power on) and empty (no card is inserted).
Occupant
Shows occupancy status of PCI slots. There are two kinds of status, configured (PCI device is configured) and unconfigured (not yet configured).
Condition
Shows failure status of PCI slots. There are four kinds of status, ok (normal), failed (had failure), unknown (not yet evaluated) and unusable (disabled).
ap_id*
Shows status of a PCI slot specified with ap_id.
There are three formats of ap_id according to the Solaris OS versions.

  1. Solaris 8 OS and Solaris 9 OS

    pcipsyX:CYM0Z-PCI#slotWW (slots in cabinet)
    WW represents physical slot number, X represents PCI Bus nexus driver instance number, Y represents cabinet number(0,1) and Z represents internal number of system boards(0,1,2,3).
    pcipsyX:RYB0Z-PCI#slotWW (slots in PCI/ disk box)
    WW represents physical slot number, X represents PCI Bus nexus driver instance number, Y represents I/O cabinet number (0,1,2,3) and Z represents PCI/ disk box number (0,1,2,3,4,5,6,7).
    pcipsyX:PCI#slotWW
    WW represents physical slot number, X represents PCI Bus nexus driver instance number.


  1. Solaris 10 OS

    CYM0Z-PCI#WW (slots in cabinet)
    WW represents physical slot number, Y represents cabinet number(0,1) and Z represents internal number of system boards(0,1,2,3).
    RYB0Z-PCI#WW (slots in PCI/ disk box)
    WW represents physical slot number, Y represents I/O cabinet number (0,1,2,3) and Z represents PCI/ disk box number (0,1,2,3,4,5,6,7).
    PCI#WW
    WW represents physical slot number.
-s "select=class(pci)"
Show status of PCI cards only.
-v
Execute in verbose mode.
-c function
The following functions are used for PCI Hot Plug operations.
disconnect
Unconfigure and power off a PCI slot specified with ap_id.
This option is specified to complete detaching the PCI slot.
configure
Power on and configure a PCI device specified with ap_id.
This option is specified to configure or hotswap the PCI slot.
-x led[=[led],mode=[mode]]
If "=[led],mode=[mode]" is not specified, prints the LED status of the PCI slot with ap_id. fault LED corresponds to ALARM LED and active LED corresponds to ONLINE LED. power LED and attn LED are not supported and the statuses are shown as "unknown".
If "=[led],mode=[mode]" is specified, sets the mode of the specified LED on the PCI slot with the designated ap_id.
-x function
The following functions are used for PCI Hot Plug operations. PCI Hot Plug operation using each pushbutton can be enabled/disabled with this command. It is highly recommended to disable the PCI Hot Plug feature on the PCI cards to avoid miss operations when the PCI cards are used. When PCI cards need to be removed or exchanged, the functions can be enabled.
enable_autoconfig
Set autoconfig feature for a PCI device specified with ap_id. With this option, per-slot pushbuttons can perform either of the following operations.
- Power on and configure the PCI device with ap_id.
- Unconfigure and power off the PCI device with ap_id.
This option is specified to prepare to use PCI Hot Plug feature with pushbutton on the PCI slot.
Default is enabled.
disable_autoconfig
Disables autoconfig feature for a PCI device specified with ap_id. The pushbutton of the PCI slot cannot perform power on/off or configure/unconfigure operations after this command is executed.

EXAMPLES

  1. Solaris 8 OS and Solaris 9 OS
  1. Solaris 10 OS

EXIT STATUS

This command returns the following values.

0: display information successfully
>0: An error occurred.

Please refer to console messages in "5.1 Command line Messages"

SEE ALSO

cfgadm(1M)

NOTES

EXAMPLE ERROR MESSAGES

This command sometimes fails because of syntax error or other reasons.

The followings are example error messages that are most likely to occur.

Error messages of usual PCI Hot Plug operations


Contents PreviousNext

All Rights Reserved, Copyright (C) FUJITSU LIMITED 2005