In some cases, the pooled IP Address must be discovered and used in the deployed virtual machine via Surgient and NAIL technology. Surgient does not provide a easy way to get this, but it's obtainable. Since deployed virtual machines can run post deployment actions, then we can utilize this feature and a VBS script.
1. Create the VBS script:
strURL = "http://" & Wscript.Arguments(0) & "/ingress/Mailbox.aspx"
Set objXMLHTTP = CreateObject("MSXML2.XMLHTTP")
objXMLHTTP.open"GET", strURL, false
objXMLHTTP.send
Set fso= CreateObject("Scripting.fileSystemObject")
Set objTextStreamOut = fso.CreateTextFile(Wscript.Arguments(1), Overwrite)
objTextStreamOut.Write objXMLHTTP.getResponseHeader("X-Peer-Address")
objTextStreamOut.Close
2. Upload the VBS script via the Surgient Platform
3. Edit the Application Configuration and click on "Add Action" to apply the post deployment action file
4. Select the VBS script as the "Executable File" with the follow arguments: 10.10.10.2 C:\myIP.txt
*** 10.10.10.2 is the IP Address of the Platform Server
5. Save and deploy the Application Configuration
6. Login to the deployed virtual machine and verify that the pooled IP Address in the C:\myIP.txt file.
Instead of the VBS script, you can use any other executables, such as "wget" type programs to extract the HTTP headers. Please tweak the above script to work with your operating system if it does not work. This was tested against Windows 2003 EE SP1.
The pooled IP Address of the deployed VM is stored in the HTTP request header: X-Peer-Address
The URL that must be accessed is: http://PLATFORM-HOST/ingress/Mailbox.aspx