Cisco N5K-C5010P-BF Troubleshooting Guide - Page 21

Debugs to the Direct Telnet Window, Cisco Discover Protocol

Page 21 highlights

Chapter 1 Troubleshooting Overview Fabric Manager Tools and CLI Commands Send document comments to [email protected]. switch# debug logfile CiscoLive_debugs switch# show debug Display debugging to the screen with the following command: switch# show debug logfile CiscoLive_debugs Copy the debug file from MDS to a server with the copy command. When you enter the VRF, if none is specified then the default is used. switch# copy log:CiscoLive_debugs tftp: Enter vrf: management Enter hostname for the tftp server: 10.91.42.134 Trying to connect to tftp server...... Connection to Server Established. | TFTP put operation was successful To delete the debug logfile, use one of the following commands: switch# clear debug-logfile CiscoLive_debugs switch# undebug all If you do not use one of these commands, the debug logfile will be cleared and overwritten when the next debug logfile is created. The system only allows one debug logfile to exist. Debugs to the Direct Telnet Window • Use a Telnet, SSH, or console application that captures the expected output to buffer or file. • Undebug all or no debug of a specific debug command is required to turn trace off. • The debugs are not persistent across reboots • Most debugs are easy to read and understand, but some are not. Cisco Discover Protocol Cisco Discover Protocol (CDP) version 2 is applied to the physical Ethernet interface and only works when enabled at both ends of the link. LLDP standard is derived from CDP. CDP is used to verify proper connectivity to correct network devices, very useful at switch deployment. The following example shows the arguments that can be used with the show CDP command: switch# show cdp all Show interfaces that are CDP enabled entry Show CDP entries in database global Show CDP global parameters interface Show CDP parameters for an interface neighbors Show CDP neighbors traffic Show CDP traffic statistics switch# show cdp global Global CDP information: CDP enabled globally Sending CDP packets every 60 seconds Sending a holdtime value of 180 seconds Sending CDPv2 advertisements is enabled Sending DeviceID TLV in Default Format OL-25300-01 Cisco Nexus 5000 Series Troubleshooting Guide 1-13

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162

Send document comments to [email protected].
1-13
Cisco Nexus 5000 Series Troubleshooting Guide
OL-25300-01
Chapter 1
Troubleshooting Overview
Fabric Manager Tools and CLI Commands
switch# debug logfile CiscoLive_debugs
switch# show debug
Display debugging to the screen with the following command:
switch# show debug logfile CiscoLive_debugs
Copy the debug file from MDS to a server with the
copy
command. When you enter the VRF, if none is
specified then the default is used.
switch# copy log:CiscoLive_debugs tftp:
Enter vrf: management
Enter hostname for the tftp server: 10.91.42.134
Trying to connect to tftp server
......
Connection to Server Established.
|
TFTP put operation was successful
To delete the debug logfile, use one of the following commands:
switch# clear debug-logfile CiscoLive_debugs
switch# undebug all
If you do not use one of these commands, the debug logfile will be cleared and overwritten when the
next debug logfile is created. The system only allows one debug logfile to exist.
Debugs to the Direct Telnet Window
Use a Telnet, SSH, or console application that captures the expected output to buffer or file.
Undebug all or no debug of a specific debug command is required to turn trace off.
The debugs are not persistent across reboots
Most debugs are easy to read and understand, but some are not.
Cisco Discover Protocol
Cisco Discover Protocol (CDP) version 2 is applied to the physical Ethernet interface and only works
when enabled at both ends of the link. LLDP standard is derived from CDP.
CDP is used to verify proper connectivity to correct network devices, very useful at switch deployment.
The following example shows the arguments that can be used with the
show CDP
command:
switch# show cdp
all
Show interfaces that are CDP enabled
entry
Show CDP entries in database
global
Show CDP global parameters
interface
Show CDP parameters for an interface
neighbors
Show CDP neighbors
traffic
Show CDP traffic statistics
switch# show cdp global
Global CDP information:
CDP enabled globally
Sending CDP packets every 60 seconds
Sending a holdtime value of 180 seconds
Sending CDPv2 advertisements is enabled
Sending DeviceID TLV in Default Format