@Nathan Gageby You can run scripts from both, the primary and the secondary. This is especially helpful when trigger auto calls out by HTTP triggers. I've just hard coded my primaries dns name into our application logs. Been nice to have been able to have gotten the server, likely a Java command to do so.
@jim-j Actually no, you can create triggers that your agents can use to send a call back into a script and it keep it's identity. Use the enterprise variables to store data when going between the two. Been doing it for years. I was just trying to get the server for logging purposes, nothing else.
Thank you both for offering your solutions. When this becomes more important to me I will dive into the Java websites to find some code to put into a SET command to get either the IP or DNS name of the server.
@Bill Brown wrote:
Looks like I can use a SET command with the value of java.net.InetAddress.getLocalHost().getHostName() and get the host name of the server. Thank you again for trying to assist me. I should have just did a little more searching.
Thanks for sharing your solution, I was curious how you could get this info. I always forget that you can access plain Java functions which opens up a lot of possibilities.