show udld

To display the Unidirectional Link Detection (UDLD) information for a switch, use the show udld command.

show udld [ethernet slot/port | global | neighbors]

Syntax Description

ethernet slot/port

Displays UDLD information for an Ethernet IEEE 802.3z interface. The slot number is from 1 to 255, and the port number is from 1 to 128.

global

Displays the UDLD global status and configuration information on all interfaces.

neighbors

Displays information about UDLD neighbor interfaces.


Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification

4.0(1a)N1(1)

This command was introduced.


Examples

This example shows how to display UDLD information for all interfaces:

switch# show udld 

Interface Ethernet1/1
--------------------------------
Port enable administrative configuration setting: device-default
Port enable operational state: enabled
Current bidirectional state: bidirectional
Current operational state:  advertisement - Single neighbor detected
Message interval: 15
Timeout interval: 5

        Entry 1
        ----------------
        Expiration time: 41
        Cache Device index: 1
        Current neighbor state: bidirectional
        Device ID: FLC12280095
        Port ID: Ethernet1/1
        Neighbor echo 1 devices: SSI130205RT
        Neighbor echo 1 port: Ethernet1/1

        Message interval: 15
        Timeout interval: 5
        CDP Device name: N5Kswitch-2(FLC12280095)

Interface Ethernet1/2
--------------------------------
Port enable administrative configuration setting: device-default
Port enable operational state: enabled
Current bidirectional state: bidirectional
Current operational state:  advertisement - Single neighbor detected
Message interval: 15
Timeout interval: 5

        Entry 1
        ----------------
--More--
switch# 

This example shows how to display the UDLD information for a specified interface:

switch# show udld ethernet 1/1 

Interface Ethernet1/1
--------------------------------
Port enable administrative configuration setting: device-default
Port enable operational state: enabled
Current bidirectional state: bidirectional
Current operational state:  advertisement - Single neighbor detected
Message interval: 15
Timeout interval: 5

        Entry 1
        ----------------
        Expiration time: 41
        Cache Device index: 1
        Current neighbor state: bidirectional
        Device ID: FLC12280095
        Port ID: Ethernet1/1
        Neighbor echo 1 devices: SSI130205RT
        Neighbor echo 1 port: Ethernet1/1

        Message interval: 15
        Timeout interval: 5
        CDP Device name: N5Kswitch-2(FLC12280095)

switch#

This example shows how to display the UDLD global status and configuration on all interfaces:

switch# show udld global 

UDLD global configuration mode: enabled
UDLD global message interval: 15
switch#

This example shows how to display the UDLD neighbor interfaces:

switch# show udld neighbors 
Port             Device Name    Device ID   Port ID         Neighbor State
--------------------------------------------------------------------------
Ethernet1/1      FLC12280095    1           Ethernet1/1     bidirectional
Ethernet1/2      FLC12280095    1           Ethernet1/2     bidirectional
Ethernet1/3      FLC12280095    1           Ethernet1/3     bidirectional
Ethernet1/4      FLC12280095    1           Ethernet1/4     bidirectional
Ethernet1/7      JAF1346000H    1           Ethernet1/7     bidirectional
Ethernet1/8      JAF1346000H    1           Ethernet1/8     bidirectional
Ethernet1/9      JAF1346000C    1           Ethernet1/9     bidirectional
Ethernet1/10     JAF1346000C    1           Ethernet1/10    bidirectional

switch#

Related Commands

Command
Description

udld (configuration mode)

Configures the UDLD protocol on the switch.

udld (Ethernet)

Configures the UDLD protocol on an Ethernet interface.