Refitting lock differentials

Can someone tell me how elaborate (work effort) it is to insert a lock into the rear axle differential. Is it an automatic lock or is it electrically switched on (my already having seen a TC switch with a separate lock button). If the latter is the case, are the cables already lying? Thanks already for the answers.