Содержание

Command reference

Check if the database exists

clickhouse-client --query="show databases" | grep qoestor

Drop database schema

All data will be deleted!
clickhouse-client --query="drop database qoestor"

Create or update database schema

fastor-db-scheme

Restart receivers and configuration

fastor-restart

Stop receivers

fastor-stop

Restart database

fastor-db-restart

Stop database

fastor-db-stop

Manage receivers individually

Restart receivers

If you need to restart receivers individually, you can do it via service restart commands, for example:

Stop receivers

Check if the database is running

ps aux | grep clickhouse

Check if receivers are running

ps aux | grep ipfix

Check if receivers are listening on ports and have active connections

netstat -nlpa | grep 1500
netstat -nlpa | grep 1501

Check if data exists in the database

clickhouse-client --query="select count(), min(flow_start_time), max(flow_start_time) from qoestor.fullflow"
clickhouse-client --query="select count(), min(time), max(time) from qoestor.clickstream"