[mod_cluster-dev] How can I invoke MCMP commands via telnet ?

jean-frederic clere jfclere at gmail.com
Mon Dec 15 08:23:54 EST 2008


Bela Ban wrote:
> Thanks. How do you do this for DISABLE-APP ?

That more difficult the message contains form-urlencoded data.
I use the TestHttpClient.java in jbossnative/trunk/mod_cluster/test/java 
to do that.

If you really want to do it with telnet it is something like:
+++
DISABLE-APP / HTTP/1.0
Content-Length: 31
Content-Type: application/x-www-form-urlencoded

JVMRoute=node1&context=%2Fmyapp
+++

Cheers

Jean-Frederic

> 
> jean-frederic clere wrote:
>> Bela Ban wrote:
>>> I tried
>>>
>>> telnet localhost 8000
>>> GET /INFO HTTP/1.0
>>>
>>> doesn't work. Is there a way for me to invoke those commands 
>>> interactively ?
>>>
>>
>> You have use the MCMP method INFO instead GET.
>> For example:
>> +++
>> [jfclere at jfcpc ~]$ telnet 10.33.144.200 6666
>> Trying 10.33.144.200...
>> Connected to 10.33.144.200.
>> Escape character is '^]'.
>> INFO / HTTP/1.1
>> Host: localhost
>>
>> HTTP/1.1 200 OK
>> Date: Mon, 15 Dec 2008 12:22:31 GMT
>> Server: Apache/2.2.11-dev (Unix) mod_ssl/2.2.11-dev OpenSSL/0.9.8g DAV/2
>> Content-Length: 0
>> Connection: close
>> Content-Type: text/plain
>>
>> Connection closed by foreign host.
>> +++
>> and "INFO / HTTP/1.0" for 1.0
>>
>> Cheers
>>
>> Jean-Frederic
> 




More information about the mod_cluster-dev mailing list