Showing a transceiver serial in Cisco IOS
Sometimes, you want to see the serial number of a transceiver in a Cisco switch (e.g, a GLC-SX-MM=). You can see the transceiver serial number by typing the following command;
switch#sh idprom interface gigabitEthernet x/y | i Serial
The i serial is optional to filter out the Serial number.
show inventory