Check whether backend (pslave) or frontend (slave) interfaces are UP. In the example below, some frontend interfaces are down.

admin@ecs-n01:~> viprexec -i 'ip link show | egrep "slave-|public"'

Output from host : 192.168.219.1 
2: pslave-0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master private state UP mode DEFAULT group default qlen 1000
3: pslave-1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master private state UP mode DEFAULT group default qlen 1000
4: slave-0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master public state UP mode DEFAULT group default qlen 1000
5: slave-1: <NO-CARRIER,BROADCAST,MULTICAST,SLAVE,UP> mtu 1500 qdisc mq master public state DOWN mode DEFAULT group default qlen 1000
7: public: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000

Output from host : 192.168.219.2 
2: pslave-0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master private state UP mode DEFAULT group default qlen 1000
3: pslave-1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master private state UP mode DEFAULT group default qlen 1000
4: slave-0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master public state UP mode DEFAULT group default qlen 1000
5: slave-1: <NO-CARRIER,BROADCAST,MULTICAST,SLAVE,UP> mtu 1500 qdisc mq master public state DOWN mode DEFAULT group default qlen 1000
7: public: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000

Output from host : 192.168.219.3 
2: pslave-0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master private state UP mode DEFAULT group default qlen 1000
3: pslave-1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master private state UP mode DEFAULT group default qlen 1000
4: slave-0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master public state UP mode DEFAULT group default qlen 1000
5: slave-1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master public state UP mode DEFAULT group default qlen 1000
7: public: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000

Output from host : 192.168.219.4 
2: pslave-0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master private state UP mode DEFAULT group default qlen 1000
3: pslave-1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master private state UP mode DEFAULT group default qlen 1000
4: slave-0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master public state UP mode DEFAULT group default qlen 1000
5: slave-1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master public state UP mode DEFAULT group default qlen 1000
7: public: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000

Output from host : 192.168.219.5 
2: pslave-0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master private state UP mode DEFAULT group default qlen 1000
3: pslave-1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master private state UP mode DEFAULT group default qlen 1000
4: slave-0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master public state UP mode DEFAULT group default qlen 1000
5: slave-1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master public state UP mode DEFAULT group default qlen 1000
14: public: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000

Output from host : 192.168.219.6 
2: pslave-0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master private state UP mode DEFAULT group default qlen 1000
3: pslave-1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master private state UP mode DEFAULT group default qlen 1000
4: slave-0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master public state UP mode DEFAULT group default qlen 1000
5: slave-1: <NO-CARRIER,BROADCAST,MULTICAST,SLAVE,UP> mtu 1500 qdisc mq master public state DOWN mode DEFAULT group default qlen 1000
7: public: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000

Output from host : 192.168.219.7 
2: pslave-0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master private state UP mode DEFAULT group default qlen 1000
3: pslave-1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 9000 qdisc mq master private state UP mode DEFAULT group default qlen 1000
4: slave-0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master public state UP mode DEFAULT group default qlen 1000
5: slave-1: <NO-CARRIER,BROADCAST,MULTICAST,SLAVE,UP> mtu 1500 qdisc mq master public state DOWN mode DEFAULT group default qlen 1000
12: public: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
admin@ecs-n01:~>

Another way of checking link up/down on all interfaces, is using ethtool command.

admin@ecs-n01:~> viprexec "sudo ethtool slave-0 | egrep 'Settings|Link detected'; sudo ethtool slave-1 | egrep 'Settings|Link detected'; sudo ethtool pslave-0 | egrep 'Settings|Link detected'; sudo ethtool pslave-1 | egrep 'Settings|Link detected'"

Output from host : 192.168.219.1 
Settings for slave-0:
        Link detected: yes
Settings for slave-1:
        Link detected: no
Settings for pslave-0:
        Link detected: yes
Settings for pslave-1:
        Link detected: yes

Output from host : 192.168.219.5 
Settings for slave-0:
        Link detected: yes
Settings for slave-1:
        Link detected: yes
Settings for pslave-0:
        Link detected: yes
Settings for pslave-1:
        Link detected: yes

Output from host : 192.168.219.7 
Settings for slave-0:
        Link detected: yes
