That command will work if the port and the transceiver support Digital Diagnostic Monitoring Interface (DDMI).
If you issue the command on a port that does not support DDMI you will get an error message like this:
Port 3:1 This command is not supported on this port. All ports and
transceiver of the ports requested in the command need to support DDMI.If you issue the command on a port that supports DDMI, but the transceiver does not support it you will get an error message like this
Port 3:1 This media/transceiver does not support enhanced digital diagnostic
monitoring interface (DDMI). All ports and transceiver of the ports requested
in the command need to support DDMI.The command is available on the following platforms:
• BlackDiamond 8800—10G8Xc, 10G4Xc modules and S-10G1Xc option cards with 10G XFP optics
• BlackDiamond 8900—10G8X-xl modules and S-10G1Xc option cards with 10G XFP optics
• Summit X250e switches—SFP ZX and LX100 optics
• Summit X450a, X450e switches—SFP ZX and LX100 optics
• Summit X460 switch—SFP ZX and LX100 optics
• Summit X480 switches and X480 VIM2-10G4X—XFP and SFP ZX and LX100 optics
• Summit X650 switches—SFP ZX and LX100 optics —SFP+ optics ER/LR
• Summit X670 switches—SFP ZX and LX100 1G optics —SFP+ 10G optics