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 [sudo] password for admin: ● aos.service - LSB: Start AOS management system Loaded: loaded (/etc/init.d/aos; generated) Active: active (exited) since Tue 2023-11-28 17:13:52 UTC; 3 weeks 0 days ago Docs: man:systemd-sysv-generator(8) CPU: 991ms Nov 28 17:13:51 aos-server aos[1402]: Container aos_sysdb_1 Starting Nov 28 17:13:51 aos-server aos[1402]: Container aos_metadb_1 Starting Nov 28 17:13:51 aos-server aos[1402]: Container aos_nginx_1 Starting Nov 28 17:13:51 aos-server aos[1402]: Container aos_controller_1 Starting Nov 28 17:13:52 aos-server aos[1402]: Container aos_nginx_1 Started Nov 28 17:13:52 aos-server aos[1402]: Container aos_auth_1 Started Nov 28 17:13:52 aos-server aos[1402]: Container aos_sysdb_1 Started Nov 28 17:13:52 aos-server aos[1402]: Container aos_metadb_1 Started Nov 28 17:13:52 aos-server aos[1402]: Container aos_controller_1 Started Nov 28 17:13:52 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:~$