Go to file
Felix Kronlage-Dammers 1142e50270
bump version
2020-03-28 21:21:28 +01:00
config allow setting of api endpoint via config 2020-03-28 20:55:08 +01:00
vendor move to v2 of gsclient-go 2020-03-26 20:01:50 +01:00
.gitignore add build directory to .gitignore 2020-03-26 20:02:13 +01:00
CHANGELOG.md finalize changelog 2020-03-28 21:20:21 +01:00
CONTRIBUTING.md add CONTRIBUTING 2019-09-11 22:47:04 +02:00
LICENSE bump date 2020-03-27 10:23:45 +01:00
Makefile bump version 2020-03-28 21:21:28 +01:00
README.md Update README to ref gsclient-go 2019-09-10 22:25:16 +02:00
go.mod move to v2 of gsclient-go 2020-03-26 20:01:50 +01:00
go.sum move to v2 of gsclient-go 2020-03-26 20:01:50 +01:00
main.go go fmt 2020-03-28 21:19:43 +01:00
servers.go enable passing of config file on the command line 2018-07-04 01:12:17 +02:00
servers_list.go move to v2 of gsclient-go 2020-03-26 20:01:50 +01:00
servers_status.go move to v2 of gsclient-go 2020-03-26 20:01:50 +01:00
snapshots.go go fmt 2018-04-25 00:21:15 +02:00
snapshots_age.go move to v2 of gsclient-go 2020-03-26 20:01:50 +01:00
snapshots_count.go move to v2 of gsclient-go 2020-03-26 20:01:50 +01:00
storages.go enable passing of config file on the command line 2018-07-04 01:12:17 +02:00
storages_list.go move to v2 of gsclient-go 2020-03-26 20:01:50 +01:00

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