In glassy dynamics, the rattling of particles in a cage formed by their neighbors is typically limited to a length scale of the order of the particle diameter but is nevertheless strongly coupled to the overall structural arrest of the system (solidification). Furthermore, the rattling amplitude and the structural relaxation time have been recently shown to follow the same scaling form in various polymer melts and supercooled liquids. In this paper we analyze from this perspective for the fir...