Symptom
Optics data for all ports on ASR9k is not being sent by router
when we checked the generated info using mdt, we did not seee any data
RP/0/RSP1/CPU0:XR#run mdt_exec - s Cisco-IOS-XR-controller-optics-oper:optics-oper/optics-ports/optics-port/optics-info
Enter any key to exit...
However,able to get the data using below sensor path ::
sensor-path Cisco-IOS-XR-controller-optics-oper:optics-oper/optics-ports/optics-port[name='Optics0/3/0/0']/optics-info
/0/RSP1/CPU0:XR#run mdt_exec -s Cisco-IOS-XR-controller-optics-oper:optics-oper/optics-ports/optics-port[name='Optics0/2/0/1']/optics-info -c 2000
Enter any key to exit...
Sub_id 200000001, flag 0, len 0
Sub_id 200000001, flag 4, len 11298
Below are examples of working and non working configuration
sensor-group OPTICS_INTERFACE_SupC_Psen
sensor-path Cisco-IOS-XR-controller-optics-oper:optics-oper/optics-ports/optics-port/optics-info >>>> not working
sensor-path Cisco-IOS-XR-controller-optics-oper:optics-oper/optics-ports/optics-port[name='Optics0/0/*']/optics-info <<<<<
Workaround
specify the interface in mdt command gives the data