Ubuntu に VMware vSphere CLI をインストールする方法です。
CLI ツールを使用して、ホストの構成情報のバックアップやリストアが可能です。
- Ubuntu 16.04.3 LTS
- VMware vSphere 6 Standard
| #! /usr/bin/env python3 | |
| import re | |
| import requests | |
| import argparse | |
| sess = requests.Session() | |
| def get_api(url): | |
| headers = {"User-Agent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Mobile Safari/537.36"} |
| /* curl_multi_test.c | |
| Clemens Gruber, 2013 | |
| <clemens.gruber@pqgruber.com> | |
| Code description: | |
| Requests 4 Web pages via the CURL multi interface | |
| and checks if the HTTP status code is 200. | |
| Update: Fixed! The check for !numfds was the problem. |