In order to generate a ServerID for Sonar, you should Server ID, log in as an admin administrator and then go to Settings > Configuration > General Settings > Server ID (was Configuration > General Settings > Server ID for Sonar < 3.4)
From there follow the below procedure.
...

