Making sure that an electric fence which is keeping one’s cattle ... especially when this fence is quite a distance from one’s home so checking up on it is time-consuming.
He built an electric fence to keep these pests at bay. Much like the electric fences used for large mammals like horses or cows, this fence is designed to deter, but not kill slugs and snails.