We have a foster dog that had the worst anal glands. When we first got him we took him to the vet and his glands were so compacted that they couldn't be drained either. He was put onto antibiotics for a week. Once the antibiotics were finished, the vet cleared them out (very unpleasent for all involved) and he was given an injection to help clear anything else. He was also put onto more antibiotics. For the next five(ish) days his glands were seeping and I was constantly running after him with babywipes. The smell was very bad and he seemed quite uncomfortable (esp when he was going to the toilet) but it did the trick.