Settings for slave-1:
        Link detected: no
Settings for pslave-0:
        Link detected: yes
Settings for pslave-1:
        Link detected: yes

Output from host : 192.168.219.6 
Settings for slave-0:
        Link detected: yes
Settings for slave-1:
        Link detected: no
Settings for pslave-0:
        Link detected: yes
Settings for pslave-1:
        Link detected: yes

Output from host : 192.168.219.2 
Settings for slave-0:
        Link detected: yes
Settings for slave-1:
        Link detected: no
Settings for pslave-0:
        Link detected: yes
Settings for pslave-1:
        Link detected: yes

Output from host : 192.168.219.3 
Settings for slave-0:
        Link detected: yes
Settings for slave-1:
        Link detected: yes
Settings for pslave-0:
        Link detected: yes
Settings for pslave-1:
        Link detected: yes

Output from host : 192.168.219.4 
Settings for slave-0:
        Link detected: yes
Settings for slave-1:
        Link detected: yes
Settings for pslave-0:
        Link detected: yes
Settings for pslave-1:
        Link detected: yes
admin@ecs-n01:~>

Check connections to the switches, using lldpcli command. This way you will see to which switch / port every interface is connected.

admin@ecs-n03:~> sudo lldpcli show neighbor
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
Interface:    pslave-0, via: LLDP, RID: 4, Time: 24 days, 20:36:14
  Chassis:     
    ChassisID:    mac d8:9e:f3:xx:xx:xx
    SysName:      fox
    SysDescr:     Dell EMC Networking OS10-Enterprise.
                  Copyright (c) 1999-2019 by Dell Inc. All Rights Reserved.
                  System Description: OS10 Enterprise.
                  OS Version: 10.4.3.6C1.
                  System Type: S5148F-ON
    Capability:   Repeater, on
    Capability:   Bridge, on
    Capability:   Router, on
  Port:        
    PortID:       ifname ethernet1/1/3
    PortDescr:    Nile Node03
    TTL:          120
  Unknown TLVs:
    TLV:          OUI: F8,B1,56, SubType: 21, Len: 7 43,4E,56,30,30,51,32
    TLV:          OUI: F8,B1,56, SubType: 22, Len: 1 20
    TLV:          OUI: F8,B1,56, SubType: 23, Len: 1 20
    TLV:          OUI: F8,B1,56, SubType: 24, Len: 1 20
-------------------------------------------------------------------------------
Interface:    pslave-1, via: LLDP, RID: 1, Time: 24 days, 20:36:14
  Chassis:     
    ChassisID:    mac d8:9e:f3:xx:xx:xx
    SysName:      hound
    SysDescr:     Dell EMC Networking OS10-Enterprise.
                  Copyright (c) 1999-2019 by Dell Inc. All Rights Reserved.
                  System Description: OS10 Enterprise.
                  OS Version: 10.4.3.6C1.
                  System Type: S5148F-ON
    Capability:   Repeater, on
    Capability:   Bridge, on
    Capability:   Router, on
  Port:        
    PortID:       ifname ethernet1/1/3
    PortDescr:    Nile Node03
    TTL:          120
  Unknown TLVs:
    TLV:          OUI: F8,B1,56, SubType: 21, Len: 7 43,50,34,30,30,51,32
    TLV:          OUI: F8,B1,56, SubType: 22, Len: 1 20
    TLV:          OUI: F8,B1,56, SubType: 23, Len: 1 20
    TLV:          OUI: F8,B1,56, SubType: 24, Len: 1 20
-------------------------------------------------------------------------------
Interface:    slave-0, via: LLDP, RID: 2, Time: 0 day, 04:50:25
  Chassis:     
    ChassisID:    mac 4c:71:0d:xx:xx:xx
    SysName:      nx-sw01
    SysDescr:     Cisco Nexus Operating System (NX-OS) Software 10.2(5)
                  TAC support: http://www.cisco.com/tac
                  Copyright (c) 2002-2023, Cisco Systems, Inc. All rights reserved.
    MgmtIP:       172.25.123.3
    Capability:   Bridge, on
    Capability:   Router, on
  Port:        
    PortID:       ifname Ethernet1/23
    PortDescr:    ecs-n03 s0
    TTL:          120
  Unknown TLVs:
    TLV:          OUI: 00,01,42, SubType: 8, Len: 11 46,44,4F,32,33,33,37,30,54,38,31
