show inventory

Cisco CLI (Show Inventory)

To display the physical inventory information for switch hardware.

switch# show inventory
3850_Stack_p1#show inventory
NAME: "c38xx Stack", DESCR: "c38xx Stack"
PID: WS-C3850-24XU-E   , VID: V03  , SN: 133231

NAME: "Switch 1", DESCR: "WS-C3850-24XU-E"
PID: WS-C3850-24XU-E   , VID: V03  , SN: 121231231

NAME: "StackPort1/1", DESCR: "StackPort1/1"
PID: STACK-T1-50CM     , VID: V01  , SN: 1123123

I use this command a lot to find SFP’s installed.

switch# show inventory | i SFP

NAME: "Gi1/1/1", DESCR: "1000BaseSX SFP"
NAME: "Gi1/1/2", DESCR: "1000BaseSX SFP"
NAME: "Te1/1/3", DESCR: "1000BaseLX SFP"
NAME: "Gi2/1/1", DESCR: "1000BaseSX SFP"
NAME: "Gi2/1/2", DESCR: "1000BaseSX SFP"
NAME: "Te2/1/3", DESCR: "1000BaseSX SFP"
NAME: "Te2/1/4", DESCR: "SFP-10GBase-LR"
PID: SFP-10G-LR          , VID: V01  , SN: ONT1231231
NAME: "Te3/1/3", DESCR: "1000BaseSX SFP"
NAME: "Gi4/1/1", DESCR: "1000BaseSX SFP"
NAME: "Gi4/1/2", DESCR: "1000BaseLX SFP"
NAME: "Te4/1/3", DESCR: "1000BaseLX SFP"
NAME: "Te4/1/4", DESCR: "10/100/1000BaseTX SFP"
PID: SFP-GE-T            , VID: V02  , SN: 231235121