New Post has been published on http://www.eventenrichment.org/event-enrichment-cisco-switch-duplexmismatch/
Event Enrichment: Cisco : Switch : DUPLEXMISMATCH
Next up in our ongoing Event Enrichment series; a generic enrichment providing triage steps for duplex mismatch errors for Cisco routers and switches.
While enjoying your shift in the quiet solitude of the NOC ;), you suddenly receive an alert from PagerDuty or your NMS. Depending on your level of expertise, you would typically need to open a runbook or Ops Wiki to determine how to handle the event.
Instead, let’s explore a different method, Event Enrichment, using the following syslog entry as our reference.
Jan 14 11:16:45 %CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered on FastEthernet1/0/1 (not half duplex), with TBA04251226 3/2 (half duplex).
Clearly this event has some useful information in it but requires user intervention to investigate the problem. Let’s assume that this same event again arrives at the NOC, this time enriched with the procedure necessary to handle the event.
In that scenario, remediation time will decrease as the information required to properly triage the problem is already embedded in the initial alert.
Cisco : Switch : DUPLEXMISMATCH Event Enrichment
A mismatch on the duplex settings between two devices ( a switch and a router / two switches / a switch and server / etc ) is a common problem. This situation generally occurs when the speed and duplex modes between two devices is left to be set by auto-negotiation rather than specific configuration instruction.
To determine the status of the port on each device, log into the device using either SSH, if available, or telnet.
Next, issue the Cisco Discover Protocol (CDP) command to check the device on the far side of the interface:
sw-01-br#sh cdp neighbors fastEthernet 1/0/1 detail ------------------------- Device ID: sw-06-gr Entry address(es): IP Address: 10.10.11.6 Platform: cisco WS-C3750-48TS, Capabilities: Router Switch IGMP Interface: FastEthernet1/0/1, Port ID (outgoing port): FastEthernet1/0/33 Holdtime : 120 sec Version : Cisco IOS Software, C3750 Software (C3750-IPSERVICESK9-M), Version 12.2(55)SE5, RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2012 by Cisco Systems, Inc. Compiled Thu 09-Feb-12 18:59 by prod_rel_team advertisement version: 2 Protocol Hello: OUI=0x00000C, Protocol ID=0x0112; payload len=27, value=00000000FFFFFFFF010221FF000000000000001562643300FF0000 VTP Management Domain: 'cisco' Native VLAN: 1 Duplex: half Management address(es): IP address: 10.10.11.6
Finally, issue the ‘sh interface’ command to check the interface on this switch:
sw-06-br#sh interfaces fastEthernet 1/0/1 status | b Duplex Port Name Status Vlan Duplex Speed Type Fa1/0/1 connected 1 a-full a-100 10/100BaseTX
Conclusion: There is a duplex mismatch (half versus full) between switch sw-01-gr and sw-06-br. Furthermore there is a port set to auto negotiate which is against best current practice for Cisco interface configurations.
Provide the NetEng team with the following information:
[Jan 14 11:16:45 %CDP-4-DUPLEX_MISMATCH: duplex mismatch discovered on FastEthernet1/0/1 (not half duplex), with TBA04251226 3/2 (half duplex).]
Switch Side A Name [sw-01-br]
Switch Side A Interface [Fa/1/0/1]
Switch Side A Duplex Value [Full]
Switch Side B Name [sw-06-gr]
Switch Side B Interface [Fa/1/0/33]
Switch Side B Duplex Value [Half] <== This port is set to auto-negotiate
Escalate your findings to the On-Call NetEng team using the PagerDuty NetEng Service (or other alerting mechanism).
Adopting the Event Enrichment methodology enhances the standardization and scalability of your NOC and on-call processes.
What are some of the remediations that you use in your infrastructure?
Check out the Beginner’s Guide to Event Enrichment to better your understanding of the methodology.