Didn't take enough RMD 2023, what should I do?

We transferred traditional-IRA from companyA to companyB and thought RMD would transferred.  We took distributions from companyB but not accounted for companyA's RMD. We ended up taken less than the RMD for 2023.  What should we do now?  How do we report the RMD for 2023?