Specifications
Table Of Contents
- Open Networking Hardware Diagnostic Guide September 2017
- About this guide
- ONIE and Dell EMC OS installation instructions
- ONIE overview
- Dell EMC DIAG OS
- Dell EMC DiagOS tools
- Technical support
pcitool
To scan and access devices on the PCI bus, use the pcitool. The pcitool checks for missing devices and that the present devices are
the proper type.
The pcitool scans the PCI bus for present devices and displays them and the BAR information it decodes. The tool does not handle
endianess.
The pcitool reads the conguration le and then iterates across all devices in the conguration le. It checks the vendor/product ID to
see that the correct device is at the correct address. The tool does not compare all the conguration space. The tool reads all 256 bytes of
the conguration le.
Tests
The pcitool reads from the conguration le the devices it expects to nd and reports any devices that it cannot nd or if the device is
not correct. The tool supports second-source parts; therefore, they are not agged as false errors. If a mismatch occurs, the device lists
with the expected value and the read value. Populate the conguration le with -u numbers so the device can quickly identify the failing
device.
CLI options
DellEmc Diag - PCI Tool
version 1.5, x.xx.x.x-x
build, 2017/05/23,
Usage:
To scan all PCI drivers and optionally show all config data :=
pcitool --
scan[=all] (or)
pcitool -S[=all]
To test using default PCI config-file :=
pcitool --
test (or)
pcitool -t
Show confic data for specific bus:dev.func:=
pcitool --show {--bus=<bus># --dev=<dev># --
func=<func>#} (or)
pcitool -x {-B <bus># -D <dev># -F <func>#}
Read 8-bit config register for bus:dev.func:=
pcitool --read {--bus=<bus># --dev=<dev># --func=<func># --offset=<offset> --
count=<count>} (or)
pcitool -r {-B <bus># -D <dev># -F <func># -O <offset> -C <count>}
Write 8-bit config register for bus:dev.func:=
pcitool --write {--bus=<bus># --dev=<dev># --func=<func># --offset=<offset> --
val=<value>} (or)
pcitool -w {-B <bus># -D <dev># -F <func># -O <offset> -V <value>}
Execute repeatedly command by count:=
pcitool --iteration=max/<count> [option1]
[option2]... (or)
pcitool -I max/<count> [option1] [option2]...
Syntax: pcitool <option>
-h, --h Show the help text
-S, --scan Scan operation
-t, --test Test using the pre-programmed configuration or use supplied config
-x, --show Show operation
-r, --read Read operation
-w, --write Write operation
-I, --iteration= Iteration command execution
Dell EMC DiagOS tools
63