There are a few possible dynamics analyses you could do.
A Transient Structural analysis will compute a time history response of all the nodes to a time history input of ground motion at the nodes on the ground. The problem is you have to come up with the time history of ground motion. There are sources that provide the acceleration time history record of earthquakes that you can download and use in the analysis.
A Response Spectrum analysis will compute the peak response of all the nodes to an input acceleration spectrum. The acceleration time history of an earthquake can be converted into an input acceleration spectrum.
A Harmonic Response analysis will compute the response of all the nodes to a sinusoidal ground motion and sweep over a range of frequencies. That is generally more appropriate for the frame supporting a machine that creates a harmonic vibration and is less relevant to a building, although wind can cause a harmonic forcing function.