1. はじめに
VMware ESXiはVMware APIというものを提供しています。実は、SoftLayerで提供されるVMWare ESXiも、このVMware APIにibmvmadmin
ユーザーでアクセスして稼動情報を取得しているようです。この記事は、VMware ESXiのAPI Interfaceが稼動しているかを確認する方法をお伝えします。
2. 稼動確認方法
wgetで確認可能。10.117.1.130はVMware ESXiに割り当てられているPrivate側のVMKernel PortのIPです。
オプションは随時省略して下さい。この例ではちゃんと200番が返ってきていますね。
[root@osc01 ~]# wget -O- --no-check-certificate --debug https://10.117.1.130/sdk/vimService.wsdl
DEBUG output created by Wget 1.14 on linux-gnu.
URI encoding = ‘UTF-8’
--2016-09-19 20:13:39-- https://10.117.1.130/sdk/vimService.wsdl
Connecting to 10.117.1.130:443... connected.
Created socket 3.
Releasing 0x0000000001803080 (new refcount 0).
Deleting unused 0x0000000001803080.
Initiating SSL handshake.
Handshake successful; connected socket 3 to SSL handle 0x0000000001803110
certificate:
subject: /C=US/ST=California/L=Palo Alto/O=VMware/OU=VMware Engineering/CN=10.117.1.130/emailAddress=vmca@vmware.com
issuer: /CN=CA/DC=vsphere/DC=local/C=US/O=vcenter6
WARNING: cannot verify 10.117.1.130's certificate, issued by ‘/CN=CA/DC=vsphere/DC=local/C=US/O=vcenter6’:
Self-signed certificate encountered.
---request begin---
GET /sdk/vimService.wsdl HTTP/1.1
User-Agent: Wget/1.14 (linux-gnu)
Accept: */*
Host: 10.117.1.130
Connection: Keep-Alive
---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 200 OK
Date: Mon, 19 Sep 2016 11:13:38 GMT
Cache-Control: no-cache
Connection: Keep-Alive
Content-Type: text/xml; charset=utf-8
X-Frame-Options: DENY
Content-Length: 545
---response end---
200 OK
Registered socket 3 for persistent reuse.
URI content encoding = ‘utf-8’
Length: 545 [text/xml]
Saving to: ‘STDOUT’
0% [ ] 0 --.-K/s <?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2005-2016 VMware, Inc. All rights reserved.
-->
<definitions targetNamespace="urn:vim25Service"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:interface="urn:vim25"
>
<import location="vim.wsdl" namespace="urn:vim25" />
<service name="VimService">
<port binding="interface:VimBinding" name="VimPort">
<soap:address location="https://localhost/sdk/vimService" />
</port>
</service>
</definitions>
100%[================================================================================================================================================>] 545 --.-K/s in 0s
2016-09-19 20:13:39 (119 MB/s) - written to stdout [545/545]