Monitor Apstra Server via CLI
-
To check general status from the Apstra server CLI, run the command
sudo service aos status
.admin@aos-server:~$ sudo service aos status * aos.service - LSB: Start AOS management system Loaded: loaded (/etc/init.d/aos; generated) Active: active (exited) since Tue 2020-07-28 00:35:38 UTC; 2h 13min ago Docs: man:systemd-sysv-generator(8) Tasks: 0 (limit: 4915) CGroup: /aos.service Jul 28 00:35:35 aos-server systemd[1]: Starting LSB: Start AOS management system... Jul 28 00:35:36 aos-server aos[1040]: net.core.wmem_max = 33554432 Jul 28 00:35:37 aos-server aos[1040]: Creating aos_sysdb_1 ... Jul 28 00:35:37 aos-server aos[1040]: Creating aos_nginx_1 ... Jul 28 00:35:37 aos-server aos[1040]: Creating aos_auth_1 ... Jul 28 00:35:37 aos-server aos[1040]: Creating aos_controller_1 ... Jul 28 00:35:37 aos-server aos[1040]: Creating aos_metadb_1 ... Jul 28 00:35:38 aos-server aos[1040]: [240B blob data] Jul 28 00:35:38 aos-server systemd[1]: Started LSB: Start AOS management system. admin@aos-server:~$
-
To troubleshoot, run the
aos_controller_health_check
script. It searches for known error signatures in the Apstra server logs (such as agent crashes) and returns the output. If no errors are found, no output is returned. See below for sample command.admin@aos-server:~$ docker exec aos_controller_1 aos_controller_health_check admin@aos-server:~$