My current summer job is as a dog bather, so I’ll give you the goods as explained to me by the Groomer who taught me how to express glands. Both male and female dogs have anal glands. Normally, large dogs express their anal glands without human help, when they defecate.
Small dogs, however, often don’t have strong enough muscles to express their glands when they defecate, so the glands can get overfull and need to be manually emptied by humans.
Where I work, we do not express the glands on any dog larger than a Shetland sheepdog, so if your dog is sheltie sized or larger you probably don’t need to worry about her glands.
If you see your dog dragging her bum across the ground, her anal glands could be full. (or she could have worms which is another problem entirely.) Your Vet can empty them for you. Also, many people will ask their Groomer to empty the glands when they take their dog in to be groomed. Then, the glands are expressed in the bath, and the residue gets washed off with shampoo and water, leaving your dog smelling nice. Depending on how long your dog has gone without getting her glands emptied, the contents can be normal yellowish-brown with a metallic smell, like Jpeg Jones said, to an extremely foul smelling thick brown or green paste.
Be careful if you do try to clean your dog’s glands yourself. If they are overfull it can be painful to the dog and you might get bitten.
Groomers and Vets are used to this and secure the dog so that it cannot bite them. A Vet or Groomer can also show you how to do it yourself, instructions can also be found in a lot of dog books.
Detailed instructions follow. Gross out warning.
A good time to empty them is when you give your dog a bath. First, soak your dog and work dog shampoo into her coat, lathering up every part. Secure your dog with a leash tied to something, and pull the dog towards you, so that her head is at the full extension of the leash. This way she cannot turn around and bite you. Grip the base of her tail with one hand and lift slightly, and place your other hand with the thumb and index finger on either side of your dogs anus. you’ll need to grope around a bit to find them, if you cant feel anything, your dogs glands are probably empty.
If they’re full, you’ll feel two hard lumps directly to either side of the anus. Dig your fingers into the flesh and squeeze, pulling towards you. This will squeeze out the fluid inside… onto your hand. Be careful! It can sometimes squirt quite a distance. This is why its preferable to express them in the bath. Keep a good grip on her tail, because most dogs will squirm when you express their glands. I imagine its rather a violating feeling, but if its gotta be done, its gotta be done.
Gloves are a preference… I dont use them, because they usually fill up with water and get all slimy on the inside. The stuff is nasty but you can just wash off your hand with water and soap/shampoo and then you’re fine. It can also be harder to get a grip on the glands if you’re wearing gloves. It also depends on how strong your stomach is. When you’re done, just rinse and re-apply shampoo to your dogs bum, and she’ll be all fresh and clean, if somewhat disgruntled for a bit.