Troubleshooting

To generate hardware dumps for debugging and technical support use the below commands:

Displaying Technical Support Information

You can display the tech-support information use the below command

pbnoscli# show tech-support
pbnoscli# show tech-support      
===============================================================================
System Uptime Information
===============================================================================

up 20 hours, 22 minutes


===============================================================================
All Services Information
===============================================================================

lldp	docker
---------------------------
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root           1  0.0  0.3  30388 24192 pts/0    Ss+  Sep26   0:32 /usr/bin/python3 /usr/local/bin/supervisord
root          12  0.0  0.2  25616 19104 pts/0    S    Sep26   0:05 python3 /usr/bin/supervisor-proc-exit-listener --container-name lldp
root          15  0.0  0.0 223808  5616 pts/0    Sl   Sep26   0:00 /usr/sbin/rsyslogd -n -iNONE

<...>

s},
        "default_brkout_mode": "1x100G[50G,40G,25G,10G,1G]",
        "Current Breakout Mode": "1x100G[50G,40G,25G,10G,1G]",
        "child ports": "Ethernet124",
        "child port speeds": "100G"
    }
}


pbnoscli# 

Generating Technical Support Information

pbnoscli# show tech-support dump
pbnoscli# show tech-support dump 
===============================================================================
Generating Techsupport Tar in /var/dump
Lock succesfully accquired and installed signal handlers
mkdir: created directory '/var/dump'

<...>

Cleaning up working directory /var/dump/sonic_dump_opb-nos_20220926_184853
removed '/tmp/techsupport-lock/PID'
removed directory '/tmp/techsupport-lock'
/var/dump/sonic_dump_opb-nos_20220926_184853.tar.gz
pbnoscli# 

To copy the generated file to a remote server use the below command

pbnoscli# copy file /var/dump/sonic_dump_opb-nos_20220926_184853.tar.gz scp aviz@10.2.2.10:/sonic_dump.tar.gz
pbnoscli# copy file /var/dump/sonic_dump_opb-nos_20220926_184853.tar.gz scp aviz@10.2.2.10:/home/aviz/ravi/sonic_dump_opb-nos_20220926_184853.tar.gz
aviz@10.2.2.10's password: 
sonic_dump_opb-nos_20220926_184853.tar.gz     100% 9827KB 109.7MB/s   00:00    
pbnoscli# 

Displaying Hardware Dump (NVIDIA only)

You can display the hardware-dump using the below command

pbnoscli# show hardware-dump
pbnoscli# show hardware-dump 
===============================================================================
API Ports Dump
===============================================================================

<...>

----------------------------
ACL Bindings
----------------------------

==========================================================
|     ACL ID|   Direction| Logical Port| VLAN Group|  RIF|
==========================================================


pbnoscli# 

Generating Hardware Dump (NVIDIA only)

You can generate hardware-dump for debugging

pbnoscli# generate hardwaredump 
[+] opening sdk
Sep 27 04:39:24 INFO    LOG: Initializing SX log with STDOUT as output file.
sx_api_open handle:0x560a8bed4be4 , rc 0 
No dump file path was entered as a parameter.
Will use the default: /tmp/sdkdump path.
sx_api_dbg_generate_dump, rc 0


Hardware debug dump file named hwdump, generated in /home/admin/hwdump.log
pbnoscli# 

To copy the generated file to a remote server use the below command

pbnoscli# copy file /home/admin/hwdump.log scp <user>@<remote-ip>:/<dir>/hwdump.log
pbnoscli# copy file /home/admin/hwdump.log scp aviz@10.2.2.10:/hwdump.log
The authenticity of host '10.2.2.10 (10.2.2.10)' can't be established.
ECDSA key fingerprint is SHA256:+S2EmXkMAA6WYu6VKodKZtsha3HpVzLCnpG95yEqqlQ.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '10.2.2.10' (ECDSA) to the list of known hosts.
aviz@10.2.2.10's password: 
hwdump.log                                    100% 5453KB  95.3MB/s   00:00    
pbnoscli#