When the anal glands fail to empty, most dogs simply rub their hind ends along the ground (scooting) thereby squeezing and emptying the glands. If unsuccessful, they may become uncomfortable, begin straining, and start excessive licking and biting of the anal area.