Utility to query port state and/or change port state