-------------------------------------------------------------------------------
Interface:    slave-1, via: LLDP, RID: 5, Time: 0 day, 04:46:45
  Chassis:     
    ChassisID:    mac 4c:71:0d:xx:xx:xx
    SysName:      nx-sw02
    SysDescr:     Cisco Nexus Operating System (NX-OS) Software 10.2(5)
                  TAC support: http://www.cisco.com/tac
                  Copyright (c) 2002-2023, Cisco Systems, Inc. All rights reserved.
    MgmtIP:       172.25.123.4
    Capability:   Bridge, on
    Capability:   Router, on
  Port:        
    PortID:       ifname Ethernet1/23
    PortDescr:    ecs-n03 s1
    TTL:          120
  Unknown TLVs:
    TLV:          OUI: 00,01,42, SubType: 1, Len: 1 01
    TLV:          OUI: 00,01,42, SubType: 8, Len: 11 46,44,4F,32,33,33,37,30,54,35,46
-------------------------------------------------------------------------------
admin@ecs-03:~>

Display all information about an interface using ethtool command:

admin@ecs-n01:~> sudo ethtool slave-0
Settings for slave-0:
        Supported ports: [ FIBRE ]
        Supported link modes:   10000baseT/Full 
        Supported pause frame use: Symmetric
        Supports auto-negotiation: No
        Advertised link modes:  10000baseT/Full 
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Speed: 10000Mb/s
        Duplex: Full
        Port: Direct Attach Copper
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        Supports Wake-on: g
        Wake-on: g
        Current message level: 0x0000000f (15)
                               drv probe link timer
        Link detected: yes
admin@ecs-n01:~>

Using the -m parameter on the ethtool command, it will return info regarding the connected module (transceiver):

admin@ecs-n01:~> sudo ethtool -m slave-0
        Identifier                                : 0x03 (SFP)
        Extended identifier                       : 0x04 (GBIC/SFP defined by 2-wire interface ID)
        Connector                                 : 0x21 (Copper pigtail)
        Transceiver codes                         : 0x01 0x00 0x00 0x00 0x41 0x84 0x80 0x55
        Transceiver type                          : Infiniband: 1X Copper Passive
        Transceiver type                          : FC: short distance (S)
        Transceiver type                          : FC: Electrical inter-enclosure (EL)
        Transceiver type                          : FC: Electrical intra-enclosure (EL)
        Transceiver type                          : Passive Cable
        Transceiver type                          : FC: Twin Axial Pair (TW)
        Transceiver type                          : FC: 800 MBytes/sec
        Transceiver type                          : FC: 400 MBytes/sec
        Transceiver type                          : FC: 200 MBytes/sec
        Transceiver type                          : FC: 100 MBytes/sec
        Encoding                                  : 0x00 (unspecified)
        BR, Nominal                               : 10300MBd
        Rate identifier                           : 0x00 (unspecified)
        Length (SMF,km)                           : 0km
        Length (SMF)                              : 0m
        Length (50um)                             : 0m
        Length (62.5um)                           : 0m
        Length (Copper)                           : 5m
        Length (OM3)                              : 0m
        Passive Cu cmplnce.                       : 0x01 (SFF-8431 appendix E) [SFF-8472 rev10.4 only]
        Vendor name                               : Amphenol
        Vendor OUI                                : 78:a7:14
        Vendor PN                                 : 616740005
        Vendor rev                                : C
        Option values                             : 0x00 0x00
        BR margin, max                            : 0%
        BR margin, min                            : 0%
        Vendor SN                                 : CN0358XXXXXXXXXX
        Date code                                 : 180622
admin@ecs-n01:~>

If no transceiver is inserted, ethtool -m command will return an eror:

admin@ecs-n01:~> sudo ethtool -m slave-1
Cannot get module EEPROM information: Invalid argument
admin@ecs-n01:~>

Leave a Reply