Created
September 20, 2017 16:59
-
-
Save mccun934/aa3b381403e5de78cd30015e919d84a6 to your computer and use it in GitHub Desktop.
delete all pulp.agent queues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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