A complex script iterating thru all the SFP interfaces doesn't seem practical.
Some print command (eg. /interface ethernet sfp print ) should print a summary about each SFP/SFP+ interface model installed in each interface.
To obtain all the serial numbers and DDM info (ex. optical powers and wavelength) the /interface ethernet monitor should allow some filtering like:
Code: Select all
/interface ethernet monitor [find sfp-module-present=yes] once