A bunch of metadata server related options are used.
You probably don't want to hard code these, rather use macro variables whose values you set at the highest point in the calling chain. The values of the macro variables could be set as environment variables in a calling shell script and made accessible to the sas program using %sysget.
Also think about DNS aliases rather than actual hostnames. This makes things like DR easier.