Hi Claudio,
There is no explicit command as such to inform if the port has failed or not. From your information, it indeed looks like a port failure. Additionally the port LED can can notify the status with the LED lighting up or not when connecting device to the suspected port.