---
title: Techsupport
slug: aidc/techsupport
createdAt: 2025-12-01T11:11:10.000Z
---

## <font color="#1d50a2">Techsupport</font>

<font color="#1d05a2">Table 1 Techsupport Config</font>

| **Command**                                                                                                                                             | **Purpose**                                |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| **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. |

### <font color="#1d50a2">techsupport \[time *days*|transmission remote-ip *A.B.C.D* remote-user *user\_name* remote-path *path* \[port *port\_number*\]\]</font>

**\[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]**

| **Parameter**  | **Description**                                                                                                                       |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| *days*         | Specify the collection period in “days”, and the default is the last 7 days.                                                          |
| *A.B.C.D*      | Specify 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\_name*   | Specify the user name of the remote server/host.                                                                                      |
| *path*         | Specify the destination file path.                                                                                                    |
| *port\_number* | Specify 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]**

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

