I was going to suggest the cgi variables - http_host and server_name but a
little bit of testing shows that these are related to the URL rather than
the name of the physical machine which is what you want given the solution
below.

Thanks, could be very useful...

B)



On Fri, Aug 13, 2010 at 11:23 AM, BarryC <barrychester...@gmail.com> wrote:

> No matter! I have found the answer;
>
> Createobject('java','java.net.InetAddress').getLocalHost().getHostName()
>
> I knew I'd find it as soon as I posted on here :)
>
> On Aug 13, 3:21 pm, BarryC <barrychester...@gmail.com> wrote:
> > Hi,
> >
> > We have several servers in a cluster, but I am wondering how to get
> > the name of the server that a script happens to be running on, there
> > is nothing in the cgi variable, are there any system level functions
> > coldfusion has (I couldn't find any), or is there a way to call native
> > functions to get system information?
> >
> > Thanks
> > Barry.
>
> --
> You received this message because you are subscribed to the Google Groups
> "cfaussie" group.
> To post to this group, send email to cfaus...@googlegroups.com.
> To unsubscribe from this group, send email to
> cfaussie+unsubscr...@googlegroups.com<cfaussie%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/cfaussie?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaus...@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.

Reply via email to