Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. #Stop Katello/Satellite services
  2. katello-service stop
  3.  
  4. # block all inbound connections to 5647/443
  5.  
  6. CERT=/etc/pki/katello/certs/katello-apache.crt
  7. KEY=/etc/pki/katello/private/katello-apache.key
  8.  
  9. # start qpidd
  10. service qpidd start
  11.  
  12. #delete exchange
  13. qpid-config --ssl-certificate $CERT --ssl-key $KEY -b "amqps://localhost:5671" del exchange event --durable
  14.  
  15. #create exchange:
  16. qpid-config --ssl-certificate $CERT --ssl-key $KEY -b "amqps://localhost:5671" add exchange topic event --durable
  17.  
  18. #view exchange:
  19. qpid-config --ssl-certificate $CERT --ssl-key $KEY -b "amqps://localhost:5671" exchanges
  20.  
  21. #delete queue
  22. qpid-config --ssl-certificate $CERT --ssl-key $KEY -b 'amqps://localhost:5671' del queue katello_event_queue --force
  23.  
  24. #create queue:
  25. qpid-config --ssl-certificate $CERT --ssl-key $KEY -b 'amqps://localhost:5671' add queue katello_event_queue --durable
  26.  
  27. #view queue:
  28. qpid-config --ssl-certificate $CERT --ssl-key $KEY -b "amqps://localhost:5671" queues katello_event_queue
  29.  
  30. #bind queue to exchange:
  31. qpid-config --ssl-certificate $CERT --ssl-key $KEY -b "amqps://localhost:5671" bind event katello_event_queue '*.*'
  32.  
  33. # Start up services
  34. katello-service start
  35.  
  36. Run the following command to monitor the katello event queue:
  37. qpid-stat -q --ssl-certificate=/etc/pki/katello/qpid_client_striped.crt -b amqps://localhost:5671
  38.  
  39. # If 0 messages are coming in then unblock port access 5647/443 to a test client and do a few register/unregister and see if the webui/rhsm cli refreshes messages go from in -> out and get processed. If so then unblock all of 443 and see if the traffic/queue jumps up, if it does then the clients running rhsm commands need to be looked into.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement