How do I list all extensions on HiPath DX that have a trunk access class of 31? 

Use the List extension by trunk access class-of-service command

LETA 31