Hi!
You can use object queries. Go to Tools -> Find Object, and use the following query (I assume you are using NetXMS 5.x):
with
Device = { node.name },
ExpectedState = { ['UP','DOWN','IGNORE'][expectedState] },
CurrentState = { ['UNKNOWN','UP','DOWN','TESTING','DORMANT','NOT PRESENT'][operState] }
type == INTERFACE
You will get list of all interfaces with expected state and current state (with some extra default columns).
Then you can export resulting table to CSV by selecting "Export all to CSV" from view menu or toolbar (in top right corner).
Best regards,
Victor