Note: If most of the endpoints are discovered by a discovery source, it should get auto-updated from the discovery source (see this article)
If most endpoints are not discovered automatically, then use the following instructions.
2) stop tomcat
4) run DB query
update endpoint_server set name = hostname;
5) start tomcat