Administrator Guide
Table Of Contents
- Open Networking Hardware Diagnostic Guide April 2016
- About this Guide
- Installation Instructions for ONIE and the Dell OS
- ONIE Overview
- Dell DIAG OS
- Dell DiagOS Tools
- Technical Support

listdevicenames Output
Based from the output of --devicenames, you can decide if you need to use the --devname= option in the read or write
functions. You can access CPLD1 being at deviceaddress 0, using the register value for the register you want, such as:
root@dell-diag-os:/etc/dn/diag# pltool --read --dev=0 --reg=0x100
CPLD_VERSION : offset 0x100 = 0x3
7: 4 MAJOR_VER = 0
3: 0 MINOR_VER = 3
CPLD2-4 having the same device address, needs to use the devixcename as such
root@dell-diag-os:/etc/dn/diag# pltool --read --devname=CPLD3 --reg=0x10
zQSFP_RESET_CTRL0 : offset 0x10 = 0xff
7 zQSF20_RST = 1
6 zQSFP19_RST = 1
5 zQSFP18_RST = 1
4 zQSFP17_RST = 1
3 zQSFP16_RST = 1
2 zQSFP15_RST = 1
1 zQSFP14_RST = 1
0 zQSFP13_RST = 1
read Output
ONIE:/diag # ./pltool --read --dev=0x33 --reg=0x0
QSFP[8:1] Mode Control Reg : offset 0x00 = 0xff
7 QSFP8_ModeSel = 1
6 QSFP7_ModeSel = 1
5 QSFP6_ModeSel = 1
4 QSFP5_ModeSel = 1
3 QSFP4_ModeSel = 1
2 QSFP3_ModeSel = 1
1 QSFP2_ModeSel = 1
0 QSFP1_ModeSel = 1
root@dell-diag-os:/opt/ngos/bin# ./pltool --read --devname=CPLD1 --reg=0x101
BOARD_TYPE : offset 0x101 = 0x1
7: 0 BOARD_TYPE = 1
write Output
ONIE:/diag # ./pltool --write --dev=0x33 --reg=0x0 --val=0x7f
root@dell-diag-os:/opt/ngos/bin# ./pltool --write --devname=CPLD1 --reg=0x102 --val=0xfa
root@dell-diag-os:/opt/ngos/bin# ./pltool --read --devname=CPLD1 --reg=0x102
SW_SCRATCH : offset 0x102 = 0xfa
7: 0 SW_SCRATCH = fa
test Output
ONIE:/diag # ./pltool --test
Testing Programmable Devices:
PL Tool test:
+ Checking System CPLD 0x31 Reg: 0x0 ............ Passed
+ Checking Master CPLD 0x32 Reg: 0x1 ............ Passed
+ Checking Slave CPLD 0x33 Reg: 0xa ............. Passed
PL Tool: Overall test results --------------- >>> Passed
Dell DiagOS Tools 68