Two spacecraft observations of transient shocks and ejecta in the interplanetary medium