Command Line Reference
System Configuration
Techsupport
3 min
techsupport techsupport table 1 techsupport config table 1 techsupport config 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 techsupport \[time techsupport \[time days |transmission remote ip a b c d remote user user name remote path path \[port port number ]] \[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] sonic# techsupport time 1 collect syslog in 1 days information collection completed, files ready for transmission
