HOTPLUG(1M) | Maintenance Commands | HOTPLUG(1M) |
hotplug
—
hotplug |
-? |
hotplug |
list [-lv ]
[path] [connection] |
hotplug |
online path
port |
hotplug |
offline [-fq ]
path port |
hotplug |
enable path
connector |
hotplug |
disable [-fq ]
path connector |
hotplug |
poweron path
connector |
hotplug |
poweroff [-fq ]
path connector |
hotplug |
set -o
options path
connector |
hotplug |
get -o
options path
connector |
hotplug
command is used to manage hotplug
connections. A connection can be a connector or port. A hotplug connector is a
representation of a physical point in the system where components can be
inserted or removed. A hotplug port is a representation of a logical point in
the system device tree where the connection of a device to the system is
managed.
The hotplug
command only supports hotplug
operations on hotplug connectors for PCI Express buses and PCI buses that
implement the Standard PCI Hotplug feature. Hotplug ports on PCI Express and
PCI buses in systems with PCI Express fabrics are also supported. Additional
buses may be supported in the future.
The hotplug
command operates on the
following kinds of objects:
path
connector
port
connection
Hotplug connectors and ports are managed according to a state
model. The hotplug
command can list information
about the hotplug connections in a system, or it can initiate change of
state operations on specific hotplug connections.
Hotplug connectors can be in the following states:
empty
present
powered
enabled
Hotplug ports can be in the following states:
port-empty
port-present
offline
online
maintenance
The hotplug
command can also access bus
private properties for each hotplug connector. The current values of bus
private properties can be displayed. New values for each bus private
property can be set directly.
# hotplug list -v pci@0,0 <pci.2,1> (ONLINE) pci108e,534a@2,1 [pci30] (EMPTY) <pci.e,0> (ONLINE) pci10de,5d@e <pci.b,0> (ONLINE) display@b [NEM0] (ENABLED) <pci.a,0> (ONLINE) pci108e,534a@a,0 { Network interface nge0 } { nge0: hosts IP addresses: 10.0.0.1 } <pci.a,1> (MAINTENANCE) pci108e,534a@a,1 [NEM1] (EMPTY) <pci.c,0> (OFFLINE) pci108e,534a@4
To show the full paths of hotplug connections and devices, enter the following command:
# hotplug list -l /pci@0,0 <pci.2,1> (ONLINE) /pci@0,0/pci108e,534a@2,1 [pci30] (EMPTY) /pci@0,0 pci.e,0> (ONLINE) /pci@0,0/pci10de,5d@e <pci.b,0> (ONLINE) /pci@0,0/pci10de,5d@e/display@b /pci@0,0/pci10de,5d@e [NEM0] (ENABLED) /pci@0,0/pci10de,5d@e <pci.a,0> (ONLINE) /pci@0,0/pci10de,5d@e/pci108e,534a@a,0 /pci@0,0/pci10de,5d@e <pci.a,1> (MAINTENANCE) /pci@0,0/pci10de,5d@e/pci108e,534a@a,0 /pci@0,0/pci10de,5d@e [NEM1] (EMPTY) /pci@0,0 pci.c,0> (OFFLINE) /pci@0,0/pci108e,534a@4
# hotplug offline /pci@0,0/pci10de,5d@e pci.a,0 ERROR: devices or resources are busy. pci108e,534a@a,0: { Network interface nge0 } { nge0: hosts IP addresses: 10.0.0.1 } { Plumbed IP Address }
# hotplug get -o help /pci@0,0 pci.2,1 power_led=<on|off|blink> fault_led=<on|off|blink> active_led=<on|off|blink> attn_led=<on|off|blink> card_type=<type description> board_type=<type description>
# hotplug get -o card_type,power_led /pci@0,0 pci.2,1 card_type=fibre power_led=on
# hotplug set -o attn_led=on /pci@0,0 pci.2,1
ERROR: there are no connections to display. (See hotplug(1m) for more information.)
If this error message is seen, note that the system might still
have other I/O devices that support hotplugging, through the
cfgadm(1M) command instead of
hotplug
.
hotplug
service (FMRI
svc:/system/hotplug) must be enabled as a prerequisite
for using the hotplug
command. See
hotplugd(1M).
The authorization solaris.hotplug.modify must be granted in order to perform change-of-state operations. Alternatively, the rights profile “Hotplug Management” can be granted, which includes that authorization.
Verbose usage information is gathered from the RCM framework. Its format and content is subject to change.
The following bus specific properties are supported in PCI bus controllers:
power_led
| fault_led
| attn_led
| active_led
on
, off
, or
blink
.
They can all be used with get
subcommand, but only property attn_led
can be
used with set
subcommand.
card_type
| board_type
They can all be used with get
subcommand, but neither can be used with set
subcommand.
March 2, 2020 | illumos |