The nputool allows for configuring and testing the switch ASICs.
The nputool tests the NPU in the system. The nputool verifies that ports are up and traffic between the ports is working either using the CPU-generated packet or using IXIA connected to port-1 and port-2 based on the configuration.
Tests are shown in the following sections.The nputool shows the available options with the nputool -h or nputool command.
DellEmc Diag ---- NPU Tool
version 1.0, x.xx.x.x-x
build, 2022/05/20,
Syntax: nputool
-h, --help := Show this help
-i, --init := Initialize NPU chip
-t, --test
all := Run All NPU tests
id := Run test based on test ID
-s, --show
counter := Dump packet counters
temp := Display NPU temperature
-l, --lpbk [phy/mac/ext]:= Specify Loopback type for traffic test
-T, --traffic [ixia_self,ixia_adj,cpu_self,cpu_adj]
:= Send IXIA or CPU traffic based on specified cfg
self->timbercon lpbk, adj->fiber lpbk
-I, --iteration [count]:= Execute repeatedly command by count
-v, --version := Display version
Usage:
nputool -i -t [all/0/1,2,3/4/../7] -T [ixia_self/ixia_adj/cpu_self/cpu_adj]
-l [phy/mac/ext] := Run NPU tests based on user input
nputool -I [count] -i -t 1 -T cpu_self := Run NPU test repeatedly by count
nputool -i -s temp := Display NPU temperature
For the nputool -i -t [all/0/1,2,3/4/../7] usage:
nputool version
root@dell-diag-os:/etc/dn/diag# nputool --v Dell Diag nputool - version 1.0 sdk-6.5.3 package x.xx.x.x.xx 2022/05/20 root@dell-diag-os:/etc/dn/diag# root@dell-diag-os:/etc/dn/diag# nputool --version Dell Diag nputool - version 1.0 sdk-6.5.3 package x.xx.x.x.xx 2022/05/20 root@dell-diag-os:/etc/dn/diag#
Port link status test
root@dell-diag-os:~# root@dell-diag-os:/etc/dn/diag# nputool -i -t 0 8375_B0 -bash: root@dell-diag-os:/etc/dn/diag#: No such file or directory sysconf_probe successful global_sal_config successful *** 1 BCM devices are detected Diag NPU initialization over Test link_status_test for NPU 0 .......... Passed Test snake_traffic_test for NPU 0 .......... SKIPPED <<<--- Test prbs_mac_test for NPU 0 .......... SKIPPED <<<--- Test prbs_ext_test for NPU 0 .......... SKIPPED <<<--- Test uplink_link_status_test for NPU 0 .......... SKIPPED <<<--- Test uplink_snake_traffic_test for NPU 0 .......... SKIPPED <<<--- Test uplink_prbs_mac_test for NPU 0 .......... SKIPPED <<<--- Test uplink_prbs_ext_test for NPU 0 .......... SKIPPED <<<--- NPU tests ........................................ Passed root@dell-diag-os:/etc/dn/diag# nputool -init -test 0 DMA pool size: 16777216 PCI unit 0: Dev 0x8375, Rev 0x11, Chip BCM88375_B0, Driver BCM88375_B0 sysconf_probe successful global_sal_config successful *** 1 BCM devices are detected Diag NPU initialization over Test link_status_test for NPU 0 .......... Passed Test snake_traffic_test for NPU 0 .......... SKIPPED <<<--- Test prbs_mac_test for NPU 0 .......... SKIPPED <<<--- Test prbs_ext_test for NPU 0 .......... SKIPPED <<<--- Test uplink_link_status_test for NPU 0 .......... SKIPPED <<<--- Test uplink_snake_traffic_test for NPU 0 .......... SKIPPED <<<--- Test uplink_prbs_mac_test for NPU 0 .......... SKIPPED <<<--- Test uplink_prbs_ext_test for NPU 0 .......... SKIPPED <<<--- NPU tests ........................................ Passed
CPU traffic with external loopback
Tests the traffic that is sent from the CPU internally generated packet to the front-end ports that are connected with external Loopback optics.
Connect all the ports with QSFP28 Loopback optics.
root@dell-diag-os:/opt/dellemc/diag/bin# nputool -i -t 1 -T cpu_self DMA pool size: 16777216 PCI unit 0: Dev 0x8375, Rev 0x11, Chip BCM88375_B0, Driver BCM88375_B0 sysconf_probe successful global_sal_config successful *** 1 BCM devices are detected Diag NPU initialization over Test link_status_test for NPU 0 ............. SKIPPED <<<--- Test snake_traffic_test for NPU 0 ........... Passed Test prbs_mac_test for NPU 0 ................ SKIPPED <<<--- Test prbs_ext_test for NPU 0 ................ SKIPPED <<<--- Test uplink_link_status_test for NPU 0 .... SKIPPED <<<--- Test uplink_snake_traffic_test for NPU 0 .... SKIPPED <<<--- Test uplink_prbs_mac_test for NPU 0 .... SKIPPED <<<--- Test uplink_prbs_ext_test for NPU 0 ......... SKIPPED <<<--- NPU tests ................................... Passed root@dell-diag-os:~# nputool --init --test 1 --traffic cpu_self DMA pool size: 16777216 PCI unit 0: Dev 0x8375, Rev 0x11, Chip BCM88375_B0, Driver BCM88375_B0 sysconf_probe successful global_sal_config successful *** 1 BCM devices are detected Diag NPU initialization over Test link_status_test for NPU 0 ............. SKIPPED <<<--- Test snake_traffic_test for NPU 0 ........... Passed Test prbs_mac_test for NPU 0 ................ SKIPPED <<<--- Test prbs_ext_test for NPU 0 ................ SKIPPED <<<--- Test uplink_link_status_test for NPU 0 ...... SKIPPED <<<--- Test uplink_snake_traffic_test for NPU 0 .... SKIPPED <<<--- Test uplink_prbs_mac_test for NPU 0 ......... SKIPPED <<<--- Test uplink_prbs_ext_test for NPU 0 ......... SKIPPED <<<--- NPU tests ................................... Passed
CPU traffic with adjacent loopback
Tests the traffic that is sent from the CPU internally generated packet to the front-end ports which are connected with direct attach cables (DACs) or optics with cables connected top-to-bottom.
Connect all the ports with DACs or 40G/100G optics with cables.
root@dell-diag-os:~# nputool -i -t 1 -T cpu_adj DMA pool size: 16777216 PCI unit 0: Dev 0x8375, Rev 0x11, Chip BCM88375_B0, Driver BCM88375_B0 sysconf_probe successful global_sal_config successful *** 1 BCM devices are detected Diag NPU initialization over Test link_status_test for NPU 0 ............ SKIPPED <<<--- Test snake_traffic_test for NPU 0 ............ Passed Test prbs_mac_test for NPU 0 ............ SKIPPED <<<--- Test prbs_ext_test for NPU 0 ............ SKIPPED <<<--- Test uplink_link_status_test for NPU 0 ............ SKIPPED <<<--- Test uplink_snake_traffic_test for NPU 0 ............ SKIPPED <<<--- Test uplink_prbs_mac_test for NPU 0 ............ SKIPPED <<<--- Test uplink_prbs_ext_test for NPU 0 ............ SKIPPED <<<--- NPU tests .......................................... Passed root@dell-diag-os:~# root@dell-diag-os:~# nputool -init -test 1 -traffic cpu_adj DMA pool size: 16777216 PCI unit 0: Dev 0x8375, Rev 0x11, Chip BCM88375_B0, Driver BCM88375_B0 sysconf_probe successful global_sal_config successful *** 1 BCM devices are detected Diag NPU initialization over Test link_status_test for NPU 0 ............. SKIPPED <<<--- Test snake_traffic_test for NPU 0 ............. Passed Test prbs_mac_test for NPU 0 ............. SKIPPED <<<--- Test prbs_ext_test for NPU 0 ............. SKIPPED <<<--- Test uplink_link_status_test for NPU 0 ............. SKIPPED <<<--- Test uplink_snake_traffic_test for NPU 0 ............. SKIPPED <<<--- Test uplink_prbs_mac_test for NPU 0 ............. SKIPPED <<<--- Test uplink_prbs_ext_test for NPU 0 ............. SKIPPED <<<--- NPU tests ........................................... Passed root@dell-diag-os:~#
IXIA traffic with external loopback
Tests the traffic that is sent from IXIA to port-1 and to the front-end ports which are connected with external Loopback optics.
Connect the first port to IXIA and all other ports with QSFP28 Loopback optics.
These commands configure the virtual local area network (VLAN) and after the BCM.0> shell displays, send the traffic from IXIA. To verify the counters, run the show c command in the BCM shell. For the S5148F-ON switch, to verify the counters, run the show c command in the XP Shell.
IXIA traffic with adjacent loopback
Tests the traffic that is sent from IXIA to the front-end ports which are connected with DACs or optics with cables connected top-to-bottom.
Connect the first two ports to IXIA and all the remaining ports with DACs or 40G/100G optics with cables.
The previous commands configure the VLAN and after the BCM.0> shell displays. To verify the counters, run the show c command in the BCM shell. For the S5148F-ON switch, to verify the counters, run the show c command in the XP Shell.
CPU traffic with external loopback for uplink ports (SFP+)
Traffic is sent from the CPU to the SFP+ ports.
Connect all the ports with the SFP+ optics with TX and RX shorted.
CPU traffic for uplink ports connected between adjacent ports
Traffic is sent from the CPU internally generated packet to the front-end Dell SFP+ ports which are connected with SFP+ optics using a cable.
Connect the SFP+ ports with the Dell SFP+ optics using cables.
IXIA traffic with external loopback
Traffic is sent from the CPU internally generated packet to the front-end SFP+ ports which are connected with the Dell SFP+ optics using a cable.
Connect the first port to IXIA and all other ports with Loopback optics.
Configure the VLAN and display the BCM.0> shell. To verify the counters, use the show c command in the BCM shell. For the S5148F-ON switch, to verify the counters, run the show c command in the XP Shell.
IXIA traffic with adjacent ports connected to IXIA
Traffic is sent from the CPU internally generated packet to the front-end ports which are connected with DACs or optics using cables connected top-to-bottom.
Connect two ports to IXIA with SFP+ optics and cables.
Configure the VLAN and display the BCM.0> shell. To verify the counters, use the show c command in the BCM shell. For the S5148F-ON switch, to verify the counters, run the show c command in the XP Shell.
PRBS for QSFP ports
Connect ports with Loopback cables and run the PRBS MAC and EXT Loopback tests.
For example:
root@dell-diag-os:~# nputool --init --test 2 DMA pool size: 16777216 PCI unit 0: Dev 0x8375, Rev 0x11, Chip BCM88375_B0, Driver BCM88375_B0 sysconf_probe successful global_sal_config successful *** 1 BCM devices are detected Diag NPU initialization over Test link_status_test for NPU 0 ................ SKIPPED <<<--- Test snake_traffic_test for NPU 0 .............. SKIPPED <<<--- Test prbs_mac_test for NPU 0 ................... Passed Test prbs_ext_test for NPU 0 ................... SKIPPED <<<--- Test uplink_link_status_test for NPU 0 ......... SKIPPED <<<--- Test uplink_snake_traffic_test for NPU 0 ....... SKIPPED <<<--- Test uplink_prbs_mac_test for NPU 0 ............ SKIPPED <<<--- Test uplink_prbs_ext_test for NPU 0 ............ SKIPPED <<<--- NPU tests ...................................... Passed root@dell-diag-os:~# nputool --init --test 3 DMA pool size: 16777216 PCI unit 0: Dev 0x8375, Rev 0x11, Chip BCM88375_B0, Driver BCM88375_B0 sysconf_probe successful global_sal_config successful *** 1 BCM devices are detected Diag NPU initialization over Test link_status_test for NPU 0 ................ SKIPPED <<<--- Test snake_traffic_test for NPU 0 .............. SKIPPED <<<--- Test prbs_mac_test for NPU 0 ................... SKIPPED <<<--- Test prbs_ext_test for NPU 0 ................... Passed Test uplink_link_status_test for NPU 0 ......... SKIPPED <<<--- Test uplink_snake_traffic_test for NPU 0 ....... SKIPPED <<<--- Test uplink_prbs_mac_test for NPU 0 ............ SKIPPED <<<--- Test uplink_prbs_ext_test for NPU 0 ........... SKIPPED <<<--- NPU tests ...................................... Passed
PRBS for uplink ports
Connect the SFP+ ports with an external Loopback cable.
NPU temperature
Show the current NPU temperature.
root@dell-diag-os:~# nputool -i -s temp DMA pool size: 16777216 PCI unit 0: Dev 0x8375, Rev 0x11, Chip BCM88375_B0, Driver BCM88375_B0 sysconf_probe successful global_sal_config successful *** 1 BCM devices are detected Diag NPU initialization over NPU 0 Temperature ---------------------------- monitor current peak ---------------------------- 0 41.8 44.2 1 41.3 44.7 2 36.4 38.8 3 39.8 43.2 ---------------------------- Average 39.8, maximum peak 44.7 root@dell-diag-os:~# nputool -init -show temp DMA pool size: 16777216 PCI unit 0: Dev 0x8375, Rev 0x11, Chip BCM88375_B0, Driver BCM88375_B0 sysconf_probe successful global_sal_config successful *** 1 BCM devices are detected Diag NPU initialization over NPU 0 Temperature ---------------------------- monitor current peak ---------------------------- 0 42.3 44.2 1 40.8 44.2 2 35.9 38.8 3 40.8 43.2 ---------------------------- Average 39.9, maximum peak 44.2 root@dell-diag-os:~#
Debugging
With traffic commands, use the –d option, which displays the BCM.0> shell. To check counters and if the link is up, use the ps and show c commands.