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 …
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
}