RE: getting server name

2010-09-03 Thread Eric Roberts

Thanks!!!  That did it!!

Eric
-Original Message-
From: Andy Matthews [mailto:li...@commadelimited.com] 
Sent: Thursday, September 02, 2010 1:56 PM
To: cf-talk
Subject: RE: getting server name


Hah! I just implemented this same thing in our system the other day.

This code snippet will return the computer's name:

CreateObject(java, java.net.InetAddress).getLocalHost().getHostName()



andy

-Original Message-
From: Eric Roberts [mailto:ow...@threeravensconsulting.com] 
Sent: Thursday, September 02, 2010 12:44 PM
To: cf-talk
Subject: getting server name


Does anyone know if CF,r via a .NET object even, I can get the server name
(not the domain or IP) to use to differentiate servers in the
application.cfm?  The server name is the one thing that won't change if the
server get changed.  Thanks!

 

Eric







~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336803
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: getting server name

2010-09-02 Thread Michael Grant

i think this is available in the CGI scope.

Do this: cfdump var=#cgi#/

On Thu, Sep 2, 2010 at 1:43 PM, Eric Roberts 
ow...@threeravensconsulting.com wrote:


 Does anyone know if CF,r via a .NET object even, I can get the server name
 (not the domain or IP) to use to differentiate servers in the
 application.cfm?  The server name is the one thing that won't change if the
 server get changed.  Thanks!



 Eric



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336780
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: getting server name

2010-09-02 Thread Andy Matthews

Hah! I just implemented this same thing in our system the other day.

This code snippet will return the computer's name:

CreateObject(java, java.net.InetAddress).getLocalHost().getHostName()



andy

-Original Message-
From: Eric Roberts [mailto:ow...@threeravensconsulting.com] 
Sent: Thursday, September 02, 2010 12:44 PM
To: cf-talk
Subject: getting server name


Does anyone know if CF,r via a .NET object even, I can get the server name
(not the domain or IP) to use to differentiate servers in the
application.cfm?  The server name is the one thing that won't change if the
server get changed.  Thanks!

 

Eric





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336782
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: getting server name

2010-09-02 Thread Peter Amiri

Eric,

You can do this via a java object. 
Try this code to get the local server host name:

cfset inet = CreateObject(java, java.net.InetAddress) 
cfset inet = inet.getLocalHost()

--
Peter Amiri
Founder | Alurium Hosting
949-338-3862 | pe...@alurium.com | http://www.alurium.com
LinkedIn: http://www.linkedin.com/in/peteramiri | IM bpamiri 
(AIM/MSN/Y!/GTLK/SKYPE)



On Sep 2, 2010, at 10:43 AM, Eric Roberts wrote:

 
 Does anyone know if CF,r via a .NET object even, I can get the server name
 (not the domain or IP) to use to differentiate servers in the
 application.cfm?  The server name is the one thing that won't change if the
 server get changed.  Thanks!
 
 
 
 Eric
 
 
 
 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336783
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: getting server name

2010-09-02 Thread Carl Von Stetten

Nice one! 8^)

Eric,

You can do this via a java object. 
Try this code to get the local server host name:

cfset inet = CreateObject(java, java.net.InetAddress) 
cfset inet = inet.getLocalHost()

--
Peter Amiri
Founder | Alurium Hosting
949-338-3862 | pe...@alurium.com | http://www.alurium.com
LinkedIn: http://www.linkedin.com/in/peteramiri | IM bpamiri 
(AIM/MSN/Y!/GTLK/SKYPE)



On Sep 2, 2010, at 10:43 AM, Eric Roberts wrote:

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336784
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm