Skip to content

Instantly share code, notes, and snippets.

@mccun934
Created September 20, 2017 16:59
Show Gist options
  • Save mccun934/aa3b381403e5de78cd30015e919d84a6 to your computer and use it in GitHub Desktop.
Save mccun934/aa3b381403e5de78cd30015e919d84a6 to your computer and use it in GitHub Desktop.
delete all pulp.agent queues
#!/bin/bash
# grab uuids of queues, delete queues
for uuid in $(qpid-stat --ssl-certificate=/etc/pki/katello/qpid_client_striped.crt -b "amqps://localhost:5671" -q | grep pulp.agent | cut -c14- | awk '{ print $1 }'); do
echo "Deleting pulp.agent.$uuid"
qpid-config --ssl-certificate=/etc/pki/katello/qpid_client_striped.crt -b amqps://localhost:5671 del queue pulp.agent.$uuid --force
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment