Wednesday, August 28, 2019

Cisco DNA list and restart all Maglev services

List the services:

magctl appstack status

Limit the search to just the maglev services

magctl appstack status | grep "maglev-system"

remove the Maglev service (docker containers) and restart them

for svc in $(magctl appstack status | grep "maglev-system" | awk '{print $2}'); do magctl service restart -d $svc; done