You can extract the z-coordinate of an atom with gmx traj -ox -nox -noy -z and a group of atoms with the same command but adding -com. If you restrained the atoms being analyzed, you won't see such motion. The atom(s) should vibrate in place under the influence of the restraint.