Adobe Campaign - Get Host/Server Name

Depending on the Adobe configuration, the server name may be found by using Application.instanceName from a Javascript step within a workflow. However, if this setup is not available, the JS snippet below can be used to obtain the host/server name directly from the host's OS command itself.

var hostName = execCommand('hostname', true);