If the optical module has been inserted into an interface, you can run the display transceiver interface command to view the type of the optical module.
display transceiver xgigabitethernet 2/0/0
XGigabitEthernet2/0/0 transceiver information:
-------------------------------------------------------------
Common information:
Transceiver Type :XFP-STM64-LX-SM1310
Connector Type :LC
Wavelength(nm) :1310
Transfer Distance(m) :100000(9um)
Digital Diagnostic Monitoring :YES
Vendor Name :HUAWEI
Vendor Part Number :02315208
Ordering Name :
-------------------------------------------------------------
Manufacture information:
Manu. Serial Number :210231520810E4000803
Manufacturing Date :2013-09-11
Vendor Name :HUAWEI
-------------------------------------------------------------
Alarm information:
RX loss of signal
RX power low
-------------------------------------------------------------