Implement portcon query.