You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
Felix Kronlage-Dammers 96fe4ff594
adjust my name
2 years ago
config allow setting of api endpoint via config 3 years ago
vendor move to v2 of gsclient-go 3 years ago
.gitignore add build directory to .gitignore 3 years ago
CHANGELOG.md finalize changelog 3 years ago
CONTRIBUTING.md add CONTRIBUTING 4 years ago
LICENSE adjust my name 2 years ago
Makefile bump version 3 years ago
README.md Update README to ref gsclient-go 4 years ago
go.mod bump to v3.3.0 of gsclient-go 2 years ago
go.sum bump to v3.3.0 of gsclient-go 2 years ago
main.go adjust my name 2 years ago
servers.go adjust my name 2 years ago
servers_list.go adjust my name 2 years ago
servers_status.go adjust my name 2 years ago
snapshots.go adjust my name 2 years ago
snapshots_age.go adjust my name 2 years ago
snapshots_count.go adjust my name 2 years ago
storages.go adjust my name 2 years ago
storages_list.go adjust my name 2 years ago

README.md

gridscale-check

A variety of commands to check various aspects of your IaaS-assetts at gridscale. This check makes use of gsclient-go.

The check-command looks in config/check.toml for a config file containing (for now) just the gridscale user and token. These can also be set via the environment:

GRIDSCALE_USER='userid'
GRIDSCALE_TOKEN='token'

commands

snapshots

$ gridscale-check snapshots count -w 2 -c 1 -u <uuid-of-storage>
$ gridscale-check snapshots age -w 1 -c 2 -u <uuid-of-storage>

servers

state of the server

$ gridscale-check servers state -t server.status -s active -u <uuid-of-server>

check number of cpu cores or memory assigned

n - Max Amount m - Min Amount

$ gridscale-check servers state -t server.cores -u <uuid-of-server> -n 6 -m 4
$ gridscale-check servers state -t server.memory -u <uuid-of-server> -n 6 -m 4

check IP that is assigned

Either with a value to compare (-c) or by matching the relation (-r):

$ gridscale-check servers state -t ip.assigned -u <uuid-of-server> -c 192.168.10.20
$ gridscale-check servers state -t ip.assigned -u <uuid-of-server> -r <uuid-of-ip-object>

check wether a certain firewall template is enabled

$ gridscale-check servers state -t firewall.template -u <uuid-of-server> -r <uuid-of-ip-object>

helper commands

There are some helper commands, such as listing servers and storages:

$ gridscale-check servers list
$ gridscale-check storages list