If your automation system can support REST JSONRPC, then you can get optics detailed information beginning with EXOS 21.1.1.4 by providing the CLI command but getting the JSON data returned.
The example below using curl sends the EXOS CLI command
show port 32 transceiver information detail to the switch /jsonrpc URL.
curl --user
admin:pass -k -i -X POST -H "Content-Type:application/json; indent=4" -d '{"method":"cli","id":"10","jsonrpc":"2.0","params":["
show port 32 transceiver information detail"]}'
http://10.68.65.81/jsonrpc
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 4686
Set-Cookie: session=.eJwFwcFOwyAAANBfMZw9QLsuWZMd3GQs6JhSoMDF0EDSWIqkrk677N997wbE1xASqG_goQM1sDq-OEKPpohvTmaqdKYnWeVGM9opAw1klA1ISsHOCmMkUp6C3Dz7IvYKmmvT5p-AK2yWA-NYrUTklBHLX0dVNWnn3uFQNC0irqC6OyrafT7NJ4jWAa9-1SFyPvhKlL40S196GGdPNt9M2XU79n9n7KVGu70k1IolTva63YL7I_jIYRpdCukC6ss0h_s_d0hFlQ.Csx1SQ.9Bs5tJDZrkzfyNr36G7sU-MmKpg; Expires=Wed, 28-Sep-2016 21:25:29 GMT; HttpOnly; Path=/
Date: Tue, 27 Sep 2016 21:25:29 GMT
{
"id": "10",
"jsonrpc": "2.0",
"result": [
{
"CLIoutput": "\nPort : 32 \n\n Media Type : SF+_SR \n Vendor Name : FINISAR CORP. \n Part Number : FTLX8571D3BCL-EX \n Serial Number : 1602P-04154 \n Wavelength : 850 nm\n\n Temp (Celsius) : 32.17 Status : Normal \n Low Warn Threshold : -8.00 High Warn Threshold : 73.00 \n Low Alarm Threshold : -13.00 High Alarm Threshold : 78.00 \n\n Voltage AUX-1/Vcc (Volts) : 3.35 Status : Normal \n Low Warn Threshold : 3.00 High Warn Threshold : 3.60 \n Low Alarm Threshold : 2.90 High Alarm Threshold : 3.70 \n \n\n Tx Power (dBm) : -2.41 Status : Normal \n Low Warn Threshold : -5.00 High Warn Threshold : -1.00 \n Low Alarm Threshold : -6.00 High Alarm Threshold : 0.00 \n\n Rx Power (dBm) : -2.56 Status : Normal \n Low Warn Threshold : -18.01 High Warn Threshold : -1.00 \n Low Alarm Threshold : -20.00 High Alarm Threshold : 0.00 \n\n Tx Bias Current (mA): 7.69 Status : Normal \n Low Warn Threshold : 5.00 High Warn Threshold : 12.60 \n Low Alarm Threshold : 4.00 High Alarm Threshold : 13.20 \n\n"
},
{
"show_ports_transceiver": {
"channelNum": 0,
"mainChannel": 1,
"mediaType": "SF+_SR ",
"numChannels": 1,
"partNumber": "FTLX8571D3BCL-EX",
"partNumberIsValid": 1,
"port": 32,
"portList": 32,
"rxPower": "-2.560201",
"rxPowerIsValid": 1,
"rxPwrHighAlarmTshld": "0.000000",
"rxPwrHighAlarmTshldIsValid": 1,
"rxPwrHighWarnTshld": "-1.000154",
"rxPwrHighWarnTshldIsValid": 1,
"rxPwrLowAlarmTshld": "-20.000000",
"rxPwrLowAlarmTshldIsValid": 1,
"rxPwrLowWarnTshld": "-18.013430",
"rxPwrLowWarnTshldIsValid": 1,
"rxPwrStatus": 1,
"rxPwrStatusIsValid": 1,
"slNumber": "1602P-04154 ",
"slNumberIsValid": 1,
"temp": "32.171875",
"tempHighAlarmTshld": "78.000000",
"tempHighAlarmTshldIsValid": 1,
"tempHighWarnTshld": "73.000000",
"tempHighWarnTshldIsValid": 1,
"tempIsValid": 1,
"tempLowAlarmTshld": "-13.000000",
"tempLowAlarmTshldIsValid": 1,
"tempLowWarnTshld": "-8.000000",
"tempLowWarnTshldIsValid": 1,
"tempStatus": 1,
"tempStatusIsValid": 1,
"txBiasCurrHighAlarmTshld": "13.200000",
"txBiasCurrHighAlarmTshldIsValid": 1,
"txBiasCurrHighWarnTshld": "12.600000",
"txBiasCurrHighWarnTshldIsValid": 1,
"txBiasCurrLowAlarmTshld": "4.000000",
"txBiasCurrLowAlarmTshldIsValid": 1,
"txBiasCurrLowWarnTshld": "5.000000",
"txBiasCurrLowWarnTshldIsValid": 1,
"txBiasCurrStatus": 1,
"txBiasCurrStatusIsValid": 1,
"txBiasCurrent": "7.694000",
"txBiasCurrentIsValid": 1,
"txPower": "-2.413909",
"txPowerIsValid": 1,
"txPwrHighAlarmTshld": "0.000000",
"txPwrHighAlarmTshldIsValid": 1,
"txPwrHighWarnTshld": "-1.000154",
"txPwrHighWarnTshldIsValid": 1,
"txPwrLowAlarmTshld": "-5.999804",
"txPwrLowAlarmTshldIsValid": 1,
"txPwrLowWarnTshld": "-5.000381",
"txPwrLowWarnTshldIsValid": 1,
"txPwrStatus": 1,
"txPwrStatusIsValid": 1,
"vendorName": "FINISAR CORP. ",
"voltAux1HighAlarmTshld": "3.700000",
"voltAux1HighAlarmTshldIsValid": 1,
"voltAux1HighWarnTshld": "3.600000",
"voltAux1HighWarnTshldIsValid": 1,
"voltAux1LowAlarmTshld": "2.900000",
"voltAux1LowAlarmTshldIsValid": 1,
"voltAux1LowWarnTshld": "3.000000",
"voltAux1LowWarnTshldIsValid": 1,
"voltAux1Status": 1,
"voltAux1StatusIsValid": 1,
"voltAux2HighAlarmTshldIsValid": 0,
"voltAux2HighWarnTshldIsValid": 0,
"voltAux2LowAlarmTshldIsValid": 0,
"voltAux2LowWarnTshldIsValid": 0,
"voltAux2Status": 0,
"voltAux2StatusIsValid": 0,
"voltageAux1": "3.348800",
"voltageAux1IsValid": 1,
"voltageAux2IsValid": 0,
"wavelength": 850,
"wavelengthIsValid": 1
},
"status": "SUCCESS"
}
]