You can collect data directly from a switch command-line interface (CLI) by using a script command.
If you are directed to collect data directly from a switch command-line interface, typically you would capture the output by using the script command, which is available on both the Linux® and AIX® operating systems. The script command captures the standard output (stdout) from the Telnet or ssh session by using the switch and places it into a file.
To use the script command, perform the following steps: