If it was already available, yes!
Any idea when it will be coming out?
Thanks,
Luis Miguel Silva
On Aug 12, 2011, at 3:00 AM, Xiao Peng Wang <w...@cn.ibm.com> wrote:
> xCAT is planing to create a REST api that can be called from http server. Is
> it helpful to you?
>
> Refer to:
> https://sourceforge.net/apps/mediawiki/xcat/index.php?title=REST_API_v2
>
> Thanks
> Best Regards
> ----------------------------------------------------------------------
> Wang Xiaopeng (王晓朋)
> IBM China System Technology Laboratory
> Tel: 86-10-82453455
> Email: w...@cn.ibm.com
> Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian
> District Beijing P.R.China 100193
>
> <graycol.gif>Luis Miguel Silva ---2011-08-12 02:08:40---In case any one is
> interested, this is what i found so far: - the client is supposed to connect
> to p
>
> From: Luis Miguel Silva <luismiguelferreirasi...@gmail.com>
> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
> Date: 2011-08-12 02:08
> Subject: Re: [xcat-user] Is there a Java client for xCAT
>
>
>
> In case any one is interested, this is what i found so far:
> - the client is supposed to connect to port 3001 on the xcat host;
> - it uses an openssl connection to encrypt / certify the connection
> between the client and the host;
> - by default, it will try to load the following files:
> - key file: /root/.xcat/client-cred.pem
> - cert file: /root/.xcat/client-cred.pem
> - ca file: /root/.xcat/ca.pem
> - the requests and responses are XML based, here's an example on how
> to communicate with the host (doing the same as running a "xcatclient
> getrvidparms vm1" command):
> [root@xcat ~]# openssl s_client -connect localhost:3001 -crlf -key
> /root/.xcat/client-cred.pem -cert /root/.xcat/client-cred.pem -CAfile
> /root/.xcat/ca.pem
> CONNECTED(00000003)
> depth=1 CN = xCAT CA
> verify return:1
> depth=0 CN = l01.ac
> verify return:1
> ---
> Certificate chain
> 0 s:/CN=l01.ac
> i:/CN=xCAT CA
> 1 s:/CN=xCAT CA
> i:/CN=xCAT CA
> ---
> Server certificate
> -----BEGIN CERTIFICATE-----
> MIIDGTCCAgGgAwIBAgIBATANBgkqhkiG9w0BAQUFADASMRAwDgYDVQQDEwd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/CN=l01.ac
> issuer=/CN=xCAT CA
> ---
> No client certificate CA names sent
> ---
> SSL handshake has read 2723 bytes and written 2317 bytes
> ---
> New, TLSv1/SSLv3, Cipher is AES256-SHA
> Server public key is 2048 bit
> Secure Renegotiation IS supported
> Compression: zlib compression
> Expansion: zlib compression
> SSL-Session:
> Protocol : TLSv1
> Cipher : AES256-SHA
> Session-ID:
> 0D4030351101DD2D0541B8DEFC425CA10C5465AC1652CE2F23EEFFDC736B0CA7
> Session-ID-ctx:
> Master-Key:
> BE0748B55C46ABB118E5916A92A08FA60FDB3F4DA1E14A497A7A0CC16748A25E2D723ACC8EF830DE74F9DB451D0AD051
> Key-Arg : None
> Krb5 Principal: None
> PSK identity: None
> PSK identity hint: None
> TLS session ticket:
> 0000 - 9b 79 33 7b ee a6 42 ac-3c 8b 08 f2 da 7f 2a 30 .y3{..B.<.....*0
> 0010 - bd 7a 3b e9 cd 10 26 9d-91 c8 c2 07 d5 c6 ca e6 .z;...&.........
> 0020 - da 13 25 0c b7 fd aa df-1b 27 aa 74 92 e1 61 09 ..%......'.t..a.
> 0030 - a7 51 c4 22 97 58 3f f9-cc 28 53 f1 87 25 97 8a .Q.".X?..(S..%..
> 0040 - 3b 49 36 9f f3 89 a1 cb-61 78 a0 2d 9f 05 d7 16 ;I6.....ax.-....
> 0050 - b4 7d d0 ba 07 5c f4 14-75 39 5a b9 c4 7c 0e c3 .}...\..u9Z..|..
> 0060 - b1 81 13 06 41 d6 eb 6c-38 a1 3f f2 50 b7 7e 79 ....A..l8.?.P.~y
> 0070 - 40 26 b8 ef 8c 33 12 ba-6a 7e 85 9f 43 e5 46 81 @&...3..j~..C.F.
> 0080 - 44 88 5e 04 94 dc 3c 0a-2a 15 46 f2 3c e2 ea 8c D.^...<.*.F.<...
> 0090 - 8f c2 95 e0 4c 3c 10 5f-b5 62 37 bb e2 0d 60 e4 ....L<._.b7...`.
> 00a0 - f6 e1 f6 1b 48 d1 32 50-89 1b 2e 71 d5 49 f6 f6 ....H.2P...q.I..
> 00b0 - a8 b4 9b f8 99 ca 77 97-5f 5c 70 11 91 dc dd 3a ......w._\p....:
> 00c0 - 97 db cf f4 4c 50 9d a5-e4 00 10 1e 3c 5f a6 c2 ....LP......<_..
> 00d0 - 3e 27 48 05 7b e7 3f c2-b4 24 b7 ca e8 4e 51 a2 >'H.{.?..$...NQ.
> 00e0 - cd dc 1c 2d d0 c3 6c 62-3f a1 1e 4c e2 53 d8 5f ...-..lb?..L.S._
> 00f0 - 00 2d ff 14 a3 b8 04 b1-48 6c 8e 09 82 c6 e7 79 .-......Hl.....y
> 0100 - b3 c3 4c 9a e7 c9 43 3c-35 6f 80 01 9f 09 2a 9e ..L...C<5o....*.
> 0110 - c8 ef 49 0e 00 88 09 25-65 07 ad e8 3b 72 b0 65 ..I....%e...;r.e
> 0120 - c9 41 ef 27 30 b5 a4 a4-41 88 57 42 04 48 c4 ed .A.'0...A.WB.H..
> 0130 - 89 71 a3 3e 2e 0c 0e 0e-ea ac 90 34 32 e0 eb e5 .q.>.......42...
> 0140 - e5 80 6a af c3 24 60 03-dc a2 39 a4 59 62 31 26 ..j..$`...9.Yb1&
> 0150 - fe f8 a6 f7 f4 d0 7d 3c-e9 9f 8a ab b3 81 60 82 ......}<......`.
> 0160 - f0 c0 b8 14 27 42 cc 1e-75 3e ed 0c 4d 1d 89 d3 ....'B..u>..M...
> 0170 - c2 6f 28 dc eb c2 df f6-f6 b5 20 7a 2b 1f 69 ef .o(....... z+.i.
> 0180 - e6 8a 91 7a 20 9c 86 24-d3 48 64 73 55 f2 5c 0f ...z ..$.HdsU.\.
> 0190 - b7 52 19 e7 37 28 89 0e-07 77 82 3f 52 33 ce c4 .R..7(...w.?R3..
> 01a0 - 70 3a 28 cb 43 bc 91 f8-65 6a c7 29 1b 7a 81 53 p:(.C...ej.).z.S
> 01b0 - 66 76 88 f2 2b 63 89 85-37 fe 7b 8d 76 b6 6d db fv..+c..7.{.v.m.
> 01c0 - 7b 56 1f eb e9 48 70 e4-0f 0b a2 88 cb b4 87 cb {V...Hp.........
> 01d0 - 20 d8 4c d2 d2 0e f0 f5-5f cc 70 25 c6 3f 68 0d .L....._.p%.?h.
> 01e0 - f4 af f6 77 9a 47 97 50-df 9e 0c f4 7b f1 7f b9 ...w.G.P....{...
> 01f0 - 4a 88 9b 6b 87 df 5c f0-8f ea 99 e6 35 63 16 73 J..k..\.....5c.s
> 0200 - fc 2a 97 89 94 ef 1d 57-92 00 4b fa d1 12 c6 50 .*.....W..K....P
> 0210 - ca e2 29 53 a7 04 37 5f-27 ab a5 34 c9 b4 51 66 ..)S..7_'..4..Qf
> 0220 - 26 ff c7 9a 0b 0f ca b6-53 6b a3 97 c5 f8 eb 29 &.......Sk.....)
> 0230 - fe fc 7c 97 14 6d 48 b9-78 a1 fd ae 18 76 39 20 ..|..mH.x....v9
> 0240 - 61 c8 52 a7 2a 52 ae 73-13 55 fa 90 bb 4a bb a5 a.R.*R.s.U...J..
> 0250 - 84 06 38 f5 11 4a 53 7c-3c 98 e3 94 1a b3 b4 a6 ..8..JS|<.......
> 0260 - f0 30 df 57 42 50 f2 64-1a 49 37 07 73 57 55 8d .0.WBP.d.I7.sWU.
> 0270 - 7d f9 aa ce ec 50 0c 24-0d 7f bb 4d 55 b8 1d 4d }....P.$...MU..M
> 0280 - a4 14 5a f3 ce 9b 8c 6b-c6 0b ca 4b ad 92 fd 70 ..Z....k...K...p
> 0290 - 55 3c 13 32 39 65 28 ba-01 7c ff 4a e2 b4 a4 0b U<.29e(..|.J....
> 02a0 - 1b 68 81 ff e3 54 fb e7-de e1 26 dd 64 62 7b 8e .h...T....&.db{.
> 02b0 - 60 ad 01 f0 cd 74 d1 67-a2 1f 11 cc c8 db 4e d7 `....t.g......N.
> 02c0 - 12 1c 9c d6 ea 85 6c bf-c1 e8 4b 59 28 cb c6 7a ......l...KY(..z
> 02d0 - 57 6f d8 94 10 42 0f 51-bf 3e 54 84 33 0c 05 76 Wo...B.Q.>T.3..v
> 02e0 - 4c 08 68 a3 fe 2f 11 8f-82 0d 63 9a 47 f1 85 ce L.h../....c.G...
> 02f0 - 5b 2c 69 c0 15 8b 2f c4-94 ba 69 06 c3 7a 76 56 [,i.../...i..zvV
> 0300 - 74 c1 cb ad fe 03 e6 26-29 f8 c7 87 18 e6 c8 4c t......&)......L
> 0310 - e8 d9 f4 fe f6 68 3c d1-a5 e9 c5 77 42 90 fb e3 .....h<....wB...
> 0320 - 1a 29 3a 57 da d3 3d 90-6e e7 2e 60 64 21 0d e0 .):W..=.n..`d!..
> 0330 - 1a ed 8e 95 5f 86 5c 9f-ef 67 87 23 50 8f b8 cf ...._.\..g.#P...
> 0340 - 06 7f 1d a9 9d e3 c2 56-9b af 8b 28 54 5c 4b 8b .......V...(T\K.
> 0350 - e8 c1 2c 97 1b 4a c6 a8-bc 23 0f 4a 08 7e c7 ef ..,..J...#.J.~..
> 0360 - 1c bf c3 fe ee 82 d0 8d-1a a3 16 dd 79 f8 48 27 ............y.H'
> 0370 - 5d d0 c6 29 ba 71 40 85-49 71 11 a5 7b cb af 44 ]..).q@.Iq..{..D
> 0380 - 3a ce 99 b1 e1 39 d9 d3-76 b1 45 45 db 65 f9 fa :....9..v.EE.e..
> 0390 - 3d 54 ef a4 66 da 64 8c-46 e2 2e ad 90 a8 0c 92 =T..f.d.F.......
> 03a0 - 8e cb d8 20 09 f7 76 18-6a a1 b3 53 10 75 96 76 ... ..v.j..S.u.v
> 03b0 - 0a 68 c2 2d 79 44 7b d6-f5 ab c1 b3 fd ea 3e 01 .h.-yD{.......>.
>
> Compression: 1 (zlib compression)
> Start Time: 1313085620
> Timeout : 300 (sec)
> Verify return code: 0 (ok)
> ---
> <xcatrequest>
> <_xcatpreprocessed>1</_xcatpreprocessed>
> <clienttype>cli</clienttype>
> <command>getrvidparms</command>
> <cwd>/opt/xcat/lib/perl/xCAT</cwd>
> <node>vm1</node>
> <noderange>vm1</noderange>
> <username>root</username>
> </xcatrequest></xcatrequest>
> <xcatresponse>
> <node>
> <data>
> <contents>kvm</contents>
> <desc>method</desc>
> </data>
> <errorcode>0</errorcode>
> <name>vm1</name>
> </node>
> </xcatresponse>
> <xcatresponse>
> <node>
> <data>
> <contents>/dev/pts/0</contents>
> <desc>textconsole</desc>
> </data>
> <errorcode>0</errorcode>
> <name>vm1</name>
> </node>
> </xcatresponse>
> <xcatresponse>
> <node>
> <data>
> <contents>pq1vXj0DvlrmSED4</contents>
> <desc>password</desc>
> </data>
> <errorcode>0</errorcode>
> <name>vm1</name>
> </node>
> </xcatresponse>
> <xcatresponse>
> <node>
> <data>
> <contents>vnc</contents>
> <desc>vidproto</desc>
> </data>
> <errorcode>0</errorcode>
> <name>vm1</name>
> </node>
> </xcatresponse>
> <xcatresponse>
> <node>
> <data>
> <contents>l02</contents>
> <desc>server</desc>
> </data>
> <errorcode>0</errorcode>
> <name>vm1</name>
> </node>
> </xcatresponse>
> <xcatresponse>
> <node>
> <data>
> <contents>5900</contents>
> <desc>vidport</desc>
> </data>
> <errorcode>0</errorcode>
> <name>vm1</name>
> </node>
> </xcatresponse>
> <xcatresponse>
> <serverdone></serverdone>
> </xcatresponse>
> closed
> [root@xcat ~]#
>
> Best,
> Luis
>
> On Thu, Aug 11, 2011 at 11:17 AM, Luis Miguel Silva
> <luismiguelferreirasi...@gmail.com> wrote:
> > Dear all,
> >
> > Does anybody know if there is a Java client for xCAT that communicates
> > with it mimicking its protocol?
> > And, if not, do we have any documentation on how the protocol works?
> >
> > Thanks,
> > Luis
> >
>
> ------------------------------------------------------------------------------
> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
> user administration capabilities and model configuration. Take
> the hassle out of deploying and managing Subversion and the
> tools developers use with it.
> http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
> ------------------------------------------------------------------------------
> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
> user administration capabilities and model configuration. Take
> the hassle out of deploying and managing Subversion and the
> tools developers use with it.
> http://p.sf.net/sfu/wandisco-dev2dev
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user