Symptom
[+] Both commands 'show interface transceiver' & 'show interface transceiver detail' are not showing all transceivers listed in the outputs.
[+] The behavior is arbitrary, most of the times the output can be seen correctly, in a ramdom fashion the outputs are incomplete with no apparent cause or specific condition.
[+] The problem can be seen on C9300-48P, C9300-24T, C9300-24P and C9500-40x.
[+] The command 'show inventory' is working without any problems.
[+] Tested with version 16.09.04, 16.12.04 and 17.3.3
[+] This behavior does not present any operational impact. Interfaces always work fine.
Conditions
The current conditions are:
Catalyst 9300 and 9500 switches (except high performance models) running 16.09.04, 16.12.04 or 17.3.3.
Workaround
The issue is debugged and found to be expected behavior
Polling of the transceiver data happens every 10 min, in between of polling if we read the transceiver cache memory then read state will go in pending state ,and the data will be available in next iteration once polling is done
We can also change the time interval of transceiver_monitoring_review_interval by using below cli,
switch(config)#transceiver type all
switch(config-xcvr-type)#monitoring interval ?
Time interval for monitoring transceiver in seconds
Further Problem Description