Skip to content
Ask AI

Techsupport

Table 1 Techsupport Config

CommandPurpose
**techsupport ** [time days|transmission remote-ip A.B.C.D remote-user user_name remote-path path [port port_number]]Collect switch status and log information.

[Command] **techsupport ** [time days|transmission remote-ip A.B.C.D remote-user user_name remote-path path[port port_number]]

[Purpose] Collect switch status and log information.

[Parameters]

ParameterDescription
daysSpecify the collection period in “days”, and the default is the last 7 days.
A.B.C.DSpecify the IP address of the remote server/host, if not, the file will be placed in the /tmp directory of the switch by default.
user_nameSpecify the user name of the remote server/host.
pathSpecify the destination file path.
port_numberSpecify the transfer port number, and the default is 22.

[View] Privileged User View

[Notes] When you caught an abnormal while the switch is working, please run this command. It will conveniently collect the status, table entries, and syslogs of the device to pack them into a file. The filename starts with diag_collect. We will provide you with necessary technical support.

[Use Cases]

sonic# techsupport time 1
collect syslog in 1 days
Information collection completed, files ready for transmission...