Sorry, I wrote "router" instead of "switch"
Now I edited my first message.
These are two models where I have SFP modules plugged in:
HPE OfficeConnect Switch 1820 24G - J9980A
Aruba Instant On 1930 24G Switch - JL683A
In a CLI managed switch, I would use "show interfaces transceiver" or "show tech tansceiver". In these switches I cannot even tell if a port has a module plugged in.
Only in log (and support file) I find an event "SFP plugged", but nothing about module, status etc.
In 1820:
Notice TRAPMGR
SFP inserted in 25
In 1930:
Info NSFP-I-SFPGibicDetected 25 SFP port is present, module type - 1000BASE-SX Notice LINK-N-PortConfRecover Port 25 configured to speed 1G