-
Notifications
You must be signed in to change notification settings - Fork 46
CLI Tool Install Guide
ByoungSeob Kim edited this page Sep 20, 2024
·
17 revisions
* 본 가이드는 CB-Spider CLI 도구 spctl의 설치 방법을 제공한다.
* 본 가이드는 Ubuntu 20.04.2 LTS 또는 Ubuntu 22.04.2 LTS 중심으로 시험 되었다.
-
-
CB-Spider CLI Install Guide ············· (현재 문서)
-
- CB-Spider Quick Guide 참고하여 서버 가동
cd $CBSPIDER_ROOT/cli; make;
cd $CBSPIDER_ROOT/cli; ./spctl;
- spctl 설치 위치로 이동
cd $CBSPIDER_ROOT/cli;
- version 확인(-v, --version)
./spctl -v
Version: v0.9.4-70 Commit SHA: 1740b5e3 Build Time: Fri Sep 20 16:43:02 KST 2024
- help 출력(-h, --help 또는 무옵션 가능)
./spctl
- 서브명령어 help 출력
./spctl vpc -h
- 서버점검
./spctl check-readyz health
{ "message": "CB-Spider is ready" }
- 연동 가능한 CSP 목록 출력
./spctl cloudos list
{ "cloudos": [ "AWS", "AZURE", "GCP", "ALIBABA", "TENCENT", "IBM", "OPENSTACK", "NCP", "NCPVPC", "NHNCLOUD", "KTCLOUD", "KTCLOUDVPC", "MOCK" ] }
- 등록한 클라우드 연결 설정 목록 출력
./spctl connection list
{ "connectionconfig": [ { "ConfigName": "aws-ap-northeast-2_ap-northeast-2a-credential-gyd", "CredentialName": "aws-credential-gyd", "DriverName": "aws-driver-v1.0", "ProviderName": "AWS", "RegionName": "aws_ap-northeast-2_ap-northeast-2a" }, { "ConfigName": "gcp-asia-south2_asia-south2-a-credential-dbt", "CredentialName": "gcp-credential-dbt", "DriverName": "gcp-driver-v1.0", "ProviderName": "GCP", "RegionName": "gcp_asia-south2_asia-south2-a" }, ...
./spctl vpc create
Usage:
spctl vpc create [flags]
Flags:
-d, --data string JSON Body/Form parameter: VPCCreateRequest
-h, --help help for create
Global Flags:
-s, --server string Spider server URL (default "localhost:1024")
Examples:
Example JSON for VPCCreateRequest with all fields:
'{
"ConnectionName": "aws-connection",
"IDTransformMode": "ON",
"ReqInfo": {
"IPv4_CIDR": "10.0.0.0/16",
"Name": "vpc-01",
"SubnetInfoList": [
{
"IPv4_CIDR": "10.0.8.0/22",
"Name": "subnet-01",
"TagList": [
{
"Key": "key1",
"Value": "value1"
}
],
"Zone": "us-east-1b"
}
],
"TagList": [
{
"Key": "key1",
"Value": "value1"
}
]
}
}'
Example JSON for VPCCreateRequest with required fields only:
'{
"ConnectionName": "aws-connection",
"ReqInfo": {
"IPv4_CIDR": "10.0.0.0/16",
"Name": "vpc-01",
"SubnetInfoList": [
{
"IPv4_CIDR": "10.0.8.0/22",
"Name": "subnet-01"
}
]
}
}'
$ spctl vpc create -d '{
"ConnectionName": "aws-connection",
"ReqInfo": {
"IPv4_CIDR": "10.0.0.0/16",
"Name": "vpc-01",
"SubnetInfoList": [
{
"IPv4_CIDR": "10.0.8.0/22",
"Name": "subnet-01"
}
]
}
}'
-
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]