|Question||How can we send the output of show commands ran in CLI during troubleshooting to a file on the controller?|
|Environment||This article applies to AOS 6.3 and above|
While running the show commands in the CLI during troubleshooting, if we add "| redirect-output" to any show command.
#show ap active | redirect-output
'show ap active ' is written into redirect-output.log ...
File will be created if it doesn’t exist or the show output will be appended to the file if the file already exists
This file would appears under “dir” and can be extracted using ftp/tftp/scp
-rw-r--r-- 1 root root 33995 Jun 27 19:44 redirect-output.log