Afaik there is no automated option, as I don't use XMC I can't tell you whether you can do it or not.
On the other hand EXOS has many options for scripting, so I guess it should be easy to create a simple script doing that.
As you can see in the "show port info detail" you have an entry
Link Downs: 166 Last: Thu Feb 14 13:13:35 2019
which you could use for an automated script.