The Cisco CLI Analyzer is a standalone SSH client infused with Cisco TAC Intellectual Capital, and is available for Windows and Mac OS X platforms.
The TAC Data Collection tool is part of the CLI Analyzer and allows automatic collection of diagnostic commands requested by your TAC engineer. This is supported on ASA, IOS, IOS-XE, IOS-XR, NX-OS, WLC, and UCS platforms.
If you already have the CLI Analyzer installed, you may go directly to this video for a demo of the TAC Data Collection tool.
Collecting show commands from a device and sending the output to a TAC engineer appears to be a simple task, but often it is not. Errors created by copy-pasting commands to the device, terminal length cutting off outputs, email attachments too large, emails sent to one engineer while the TAC case is re-queued to another engineer in addition to the time it takes to complete this task and for TAC to follow up to correct any issues with collection errors. It should be faster and simpler. Now it is...
The TAC Data Collection Tool was created to make this process more reliable and easier.
This document will guide you through your first data collection.
Email From TAC Engineer
The TAC Data Collection process is initiated by a TAC engineer when diagnostic commands are needed from one or more of your devices.
The TAC engineer creates a data collection request identified by a TaskID which points a list of commands to collect and upload to your TAC case. A TaskID looks like "#TAC-D0A6-2561" (with the # sign and without the quotes). The TaskID needs to be entered in the CLI Analyzer to tell the tool which commands to collect and which case they should be uploaded to.
Note: Ensure you only run the TAC Data Collection tool on the device(s) your TAC engineer has requested.
This TaskID is shared by the TAC engineer in an email to the case contact similar to the one below:
-------- Forwarded Message --------
Data collection task #TAC-D0A6-2561 for TAC case 681631261
As explained in the email, using the CLI Analyzer to collect the commands is optional and customers may still collect commands with their favorite telnet/SSH client and send them to the TAC engineer by email or through the Case File Uploader.
This document will guide you through the steps to collect the commands with the TAC Data Collection tool.
Step 1. Install CLI Analyzer
If you're already running CLI Analyzer 3.2 or above, you can skip this step.
You should be able to follow the install procedure on Mac or Windows relatively easily by selecting the defaults.
First Run - Master Password
The CLI Analyzer can remember the device credentials. A master password is used to protect these credentials on your computer:
This master password will be requested each time you open the CLI Analyzer again in the future to be able to unlock the device credentials.
After entering the master password, the main window appears:
The "Devices" tab is selected and this is where you will find all your saved devices. Once you have a few devices created, you can search by name, location, version, labels etc to limit the number of devices being displayed.
Step 2. Connect to the Device
There are 3 ways to create new devices and connect to them:
Click "New Session" in the left toolbar and enter the destination IP address or hostname, the type (SSH, telnet, serial port or shared/screen sharing) and the port number. This will connect you directly to the device but this will also created a bookmark for this device under the "Devices" tab.
When the "Devices" tab is selected, click the "+" sign (with a red circle in the screenshot above) to first create a bookmark for the device.
When creating or editing a device, you can set some fields like a location or label(s) which can help limit the number of devices when searching for them. Here is how the "Devices" tab looks like after creating 3 new devices but filtering on "Euro-TAC" to only display devices whose location has been set to Euro-TAC:
Now you can connect to the device by clicking on "New Session" in the left bar or click on the connect button below the device (red circle in screenshot above).
Detecting Device Type
When the CLI Analyzer logs into a device for the first time, it runs a few commands automatically to detect the device type:
You can see in the screen shot above that the commands "show version" and "admin show diag chassis" were executed. Some commands on some platforms may take a few seconds to complete so let it run until the "Device Information" is displayed.
In the example above, the CLI Analyzer detected that this is an IOS-XR device as indicated at the bottom right of the screen (red circle).
If you reach the final device through some intermediate hops (jump server or other routers or switches), it's possible that the CLI Analyzer won't detect the correct device type. Always check the device type at the bottom right of the window. If it does not appear to be set correctly, click on the "Refresh Device Information" button at the bottom right of the window (green circle in the previous screenshot above).
When connecting frequently to devices, this device detection process may not be desired. By default, the CLI Analyzer will cache this info for up to 30 days (detection frequency is configurable in the settings). This means that if you upgrade the software version on a device, it will still appear with the previous software version in the "Devices" tab for up to 30 days. You may want to click on the "Refresh Device Information" button at the bottom right of the window (green circle in the previous screenshot above) after an upgrade.
Step 3. Run the TAC Data Collection Tool
Once connected to the correct device, click on the "Tools" button in the top right corner:
Click on the "TAC Data Collection" and a first form will appear:
The goal of this first form is to enter a TaskID. This is the TaskID you should have received from the TAC engineer via email.
If your CCO ID is the case contact, then the TaskID should appear in the "Select recent TaskID" dropdown and you just need to select the correct one in the dropdown (you may have multiple TaskID's for the same case or from different cases). Note: Be sure the "CCO Login field in CLI Analyzer reflects the same CCO ID associated with the TAC case in question. Otherwise, use the process that follows below.
If the email from the TAC engineer was forwarded to you by a colleague who is the case contact, then your username will not be associated with the service request and the CLI Analyzer will NOT be able to display the TaskID in the dropdown. Therefore, you will have to copy-paste the TaskID from the email to the "Enter TaskID manually" text box.
Note: If there's a TaskID selected in the dropdown and also one entered manually, then the one entered manually takes precedence.
Click "Continue" and the CLI Analyzer will retrieve the list of commands associated with this TaskID, display the list and ask you whether you want to proceed and collect the commands:
The "term len 0" is inserted as the first command and the original terminal length is reset at the end. So the 2 interesting commands are the ones in the middle in the example above. Press "Continue" if you agree to collect these 2 commands and send their outputs to the TAC case.
Commands are collected:
Once all commands are collected, the outputs are posted through the Cisco APIs, attached to the TAC service request and a result window appears:
Your Cisco TAC engineer is notified of the collection so the next step is to review the outputs and get back to you with the analysis and action plan.
Please review this video for a demo of the TAC Data Collection process.
Other CLI Analyzer Features
Apart from the TAC Data Collection tool, here are some other CLI Analyzer features that you may find useful:
Since the last update, the terminal displays weird behavior during ssh sessions. Just this morning I was able to capture it during a configuration of a switch. This was after pasting commands from a text file. The display would blank and only scrolling wo...
Since upgrading to 3.6.5, every file analyse I do, comes back with the error 'Cisco File Analysis is currently unavailable [UPLOAD_FAILED]' I am seeing a lot of this on the community page, is this an issue with 3.6.5? It worked perfectly fine on the ...
Updated to 3.6.5 and trying to run diagnostics on 9300-24UX stack running connection is generating an error of an unexpected packet type from my PC and that the connection is being broken. The only connection at the time is from CLI Analyzer and whi...
I have a show tech from a Nexus 7K. Whenever I run it through the CLI File Analysis I get the error that it is "Unable to determine the output you provided. Ensure you provide a "show version" at the top of the output to help." I collected the ...
Hi, I'm running through a bunch of devices through the file analysis section. The tool shows the devices nicely in itself but the only option to export is in JSON and it is not human readable.Does anyone know how to make this export render nicely in a bro...