How to obtain inventory/usage of SFP modules?

Is there any simple way to obtain the SFP data (serial numbers and DDM info) for all the SFP modules installed in one equipment?
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:
/interface ethernet monitor [find sfp-module-present=yes] onceThis doesn’t work at present …

Hello,

I know my answer will be a little late, but I only had a similar problem just now.
I used the following script to read out all ethernet interfaces, it can certainly be improved, but it’s a start point.

:foreach i in=([/interface ethernet find ]) do={
    :local iterfacename [/interface ethernet get $i default-name ] 
    /interface ethernet monitor $iterfacename once without-paging
}

Showing only the interfaces where the default names contain “sfp”:

:foreach i in=([/interface ethernet find default-name~"sfp" ]) do={
    :local iterfacename [/interface ethernet get $i default-name ] 
    :/interface ethernet monitor $iterfacename once without-paging
}

And a bit shorter by skipping the usage of a variable and setting the path:

/interface ethernet; :foreach i in=([find default-name~"sfp"]) do={monitor [get $i default-name] once without-paging}

Thanks, that’s really handy!