Get Flags

Is there a way to use the get command for flags?
I want to create a script based on whether a usb port is flagged inactive.

I can get the status of every other parameter, ie:
:put [/port get [/port find name=“usb2”] used-by]

Is there a parameter for status? Or another way to do this?

Thanks,
Mike