Create apilogs.sh
Create apilogs.sh

This script does 2 things:

1. Does a complete dump of all the API logs within the chassis, and saves it to a file.
2. Can do a "tail" of the logs so you can see what's being logged in realtime.

Both are useful for troubleshooting, since end users don't get log exposure. It does require both netcat and a functional key pair for it to connect and pull the logs. The API-pull key pair can only be entered by AMD Seamicro Field personnel since it accesses a different auth layer of the chassis.
seamicro/scripts,seamicro/scripts