Hello, friend!
You can run the display ont wan-info command to query the WAN port information of an online ONT, including the WAN port index, name, service type, and connection type.
In GPON mode:
display ont wan-info portid [ontid]
Privileged mode:
display ont wan-info frameid/slotid portid [ontid]
Thanks!