Cisco SFP and Port Commands

Dec 2019
I purchased some SFPs to go in to a Cisco 10GB switch, and found they did not work in my switch. While investigating the fault, I found some useful commands to help me.
These commands seem to work on both Cisco IOS and the Nexus switches, alebit with some slightly different syntax.

Show Inventory

Show Inventory - sh inventory displays information about the switch hardware options:

NAME: "Chassis", DESCR: "Nexus 3548 Chassis"
PID: N3K-C3548P-10G , VID: V02 , SN: FOC1822R0WS
NAME: "Module 1", DESCR: "48x10GE Supervisor"
PID: N3K-C3548P-10G , VID: V02 , SN: FOC18220S2A
NAME: "Fan 1", DESCR: "Chassis fan module"
PID: NXA-FAN-30CFM-F , VID: N/A , SN: N/A
NAME: "Fan 2", DESCR: "Chassis fan module"
PID: NXA-FAN-30CFM-F , VID: N/A , SN: N/A
NAME: "Fan 3", DESCR: "Chassis fan module"
PID: NXA-FAN-30CFM-F , VID: N/A , SN: N/A
NAME: "Fan 4", DESCR: "Chassis fan module"
PID: NXA-FAN-30CFM-F , VID: N/A , SN: N/A
NAME: "Power supply 1", DESCR: "AC power supply"
PID: N2200-PAC-400W , VID: V04 , SN: DTN1817P5GC
NAME: "Power supply 2", DESCR: "AC power supply"
PID: N2200-PAC-400W , VID: V04 , SN: DTN1817P5Q1