The Anal Gland normally empties its self.  The function of the gland is to act as a scent marker.

  The gland can become blocked and may require emptying.  It is best for the vet or groomer to undertake this task for the first time and demonstrate how it is done.  It is a quick process and no anaesthetic is required.  The reason for blocked anal glands can be an incorrect diet, usually a diet with some fibre added can alleviate the problem.