Tech-support file is a compressed archive file consisting of information about the state of the Switch like Syslog, database state, core dump, etc. Dell Technical support agents need a tech-support file for detailed analysis of an event.
COMMAND | EXPLANATION |
---|---|
admin@sonic:~$ sonic-cli | Enter Dell Sonic |
sonic# show tech-support | Generate tech-support file. |
sonic# show tech-support status | Show tech-support file generation status |
sonic# dir tech-support:/ | Show content of /var/dump directory where tech-support file is generated. |
sonic# copy tech-support://<filename> ftp/home/http/scp/usb://<filename> | Copy tech-support file to a remote location using ftp, http, scp protocol, or an usb or home directory |
COMMAND | EXPLANATION |
---|---|
sonic# show tech-support since <date/time> | Generate tech-support file from a date and time. Click here for more info. |
sonic# delete tech-support:/ <filename> | Delete old tech-support file. This saves flash space. |
admin@DELLSONiC:~$ sonic-cli DELLSONiC# DELLSONiC# show tech-support %Info: Tech-support process started, please check "show tech-support status" for tech-support progress DELLSONiC#
DELLSONiC# show tech-support status Status: In Progress (Collecting Counters-1) Total items collected: 12
DELLSONiC# dir tech-support:/ ------------------------------------------------------------------------- Date(Last Modified) Size(Bytes) Type Filename ------------------------------------------------------------------------- 2023-04-15 20:21 4096 d sonic_dump_DELLSONiC_20230415_202048 2023-04-15 20:22 11100160 - sonic_dump_DELLSONiC_20230415_202048.tar
DELLSONiC# show tech-support status Status: Completed File Name: /var/dump/sonic_dump_DELLSONiC_20230415_202048.tar.gz
DELLSONiC# dir tech-support:/ ------------------------------------------------------------------------- Date(Last Modified) Size(Bytes) Type Filename ------------------------------------------------------------------------- 2023-04-15 20:27 252932846 - sonic_dump_DELLSONiC_20230415_202048.tar.gz
DELLSONiC# copy tech-support://sonic_dump_DELLSONiC_20230415_202048.tar.gz ftp://TEST:PASS@10.0.0.1/sonic_dump_DELLSONiC_20230415_202048.tar.gz
DELLSONiC# copy tech-support://sonic_dump_DELLSONiC_20230415_202048.tar.gz http://10.0.0.1/sonic_dump_DELLSONiC_20230415_202048.tar.gz
sonic# sonic# configure terminal sonic(config)# usb enable sonic(config)# exit sonic# usb mount DELLSONiC# copy tech-support://sonic_dump_DELLSONiC_20230415_202048.tar.gz usb://sonic_dump_DELLSONiC_20230415_202048.tar.gz
The tech-support file has a name in format sonic_dump_<Hostname>_ _YYYYMMDD_HHMMSS.tar.gz
* YYYYMMDD_HHMMSS is Year Month Day _ Hour Minute Second. This is the time of tech-support file generation.
For example, sonic_dump_DELLSONiC_20230415_202048.tar.gz is the generated tech-support file. Here YYYYMMDD_HHMMSS is 20230415_202048 and DELLSONiC is the hostname of the switch.
The tech-support file may be a large file based on the switch uptime. In Dell SONiC, we can reduce the size of the tech by limiting the logging duration.
Use show tech-support since <date/time> command to capture tech-support from a particular time.
Sample Out
DELLSONiC# show tech-support since "2023-04-14T12:30:30Z" %Info: Tech-support process started, please check "show tech-support status" for tech-support progress
It is recommended to capture up to the 0 hour of the day before for any possible pre-emptive actions before the event.
Sample Out
DELLSONiC# show tech-support since "2023-04-14T00:00:00Z" %Info: Tech-support process started, please check "show tech-support status" for tech-support progress
Command | Explanation |
---|---|
sonic# show tech-support since <date/time> | Below is the format for date/time "YYYY-MM-DDTHH:MM:SS[.ddd...]Z" or "YYYY-MM-DDTHH:MM:SS[.ddd...]+hh:mm" or "YYYY-MM-DDTHH:MM:SS[.ddd...]-hh:mm" Where: YYYY = year, MM = month, DD = day, T (required before time), HH = hours, MM = minutes, SS = seconds, (optional) .ddd... = decimal fraction of a second (e.g. ".323") Z indicates zero offset from local time +/- hh:mm indicates hour:minute offset from local time |
DELLSONiC# delete tech-support:/ sonic_dump_DELLSONiC_20230415_202048.tar.gz Proceed to delete tech-support:/sonic_dump_DELLSONiC_20230415_202048.tar.gz? [y/N]:y
DELLSONiC# dir tech-support:/ ------------------------------------------------------------------------- Date(Last Modified) Size(Bytes) Type Filename -------------------------------------------------------------------------