Dear friend!
The procedure is as follows:
1. Log in to the NE using the Navigator.
Details: https://forum.huawei.com/enterprise/en/download-the-huawei-optix-navigator/thread/660651-875
2. Run the cfg-get-inpower command to query the input optical power of the board. Run the cfg-get-outpower command to query the input optical power of the board.
Example:

BID: indicates the slot ID.
PORT: indicates the optical port number.
PATH: indicates the channel ID.
INPOWER: input optical power (unit: dBm)
Thank you!