Delete system agents via AOS CLI - ganeshahv/Contrail_SRE GitHub Wiki

Problem statement

Unable to add any Agents due to Server Error

Reason

Addresses of the boxes entered in CIDR format, e.g. 10.92.74.235/23 instead of 10.92.74.235

Solution

  1. Download the AOS-CLI Docker container from the Apstra Client Portal, https://portal.apstra.com/downloads/
  2. Load the provided Docker image into Docker
$ docker image load -i aoscli-0.1.564.tar.gz
  1. Start AOS CLI with the following command:
docker run --rm -ti -v $HOME/var/tmp:/mytmp aoscli:0.1.564 -s <AOS server IP/hostname>
  1. List the system agents
aos> system-agents list
  1. Delete the agents in bad state
aos> system-agents delete --id <agent_id>
⚠️ **GitHub.com Fallback** ⚠️