Professional Web Applications Themes

How do you detect a server instance - Coldfusion Server Administration

Hi All. I've got several CF7 Enterprise servers and would like, within a cfc, to detect whether or not a CF instance is running on one of the other servers (other than calling a web page belonging to that server) The instances have their own service but I'd like to avoid going through Windows Server to get the state of the instance. I thought about the Administrator API but that doesn't have a get-State-of-instance function. Any body have any ideas on how I can achieve this? Thanks for your help! -Andy...

  1. #1

    Default How do you detect a server instance

    Hi All. I've got several CF7 Enterprise servers and would like, within a cfc,
    to detect whether or not a CF instance is running on one of the other servers
    (other than calling a web page belonging to that server) The instances have
    their own service but I'd like to avoid going through Windows Server to get the
    state of the instance. I thought about the Administrator API but that doesn't
    have a get-State-of-instance function. Any body have any ideas on how I can
    achieve this?

    Thanks for your help!
    -Andy

    leontova Guest

  2. #2

    Default Re: How do you detect a server instance

    [url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/00001734.htm[/url]

    <cfscript>
    createObject("component", "CFIDE.adminapi.administrator").login("Lijn7") ;
    serverInstanceObj=createObject("component", "CFIDE.adminapi.serverinstance");
    </cfscript>
    <cfdump var="#serverInstanceObj#">








    BKBK Guest

  3. #3

    Default Re: How do you detect a server instance

    BKBK. Thank you for your reply. I tried working with this but I couldn't figure
    out how to get a boolean back describing the on/off state of a instance name.
    Do you have any further insight on this?

    Thanks for your time.
    -Andy

    leontova Guest

  4. #4

    Default Re: How do you detect a server instance

    My Coldfusion is not a multiserver configuration version. The component
    serverInstance.cfc is therefore not on my machine and so I can not run
    the above code. However, I know that you will find the methods you need and
    their signatures when you put the following in your browser

    [url]http://localhost:8300/CFIDE/adminapi/serverinstance.cfc[/url]




    BKBK Guest

Similar Threads

  1. Creating Server Instance
    By WaveRunner in forum Coldfusion Server Administration
    Replies: 2
    Last Post: February 13th, 06:49 PM
  2. CF7 server instance config problem
    By leontova in forum Coldfusion Server Administration
    Replies: 0
    Last Post: January 6th, 12:00 AM
  3. Connect to SQL Server 2000 named instance from CF 4.5?
    By bsbellrose in forum Coldfusion Database Access
    Replies: 8
    Last Post: August 31st, 02:55 PM
  4. Replies: 0
    Last Post: May 15th, 10:20 PM
  5. Replies: 0
    Last Post: July 14th, 03:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139