-
Notifications
You must be signed in to change notification settings - Fork 46
CLI Examples
ByoungSeob Kim edited this page Jun 28, 2021
·
21 revisions
* 본 가이드는 CB-Spider CLI 도구 spctl를 이용한 멀티클라우드 제어 장법을 제공한다.
* 본 가이드는 Ubuntu 18.04.5 LTS 또는 Ubuntu 20.04.2 LTS 중심으로 시험 되었다.
-
- 연동 대상 CSP의 Credential 발급 가이드 참고하여 Credential 정보 준비
-
- 사용자 기능 및 활용 가이드 참고
-
- CB-Spider 설치 및 실행 가이드 참고하여 CB-Spider 서버 실행
-
- CLI 설치 가이드 참고하여 CLI 설치 및 확인 시험
이하 Terminal-2에서 실행
- CLI 활용 예시
-
Register Cloud Driver Info
./spctl driver create -i json -d \ '{ "DriverName":"aws-driver01", "ProviderName":"AWS", "DriverLibFileName":"aws-driver-v1.0.so" }'
-
List Cloud Driver Info
./spctl driver list
output
driver: - DriverName: alibaba-driver01 ProviderName: ALIBABA DriverLibFileName: alibaba-driver-v1.0.so - DriverName: aws-driver01 ProviderName: AWS DriverLibFileName: aws-driver-v1.0.so - DriverName: azure-driver01 ProviderName: AZURE DriverLibFileName: azure-driver-v1.0.so - DriverName: cloudit-driver01 ProviderName: CLOUDIT DriverLibFileName: cloudit-driver-v1.0.so - DriverName: gcp-driver01 ProviderName: GCP DriverLibFileName: gcp-driver-v1.0.so - DriverName: openstack-driver01 ProviderName: OPENSTACK DriverLibFileName: openstack-driver-v1.0.so - DriverName: mock-driver01 ProviderName: MOCK DriverLibFileName: mock-driver-v1.0.so
-
Get Cloud Driver Info
./spctl driver get -n azure-driver01
output
DriverName: azure-driver01 ProviderName: AZURE DriverLibFileName: azure-driver-v1.0.so
-
Delete Cloud Driver Info
./spctl driver delete -n azure-driver01
output
Result: true
-
-
Install & Start Guide
-
Features & Usage
-
- AdminWeb Tool Guide
- CLI Tool Guide
- REST API Guide
-
Design
-
Developer Guide
-
Cloud Driver Developer Guide
- Cloud Driver Developer Guide-WIP
- VM SSH Key Development Guide-WIP
- VM User Development Guide
- What is the CSP SDK API Version of drivers
- Region Zone Info and Driver API
- Price Info and Driver API
- (StartVM TerminateVM) API Call Counts and Waiting
- StartVM and TerminateVM Main Flow of drivers
- VM Root Disk Configuration Guide
- Security Group Rules and Driver API
- Network Load Balancer and Driver API
- VM Snapshot, MyImage and Disk Overview
- Kubernetes and Driver API(PMKS, K8S)
- Tag and Cloud Driver API
- AnyCall API Extension Guide
-
Test Reports
- v0.2.8-for-espresso-release
- v0.3.0-espresso-release
- Azure:Terminating VM
- cb-user@VM: ssh login, sudo run
- v0.3.14 test for SG Source
- v0.4.0-cafemocha-release
- Test via REST API Gateway
- Test Reports of v0.4.11 (IID2 initial Version)
- Test Reports of v0.4.12 (Register & Unregister existing Resources)
- Test Reports for v0.6.0 Release
- How to ...
- How to provision GPU VMs
- How to Resolve the 'Failed to Connect to Database' Error
- How to test CB Spider with Mock Driver
- How to install CB Spider on WSL2 under 공유기/사설망
- How to install CB Spider on macOS
- How to run CB Spider Container on macOS
- How to install OpenStack on a VM for CB Spider Testing
- How to get Azure available Regions
- How to profile memory usage in Golang
- Deprecated:How to install protoc and plugins
- [For Cloud-Migrator]