Skip to main content
cmaheu
Staff
Staff
June 17, 2020

Technical Tip: Legend listing in Cisco CLI causes issues reading data

  • June 17, 2020
  • 0 replies
  • 1255 views

Description
L2 poll completes but no MAC addresses are read.  This was observed with a Cisco 6500 running IOS 15.5.  The problem was due to the "show mac address-table" command returning a Legend that included the # character.


Example.
CAD502AiL3#show mac address-table
 
Legend: * - primary entry
        age - seconds since last seen
        n/a - not available
        S - secure entry
        R - router's gateway mac address entry
        D - Duplicate mac address entry
        # - Fabric mac address entry. Clear mac cli doesn't clear this entry
 
 

The read process uses the # character to indicate when the data read has completed.  The # mentioned in the legend causes the read process to exit before collecting all the MAC data.


Scope
Version: 8.x

Solution

Workaround.
Configure the appliance to ignore the "# -" string.  This will allow the read process to continue properly.  Contact support for assistance.
 
Note the following.
  • This change affects all switches managed using this particular file.  If there are some Dell switches not using the directory for enable level access, this change could break their CLI access.
  • Changes must be made after each appliance upgrade
  • Changes must be performed in both Primary and Secondary Control Servers in High Availability configurations
  • Changes must be performed on all PODs managing these switches

Solution.
Disable the legend on each switch.
 

Workaround:
1.  Login to the appliance CLI and identify which Cisco telnetMIB file is used for the affected switch.  This can be identified in the output.master log with TelnetServer debug enabled.  The entry appears just before establishing the SSH connection to the device. 

Alternatively, it can be obtained by running the command
getmibfile -ip <device IP>

2. Add the following entry to the Cisco MIB file in the /bsc/campusMgr/master_loader/telnetMibs directory to ignore the “# -“ string
 
TELNET_IGNORE_STRINGS=
{
        IGNORE=# -
}
 

3. Re-run L2 poll and verify the data updates.  In CLI type
ReadForwardingTbl -ip <device ip>
 
4.  Create or modify current README file in /bsc/campusMgrUpdates to indicate these settings will need to be re-done after an upgrade.

Example:

---------------------------------------------------------------------------
Ticket <FortiCare ticket number>  <Date> <support eng initials>
       

Add the following entry to the Cisco MIB file

/bsc/campusMgr/master_loader/telnetMibs/<Cisco MIB filename> to ignore the “# -“ string. 
 
This allows L2 polling data to be read in full and prevent the read process from exiting prematurely when Cisco switch returns a Legend in the output for "show mac address-table" command.

 
TELNET_IGNORE_STRINGS=
{
        IGNORE=# -
}